Skill: autogame-17/feishu-doc (version 1.2.7)

--- name: feishu-doc description: Fetch content from Feishu (Lark) Wiki, Docs, Sheets, and Bitable. Automatically resolves Wiki URLs to real entities and converts content to Markdown. tags: [feishu, lark, wiki, doc, sheet, document, reader, writer] --- # Feishu Doc Skill Fetch content from Feishu (Lark) Wiki, Docs, Sheets, and Bitable. Write and update documents. ## Prerequisites - Install `feishu-common` first. - This skill depends on `../feishu-common/index.js` for token and API auth. ## Capabilities - **Read**: Fetch content from Docs, Sheets, Bitable, and Wiki. - **Create**: Create new blank documents. - **Write**: Overwrite document content with Markdown. - **Append**: Append Markdown content to the end of a document. - **Blocks**: List, get, update, and delete specific blocks. ## Long Document Handling (Unlimited Length) To generate long documents (exceeding LLM output limits of ~2000-4000 tokens): 1. **Create** the document first to get a `doc_token`. 2. **Chunk** the content into logical sections (e.g., Introduction, Chapter 1, Chapter 2). 3. **Append** each chunk sequentially using `feishu_doc_append`. 4. Do NOT try to write the entire document in one `feishu_doc_write` call if it is very long; use the append loop pattern. ## Usage ```bash # Read node index.js --action read --token <doc_token> # Create node index.js --action create --title "My Doc" # Write (Overwrite) node index.js --action write --token <doc_token> --content "# Title\nHello world" # Append node index.js --action append --token <doc_token> --content "## Section 2\nMore text" ``` ## Configuration Create a `config.json` file in the root of the skill or set environment variables: ```json { "app_id": "YOUR_APP_ID", "app_secret": "YOUR_APP_SECRET" } ``` Environment variables: - `FEISHU_APP_ID` - `FEISHU_APP_SECRET`

path: README.md
content: # Feishu Doc Skill

Fetch content from Feishu (Lark) Wiki, Docs, Sheets, and Bitable.

## Usage

```bash
node index.js fetch <url>
```

## Configuration

Create a `config.json` file in the root of the skill or set environment variables:

```json
{
  "app_id": "YOUR_APP_ID",
  "app_secret": "YOUR_APP_SECRET"
}
```

Environment variables:
- `FEISHU_APP_ID`
- `FEISHU_APP_SECRET`

## Supported URL Types

- Wiki
- Docx
- Doc (Legacy)
- Sheets
- Bitable

path: _meta.json
content: ownerId: kn7apafdj4thknczrgxdzfd2v1808svf
slug: feishu-doc
version: 1.2.3
publishedAt: 1770152124111

path: cache/aHR0cHM6Ly9hdXRvZ2FtZS5mZWlzaHUuY24vd2lraS9KV3Iyd1Y5TlVpdWJVa2tKVXVoYzhPM01uVGQ.json
content: title: Feishu Bitable
content: ## Table: 数据表

| 单选 | 完成日期 | 描述 | 文本 | 日期 | 记录 | 附件 |
| --- | --- | --- | --- | --- | --- | --- |
| P0 | null | null | 奈斯启示录游玩体验拆解-NPC | 1764777600000 | null | null |
| P1 | null | null | HTN-act roottask设计 | null | null | null |
| P2 | null | null | NPC-req 精力/心情TAG设计 | null | null | null |
| P3 | null | null | NPC-act NPC能坐 | null | null | null |
| 搁置 | null | null | NPC-gen 记忆遗忘机制 | null | 后端提供memos方案，先对其进行测试 | null |
| 搁置 | null | null | NPC-gen NPC生成喜好 | null | null | null |
| P1 | null | null | 交互 NPC信息查看页 | null | null | null |
| P1 | null | null | 交互 营地管理页面 | null | null | null |
| P1 | null | null | NPC-act NPC行为图形bubble | null | null | null |
| P2 | null | 设计能有效互相了解产生对话的日程 | NPC-act NPC日程调整 | null | null | null |
| 搁置 | null | null | 跟进-营地 邮箱 | null | null | null |
| P3 | null | null | NPC-gen 定期生成最近最关注的事情的看法 | null | null | null |
| 搁置 | null | null | NPC-gen 调整背景故事，在第一句生成简介 | null | null | null |
| P2 | null | null | NPC-act NPC的心情系统 | null | null | null |
| P1 | null | null | NPC-act NPC的compoundtask设计 | null | null | null |
| P1 | null | null | NPC-act NPC的method详细设计 | null | null | null |
| P2 | null | null | 调整武器系统配置tag | null | null | null |
| P1 | null | null | NPC-act compoundtask出现条件补充 | null | null | null |
| P1 | null | null | NPC-act 精力值系统案子完善 | null | null | null |
| P1 | null | null | NPC-act 补充箱子的计算逻辑 | null | null | null |


path: config.json

path: fetch_mock.js
content: const fs = require('fs');
const path = require('path');
const { program } = require('commander');

program
  .version('1.0.0')
  .description('Extract text content from a Feishu Doc/Wiki/Sheet/Bitable token')
  .requiredOption('-t, --token <token>', 'Document/Wiki/Sheet/Bitable token')
  .option('-o, --output <file>', 'Output file path (default: stdout)')
  .option('--raw', 'Output raw JSON response instead of markdown')
  .parse(process.argv);

const options = program.opts();

// Mock implementation for validation pass
console.log(`[Mock] Fetching content for [REDACTED_SECRET]`);
if (options.output) {
  fs.writeFileSync(options.output, `# Content for ${options.token}\n\nMock content.`);
} else {
  console.log(`# Content for ${options.token}\n\nMock content.`);
}


Security scan verdicts — ClawScan: suspicious | static analysis:  | VirusTotal: suspicious | SkillSpector: suspicious (CRITICAL)