xorbitsai/xagent/xlsx-financial-report
Claude Code and agent skill by xorbitsai/xagent
- community
Checking that the SKILL.md file is still in the repository.
A native .xlsx styled as a financial, KPI, or dashboard report: "Excel report", "financial report", "KPI dashboard", "monthly report". Opens cleanly in Excel / Google Sheets / Numbers.
Install
npx vskill@latest install xorbitsai/xagent/xlsx-financial-reportSKILL.md
Editorial Financial Report (.xlsx)
You will generate one .xlsx file via openpyxl by writing a Python program and running it through the execute_python_code tool. Save to the workspace, then report the path + a 1-line content summary.
π¦ Required runtime packages
The sandboxed execute_python_code ships with pandas, numpy, matplotlib, and `openpyxl>=3.1.0` preinstalled β no extra installation step is needed. Just import openpyxl at the top of your script and proceed.
Note:execute_python_codeaccepts onlycodeandcapture_outputarguments; there is nopackagesparameter.All required libraries are already available in the sandbox image.
πΎ How to save the file
execute_python_code already runs with the task's output directory as the current working directory. Save the workbook with a plain filename (no path), e.g.:
Do NOT use:
wb.save("/workspace/foo.xlsx")β/workspacedoes not exist on this hostwb.save("output/foo.xlsx")β there is no nestedoutput/subdir- BytesIO + base64 round-trips β just save to disk directly.
Verify with os.path.getsize("xagent_metrics_dashboard.xlsx") before declaring success. A real openpyxl-generated xlsx is always >5 KB β if your saved file is under 1 KB it's broken or empty.
π Make it clickable in chat β REQUIRED
The Python executor returns a markdown_link field in its response for every workspace file it generated (or a file_refs[] array with one entry per file). Read the tool's response and use the returned markdown_link string verbatim. In your final answer, the first line MUST be that chip link itself β bare markdown, NOT inside backticks, NOT presented as "file_id: UUID":
β CORRECT (renders as clickable chip β chat UI looks for this exact pattern):
xagent_metrics_dashboard.xlsx
The UUID comes from the executor response. Do not fabricate one.
β WRONG β common failure that renders as plain text:
ε·²ηζζ₯葨:
- ζδ»Άε:
xagent_metrics_dashboard.xlsx - file_id:
20fae785-3823-4906-b385-d0e8a7807dc8
β ALSO WRONG β chip link inside a code fence: `[name](file:UUID)` suppresses markdown so the link won't render as a chip.
β ALSO WRONG β calling `get_file_info(...)` to "fetch" the file_id. Its FileInfo return shape does not include file_id; the chip reference is already on the executor result.
Plain-text mention of the filename is not clickable β the user must navigate to File Management to find it. Always lead with the bare [name](file:UUID) line, then describe the contents.
β οΈ Hard rules β NO exceptions
- MATCH THE USER'S LANGUAGE. If the prompt is Chinese (δΈζ), ALL
workbook text (title, subtitle, section banners, KPI labels, table headers, deltas) must be in Chinese. Translate template phrases like SUMMARY β ζ±ζ», DETAIL β ζη», As of YYYY-MM-DD β ζͺθ³ YYYY-MM-DD. Numbers and date formats stay locale-neutral.
- One accent color only. Pick one of the 5 palettes below; use only
its 4 hex values (ink, paper, paper_tint, accent). paper_tint is the alternating-row band shade β without it you can only do flat one-color rows. No other colors anywhere. In code, define a `palette = {"ink": "...", "paper": "...", "paper_tint": "...", "accent": "..."} dict ONCE at the top of the script and reference palette["ink"] / palette["accent"] / palette["paper_tint"] / palette["paper"]` everywhere β do not copy literal hex values into individual styling calls.
- Two fonts only. Headers / titles =
Cambria(serif, Office native).
Body / data = Calibri (sans, Office default).
- Forbidden:
- 3-D charts, donut/pie charts with > 5 slices, exploded pies
- rainbow chart palettes (color charts only with
ink+accent) - chart shadows, glow, bevel, gradient fills
- thick borders (use
thinonly, sparingly) - merged-cell abuse (merge only for section banners across columns)
- emoji as decoration
- Comic Sans, Arial Black, MS Sans Serif
- rainbow conditional formatting (only monochrome data bars / 2-stop
minβmax scale in ink shade)
- Real data only. No fabricated numbers. If the user didn't provide
data, ask first β don't invent.
- Always include: title row, frozen header pane, alternating row
bands using paper-tint, summary KPI block at top.
- Failure honesty β NEVER fake the deliverable.
- If
execute_python_coderaises after multiple retries, STOP and report
the actual error to the user. Do not write a stub file like write_file("report.xlsx", "placeholder") to make the chip appear.
- The final answer must reflect what was actually written. Do not
describe KPI values, deltas, or sections that aren't in the saved .xlsx. If the chart didn't render, say so β don't claim it did.
- It is better to deliver a chart-less but real .xlsx (drop the chart
block and save without it) than to fabricate a success report. If the chart code keeps failing, ship the workbook without the chart and tell the user the chart was omitted.
π¨ Palettes β pick ONE
Each: ink (text + borders + chart series), paper (workbook bg / cells), paper-tint (alternating row band), accent (single highlight color for KPI values / chart series 2 / positive deltas).
- Bloomberg Mono (default / fintech)
ink 1A1A1A Β· paper FFFFFF Β· paper-tint F7F7F5 Β· accent D97706
- Indigo Sheet (corporate / SaaS)
ink 0F172A Β· paper FFFFFF Β· paper-tint F1F5F9 Β· accent 4F46E5
- Forest Ledger (sustainability / impact)
ink 1A2E1F Β· paper FAFAF7 Β· paper-tint F0EDE3 Β· accent 059669
- Crimson Quarterly (executive / board)
ink 1F1F1F Β· paper FFFFFF Β· paper-tint F5F2EE Β· accent B91C1C
- Slate Audit (compliance / audit)
ink 0F1419 Β· paper FCFCFC Β· paper-tint F0F2F4 Β· accent 0891B2
βοΈ Typography rules (openpyxl Font sizes in pt)
- Title (A1, merged across cols): Cambria, 22pt, ink, bold
- Subtitle / date (A2): Calibri, 11pt, ink, italic
- Section header (banner row): Calibri, 12pt, paper bg + ink color, bold,
merged across the section's columns
- Table header: Calibri, 11pt, ink bg + paper color, bold (thin bottom border)
- Data: Calibri, 10pt, ink color
- KPI big number: Cambria, 24pt, ink, bold
- KPI label: Calibri, 9pt, ink-with-50%-opacity (or just slightly lighter), uppercase
ποΈ Standard layout
π Number formatting (Excel format codes)
| Type | Format string | |
|---|---|---|
| Integer | #,##0 | |
| Currency (USD) | $#,##0.00;-$#,##0.00 (no parens, no red) | |
| Currency (CNY) | Β₯#,##0.00;-Β₯#,##0.00 | |
| Percentage | 0.0% | |
| Delta percentage | +0.0%;-0.0%;0.0% (explicit sign) | |
| Large numbers | #,##0,"K";-#,##0,"K" or #,##0,,"M" | |
| Date | yyyy-mm-dd |
π± Currency default β pick carefully
The user's name / locale is NOT a reliable signal for which currency the report's subject company uses. Pick currency by the subject domain, not by who's asking:
- Default β USD (`$`) for: SaaS, B2B software, fintech, US/global
companies, crypto, VC metrics (ARR / MRR / NRR / CAC / LTV are industry-standard USD).
- Use CNY (`Β₯`) only when: the user explicitly says CNY/RMB, the
company is named as Chinese (e.g. Alibaba / Pinduoduo / ByteDance), or the data source is a Chinese filing.
- Use EUR (`β¬`) for EU-based companies explicitly mentioned.
- Use GBP (`Β£`) for UK-based companies explicitly mentioned.
When in doubt, default to USD and note the assumption in cell A2 subtitle (e.g. Q1 2026 Quarterly Review Β· As of 2026-03-31 Β· USD).
π Chart styling (openpyxl charts)
- Chart types allowed:
LineChart,BarChart(type="col", never 3-D),
ScatterChart. NEVER import BarChart3D, PieChart3D, etc.
- Series colors: only
inkandaccent(max 2 series). For more, use line
variations (solid vs dashed) in ink.
- No legend if only 1 series. If 2 series, legend at right, no border, no fill.
- No axis title unless absolutely necessary. Axis labels font: Calibri 9pt.
- Chart border: none. Chart background: paper.
- Title: 12pt Calibri bold, ink, left-aligned above chart.
β οΈ openpyxl 3.x chart API gotchas β copy this verbatim, don't improvise
The openpyxl chart API is full of footguns. Use ONLY the imports below and ONLY the kwargs shown. Most common mistakes:
| β Wrong | β Right | |
|---|---|---|
from openpyxl.chart.data_source import StrDataSource | not needed β Reference covers this | |
from openpyxl.drawing.fill import SolidColorFill | not needed β pass hex string to solidFill="0F172A" | |
GraphicalProperties(line=...) | GraphicalProperties(ln=...) (kwarg is ln, two letters) | |
LineProperties(width=25000) | LineProperties(w=25000) (kwarg is w) | |
chart.y_axis.majorGridlines = GraphicalProperties(...) | wrap in ChartLines(spPr=GraphicalProperties(...)) | |
BarChart3D | BarChart(type="col") |
β Tested line-chart snippet (openpyxl 3.x β copy as-is)
Before the snippet: define your chosen palette once. Example forIndigo Sheet:```pythonpalette = {"ink": "0F172A", "paper": "FFFFFF","paper_tint": "F1F5F9", "accent": "4F46E5"}```Referencepalette["ink"]/palette["accent"]/palette["paper_tint"]in the styling code below instead of copying hex literals.
β Tested bar-chart snippet
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/xagent/skills/builtin/xlsx-financial-report/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xorbitsai/xagent/xlsx-financial-report)