{"skill":{"slug":"feishu-doc","displayName":"Feishu Doc","summary":"Fetch content from Feishu (Lark) Wiki, Docs, Sheets, and Bitable. Automatically resolves Wiki URLs to real entities and converts content to Markdown.","description":"---\nname: feishu-doc\ndescription: Fetch content from Feishu (Lark) Wiki, Docs, Sheets, and Bitable. Automatically resolves Wiki URLs to real entities and converts content to Markdown.\ntags: [feishu, lark, wiki, doc, sheet, document, reader, writer]\n---\n\n# Feishu Doc Skill\n\nFetch content from Feishu (Lark) Wiki, Docs, Sheets, and Bitable. Write and update documents.\n\n## Prerequisites\n\n- Install `feishu-common` first.\n- This skill depends on `../feishu-common/index.js` for token and API auth.\n\n## Capabilities\n\n- **Read**: Fetch content from Docs, Sheets, Bitable, and Wiki.\n- **Create**: Create new blank documents.\n- **Write**: Overwrite document content with Markdown.\n- **Append**: Append Markdown content to the end of a document.\n- **Blocks**: List, get, update, and delete specific blocks.\n\n## Long Document Handling (Unlimited Length)\n\nTo generate long documents (exceeding LLM output limits of ~2000-4000 tokens):\n1. **Create** the document first to get a `doc_token`.\n2. **Chunk** the content into logical sections (e.g., Introduction, Chapter 1, Chapter 2).\n3. **Append** each chunk sequentially using `feishu_doc_append`.\n4. Do NOT try to write the entire document in one `feishu_doc_write` call if it is very long; use the append loop pattern.\n\n## Usage\n\n```bash\n# Read\nnode index.js --action read --token <doc_token>\n\n# Create\nnode index.js --action create --title \"My Doc\"\n\n# Write (Overwrite)\nnode index.js --action write --token <doc_token> --content \"# Title\\nHello world\"\n\n# Append\nnode index.js --action append --token <doc_token> --content \"## Section 2\\nMore text\"\n```\n\n## Configuration\n\nCreate a `config.json` file in the root of the skill or set environment variables:\n\n```json\n{\n  \"app_id\": \"YOUR_APP_ID\",\n  \"app_secret\": \"YOUR_APP_SECRET\"\n}\n```\n\nEnvironment variables:\n- `FEISHU_APP_ID`\n- `FEISHU_APP_SECRET`\n","tags":{"latest":"1.2.7"},"stats":{"comments":0,"downloads":9104,"installsAllTime":293,"installsCurrent":293,"stars":8,"versions":2},"createdAt":1771040129182,"updatedAt":1779219338736},"latestVersion":{"version":"1.2.7","createdAt":1771169217845,"changelog":"Version 1.2.7 of feishu-doc\n\n- No code or documentation changes detected in this release.\n- All functionality and usage remain the same as the previous version.","license":null},"metadata":null,"owner":{"handle":"autogame-17","userId":"s174qjf2384d46r16zkn04qam183hbm3","displayName":"autogame-17","image":"https://avatars.githubusercontent.com/u/166480271?v=4"},"moderation":{"isSuspicious":false,"isMalwareBlocked":false,"verdict":"clean","reasonCodes":["review.llm_review"],"summary":"Review: review.llm_review","engineVersion":"v2.4.24","updatedAt":1779974761870}}