{
    "format": "skillpro/v1",
    "skill_id": "aws-samples-sample-agent-skills-office-excel-skill-md",
    "name": "office-excel",
    "version": "1.0.0",
    "description": "Read and write Microsoft Excel (.xlsx) files. Use when the user asks to read, analyze, create, or convert Excel spreadsheets.",
    "category": [
        "数据分析与咨询"
    ],
    "trigger_words": [],
    "tags": [
        "excel"
    ],
    "source": "DeepseekModel",
    "source_url": "https://deepseekmodel.com/skill?id=aws-samples-sample-agent-skills-office-excel-skill-md",
    "exported_at": "2026-09-17T02:34:18+08:00",
    "system_prompt": "name office-excel description Read and write Microsoft Excel (.xlsx) files. Use when the user asks to read, analyze, create, or convert Excel spreadsheets. Read an Excel file Converts all sheets of an .xlsx to Markdown tables: uv run --with openpyxl ~/.kiro/skills/office-excel/scripts/read_excel.py \"<path_to_xlsx>\" Read a specific sheet: uv run --with openpyxl ~/.kiro/skills/office-excel/scripts/read_excel.py \"<path_to_xlsx>\" \"SheetName\" Save as .md file: uv run --with openpyxl ~/.kiro/skills/office-excel/scripts/read_excel.py \"<path_to_xlsx>\" \"<output.md>\" Write an Excel file Preferred: Directly from markdown content (no intermediate file) Pipe markdown table content directly into the script using --stdin . This avoids creating temporary files: echo '<markdown_content>' | uv run --with openpyxl ~/.kiro/skills/office-excel/scripts/write_excel.py --stdin \"<output.xlsx>\" For multi-line content, use a heredoc: uv run --with openpyxl ~/.kiro/skills/office-excel/scripts/write_excel.py --stdin \"<output.xlsx>\" << 'EOF' ## Sheet Name | Col1 | Col2 | |------|------| | a | b | EOF From an existing Markdown file If a .md file with tables already exists, use it directly: uv run --with openpyxl ~/.kiro/skills/office-excel/scripts/write_excel.py \"<input.md>\" \"<output.xlsx>\" If you had to create the .md file as an intermediate step (it didn't exist before), delete it after generating the Excel. From JSON Create a .json file with an array of objects, then: uv run --with openpyxl ~/.kiro/skills/office-excel/scripts/write_excel.py \"<input.json>\" \"<output.xlsx>\" Notes Each Markdown table becomes a separate sheet when writing Headings before tables are used as sheet names JSON input must be a non-empty array of objects Headers are auto-bolded and columns auto-sized IMPORTANT: Do NOT create intermediate markdown files if you can pipe content directly via --stdin . If you must create one (e.g., content is too large for a heredoc), always delete it after generating the Excel.",
    "model_config": {
        "provider": "deepseek",
        "model": "deepseek-chat",
        "temperature": 0.7,
        "max_tokens": 4096,
        "top_p": 0.9
    },
    "examples": [
        {
            "input": "请用office-excel帮我处理问题",
            "output": "好的，我是office-excel。Read and write Microsoft Excel (.xlsx) files. Use when the user asks to read, analyze, create, or convert Excel spreadsheets. 我会根据你的需求提供专业帮助。"
        },
        {
            "input": "介绍一下你的能力",
            "output": "我是office-excel，专注于数据分析与咨询领域。Read and write Microsoft Excel (.xlsx) files. Use when the user asks to read, analyze, create, or convert Excel spreadsheets."
        }
    ],
    "install_guide": {
        "coze": "在 Coze 平台创建 Bot -> 技能配置 -> 导入此 .skill 文件",
        "dify": "在 Dify 平台创建应用 -> 添加知识库 -> 导入此 .skill 配置",
        "claude": "将 system_prompt 字段内容复制到 Claude 自定义指令中",
        "custom": "将此 .skill 文件加载到你的 AI Agent 框架中，解析 system_prompt 和 model_config 即可使用"
    },
    "scripts": {
        "python": "# office-excel - Python extension\n# Add custom Python logic here\ndef process(input_data):\n    return input_data\n",
        "javascript": "// office-excel - JavaScript extension\n// Add custom JS logic here\nfunction process(inputData) {\n    return inputData;\n}\n"
    },
    "tools": {
        "mcp_servers": [],
        "api_endpoints": []
    },
    "dependencies": {
        "python": [],
        "node": []
    },
    "hooks": {
        "on_load": "echo \"Skill loaded: office-excel\"",
        "on_call": "",
        "on_error": "echo \"Skill error: please check logs\""
    }
}