Xlsx Tool Operationsのロゴ

Xlsx Tool Operations

組織
cxcscmu
xlsx-tool-operations

Common operations and patterns for using the xlsx skill tool to manipulate Excel files programmatically.

概要

公開者cxcscmu
リポジトリSkillLearnBench
スキル名xlsx-tool-operations
スター
91
フォーク
7
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    cxcscmuがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Xlsx Tool Operations」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/cxcscmu/SkillLearnBench/tree/main/skills/b1-one-shot-claude-haiku-4-5/weighted-gdp-calculation/xlsx-tool-operations
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cxcscmu/SkillLearnBench.git /tmp/SkillLearnBench
mkdir -p .claude/skills
cp -r /tmp/SkillLearnBench/skills/b1-one-shot-claude-haiku-4-5/weighted-gdp-calculation/xlsx-tool-operations .claude/skills/xlsx-tool-operations
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでXlsx Tool Operationsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にXlsx Tool Operationsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Xlsx Tool Operationsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

XLSX Tool Operations

Overview

The xlsx skill tool allows programmatic interaction with Excel files, enabling reading, writing, and analyzing spreadsheet data without manually opening files.

Common Operations

Reading Spreadsheet Data

Use the xlsx skill to:

  • Examine sheet structure and contents
  • Understand data layout and ranges
  • Identify cell references and formulas
  • Analyze existing data before writing formulas

Pattern:

Skill: xlsx
Operation: read or get_data
File: path/to/file.xlsx
Sheet: "SheetName"
Range: optional specific range like A1:Z100

Writing Formulas to Cells

Use the xlsx skill to:

  • Add formulas to specific cells
  • Write values to cells
  • Batch update multiple cells
  • Preserve existing formatting

Pattern:

Skill: xlsx
Operation: write_cell or batch_write
File: path/to/file.xlsx
Sheet: "SheetName"
Target: Single cell reference (A1) or range (A1:A10)
Value: Formula starting with = or literal value
Options: Preserve formatting, overwrite mode

Working with Multiple Sheets

Reference sheets by name when:

  • Reading from source data sheet and writing to results sheet
  • Using cross-sheet formulas (SheetName!CellRef)
  • Analyzing relationships between sheets

Cross-sheet formula pattern:

=Sheet1!A1  (reference cell in another sheet)
='Sheet Name'!A1  (if sheet name has spaces)

Range Operations

Single Row/Column:

H12 (single cell)
H12:L12 (row range, 5 columns)
H12:H40 (column range, multiple rows)

Multiple Ranges:

H12:L17, H19:L24, H26:L31 (list separate ranges)

2D Range with formulas:

H12:L17 contains 6 rows × 5 columns = 30 cells
Fill with formula that references row/column criteria

Specific Patterns for This Task

Two-Condition Lookup Pattern

When filling ranges based on two criteria (Series Code in column, Year in row):

Formula template:

=INDEX(lookup_source_range, MATCH(row_series_code, lookup_column, 0), MATCH(header_year, lookup_row, 0))

Implementation steps:

  1. Identify source data location (e.g., Data!A21:G40)
  2. Identify lookup columns/rows (Series codes in Data column D, Years in Data row 10)
  3. Create INDEX formula with nested MATCH functions
  4. Use absolute references ($) for source ranges
  5. Use mixed references for criteria (varies by row/column)

Formula Writing Approach

When writing formulas to multiple cells in a range:

Option 1: Write one formula with relative references

  • Write formula to first cell (e.g., H12)
  • Use relative references for criteria that change by position
  • Use absolute references for source data ($Data$A$21:$G$40)
  • Copy formula across/down

Option 2: Write individual formulas

  • Each cell gets specific MATCH values
  • Useful if pattern varies
  • More explicit but more complex

Batch Operations

Write multiple cells efficiently by:

  • Grouping cells by formula type
  • Using ranges instead of individual cells
  • Reusing formula patterns with position adjustments

Excel Formula Reference Syntax

Absolute vs Relative References

A1      - Relative (changes when copied)
$A$1    - Absolute (stays same when copied)
$A1     - Column absolute, row relative
A$1     - Column relative, row absolute

Sheet References

Sheet1!A1        (no spaces in name)
'Sheet Name'!A1  (spaces require quotes)
Data!A21:G40     (range reference)
Data!$A$21:$G$40 (absolute range)

Array Formula Considerations

Some functions like MATCH used in arrays may:

  • Require Ctrl+Shift+Enter in traditional Excel
  • Work normally in Excel 365
  • Need special syntax handling in xlsx tool

Validation Steps

  1. Preview data structure: Read the sheet to understand layout
  2. Verify criteria: Confirm all lookup values exist in source data
  3. Test formula: Write to one cell first, verify result
  4. Batch write: Copy tested formula to remaining cells
  5. Spot check: Verify a few calculated values manually

Common Issues and Solutions

Formula not calculating

  • Ensure equals sign (=) at start
  • Check sheet name references
  • Verify cell references exist in source data
  • Check for typos in function names

Incorrect data returned

  • Verify MATCH is finding correct position
  • Check INDEX range includes target data
  • Ensure criteria values match exactly (case-sensitive in some functions)

Range reference errors

  • Include full sheet path if cross-sheet: Sheet!A1:Z100
  • Use quotes if sheet name has spaces: 'Sheet Name'!A1
  • Verify range bounds are correct for data size

Performance Tips

  1. Use efficient ranges (don't include entire columns if A1:A100 suffices)
  2. Prefer XLOOKUP over INDEX/MATCH if available
  3. Use MATCH with exact match (0) for performance
  4. Test formulas before applying to large ranges
  5. Group batch writes to minimize file operations

よくある質問

AIスキル「Xlsx Tool Operations」では何ができますか?

Common operations and patterns for using the xlsx skill tool to manipulate Excel files programmatically.

TypingMindでXlsx Tool Operationsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Xlsx Tool Operationsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにXlsx Tool Operationsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/cxcscmu/SkillLearnBench/tree/main/skills/b1-one-shot-claude-haiku-4-5/weighted-gdp-calculation/xlsx-tool-operationsを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Xlsx Tool Operationsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Xlsx Tool Operationsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもXlsx Tool Operationsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Xlsx Tool Operations」は無料ですか?

はい。cxcscmuがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇