{
  "schemaVersion": "1.0",
  "item": {
    "slug": "feishu-power-skill",
    "name": "Feishu Power Skill",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/zj00777/feishu-power-skill",
    "canonicalUrl": "https://clawhub.ai/zj00777/feishu-power-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/feishu-power-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=feishu-power-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "CLAUDE.md",
      "README.md",
      "SKILL.md",
      "configs/fmcg.yaml",
      "configs/retail_default.yaml",
      "configs/schedule.yaml"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/feishu-power-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/feishu-power-skill",
    "agentPageUrl": "https://openagent3.xyz/skills/feishu-power-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-power-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-power-skill/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Feishu Power Skill",
        "body": "让 AI agent 像飞书重度用户一样操作飞书。不只是读写文档，而是跨文档工作流 + 多维表格自动化 + 智能报告生成 + 零售运营审计。"
      },
      {
        "title": "安装",
        "body": "# 自动安装（推荐）\nbash install.sh\n\n# 手动安装\npip install requests pyyaml\nexport FEISHU_APP_ID=cli_xxx\nexport FEISHU_APP_SECRET=xxx"
      },
      {
        "title": "1. Bitable 自动化引擎 (bitable_engine.py)",
        "body": "多维表格的瑞士军刀：批量读写、跨表 JOIN、快照备份、统计分析。\n\n# 批量创建记录\npython3 scripts/bitable_engine.py batch-create --app <app_token> --table <table_id> --data records.json\n\n# 批量更新\npython3 scripts/bitable_engine.py batch-update --app <app_token> --table <table_id> --data updates.json\n\n# 跨表 JOIN（两张表按字段关联）\npython3 scripts/bitable_engine.py join --app <app_token> --left <table1> --right <table2> --on \"字段名\"\n\n# 数据快照（备份当前状态）\npython3 scripts/bitable_engine.py snapshot --app <app_token> --table <table_id> --output snapshots/\n\n# 统计摘要\npython3 scripts/bitable_engine.py stats --app <app_token> --table <table_id>\n\n# CSV 导入\npython3 scripts/bitable_engine.py import-csv --app <app_token> --table <table_id> --file data.csv"
      },
      {
        "title": "2. 文档工作流引擎 (doc_workflow.py)",
        "body": "Bitable 数据 + 模板 → 飞书文档，一步到位。\n\n# 从 Bitable 数据 + 模板 → 飞书文档\npython3 scripts/doc_workflow.py generate \\\n  --app <app_token> --table <table_id> \\\n  --template templates/data_summary.md \\\n  --title \"周报标题\" \\\n  --group-by \"分类字段\" \\\n  --local output.md\n\n# 纯模板渲染（不创建飞书文档）\npython3 scripts/doc_workflow.py render --template templates/weekly_report.md --context data.json\n\n# 提取 Bitable 上下文（调试用）\npython3 scripts/doc_workflow.py context --app <app_token> --table <table_id>\n\n模板语法：\n\n{{变量}} — 简单替换（支持中文字段名、点号路径如 {{门店.名称}}）\n{{#each 列表}}...{{/each}} — 循环\n{{#if 条件}}...{{/if}} — 条件\n内置变量：{{TODAY}} {{YESTERDAY}} {{WEEK_START}} {{WEEK_END}} {{NOW}}"
      },
      {
        "title": "3. 零售运营审计引擎 (retail_audit.py)",
        "body": "YAML 配置化审计规则，门店健康评分，异常自动诊断。\n\n# Demo 模式（50家模拟门店，快速体验）\npython3 scripts/retail_audit.py demo --output report.md\npython3 scripts/retail_audit.py demo --publish  # 直接发布到飞书\n\n# 从 Bitable 真实数据审计\npython3 scripts/retail_audit.py audit \\\n  --app <app_token> --sales-table <table_id> \\\n  --config configs/retail_default.yaml \\\n  --publish\n\n# 查看可用行业配置\npython3 scripts/retail_audit.py list-configs\n\n审计规则（YAML 配置化，可按行业切换）：\n\n售罄率过高/过低\n目标达成率不足\n负库存 / 零销售\n库存周转过慢\n动销率过低\n\n内置配置：configs/retail_default.yaml（服装）、configs/fmcg.yaml（快消）。复制一份改阈值即可适配其他行业。"
      },
      {
        "title": "4. 定时报告生成器 (report_generator.py)",
        "body": "调度引擎：支持日/周/月频率，YAML 配置任务列表，自动跟踪执行状态。\n\n# 运行所有到期任务\npython3 scripts/report_generator.py run --schedule configs/schedule.yaml\n\n# 运行指定任务\npython3 scripts/report_generator.py run --schedule configs/schedule.yaml --job daily_audit\n\n# 强制运行（忽略调度时间）\npython3 scripts/report_generator.py run --schedule configs/schedule.yaml --job daily_audit --force\n\n# 列出所有任务及状态\npython3 scripts/report_generator.py list --schedule configs/schedule.yaml\n\n# 单次审计报告（不需要调度配置）\npython3 scripts/report_generator.py audit --demo --output report.md\n\n# 单次模板报告\npython3 scripts/report_generator.py template --app <token> --table <id> --template <path> --publish\n\n调度配置示例（configs/schedule.yaml）：\n\njobs:\n  - id: daily_audit\n    name: 每日门店审计\n    type: audit\n    enabled: true\n    schedule:\n      frequency: daily    # daily / weekly / monthly\n      time: \"09:00\"\n    params:\n      app_token: YOUR_APP_TOKEN\n      sales_table: YOUR_TABLE_ID\n      config: retail_default.yaml\n      publish: true\n\n支持的报告类型：audit（审计报告）、template（模板报告）。"
      },
      {
        "title": "5. API 封装层 (feishu_api.py)",
        "body": "Token 自动管理 + Bitable / Docx / Wiki / Drive 全覆盖。其他模块的底层依赖。\n\n也可以在 Python 中直接 import：\n\nimport sys; sys.path.insert(0, \"scripts\")\nimport feishu_api as api\nrecords = api.bitable_list_all_records(app_token, table_id)"
      },
      {
        "title": "项目结构",
        "body": "feishu-power-skill/\n├── SKILL.md                 # OpenClaw 入口\n├── CLAUDE.md                # Claude Code 入口\n├── README.md                # GitHub README\n├── install.sh               # 安装脚本\n├── scripts/\n│   ├── feishu_api.py        # 飞书 API 封装\n│   ├── bitable_engine.py    # 多维表格引擎\n│   ├── doc_workflow.py      # 文档工作流\n│   ├── retail_audit.py      # 零售审计引擎\n│   └── report_generator.py  # 定时报告生成器\n├── templates/               # 文档模板\n│   ├── weekly_report.md\n│   └── data_summary.md\n└── configs/                 # 配置文件\n    ├── retail_default.yaml  # 服装行业审计规则\n    ├── fmcg.yaml            # 快消行业审计规则\n    └── schedule.yaml        # 报告调度配置"
      },
      {
        "title": "依赖",
        "body": "Python 3.11+\nrequests, pyyaml\n飞书应用凭证（通过 FEISHU_APP_ID / FEISHU_APP_SECRET 环境变量）"
      },
      {
        "title": "测试 Bitable",
        "body": "J2ehbrIvwaM4XXsjoeQckftAnNe — 内置测试表，可用于验证功能。"
      }
    ],
    "body": "Feishu Power Skill\n\n让 AI agent 像飞书重度用户一样操作飞书。不只是读写文档，而是跨文档工作流 + 多维表格自动化 + 智能报告生成 + 零售运营审计。\n\n安装\n# 自动安装（推荐）\nbash install.sh\n\n# 手动安装\npip install requests pyyaml\nexport FEISHU_APP_ID=cli_xxx\nexport FEISHU_APP_SECRET=xxx\n\n模块\n1. Bitable 自动化引擎 (bitable_engine.py)\n\n多维表格的瑞士军刀：批量读写、跨表 JOIN、快照备份、统计分析。\n\n# 批量创建记录\npython3 scripts/bitable_engine.py batch-create --app <app_token> --table <table_id> --data records.json\n\n# 批量更新\npython3 scripts/bitable_engine.py batch-update --app <app_token> --table <table_id> --data updates.json\n\n# 跨表 JOIN（两张表按字段关联）\npython3 scripts/bitable_engine.py join --app <app_token> --left <table1> --right <table2> --on \"字段名\"\n\n# 数据快照（备份当前状态）\npython3 scripts/bitable_engine.py snapshot --app <app_token> --table <table_id> --output snapshots/\n\n# 统计摘要\npython3 scripts/bitable_engine.py stats --app <app_token> --table <table_id>\n\n# CSV 导入\npython3 scripts/bitable_engine.py import-csv --app <app_token> --table <table_id> --file data.csv\n\n2. 文档工作流引擎 (doc_workflow.py)\n\nBitable 数据 + 模板 → 飞书文档，一步到位。\n\n# 从 Bitable 数据 + 模板 → 飞书文档\npython3 scripts/doc_workflow.py generate \\\n  --app <app_token> --table <table_id> \\\n  --template templates/data_summary.md \\\n  --title \"周报标题\" \\\n  --group-by \"分类字段\" \\\n  --local output.md\n\n# 纯模板渲染（不创建飞书文档）\npython3 scripts/doc_workflow.py render --template templates/weekly_report.md --context data.json\n\n# 提取 Bitable 上下文（调试用）\npython3 scripts/doc_workflow.py context --app <app_token> --table <table_id>\n\n\n模板语法：\n\n{{变量}} — 简单替换（支持中文字段名、点号路径如 {{门店.名称}}）\n{{#each 列表}}...{{/each}} — 循环\n{{#if 条件}}...{{/if}} — 条件\n内置变量：{{TODAY}} {{YESTERDAY}} {{WEEK_START}} {{WEEK_END}} {{NOW}}\n3. 零售运营审计引擎 (retail_audit.py)\n\nYAML 配置化审计规则，门店健康评分，异常自动诊断。\n\n# Demo 模式（50家模拟门店，快速体验）\npython3 scripts/retail_audit.py demo --output report.md\npython3 scripts/retail_audit.py demo --publish  # 直接发布到飞书\n\n# 从 Bitable 真实数据审计\npython3 scripts/retail_audit.py audit \\\n  --app <app_token> --sales-table <table_id> \\\n  --config configs/retail_default.yaml \\\n  --publish\n\n# 查看可用行业配置\npython3 scripts/retail_audit.py list-configs\n\n\n审计规则（YAML 配置化，可按行业切换）：\n\n售罄率过高/过低\n目标达成率不足\n负库存 / 零销售\n库存周转过慢\n动销率过低\n\n内置配置：configs/retail_default.yaml（服装）、configs/fmcg.yaml（快消）。复制一份改阈值即可适配其他行业。\n\n4. 定时报告生成器 (report_generator.py)\n\n调度引擎：支持日/周/月频率，YAML 配置任务列表，自动跟踪执行状态。\n\n# 运行所有到期任务\npython3 scripts/report_generator.py run --schedule configs/schedule.yaml\n\n# 运行指定任务\npython3 scripts/report_generator.py run --schedule configs/schedule.yaml --job daily_audit\n\n# 强制运行（忽略调度时间）\npython3 scripts/report_generator.py run --schedule configs/schedule.yaml --job daily_audit --force\n\n# 列出所有任务及状态\npython3 scripts/report_generator.py list --schedule configs/schedule.yaml\n\n# 单次审计报告（不需要调度配置）\npython3 scripts/report_generator.py audit --demo --output report.md\n\n# 单次模板报告\npython3 scripts/report_generator.py template --app <token> --table <id> --template <path> --publish\n\n\n调度配置示例（configs/schedule.yaml）：\n\njobs:\n  - id: daily_audit\n    name: 每日门店审计\n    type: audit\n    enabled: true\n    schedule:\n      frequency: daily    # daily / weekly / monthly\n      time: \"09:00\"\n    params:\n      app_token: YOUR_APP_TOKEN\n      sales_table: YOUR_TABLE_ID\n      config: retail_default.yaml\n      publish: true\n\n\n支持的报告类型：audit（审计报告）、template（模板报告）。\n\n5. API 封装层 (feishu_api.py)\n\nToken 自动管理 + Bitable / Docx / Wiki / Drive 全覆盖。其他模块的底层依赖。\n\n也可以在 Python 中直接 import：\n\nimport sys; sys.path.insert(0, \"scripts\")\nimport feishu_api as api\nrecords = api.bitable_list_all_records(app_token, table_id)\n\n项目结构\nfeishu-power-skill/\n├── SKILL.md                 # OpenClaw 入口\n├── CLAUDE.md                # Claude Code 入口\n├── README.md                # GitHub README\n├── install.sh               # 安装脚本\n├── scripts/\n│   ├── feishu_api.py        # 飞书 API 封装\n│   ├── bitable_engine.py    # 多维表格引擎\n│   ├── doc_workflow.py      # 文档工作流\n│   ├── retail_audit.py      # 零售审计引擎\n│   └── report_generator.py  # 定时报告生成器\n├── templates/               # 文档模板\n│   ├── weekly_report.md\n│   └── data_summary.md\n└── configs/                 # 配置文件\n    ├── retail_default.yaml  # 服装行业审计规则\n    ├── fmcg.yaml            # 快消行业审计规则\n    └── schedule.yaml        # 报告调度配置\n\n依赖\nPython 3.11+\nrequests, pyyaml\n飞书应用凭证（通过 FEISHU_APP_ID / FEISHU_APP_SECRET 环境变量）\n测试 Bitable\n\nJ2ehbrIvwaM4XXsjoeQckftAnNe — 内置测试表，可用于验证功能。"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/zj00777/feishu-power-skill",
    "publisherUrl": "https://clawhub.ai/zj00777/feishu-power-skill",
    "owner": "zj00777",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/feishu-power-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/feishu-power-skill",
    "agentUrl": "https://openagent3.xyz/skills/feishu-power-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/feishu-power-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/feishu-power-skill/agent.md"
  }
}