技能图谱SKILLSGROVE
技能图谱/办公文档/karansinghverma979/antigravity-custom-skills/office-forge

office-forge

安装

$npx skills add https://github.com/karansinghverma979/antigravity-custom-skills --skill office-forge
$git clone --depth 1 https://github.com/karansinghverma979/antigravity-custom-skills.git /tmp/antigravity-custom-skills && mkdir -p ~/.claude/skills && cp -r /tmp/antigravity-custom-skills/office-forge ~/.claude/skills/office-forge
请帮我安装这个 Agent Skill:https://github.com/karansinghverma979/antigravity-custom-skills/tree/cff60e6659baecfd782f2a2a0cb8f68314869c31/office-forge ,先阅读它的 SKILL.md 和脚本,确认安全后再安装到我的技能目录。

简介

原文描述 · MITHeadless document and spreadsheet generation architect (.xlsx, .pptx, .docx). Use whenever generating Excel spreadsheets with formulas and formatting, building 16:9 PowerPoint presentation decks, or producing local office files via openpyxl/python-pptx without requiring live Microsoft Office add-ins.
以下 SKILL.md 内容转载自 karansinghverma979/antigravity-custom-skills(提交 cff60e6),依据 MIT 许可证转载正文(文字未改动;仅省略文件头元数据、将图片显示为链接,超长内容会截断);版权归 2026 Karan Singh Verma 所有。许可证:LICENSE。仅展示说明文件,附带脚本请在原仓库查看。

📄 Office Forge: Headless Document & Spreadsheet Generator

Use this skill when generating standalone Excel workbooks (.xlsx), PowerPoint decks (.pptx), or Word documents (.docx) directly on disk via Python.


🏛️ Document Standards & Specifications

To ensure high-fidelity outputs without live Office applications:


🔄 Headless Generation Workflow

Step 1: Scaffolding Generation Script

Generate a starter Python builder for the desired format:

# For Excel (.xlsx):
python ~/.gemini/antigravity-cli/skills/office-forge/scripts/generate_office.py xlsx build_sheet.py

# For PowerPoint (.pptx):
python ~/.gemini/antigravity-cli/skills/office-forge/scripts/generate_office.py pptx build_deck.py

Step 2: Implement Logic & Formulas

  • For .xlsx: Ensure calculation cells use uppercase formulas (=SUM(B2:B10)), inputs are styled in blue text, and headers have high-contrast background fills.
  • For .pptx: Ensure widescreen 16:9 (13.333in x 7.5in) dimensions, one clear title per slide, and readable typography (>=14pt).

Step 3: Execute & Output Verification

Run the generator script locally to produce the binary file on disk:

python build_sheet.py

Verify the output file exists and has non-zero size.

查看许可证全文(MIT)
MIT License

Copyright (c) 2026 Karan Singh Verma

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.