[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Z0W1XHJVFS4M183VZTF3Z":3,"skill-same:01M77Z0W1XHJVFS4M183VZTF3Z":177},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M77Z0W1XHJVFS4M183VZTF3Z","xlsx",null,"Open, create, read, analyze, edit, repair, or validate spreadsheet files (.xlsx, .xlsm, .xltx, .csv, .tsv) with zero format loss, with first-class support for Chinese \u002F CJK content. Use whenever the user asks to create, build, modify, fill, analyze, read, repair, validate, or format any spreadsheet, workbook, report, dashboard, budget, financial model, pivot table, or tabular data file. Handles Chinese text, encodings (UTF-8 \u002F GB18030 \u002F GBK), full-width characters, CJK fonts in rendering, and Chinese number\u002Fdate conventions (¥, 万\u002F亿, 年\u002F月\u002F日). Covers: creating new workbooks from scratch, reading and analyzing existing files, editing existing workbooks while preserving pivot tables \u002F VBA macros \u002F charts \u002F sparklines \u002F conditional formatting \u002F named ranges, formula recalculation and validation, visual review of results, and applying professional formatting. Triggers on 'spreadsheet', 'Excel', 'workbook', '表格', '工作簿', '.xlsx', '.xlsm', '.csv', 'pivot table', '透视表', 'macro', '宏', 'chart', '图表', 'financial model', '财务模型', 'formula', '公式', or any request to produce tabular data.","Jinhong270\u002FAI-Agent","Jinhong270","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193703602?v=4","01M77SB4J7ATDYATSD7AW4B8XP","01M77SB4JWRQWNGTTR291BHMQP",3,"MIT","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: xlsx\ndescription: \"Open, create, read, analyze, edit, repair, or validate spreadsheet files (.xlsx, .xlsm, .xltx, .csv, .tsv) with zero format loss, with first-class support for Chinese \u002F CJK content. Use whenever the user asks to create, build, modify, fill, analyze, read, repair, validate, or format any spreadsheet, workbook, report, dashboard, budget, financial model, pivot table, or tabular data file. Handles Chinese text, encodings (UTF-8 \u002F GB18030 \u002F GBK), full-width characters, CJK fonts in rendering, and Chinese number\u002Fdate conventions (¥, 万\u002F亿, 年\u002F月\u002F日). Covers: creating new workbooks from scratch, reading and analyzing existing files, editing existing workbooks while preserving pivot tables \u002F VBA macros \u002F charts \u002F sparklines \u002F conditional formatting \u002F named ranges, formula recalculation and validation, visual review of results, and applying professional formatting. Triggers on 'spreadsheet', 'Excel', 'workbook', '表格', '工作簿', '.xlsx', '.xlsm', '.csv', 'pivot table', '透视表', 'macro', '宏', 'chart', '图表', 'financial model', '财务模型', 'formula', '公式', or any request to produce tabular data.\"\nlicense: MIT\nmetadata:\n  version: \"2.0\"\n  category: productivity\n  locale: zh-CN-aware\n  sources:\n    - ECMA-376 Office Open XML File Formats\n    - Microsoft Open XML SDK documentation\n---\n\n# XLSX Skill (Universal, CJK-aware)\n\nHandle the request directly. Do NOT spawn sub-agents. Always write the output file the user requests, then verify it before delivering.\n\n> This is a vendor-neutral, general-purpose spreadsheet skill. It is **not** limited to finance and is explicitly built to work well in **Chinese-language contexts**: Chinese sheet names, headers and data; mixed CJK + ASCII; encodings beyond UTF-8 (GB18030\u002FGBK) for CSV; full-width punctuation; CJK fonts during rendering; and Chinese number\u002Fdate conventions. Finance-specific conventions are optional and isolated in their own section.\n\n---\n\n## 0. Quick Start (read this first)\n\n**The golden loop for every task: READ → ACT → VERIFY.** Never skip READ, never skip VERIFY.\n\n```bash\n# 0) One-time environment self-check (python, openpyxl, libreoffice, poppler, AND CJK fonts)\npython3 SKILL_DIR\u002Fscripts\u002Fdoctor.py\n\n# 1) READ — always inspect structure before touching anything\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py input.xlsx            # sheets, dims, named ranges, macros, pivots, charts\n\n# 2) ACT — pick ONE path (see Decision Guide below)\n#    - read-only analysis          -> pandas\n#    - create new workbook         -> XML template + xlsx_pack.py\n#    - edit \u002F fill \u002F fix existing  -> unpack -> edit -> pack  (zero format loss)\n\n# 3) VERIFY — prove the file is correct and undamaged\npython3 SKILL_DIR\u002Fscripts\u002Fformula_check.py output.xlsx --report\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py output.xlsx --out review\u002F             # renders with CJK fonts\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py output.xlsx --diff-against input.xlsx\n```\n\nIf unsure which path to take, see the **Decision Guide** (section 2). If something breaks, see **Troubleshooting** (section 9). For Chinese-context specifics, see **section 10**.\n\n---\n\n## 1. Task Routing\n\n| Task | When | Method | Guide |\n|------|------|--------|-------|\n| **READ** | analyze \u002F summarize existing data, no changes | `xlsx_reader.py` + pandas | `references\u002Fread-analyze.md` |\n| **CREATE** | brand-new workbook from scratch | XML template → `xlsx_pack.py` | `references\u002Fcreate.md` + `references\u002Fformat.md` |\n| **EDIT** | modify \u002F fill an existing workbook | XML unpack → edit → pack | `references\u002Fedit.md` (+ `format.md`) |\n| **FIX** | repair broken formulas \u002F corruption | XML unpack → fix `\u003Cf>` nodes → pack | `references\u002Ffix.md` |\n| **VALIDATE** | check formulas & integrity | `formula_check.py` (+ recalc) | `references\u002Fvalidate.md` |\n| **REVIEW** | confirm result visually | `xlsx_render.py` → PNG\u002FPDF\u002FHTML | `references\u002Fvisual-review.md` |\n\nCSV \u002F TSV: for pure data work use pandas directly (mind the **encoding** — see section 10). To deliver an `.xlsx`, build it via the CREATE path so formatting and formulas are preserved.\n\n---\n\n## 2. Decision Guide (which path do I take?)\n\n1. **Only reading \u002F analyzing, no output workbook?** → **READ** path. `xlsx_reader.py` then pandas. Never modify the source.\n2. **File exists and I must change it (fill cells, add column\u002Frow, fix formulas, restyle)?** → **EDIT\u002FFIX** path. ALWAYS unpack → edit → pack. **Never** `openpyxl.load_workbook(...).save()` round-trip — it silently destroys VBA macros, pivot tables, charts, slicers, sparklines.\n3. **Building a new workbook from nothing?** → **CREATE** path. Copy the minimal XML template, edit XML, pack.\n4. **Wrong\u002Fold values or a “needs repair” prompt?** → recalc (`libreoffice_recalc.py`) and re-validate; if corruption, go to **Troubleshooting**.\n\n**Format-preservation rule of thumb:** if the file contains (or might contain) macros, pivots, charts, conditional formatting, named ranges, or sparklines, stay on the XML unpack\u002Fedit\u002Fpack path. `xlsx_reader.py` reports which of these are present.\n\n---\n\n## 3. READ — Analyze data (read `references\u002Fread-analyze.md` first)\n\nStart with `xlsx_reader.py` for structure discovery, then pandas for custom analysis. Never modify the source file.\n\n- **Encoding (critical for Chinese CSV)**: `.xlsx` is always UTF-8 internally, but `.csv`\u002F`.tsv` exported from Chinese Excel is often **GB18030\u002FGBK**. Detect and decode (see section 10); do not assume UTF-8.\n- **Decimal\u002Fformat rule**: when the user specifies decimal places (e.g. “2 位小数”), apply it to ALL numeric values — `f'{v:.2f}'`. Never print `12875` when `12875.00` is required.\n- **Aggregation rule**: compute sums\u002Fmeans\u002Fcounts directly from the DataFrame column, e.g. `df['营业收入'].sum()`. Never re-derive column values before aggregating.\n- **Large files**: `pandas.read_excel(..., sheet_name=None)` to enumerate sheets; `.head()` before full loads.\n\n---\n\n## 4. CREATE — XML template (read `references\u002Fcreate.md` + `references\u002Fformat.md`)\n\nCopy `templates\u002Fminimal_xlsx\u002F` → edit XML directly → pack with `xlsx_pack.py`.\n\n- Every derived value MUST be an Excel formula (`\u003Cf>SUM(B2:B9)\u003C\u002Ff>`), never a hardcoded number.\n- Use cell references over magic numbers (`=H6*(1+$B$3)`, not `=H6*1.04`).\n- **Chinese text in cells**: store as inline strings and XML-escape `& \u003C >`, e.g. `\u003Cc r=\"A1\" t=\"inlineStr\">\u003Cis>\u003Ct>营业收入\u003C\u002Ft>\u003C\u002Fis>\u003C\u002Fc>`. Always write XML as UTF-8.\n- **Column widths for CJK**: Chinese glyphs are roughly twice as wide as ASCII. Set wider columns (rough rule: width ≈ max CJK chars × 2.1 + 2) so headers like “本年累计金额” are not clipped.\n- Apply number\u002Fdate formats per section 10 and `format.md`.\n- After packing, run VERIFY (validate + render).\n\n---\n\n## 5. EDIT — XML direct-edit (read `references\u002Fedit.md` first)\n\n### CRITICAL — EDIT INTEGRITY RULES\n1. **NEVER create a new `Workbook()`** for edit tasks. Always load\u002Funpack the original file.\n2. Output MUST contain the **same sheets** as the input (same names, order, data) unless the task explicitly says to add\u002Fremove.\n3. Only modify the specific cells the task asks for — everything else stays byte-for-byte untouched.\n4. **Preserve special parts**: `vbaProject.bin`, `pivotTables\u002F`, `pivotCache\u002F`, `charts\u002F`, slicers, sparklines must survive unchanged.\n5. **After saving output.xlsx, verify it** with `xlsx_reader.py --diff-against input.xlsx`: confirm original sheet names, named ranges, pivots\u002Fmacros, and a sample of original data are present. If verification fails, fix it before delivering.\n\nNever use an openpyxl round-trip on existing files. Instead: **unpack → use helper scripts \u002F edit XML → repack.**\n\n### “Fill cells” \u002F “Add formulas to existing cells” = EDIT task\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\n# Find target sheet XML via xl\u002Fworkbook.xml -> xl\u002F_rels\u002Fworkbook.xml.rels\n#   \u003Cc r=\"B3\">\u003Cf>SUM('销售数据'!D2:D13)\u003C\u002Ff>\u003Cv>\u003C\u002Fv>\u003C\u002Fc>\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n\n### Add a column (formulas, numfmt, styles auto-copied from adjacent column)\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_add_column.py \u002Ftmp\u002Fxlsx_work\u002F --col G \\\n    --sheet \"Sheet1\" --header \"占比\" \\\n    --formula '=F{row}\u002F$F$10' --formula-rows 2:9 \\\n    --total-row 10 --total-formula '=SUM(G2:G9)' --numfmt '0.0%' \\\n    --border-row 10 --border-style medium\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n`--border-row` applies a top border to ALL cells in that row (not just the new column). Use for accounting-style total rows.\n\n### Insert a row (shifts rows, updates SUM formulas, fixes circular refs)\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\n# Locate the row by its LABEL text (works for Chinese labels too):\n#   grep -n \"办公租金\" \u002Ftmp\u002Fxlsx_work\u002Fxl\u002Fworksheets\u002Fsheet*.xml\n#   (Chinese labels usually live in xl\u002FsharedStrings.xml — grep there as well)\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_insert_row.py \u002Ftmp\u002Fxlsx_work\u002F --at 5 \\\n    --sheet \"2025预算\" --text A=水电费 \\\n    --values B=3000 C=3000 D=3500 E=3500 \\\n    --formula 'F=SUM(B{row}:E{row})' --copy-style-from 4\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n**Row lookup rule**: when the task says “after row N (Label)”, find the row by searching for the label in `sharedStrings.xml`\u002Fworksheet XML and use the real row number + 1 for `--at`. `xlsx_insert_row.py` calls `xlsx_shift_rows.py` internally — do not call it separately.\n\n### Row-wide borders (e.g. accounting line on a TOTAL row)\nAppend a new `\u003Cborder>` in `xl\u002Fstyles.xml`, append an `\u003Cxf>` clone in `\u003CcellXfs>` setting the new `borderId`, then apply that style index to every `\u003Cc>` in the row via the `s` attribute. Iterate over ALL cells A through the last column.\n```xml\n\u003Cborder>\u003Cleft\u002F>\u003Cright\u002F>\u003Ctop style=\"medium\"\u002F>\u003Cbottom\u002F>\u003Cdiagonal\u002F>\u003C\u002Fborder>\n```\n\n### Manual XML edit (anything helper scripts don’t cover)\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\n# ... edit XML (UTF-8) ...\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n\n### Common corruption traps (handled by pack\u002Ffix scripts)\n- Edited a string but didn’t update `sharedStrings.xml` `count`\u002F`uniqueCount`.\n- Edited a formula but left a stale `calcChain.xml` (delete it; the app rebuilds).\n- Re-ordered ZIP parts or recompressed `vbaProject.bin` on pack (keep order; store the macro blob).\n- Wrote XML in a non-UTF-8 encoding → Chinese turns into mojibake. Always UTF-8.\n\n---\n\n## 6. FIX — Repair broken formulas (read `references\u002Ffix.md` first)\nEDIT task. Unpack → fix broken `\u003Cf>` nodes \u002F rebuild `calcChain.xml` → pack. Preserve all original sheets and data. Re-validate after.\n\n---\n\n## 7. VALIDATE — Check formulas (read `references\u002Fvalidate.md` first)\n- Static: `formula_check.py file.xlsx --report` (exit code 0 = safe). Flags `#REF!`, `#DIV\u002F0!`, `#VALUE!`, `#N\u002FA`, `#NAME?`, broken ranges, circular refs.\n- Dynamic: `libreoffice_recalc.py file.xlsx` to recalculate and write back cached values (openpyxl does NOT evaluate formulas).\n\n---\n\n## 8. REVIEW — Visual verification (read `references\u002Fvisual-review.md` first)\nCloses the “no visual interface” gap so a human can confirm results. `xlsx_render.py` forces CJK-capable fonts so Chinese text renders instead of showing tofu boxes (□□□).\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py output.xlsx --out review\u002F        # one PNG per sheet\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py --diff input.xlsx output.xlsx --html review\u002Fdiff.html  # before\u002Fafter\n```\nReview checklist: layout alignment, **CJK text not clipped\u002Ftofu**, number\u002Fdate formats, error values, pivots\u002Fcharts still render.\n\n---\n\n## 9. Troubleshooting\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| App shows “needs repair” on open | stale `calcChain.xml`, bad `sharedStrings` count, re-ordered\u002Frecompressed parts | delete `calcChain.xml`; run `formula_check.py`; repack with `xlsx_pack.py` |\n| Cells show old value or 0 after editing formula | openpyxl doesn’t calculate | run `libreoffice_recalc.py`, then re-render |\n| Charts \u002F pivots \u002F macros vanished | openpyxl round-trip | redo via unpack\u002Fedit\u002Fpack; never `Workbook().save()` over existing file |\n| Chinese text shows as 锟斤拷\u002F锘\u002Fgibberish | wrong encoding | read\u002Fwrite XML as UTF-8; for CSV detect GB18030\u002FGBK (section 10) |\n| Chinese renders as □□□ boxes in PNG | missing CJK font | `xlsx_render.py` sets a CJK font; install Noto Sans CJK if `doctor.py` flags it |\n| Wrong row edited | trusted prompt’s row number | locate by label text in the XML first |\n\n---\n\n## 10. Chinese \u002F CJK Context Handbook\n\n**Encoding**\n- `.xlsx`\u002F`.xlsm` internals are always UTF-8 — keep them UTF-8 on edit.\n- CSV\u002FTSV from Chinese Windows Excel is usually **GB18030\u002FGBK** (sometimes UTF-8 with BOM). When reading:\n  ```python\n  import pandas as pd\n  for enc in (\"utf-8-sig\", \"gb18030\", \"utf-16\"):\n      try:\n          df = pd.read_csv(path, encoding=enc); break\n      except UnicodeDecodeError:\n          continue\n  ```\n- When writing CSV for the user to open in Excel, use `encoding=\"utf-8-sig\"` (BOM) so Excel shows Chinese correctly.\n\n**Text \u002F XML**\n- Store Chinese cell text as inline strings and escape `& \u003C >`. Sheet names, named ranges, and headers may be Chinese — quote sheet names in formulas: `SUM('销售数据'!D2:D13)`.\n- Beware **full-width** characters (`，；：（）％` and full-width digits `１２３`). Normalize to half-width for numeric parsing when needed (`unicodedata.normalize('NFKC', s)`).\n\n**Numbers & currency**\n- RMB currency format: `\"¥\"#,##0.00` (or `\"￥\"` full-width). For accounting style use `_-\"¥\"* #,##0.00_-;-\"¥\"* #,##0.00`.\n- 万\u002F亿 scaling: Chinese reports often show 万 (10⁴) or 亿 (10⁸). Display via custom number format `0!.0,,\"亿\"` is unreliable; prefer a helper column that divides (`=B2\u002F100000000`) with header “金额（亿元）”, keeping the source value intact.\n- Thousands separator `#,##0`; percentage `0.0%`.\n\n**Dates**\n- Chinese date format: `yyyy\"年\"m\"月\"d\"日\"`; with weekday `aaaa` → 星期X. Keep the underlying value a real date serial, only the number format is Chinese.\n\n**Rendering & fonts**\n- Use `xlsx_render.py` (it selects an installed CJK font: Noto Sans CJK SC\u002FTC, Source Han, WenQuanYi, or Microsoft YaHei if present). Verify with `doctor.py`.\n\n**Layout**\n- Widen columns for CJK (≈ chars × 2.1 + 2). Avoid wrapping headers awkwardly; set row height if wrapping Chinese text.\n- Sorting Chinese text: default is by Unicode code point. If the user wants pinyin or stroke order, sort explicitly with `pypinyin` (pinyin) or document the limitation.\n\n---\n\n## Financial Color Standard (optional — only for financial models)\n| Cell Role | Font Color | Hex |\n|-----------|-----------|-----|\n| Hard-coded input \u002F assumption | Blue | `0000FF` |\n| Formula \u002F computed result | Black | `000000` |\n| Cross-sheet reference formula | Green | `00B050` |\n\nFinance display conventions (when applicable): zeros as `-`, negatives in red parentheses, multiples as `5.2x`, units in headers (e.g. `营业收入（亿元）`).\n\n---\n\n## Key Rules\n1. **READ → ACT → VERIFY** every time. Never skip READ or VERIFY.\n2. **Formula-First**: every calculated cell uses an Excel formula, not a hardcoded number.\n3. **CREATE → XML template**: copy minimal template, edit XML, pack.\n4. **EDIT\u002FFIX → XML unpack\u002Fedit\u002Fpack**: never openpyxl round-trip on existing files.\n5. **Preserve everything not targeted**: sheets, named ranges, pivots, macros, charts.\n6. **UTF-8 always; detect CSV encoding**: never corrupt Chinese text.\n7. **Always produce the output file** and validate before delivery (`formula_check.py` exit 0).\n8. **Show your work**: render with CJK fonts whenever layout matters.\n\n---\n\n## Utility Scripts\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fdoctor.py                                  # NEW: env + CJK-font self-check\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py input.xlsx                  # structure discovery\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py out.xlsx --diff-against in.xlsx  # NEW: structural diff for EDIT verification\npython3 SKILL_DIR\u002Fscripts\u002Fformula_check.py file.xlsx --json          # formula validation (machine-readable)\npython3 SKILL_DIR\u002Fscripts\u002Fformula_check.py file.xlsx --report        # formula validation (report)\npython3 SKILL_DIR\u002Fscripts\u002Flibreoffice_recalc.py file.xlsx            # recalc & write back cached values\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py file.xlsx --out review\u002F      # NEW: render PNG\u002FPDF with CJK fonts\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py --diff in.xlsx out.xlsx --html review\u002Fdiff.html  # NEW: before\u002Fafter HTML\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py in.xlsx \u002Ftmp\u002Fwork\u002F           # unpack for XML editing\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fwork\u002F out.xlsx            # repack (preserves part order & macros)\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_shift_rows.py \u002Ftmp\u002Fwork\u002F insert 5 1    # shift rows for insertion\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_add_column.py \u002Ftmp\u002Fwork\u002F --col G ...    # add column with formulas\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_insert_row.py \u002Ftmp\u002Fwork\u002F --at 6 ...     # insert row with data\n```\n\n## References\n```\nreferences\u002Fquickstart.md       — the READ→ACT→VERIFY loop (section 0)        [NEW]\nreferences\u002Fdecision-guide.md   — which path to take (section 2)             [NEW]\nreferences\u002Fread-analyze.md     — reading & pandas analysis\nreferences\u002Fcreate.md           — building new workbooks\nreferences\u002Fformat.md           — number formats, styles, colors, CJK\nreferences\u002Fedit.md             — EDIT integrity rules & XML editing\nreferences\u002Ffix.md              — repairing formulas \u002F corruption\nreferences\u002Fvalidate.md         — formula validation & recalculation\nreferences\u002Fvisual-review.md    — rendering & visual checks (CJK)            [NEW]\nreferences\u002Ftroubleshooting.md  — common failures & fixes (section 9)         [NEW]\nreferences\u002Fcjk-guide.md        — Chinese \u002F CJK handbook (section 10)         [NEW]\n```\n","# XLSX Skill (Universal, CJK-aware)\n\nHandle the request directly. Do NOT spawn sub-agents. Always write the output file the user requests, then verify it before delivering.\n\n> This is a vendor-neutral, general-purpose spreadsheet skill. It is **not** limited to finance and is explicitly built to work well in **Chinese-language contexts**: Chinese sheet names, headers and data; mixed CJK + ASCII; encodings beyond UTF-8 (GB18030\u002FGBK) for CSV; full-width punctuation; CJK fonts during rendering; and Chinese number\u002Fdate conventions. Finance-specific conventions are optional and isolated in their own section.\n\n---\n\n## 0. Quick Start (read this first)\n\n**The golden loop for every task: READ → ACT → VERIFY.** Never skip READ, never skip VERIFY.\n\n```bash\n# 0) One-time environment self-check (python, openpyxl, libreoffice, poppler, AND CJK fonts)\npython3 SKILL_DIR\u002Fscripts\u002Fdoctor.py\n\n# 1) READ — always inspect structure before touching anything\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py input.xlsx            # sheets, dims, named ranges, macros, pivots, charts\n\n# 2) ACT — pick ONE path (see Decision Guide below)\n#    - read-only analysis          -> pandas\n#    - create new workbook         -> XML template + xlsx_pack.py\n#    - edit \u002F fill \u002F fix existing  -> unpack -> edit -> pack  (zero format loss)\n\n# 3) VERIFY — prove the file is correct and undamaged\npython3 SKILL_DIR\u002Fscripts\u002Fformula_check.py output.xlsx --report\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py output.xlsx --out review\u002F             # renders with CJK fonts\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py output.xlsx --diff-against input.xlsx\n```\n\nIf unsure which path to take, see the **Decision Guide** (section 2). If something breaks, see **Troubleshooting** (section 9). For Chinese-context specifics, see **section 10**.\n\n---\n\n## 1. Task Routing\n\n| Task | When | Method | Guide |\n|------|------|--------|-------|\n| **READ** | analyze \u002F summarize existing data, no changes | `xlsx_reader.py` + pandas | `references\u002Fread-analyze.md` |\n| **CREATE** | brand-new workbook from scratch | XML template → `xlsx_pack.py` | `references\u002Fcreate.md` + `references\u002Fformat.md` |\n| **EDIT** | modify \u002F fill an existing workbook | XML unpack → edit → pack | `references\u002Fedit.md` (+ `format.md`) |\n| **FIX** | repair broken formulas \u002F corruption | XML unpack → fix `\u003Cf>` nodes → pack | `references\u002Ffix.md` |\n| **VALIDATE** | check formulas & integrity | `formula_check.py` (+ recalc) | `references\u002Fvalidate.md` |\n| **REVIEW** | confirm result visually | `xlsx_render.py` → PNG\u002FPDF\u002FHTML | `references\u002Fvisual-review.md` |\n\nCSV \u002F TSV: for pure data work use pandas directly (mind the **encoding** — see section 10). To deliver an `.xlsx`, build it via the CREATE path so formatting and formulas are preserved.\n\n---\n\n## 2. Decision Guide (which path do I take?)\n\n1. **Only reading \u002F analyzing, no output workbook?** → **READ** path. `xlsx_reader.py` then pandas. Never modify the source.\n2. **File exists and I must change it (fill cells, add column\u002Frow, fix formulas, restyle)?** → **EDIT\u002FFIX** path. ALWAYS unpack → edit → pack. **Never** `openpyxl.load_workbook(...).save()` round-trip — it silently destroys VBA macros, pivot tables, charts, slicers, sparklines.\n3. **Building a new workbook from nothing?** → **CREATE** path. Copy the minimal XML template, edit XML, pack.\n4. **Wrong\u002Fold values or a “needs repair” prompt?** → recalc (`libreoffice_recalc.py`) and re-validate; if corruption, go to **Troubleshooting**.\n\n**Format-preservation rule of thumb:** if the file contains (or might contain) macros, pivots, charts, conditional formatting, named ranges, or sparklines, stay on the XML unpack\u002Fedit\u002Fpack path. `xlsx_reader.py` reports which of these are present.\n\n---\n\n## 3. READ — Analyze data (read `references\u002Fread-analyze.md` first)\n\nStart with `xlsx_reader.py` for structure discovery, then pandas for custom analysis. Never modify the source file.\n\n- **Encoding (critical for Chinese CSV)**: `.xlsx` is always UTF-8 internally, but `.csv`\u002F`.tsv` exported from Chinese Excel is often **GB18030\u002FGBK**. Detect and decode (see section 10); do not assume UTF-8.\n- **Decimal\u002Fformat rule**: when the user specifies decimal places (e.g. “2 位小数”), apply it to ALL numeric values — `f'{v:.2f}'`. Never print `12875` when `12875.00` is required.\n- **Aggregation rule**: compute sums\u002Fmeans\u002Fcounts directly from the DataFrame column, e.g. `df['营业收入'].sum()`. Never re-derive column values before aggregating.\n- **Large files**: `pandas.read_excel(..., sheet_name=None)` to enumerate sheets; `.head()` before full loads.\n\n---\n\n## 4. CREATE — XML template (read `references\u002Fcreate.md` + `references\u002Fformat.md`)\n\nCopy `templates\u002Fminimal_xlsx\u002F` → edit XML directly → pack with `xlsx_pack.py`.\n\n- Every derived value MUST be an Excel formula (`\u003Cf>SUM(B2:B9)\u003C\u002Ff>`), never a hardcoded number.\n- Use cell references over magic numbers (`=H6*(1+$B$3)`, not `=H6*1.04`).\n- **Chinese text in cells**: store as inline strings and XML-escape `& \u003C >`, e.g. `\u003Cc r=\"A1\" t=\"inlineStr\">\u003Cis>\u003Ct>营业收入\u003C\u002Ft>\u003C\u002Fis>\u003C\u002Fc>`. Always write XML as UTF-8.\n- **Column widths for CJK**: Chinese glyphs are roughly twice as wide as ASCII. Set wider columns (rough rule: width ≈ max CJK chars × 2.1 + 2) so headers like “本年累计金额” are not clipped.\n- Apply number\u002Fdate formats per section 10 and `format.md`.\n- After packing, run VERIFY (validate + render).\n\n---\n\n## 5. EDIT — XML direct-edit (read `references\u002Fedit.md` first)\n\n### CRITICAL — EDIT INTEGRITY RULES\n1. **NEVER create a new `Workbook()`** for edit tasks. Always load\u002Funpack the original file.\n2. Output MUST contain the **same sheets** as the input (same names, order, data) unless the task explicitly says to add\u002Fremove.\n3. Only modify the specific cells the task asks for — everything else stays byte-for-byte untouched.\n4. **Preserve special parts**: `vbaProject.bin`, `pivotTables\u002F`, `pivotCache\u002F`, `charts\u002F`, slicers, sparklines must survive unchanged.\n5. **After saving output.xlsx, verify it** with `xlsx_reader.py --diff-against input.xlsx`: confirm original sheet names, named ranges, pivots\u002Fmacros, and a sample of original data are present. If verification fails, fix it before delivering.\n\nNever use an openpyxl round-trip on existing files. Instead: **unpack → use helper scripts \u002F edit XML → repack.**\n\n### “Fill cells” \u002F “Add formulas to existing cells” = EDIT task\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\n# Find target sheet XML via xl\u002Fworkbook.xml -> xl\u002F_rels\u002Fworkbook.xml.rels\n#   \u003Cc r=\"B3\">\u003Cf>SUM('销售数据'!D2:D13)\u003C\u002Ff>\u003Cv>\u003C\u002Fv>\u003C\u002Fc>\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n\n### Add a column (formulas, numfmt, styles auto-copied from adjacent column)\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_add_column.py \u002Ftmp\u002Fxlsx_work\u002F --col G \\\n    --sheet \"Sheet1\" --header \"占比\" \\\n    --formula '=F{row}\u002F$F$10' --formula-rows 2:9 \\\n    --total-row 10 --total-formula '=SUM(G2:G9)' --numfmt '0.0%' \\\n    --border-row 10 --border-style medium\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n`--border-row` applies a top border to ALL cells in that row (not just the new column). Use for accounting-style total rows.\n\n### Insert a row (shifts rows, updates SUM formulas, fixes circular refs)\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\n# Locate the row by its LABEL text (works for Chinese labels too):\n#   grep -n \"办公租金\" \u002Ftmp\u002Fxlsx_work\u002Fxl\u002Fworksheets\u002Fsheet*.xml\n#   (Chinese labels usually live in xl\u002FsharedStrings.xml — grep there as well)\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_insert_row.py \u002Ftmp\u002Fxlsx_work\u002F --at 5 \\\n    --sheet \"2025预算\" --text A=水电费 \\\n    --values B=3000 C=3000 D=3500 E=3500 \\\n    --formula 'F=SUM(B{row}:E{row})' --copy-style-from 4\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n**Row lookup rule**: when the task says “after row N (Label)”, find the row by searching for the label in `sharedStrings.xml`\u002Fworksheet XML and use the real row number + 1 for `--at`. `xlsx_insert_row.py` calls `xlsx_shift_rows.py` internally — do not call it separately.\n\n### Row-wide borders (e.g. accounting line on a TOTAL row)\nAppend a new `\u003Cborder>` in `xl\u002Fstyles.xml`, append an `\u003Cxf>` clone in `\u003CcellXfs>` setting the new `borderId`, then apply that style index to every `\u003Cc>` in the row via the `s` attribute. Iterate over ALL cells A through the last column.\n```xml\n\u003Cborder>\u003Cleft\u002F>\u003Cright\u002F>\u003Ctop style=\"medium\"\u002F>\u003Cbottom\u002F>\u003Cdiagonal\u002F>\u003C\u002Fborder>\n```\n\n### Manual XML edit (anything helper scripts don’t cover)\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py input.xlsx \u002Ftmp\u002Fxlsx_work\u002F\n# ... edit XML (UTF-8) ...\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fxlsx_work\u002F output.xlsx\n```\n\n### Common corruption traps (handled by pack\u002Ffix scripts)\n- Edited a string but didn’t update `sharedStrings.xml` `count`\u002F`uniqueCount`.\n- Edited a formula but left a stale `calcChain.xml` (delete it; the app rebuilds).\n- Re-ordered ZIP parts or recompressed `vbaProject.bin` on pack (keep order; store the macro blob).\n- Wrote XML in a non-UTF-8 encoding → Chinese turns into mojibake. Always UTF-8.\n\n---\n\n## 6. FIX — Repair broken formulas (read `references\u002Ffix.md` first)\nEDIT task. Unpack → fix broken `\u003Cf>` nodes \u002F rebuild `calcChain.xml` → pack. Preserve all original sheets and data. Re-validate after.\n\n---\n\n## 7. VALIDATE — Check formulas (read `references\u002Fvalidate.md` first)\n- Static: `formula_check.py file.xlsx --report` (exit code 0 = safe). Flags `#REF!`, `#DIV\u002F0!`, `#VALUE!`, `#N\u002FA`, `#NAME?`, broken ranges, circular refs.\n- Dynamic: `libreoffice_recalc.py file.xlsx` to recalculate and write back cached values (openpyxl does NOT evaluate formulas).\n\n---\n\n## 8. REVIEW — Visual verification (read `references\u002Fvisual-review.md` first)\nCloses the “no visual interface” gap so a human can confirm results. `xlsx_render.py` forces CJK-capable fonts so Chinese text renders instead of showing tofu boxes (□□□).\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py output.xlsx --out review\u002F        # one PNG per sheet\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py --diff input.xlsx output.xlsx --html review\u002Fdiff.html  # before\u002Fafter\n```\nReview checklist: layout alignment, **CJK text not clipped\u002Ftofu**, number\u002Fdate formats, error values, pivots\u002Fcharts still render.\n\n---\n\n## 9. Troubleshooting\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| App shows “needs repair” on open | stale `calcChain.xml`, bad `sharedStrings` count, re-ordered\u002Frecompressed parts | delete `calcChain.xml`; run `formula_check.py`; repack with `xlsx_pack.py` |\n| Cells show old value or 0 after editing formula | openpyxl doesn’t calculate | run `libreoffice_recalc.py`, then re-render |\n| Charts \u002F pivots \u002F macros vanished | openpyxl round-trip | redo via unpack\u002Fedit\u002Fpack; never `Workbook().save()` over existing file |\n| Chinese text shows as 锟斤拷\u002F锘\u002Fgibberish | wrong encoding | read\u002Fwrite XML as UTF-8; for CSV detect GB18030\u002FGBK (section 10) |\n| Chinese renders as □□□ boxes in PNG | missing CJK font | `xlsx_render.py` sets a CJK font; install Noto Sans CJK if `doctor.py` flags it |\n| Wrong row edited | trusted prompt’s row number | locate by label text in the XML first |\n\n---\n\n## 10. Chinese \u002F CJK Context Handbook\n\n**Encoding**\n- `.xlsx`\u002F`.xlsm` internals are always UTF-8 — keep them UTF-8 on edit.\n- CSV\u002FTSV from Chinese Windows Excel is usually **GB18030\u002FGBK** (sometimes UTF-8 with BOM). When reading:\n  ```python\n  import pandas as pd\n  for enc in (\"utf-8-sig\", \"gb18030\", \"utf-16\"):\n      try:\n          df = pd.read_csv(path, encoding=enc); break\n      except UnicodeDecodeError:\n          continue\n  ```\n- When writing CSV for the user to open in Excel, use `encoding=\"utf-8-sig\"` (BOM) so Excel shows Chinese correctly.\n\n**Text \u002F XML**\n- Store Chinese cell text as inline strings and escape `& \u003C >`. Sheet names, named ranges, and headers may be Chinese — quote sheet names in formulas: `SUM('销售数据'!D2:D13)`.\n- Beware **full-width** characters (`，；：（）％` and full-width digits `１２３`). Normalize to half-width for numeric parsing when needed (`unicodedata.normalize('NFKC', s)`).\n\n**Numbers & currency**\n- RMB currency format: `\"¥\"#,##0.00` (or `\"￥\"` full-width). For accounting style use `_-\"¥\"* #,##0.00_-;-\"¥\"* #,##0.00`.\n- 万\u002F亿 scaling: Chinese reports often show 万 (10⁴) or 亿 (10⁸). Display via custom number format `0!.0,,\"亿\"` is unreliable; prefer a helper column that divides (`=B2\u002F100000000`) with header “金额（亿元）”, keeping the source value intact.\n- Thousands separator `#,##0`; percentage `0.0%`.\n\n**Dates**\n- Chinese date format: `yyyy\"年\"m\"月\"d\"日\"`; with weekday `aaaa` → 星期X. Keep the underlying value a real date serial, only the number format is Chinese.\n\n**Rendering & fonts**\n- Use `xlsx_render.py` (it selects an installed CJK font: Noto Sans CJK SC\u002FTC, Source Han, WenQuanYi, or Microsoft YaHei if present). Verify with `doctor.py`.\n\n**Layout**\n- Widen columns for CJK (≈ chars × 2.1 + 2). Avoid wrapping headers awkwardly; set row height if wrapping Chinese text.\n- Sorting Chinese text: default is by Unicode code point. If the user wants pinyin or stroke order, sort explicitly with `pypinyin` (pinyin) or document the limitation.\n\n---\n\n## Financial Color Standard (optional — only for financial models)\n| Cell Role | Font Color | Hex |\n|-----------|-----------|-----|\n| Hard-coded input \u002F assumption | Blue | `0000FF` |\n| Formula \u002F computed result | Black | `000000` |\n| Cross-sheet reference formula | Green | `00B050` |\n\nFinance display conventions (when applicable): zeros as `-`, negatives in red parentheses, multiples as `5.2x`, units in headers (e.g. `营业收入（亿元）`).\n\n---\n\n## Key Rules\n1. **READ → ACT → VERIFY** every time. Never skip READ or VERIFY.\n2. **Formula-First**: every calculated cell uses an Excel formula, not a hardcoded number.\n3. **CREATE → XML template**: copy minimal template, edit XML, pack.\n4. **EDIT\u002FFIX → XML unpack\u002Fedit\u002Fpack**: never openpyxl round-trip on existing files.\n5. **Preserve everything not targeted**: sheets, named ranges, pivots, macros, charts.\n6. **UTF-8 always; detect CSV encoding**: never corrupt Chinese text.\n7. **Always produce the output file** and validate before delivery (`formula_check.py` exit 0).\n8. **Show your work**: render with CJK fonts whenever layout matters.\n\n---\n\n## Utility Scripts\n```bash\npython3 SKILL_DIR\u002Fscripts\u002Fdoctor.py                                  # NEW: env + CJK-font self-check\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py input.xlsx                  # structure discovery\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_reader.py out.xlsx --diff-against in.xlsx  # NEW: structural diff for EDIT verification\npython3 SKILL_DIR\u002Fscripts\u002Fformula_check.py file.xlsx --json          # formula validation (machine-readable)\npython3 SKILL_DIR\u002Fscripts\u002Fformula_check.py file.xlsx --report        # formula validation (report)\npython3 SKILL_DIR\u002Fscripts\u002Flibreoffice_recalc.py file.xlsx            # recalc & write back cached values\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py file.xlsx --out review\u002F      # NEW: render PNG\u002FPDF with CJK fonts\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_render.py --diff in.xlsx out.xlsx --html review\u002Fdiff.html  # NEW: before\u002Fafter HTML\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_unpack.py in.xlsx \u002Ftmp\u002Fwork\u002F           # unpack for XML editing\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_pack.py \u002Ftmp\u002Fwork\u002F out.xlsx            # repack (preserves part order & macros)\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_shift_rows.py \u002Ftmp\u002Fwork\u002F insert 5 1    # shift rows for insertion\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_add_column.py \u002Ftmp\u002Fwork\u002F --col G ...    # add column with formulas\npython3 SKILL_DIR\u002Fscripts\u002Fxlsx_insert_row.py \u002Ftmp\u002Fwork\u002F --at 6 ...     # insert row with data\n```\n\n## References\n```\nreferences\u002Fquickstart.md       — the READ→ACT→VERIFY loop (section 0)        [NEW]\nreferences\u002Fdecision-guide.md   — which path to take (section 2)             [NEW]\nreferences\u002Fread-analyze.md     — reading & pandas analysis\nreferences\u002Fcreate.md           — building new workbooks\nreferences\u002Fformat.md           — number formats, styles, colors, CJK\nreferences\u002Fedit.md             — EDIT integrity rules & XML editing\nreferences\u002Ffix.md              — repairing formulas \u002F corruption\nreferences\u002Fvalidate.md         — formula validation & recalculation\nreferences\u002Fvisual-review.md    — rendering & visual checks (CJK)            [NEW]\nreferences\u002Ftroubleshooting.md  — common failures & fixes (section 9)         [NEW]\nreferences\u002Fcjk-guide.md        — Chinese \u002F CJK handbook (section 10)         [NEW]\n```\n",{"name":5,"license":14,"metadata":23,"description":7},{"locale":24,"sources":25,"version":28,"category":29},"zh-CN-aware",[26,27],"ECMA-376 Office Open XML File Formats","Microsoft Open XML SDK documentation","2.0","productivity","main","cb3f39689b7b3a95edb2753c8f3e97a313b885fc","Xiao-Q\u002Fskills\u002Fxlsx007-skill",0,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent","https:\u002F\u002Fgithub.com\u002FJinhong270","2026-09-30 23:42:56",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Jinhong270\u002FAI-Agent --skill xlsx",{"tool":43,"command":44},"bunx","bunx skills add Jinhong270\u002FAI-Agent --skill xlsx",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Jinhong270\u002FAI-Agent --skill xlsx","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002FSKILL.md",true,[51,57,61,65,69,73,77,81,85,89,93,97,101,107,111,115,119,123,127,131,135,139,143,147,153,157,161,165,169,173],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"_meta.json","REFERENCE","参考文档",106,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002F_meta.json",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fcjk-guide.md",3438,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fcjk-guide.md",{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fcreate.md",1505,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fcreate.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fdecision-guide.md",2099,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fdecision-guide.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fedit.md",2241,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fedit.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Ffix.md",1568,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Ffix.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fformat.md",1643,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fformat.md",{"path":82,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fquickstart.md",2453,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fquickstart.md",{"path":86,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fread-analyze.md",1623,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fread-analyze.md",{"path":90,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Ftroubleshooting.md",3174,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Ftroubleshooting.md",{"path":94,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fvalidate.md",1434,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fvalidate.md",{"path":98,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fvisual-review.md",1938,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Freferences\u002Fvisual-review.md",{"path":102,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002F_xlsx_common.py","SCRIPT","脚本",8310,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002F_xlsx_common.py",{"path":108,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Fdoctor.py",4303,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fdoctor.py",{"path":112,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":113,"sourceHtmlUrl":114},"scripts\u002Fformula_check.py",3005,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fformula_check.py",{"path":116,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":117,"sourceHtmlUrl":118},"scripts\u002Flibreoffice_recalc.py",2601,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Flibreoffice_recalc.py",{"path":120,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":121,"sourceHtmlUrl":122},"scripts\u002Fxlsx_add_column.py",4261,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fxlsx_add_column.py",{"path":124,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":125,"sourceHtmlUrl":126},"scripts\u002Fxlsx_insert_row.py",3354,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fxlsx_insert_row.py",{"path":128,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":129,"sourceHtmlUrl":130},"scripts\u002Fxlsx_pack.py",1929,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fxlsx_pack.py",{"path":132,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":133,"sourceHtmlUrl":134},"scripts\u002Fxlsx_reader.py",7195,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fxlsx_reader.py",{"path":136,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":137,"sourceHtmlUrl":138},"scripts\u002Fxlsx_render.py",6433,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fxlsx_render.py",{"path":140,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":141,"sourceHtmlUrl":142},"scripts\u002Fxlsx_shift_rows.py",1573,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fxlsx_shift_rows.py",{"path":144,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":145,"sourceHtmlUrl":146},"scripts\u002Fxlsx_unpack.py",1267,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Fscripts\u002Fxlsx_unpack.py",{"path":148,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":151,"sourceHtmlUrl":152},"templates\u002Fminimal_xlsx\u002F[Content_Types].xml","OTHER","其他",975,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Ftemplates\u002Fminimal_xlsx\u002F[Content_Types].xml",{"path":154,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":155,"sourceHtmlUrl":156},"templates\u002Fminimal_xlsx\u002FdocProps\u002Fapp.xml",205,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Ftemplates\u002Fminimal_xlsx\u002FdocProps\u002Fapp.xml",{"path":158,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":159,"sourceHtmlUrl":160},"templates\u002Fminimal_xlsx\u002FdocProps\u002Fcore.xml",555,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Ftemplates\u002Fminimal_xlsx\u002FdocProps\u002Fcore.xml",{"path":162,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":163,"sourceHtmlUrl":164},"templates\u002Fminimal_xlsx\u002Fxl\u002Fstyles.xml",2550,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Ftemplates\u002Fminimal_xlsx\u002Fxl\u002Fstyles.xml",{"path":166,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":167,"sourceHtmlUrl":168},"templates\u002Fminimal_xlsx\u002Fxl\u002Ftheme\u002Ftheme1.xml",10140,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Ftemplates\u002Fminimal_xlsx\u002Fxl\u002Ftheme\u002Ftheme1.xml",{"path":170,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":171,"sourceHtmlUrl":172},"templates\u002Fminimal_xlsx\u002Fxl\u002Fworkbook.xml",547,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Ftemplates\u002Fminimal_xlsx\u002Fxl\u002Fworkbook.xml",{"path":174,"resourceType":149,"resourceTypeDesc":150,"sizeBytes":175,"sourceHtmlUrl":176},"templates\u002Fminimal_xlsx\u002Fxl\u002Fworksheets\u002Fsheet1.xml",582,"https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx007-skill\u002Ftemplates\u002Fminimal_xlsx\u002Fxl\u002Fworksheets\u002Fsheet1.xml",[178,186,193,200,207,215],{"skillNo":179,"name":180,"nameZh":6,"description":181,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":182,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":18},"01M77Z0EVYYQEYGJME2K56STBZ","xlsx-formula-master","你描述需求(人话)，它给你 Excel \u002F WPS 公式 + 解释 + 不踩坑的边界条件。\n专攻 VLOOKUP \u002F XLOOKUP \u002F INDEX-MATCH \u002F SUMIFS \u002F 数组公式 \u002F 动态数组 \u002F Power Query 等高频但易错场景。\n自动适配你的 Excel 版本（2019 \u002F 365 \u002F WPS）——版本不同公式可能不能用。\n触发：用户说 \"Excel 公式\"、\"VLOOKUP\"、\"怎么算\"、\"WPS 公式\"、\"求和怎么写\"、\"匹配数据\"、\"数据透视\"。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxlsx-formula-master\u002FSKILL.md",[],[],{"skillNo":187,"name":188,"nameZh":6,"description":189,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":190,"categories":191,"keywords":192,"publishedAt":18},"01M77Z05X53XF8VVQFFFZE2Z4Z","self-improving-agent","Self-improving agent system that analyzes conversation quality, identifies improvement opportunities, and continuously optimizes response strategies.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiucheng-self-improving-agent\u002FSKILL.md",[],[],{"skillNo":194,"name":195,"nameZh":6,"description":196,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":197,"categories":198,"keywords":199,"publishedAt":18},"01M77YZ7KXV2B7GDCBKE07QRWE","xiaohongshu-content-tools","小红书运营数据工具｜当提到小红书关键词搜索,小红书笔记详情及评论,小红书博主作品时使用，可实现爆款挖掘\u002F竞品分析\u002FKOL筛选\u002F趋势洞察，用数据驱动小红书流量增长，告别盲目创作","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxiaohongshu-content-tools\u002FSKILL.md",[],[],{"skillNo":201,"name":202,"nameZh":6,"description":203,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":204,"categories":205,"keywords":206,"publishedAt":18},"01M77YYQVPA4EWZPQ8J88BYVYA","xfg-ddd-skills","DDD 六边形架构设计与部署技能包。提供 Domain\u002FCase\u002FInfrastructure 层设计模式与代码模板，以及 Docker 环境部署脚本。当用户询问 DDD 架构、设计模式或需要部署项目时调用。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fxfg-ddd-skills\u002FSKILL.md",[],[],{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":211,"sourceHtmlUrl":212,"categories":213,"keywords":214,"publishedAt":18},"01M77YXP7QKKD0HX26W2V63Q9M","wordpress","WordPress.com API integration with managed OAuth. Manage posts, pages, sites, and content.\nUse this skill when users want to create, read, update, or delete WordPress.com posts, pages, or manage site content.\nFor other third party apps, use the api-gateway skill (https:\u002F\u002Fclawhub.ai\u002Fbyungkyu\u002Fapi-gateway).\nRequires network access and valid Maton API key.","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwordpress-api\u002FSKILL.md",[],[],{"skillNo":216,"name":217,"nameZh":6,"description":218,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":219,"sourceHtmlUrl":220,"categories":221,"keywords":222,"publishedAt":18},"01M77YV46SQ48MSK5DMRGF6TG1","wechat-toolkit","微信公众号一站式工具包 — 集成文章搜索、文章下载、AI洗稿改写、公众号发布四大功能。当用户需要搜索\u002F下载\u002F改写\u002F发布微信公众号文章时使用。","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwechat-toolkit\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002FJinhong270\u002FAI-Agent\u002Fblob\u002Fmain\u002FXiao-Q\u002Fskills\u002Fwechat-toolkit\u002FSKILL.md",[],[]]