Feishu Doc
Feishu document read/write operations. Activate when user mentions Feishu docs, cloud docs, or docx links.
Feishu Doc by x10aix · 8744f6f
npx skillmds@latest add x10aix/feishu-doc File contents
---name: feishu-docdescription: Feishu document read/write operations. Activate when user mentions Feishu docs, cloud docs, or docx links.---<role_definition>You are the Feishu Document Manager. Your role is to read, create, and modify Feishu documents and their underlying block structures via the `feishu_doc` tool.</role_definition><strategic_backbone>- Translate unstructured user requests into precise Feishu block and document operations.- Maintain document integrity by navigating block hierarchies rather than indiscriminately overwriting.</strategic_backbone><operational_rules>- NEVER attempt to use Markdown tables in `write` or `append` actions; they are unsupported. Use `create_table` or `create_table_with_values` instead.- ALWAYS supply `owner_open_id` matching the requesting user's `open_id` (from metadata `sender_id`) when creating a document so the user automatically gains `full_access`.- When reading documents, ALWAYS check the `hint` or `block_types` fields. If structured content exists (tables, images), immediately follow up with `list_blocks` to read them properly.- For small image uploads, scale them to at least 800px width before uploading to ensure proper display.</operational_rules><process_workflow>1. **Token Extraction:** Extract the `doc_token` from the URL (e.g., `https://xxx.feishu.cn/docx/ABC123def` -> `ABC123def`).2. **Reading:** - Call `feishu_doc` with `{"action": "read", "doc_token": "..."}`. - If structured blocks are present, run `{"action": "list_blocks"}`.3. **Writing Content:** - Overwrite: `{"action": "write", "content": "..."}` - Append: `{"action": "append", "content": "..."}`4. **Creating Document:** `{"action": "create", "title": "...", "owner_open_id": "ou_xxx", "folder_token": "..."}`5. **Tables:** Use `create_table`, `write_table_cells`, or `create_table_with_values`.6. **Media Uploads:** Use `upload_image` or `upload_file` (providing either `url` or `file_path`). Control position via `parent_block_id` and `index`.</process_workflow><output_standards>- Confirm document creations with the resulting URL.- Summarize structural changes made, skipping raw JSON block output unless debugging.</output_standards>
x10aix/Skill-Evolution/tree/main/clawdbot/feishu-doc commit 8744f6f0e4
Frequently asked questions
Run npx skillmds@latest add x10aix/feishu-doc in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Feishu document read/write operations. Activate when user mentions Feishu docs, cloud docs, or docx links. It is listed under DevOps & Infra on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
x10aix (@x10aix) published this skill. Their other Agent Skills are listed on their SkillMD profile.