xlsx
できること
このスキルは、AIがExcelのブックを作成し、変更するのを助けます。予算、トラッカー、簡単な財務モデル、書式の整ったデータシートが必要な人向けです。
使う場面
- ✓スプレッドシート、ブック、Excelファイルを依頼するとき。
- ✓入力値を変えると合計が自動で更新される財務モデルがほしいとき。
- ✓既存のExcelファイルを編集し、ドロップダウンや数式を追加する必要があるとき。
スキルのリンク
https://github.com/spinabot/brigade/blob/main/skills/xlsx/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“毎月の収入、支出、合計を含む予算のスプレッドシートを作成してください。数値を変えると、合計が自動で更新されるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
AIは、結果の値を入力するのではなく、本物のExcelの数式を書くので、合計はライブのままです。数値は数値として保存し、通貨などの表示形式を適用し、シートのスタイルを整えます。数式のエラーがないかファイルを確認することもできます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
xlsx — professional spreadsheets & models
| Need | Path |
|---|---|
| Simple table / multi-sheet dump (headers + rows, optional per-column number format) | Path 1 — make_document tool |
| Live formulas, cell styling, conditional formatting, dropdowns, named ranges, freeze panes, merged cells, dates | Path 2 — script the exceljs library via brigade exec-node |
| Surgical edits to an existing workbook | Path 3 — edit_document tool |
| Guarantee no formula errors / get computed values | Path 4 — recalc-verify loop (optional soffice) |
The two non-negotiable rules (they separate a real model from a hack):
- Formulas, never hardcoded results. Write the Excel formula string (
=B5*(1+$B$6)), never compute the number in code and paste a literal — so the sheet stays live when inputs change. This applies to every total, percentage, ratio, and growth. - Numbers are numbers. Store
1200000, format for display ($#,##0) — never the string"$1.2M", or it won't sum or sort.
Path 1 — quick table (make_document tool)
make_document(format="xlsx", content={ sheets:[{ name, header, rows, numberFormats }] })
Cells may be string | number | {formula, numFmt}. Fine for a straight data table. For styling, validation, charts, or a model → Path 2.
Path 2 — full power: script the exceljs library
Brigade bundles exceljs. write a gen.cjs, then run brigade exec-node gen.cjs:
// gen.cjs — illustrative
const ExcelJS = require("exceljs");
const wb = new ExcelJS.Workbook();
const ws = wb.addWorksheet("Model", { views: [{ state: "frozen", ySplit: 1 }] }); // freeze header row
ws.columns = [
{ header: "Item", key: "item", width: 28 },
{ header: "FY24 ($)", key: "v", width: 16, style: { numFmt: "$#,##0" } },
];
ws.getRow(1).font = { bold: true };
ws.getRow(1).fill = { type: "pattern", pattern: "solid", fgColor: { argb: "FFD9E2F3" } };
// Assumptions block — blue font marks hardcoded INPUTS (banker convention)
ws.getCell("E1").value = "Growth"; ws.getCell("E2").value = 0.18;
ws.getCell("E2").numFmt = "0.0%"; ws.getCell("E2").font = { color: { argb: "FF0000FF" } };
wb.definedNames.add("Model!$E$2", "growth"); // named range
ws.addRow({ item: "Revenue", v: 1200000 });
ws.addRow({ item: "Next year", v: { formula: "B2*(1+growth)" } }); // FORMULA, references the named input
ws.getCell("B3").font = { color: { argb: "FF000000" } }; // black = formula
// dropdown + conditional formatting
ws.getCell("A6").dataValidation = { type: "list", allowBlank: false, formulae: ['"Low,Med,High"'] };
ws.addConditionalFormatting({ ref: "B2:B3", rules: [
{ type: "cellIs", operator: "lessThan", formulae: ["0"], style: { font: { color: { argb: "FFFF0000" } } } } ]});
wb.xlsx.writeFile(process.argv[2] || "out.xlsx").then(() => console.log("wrote"));
exceljs covers: number/date formats, font/fill/border/alignment, conditional formatting, data-validation dropdowns, named ranges, freeze panes, autofilter, merged cells, images, sheet protection, multi-sheet. Dates: pass a real new Date(...) and set a date numFmt (don't pass a string).
Path 3 — edit an existing workbook (edit_document tool)
set_cells {sheet?, cells:[{ref|row,col, value, numFmt?}]}— surgical edits; other sheets untouched.append_rows {sheet?, rows}— grow a table. When editing someone's workbook, match its existing conventions exactly (column order, units, formats) — the template always wins over the defaults here.
Path 4 — recalc-verify loop (the quality guarantee)
exceljs stores formula strings but does not evaluate them — a typo (#REF!, #DIV/0!) is invisible until the file is opened. If LibreOffice is present, force a recalc and inspect; otherwise hand-check ranges and keep formulas simple.
command -v soffice >/dev/null 2>&1 && soffice --headless --convert-to pdf --outdir /tmp out.xlsx # then read the PDF: no #REF!/#DIV/0! anywhere
Loop: build → recalc → if any error token appears, fix the formula → recalc again. Target: zero formula errors in the delivered file.
Conventions (banker-grade, optional but professional)
- Cell-color convention: blue font = hardcoded inputs, black = formulas, green = links to other sheets, red = links to external files; yellow fill = key assumptions.
- Isolate assumptions in their own cells and reference them **absolutel
よくある質問
値を変えると合計は更新されますか?
はい。このスキルは固定の結果ではなく数式を書くので、シートはライブのままです。
ドロップダウンのリストは追加できますか?
はい。データの入力規則のドロップダウン、名前付きの範囲、ウィンドウ枠の固定、セルの結合を追加できます。
すでに持っているスプレッドシートを編集できますか?
はい。既存のブックに、慎重で的を絞った変更を加えられます。
詳細
作者による元の説明
Build and edit professional Excel (.xlsx) spreadsheets, workbooks, and simple financial models — live formulas, number/date/currency formats, cell styling, conditional formatting, data-validation dropdowns, named ranges, frozen panes, merged cells, multi-sheet. Use when the user asks Brigade to make, fill, update, model, or edit a spreadsheet, workbook, or .xlsx file.
repo: spinabot/brigade
人気
- GitHubのスター
- 11k
- ランキング
- #11744
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
1password
11kエージェントが、1Passwordのコマンドラインツールを設定し、安全にサインインできるようにしたうえで、必要なときに保存された秘密情報を読み取るか、注入できるよう支援します。
apple-reminders
11kエージェントが、ターミナルからAppleのリマインダーを表示、追加、編集、完了、削除できるよう支援します。リストや日付による絞り込みも含みます。
bluebubbles
11kエージェントが、BlueBubblesを通じてiMessageの送信と管理を行えるよう支援します。テキスト、添付ファイル、タップバックのリアクション、編集、グループ設定を含みます。
camsnap
11kエージェントが、すでに設定済みのネットワーク防犯カメラから、スナップショット、短い動画、動きの監視を行えるよう支援します。
似ているスキル
feishu-doc
394kテキスト、画像、表を含むFeishuのクラウドドキュメントを、ドキュメントツールを使って読み、作成し、編集するようエージェントを支援します。
feishu-drive
394kボットと共有されたFeishuのクラウドフォルダ内のファイルを閲覧、整理、コメントできるようエージェントを支援します。
feishu-perm
394kFeishuのファイルにアクセスできる人を確認し、変更するようエージェントを支援します。依頼を満たす最小の権限を選びます。