claude-office-skills/excel-automation

Excelファイルの操作を自動化するAIアシスタントスキル。データの読み取り、書き込み、書式設定、数式の適用などをサポートします。

excel-automation とは?

このスキルは、Claude CodeなどのAIエージェントがExcelファイル(.xlsx, .xls)をプログラム的に操作するための統合機能を提供します。開発者やパワーユーザーは、自然言語の指示だけで、表形式データの読み取り・書き込み、セル書式の設定、数式の挿入、グラフ作成、データフィルタリングなどの複雑なタスクを実行できます。主にPythonのopenpyxlライブラリを内部で利用し、ユーザーはスクリプトを直接記述する必要なく、AIに「売上データを月別に集計して棒グラフを作成して」と依頼するだけで自動処理が行われます。このスキルは、手作業のExcel操作を大幅に削減し、定型業務の効率化、レポート生成の自動化、データ分析パイプラインとの連携を可能にします。対応プラットフォームはClaude Code, Cursor, Codexなど、ファイルシステムへのアクセス権を持つAIアシスタント全般です。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/claude-office-skills/skills/tree/main/skills/excel-automation

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

excel-automation は何をしますか?

Excelファイルの操作を自動化するAIアシスタントスキル

概要

このスキルは、AIエージェントがMicrosoft Excelファイル(.xlsx, .xls)を読み取り、編集、作成するための機能を提供します。以下の操作を自然言語の指示で実行できます。

  • データの読み取り:シート、セル範囲のデータを取得
  • データの書き込み:セルへの値の設定と更新
  • 書式設定:フォント、色、罫線、セルの塗りつぶし
  • 数式の適用:SUM, AVERAGE, VLOOKUPなどの関数
  • グラフ作成:棒グラフ、折れ線グラフ、円グラフなど
  • データ処理:並べ替え、フィルタリング、条件付き書式
  • シート管理:シートの追加、削除、名前変更

対応プラットフォーム

  • Claude Code
  • Cursor
  • Codex
  • その他ファイルシステムにアクセス可能なAIアシスタント

使用例

データの読み取り

# openpyxlを使用してExcelファイルを読み取る
from openpyxl import load_workbook

wb = load_workbook('売上データ.xlsx')
ws = wb.active

# 全データを取得
for row in ws.iter_rows(values_only=True):
    print(row)

データの書き込み

from openpyxl import Workbook

wb = Workbook()
ws = wb.active
ws.title = "月別売上"

# ヘッダー行を追加
ws.append(["月", "売上", "経費", "利益"])
ws.append(["1月", 100000, 40000, 60000])
ws.append(["2月", 120000, 45000, 75000])

wb.save('report.xlsx')

数式の追加

# SUM数式をセルに追加
ws['D2'] = '=B2-C2'
ws['D3'] = '=B3-C3'
ws['B5'] = '=SUM(B2:B4)'

グラフの作成

from openpyxl.chart import BarChart, Reference

chart = BarChart()
chart.title = "月別売上推移"
chart.y_axis.title = "売上 (円)"
chart.x_axis.title = "月"

data = Reference(ws, min_col=2, min_row=1, max_row=4, max_col=2)
categories = Reference(ws, min_col=1, min_row=2, max_row=4)

chart.add_data(data, titles_from_data=True)
chart.set_categories(categories)

ws.add_chart(chart, "F2")

設定

環境変数は不要です。このスキルは以下のPythonライブラリに依存します:

  • openpyxl(推奨)
  • pandas(データ分析に便利)
  • xlrd / xlwt(古い形式の.xlsファイル用)

インストールコマンド:

pip install openpyxl pandas xlrd xlwt

制限事項

  • 暗号化されたExcelファイルはサポートしていません
  • マクロ(VBA)の実行はできません
  • 大規模ファイル(10MB以上)の処理には注意が必要です

コントリビューション

このスキルはコミュニティベースで開発されています。改善提案やバグ報告はリポジトリのIssueまたはPull Requestでお願いします。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

claude-office-skills/academic-search

Search and analyze academic literature. Find papers, understand research methodologies, and synthesize academic findings for research projects.

claude-office-skills/ads-copywriter

Multi-platform ad copy generation for Google Ads, Meta/Facebook, TikTok, LinkedIn with A/B testing variants

claude-office-skills/ai-agent-builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

claude-office-skills/airtable-automation

Airtable database automation - views, automations, integrations, and workflow triggers

claude-office-skills/ai-slides

Generate complete presentations with AI - from outline to polished slides

claude-office-skills/amazon-seller

Automate Amazon seller operations including inventory, orders, pricing, and advertising management

claude-office-skills/apple-shortcuts-integration

Create and trigger Apple Shortcuts for iOS/macOS automation and cross-platform workflows

claude-office-skills/applicant-screening

Screen job applications against requirements and score candidates

claude-office-skills/asana-automation

Automate Asana project management workflows, task tracking, team collaboration, and reporting

claude-office-skills/batch-convert

Batch convert documents between multiple formats using a unified pipeline

claude-office-skills/batch-processor

Process multiple documents in bulk with parallel execution

claude-office-skills/brand-guidelines-generator

Create and maintain brand style guides for consistent visual identity

claude-office-skills/browser-automation

Automate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright

claude-office-skills/calendar-automation

Google Calendar and Outlook automation - scheduling optimization, meeting workflows, time blocking, and Slack/Sheets integration

claude-office-skills/changelog-generator

Generate release notes from git commits, updates, or feature lists

claude-office-skills/chart-designer

Design effective data visualizations and charts. Generate chart configurations for ECharts, Chart.js, and other libraries. Create dashboards and reports.

claude-office-skills/chat-with-pdf

Answer questions about PDF content, summarize, and extract information

claude-office-skills/clickup-automation

Automate ClickUp workspace management, task workflows, time tracking, and team productivity

claude-office-skills/company-research

Conduct comprehensive company research and due diligence. Analyze business model, competitive landscape, management, and market position.

claude-office-skills/competitive-analysis

Analyze competitors systematically. Compare products, features, pricing, positioning, and market strategies. Generate comprehensive competitive intelligence reports.

関連スキル