[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M752WJH1P2W87999R6DS3GA5":3,"skill-same:01M752WJH1P2W87999R6DS3GA5":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":13,"repositoryHtmlUrl":44,"repositoryHomepageUrl":6,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M752WJH1P2W87999R6DS3GA5","push-docs-to-feishu",null,"Push local project Markdown documents to Feishu Wiki using lark-cli. Handles creation (docs +create v2), wiki move, UTF-8 encoding, rate limiting, and CLAUDE.md reference updates. Two-step pipeline: create docx + move to wiki.","therain2020\u002Ftherain2020-agent","therain2020","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F208423390?v=4","01M752W2QDQQGYYDJSC7SV1KER","01M752W2R30CXXACJP8VDJNQNF",0,"MIT","https:\u002F\u002Fgithub.com\u002Ftherain2020\u002Ftherain2020-agent\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fpush-docs-to-feishu\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: push-docs-to-feishu\ndescription: >\n  Push local project Markdown documents to Feishu Wiki using lark-cli.\n  Handles creation (docs +create v2), wiki move, UTF-8 encoding, rate limiting,\n  and CLAUDE.md reference updates. Two-step pipeline: create docx + move to wiki.\nallowed-tools: [Read, Write, Edit, Bash, PowerShell, Glob, Grep]\ntriggers:\n  - \"推送文档到飞书\"\n  - \"上传文档到飞书\"\n  - \"同步文档到飞书\"\n  - \"push docs to feishu\"\n  - \"飞书文档\"\n  - \"同步到飞书\"\n  - \"推到飞书\"\n  - \"上传到知识库\"\n---\n\n# Push Docs to Feishu Wiki Skill\n\nPush local Markdown files to a Feishu Wiki space using lark-cli.\n\n## Prerequisites\n\n- `lark-cli.exe` at `D:\\GitHub\\larksuite-cli\\lark-cli.exe`\n- Authenticated (`lark-cli wiki +space-list` returns `\"ok\": true`)\n- Target wiki space ID: `7644823612574141651` (Agent 设计文档)\n\n## The Pipeline\n\nEach document goes through a two-step pipeline:\n\n```\n1. docs +create --api-version v2 --content @file --doc-format markdown --title \"...\"\n   → returns document_id\n2. wiki +move --obj-type docx --obj-token \u003Cdoc_id> --target-space-id \u003Cspace_id>\n   → moves into wiki space\n```\n\n## Phase 1: Assess\n\n1. List local docs to push: `Get-ChildItem \u003Cdir> -Filter \"*.md\"`\n2. Check which ones already exist in the wiki (optional — use `wiki +space-list` and `wiki +node-list` to check)\n3. Report: \"Found N docs. M new, K already in wiki.\"\n\n## Phase 2: Push\n\nUse this PowerShell pattern. **Critical rules:**\n\n- **UTF-8 no BOM**: `[System.Text.UTF8Encoding]::new($false)` — never use `Out-File -Encoding utf8`\n- **Relative paths**: `Set-Location` to lark-cli directory before each call\n- **Rate limit**: `Start-Sleep -Seconds 2` between each doc\n- **Shell CWD**: lark-cli resets working directory after each call; always `Set-Location` before calling\n\n```powershell\n$cli = \"D:\\GitHub\\larksuite-cli\\lark-cli.exe\"\n$spaceId = \"7644823612574141651\"\n$tmpDir = \"D:\\GitHub\\larksuite-cli\"\n\nforeach ($f in Get-ChildItem $sourceDir -Filter \"*.md\" | Sort-Object Name) {\n    $title = $f.BaseName -replace '-', ' '\n    if ($title.Length -gt 60) { $title = $title.Substring(0, 60) }\n    $content = [System.IO.File]::ReadAllText($f.FullName, [System.Text.UTF8Encoding]::new($false))\n    [System.IO.File]::WriteAllText(\"$tmpDir\\tmp-md.txt\", $content, [System.Text.UTF8Encoding]::new($false))\n    \n    # Step 1: Create docx\n    Set-Location $tmpDir\n    $raw = & $cli docs +create --api-version v2 --content \"@tmp-md.txt\" --doc-format markdown --title \"$title\" 2>&1 | Out-String\n    Set-Location \"D:\\GitHub\\therain2020-agent\"\n    \n    if ($raw -match '\"document_id\":\\s*\"([^\"]+)\"') {\n        $docId = $matches[1]\n        # Step 2: Move to wiki\n        Set-Location $tmpDir\n        $moveResult = & $cli wiki +move --obj-type docx --obj-token $docId --target-space-id $spaceId 2>&1 | Out-String\n        Set-Location \"D:\\GitHub\\therain2020-agent\"\n        if ($moveResult -match '\"ok\":\\s*true') { Write-Host \"  OK: $title\" } else { Write-Host \"  MOVE FAIL: $title\" }\n    } else { Write-Host \"  CREATE FAIL: $title\" }\n    Start-Sleep -Seconds 2\n}\nRemove-Item \"$tmpDir\\tmp-md.txt\" -ErrorAction SilentlyContinue\n```\n\n## Phase 3: Update References\n\nAfter successful upload, update `CLAUDE.md` to add the new docs to the Design Reference or Project Docs table.\n\nThe wiki space URL is: `https:\u002F\u002Fycn21rm70xup.feishu.cn\u002Fwiki\u002Fspace\u002F7644823612574141651`\n\n## Common Pitfalls\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| `--data invalid JSON format` | File has UTF-8 BOM from `Out-File -Encoding utf8` | Use `[System.Text.UTF8Encoding]::new($false)` |\n| `cannot read file \"tmp-md.txt\"` | CWD was reset by previous lark-cli call | `Set-Location $tmpDir` before every CLI call |\n| `--content is required` | Using v1 syntax (`--markdown`) with v2 API | Use `--content @file --doc-format markdown` |\n| First 18 docs OK, rest fail | Rate limiting | `Start-Sleep -Seconds 2` minimum |\n| `unknown flag: --wiki-space` | v2 API removed this flag | Two-step: create + wiki move |\n\n## Target Directories\n\n| Local path | Content type | Wiki section |\n|-----------|-------------|-------------|\n| `D:\\GitHub\\agent-design\\temp\\` | 设计文档 (30篇) | Root of wiki space |\n| `D:\\GitHub\\therain2020-agent\\docs\\` | 项目文档 (5篇) | Root of wiki space |\n","# Push Docs to Feishu Wiki Skill\n\nPush local Markdown files to a Feishu Wiki space using lark-cli.\n\n## Prerequisites\n\n- `lark-cli.exe` at `D:\\GitHub\\larksuite-cli\\lark-cli.exe`\n- Authenticated (`lark-cli wiki +space-list` returns `\"ok\": true`)\n- Target wiki space ID: `7644823612574141651` (Agent 设计文档)\n\n## The Pipeline\n\nEach document goes through a two-step pipeline:\n\n```\n1. docs +create --api-version v2 --content @file --doc-format markdown --title \"...\"\n   → returns document_id\n2. wiki +move --obj-type docx --obj-token \u003Cdoc_id> --target-space-id \u003Cspace_id>\n   → moves into wiki space\n```\n\n## Phase 1: Assess\n\n1. List local docs to push: `Get-ChildItem \u003Cdir> -Filter \"*.md\"`\n2. Check which ones already exist in the wiki (optional — use `wiki +space-list` and `wiki +node-list` to check)\n3. Report: \"Found N docs. M new, K already in wiki.\"\n\n## Phase 2: Push\n\nUse this PowerShell pattern. **Critical rules:**\n\n- **UTF-8 no BOM**: `[System.Text.UTF8Encoding]::new($false)` — never use `Out-File -Encoding utf8`\n- **Relative paths**: `Set-Location` to lark-cli directory before each call\n- **Rate limit**: `Start-Sleep -Seconds 2` between each doc\n- **Shell CWD**: lark-cli resets working directory after each call; always `Set-Location` before calling\n\n```powershell\n$cli = \"D:\\GitHub\\larksuite-cli\\lark-cli.exe\"\n$spaceId = \"7644823612574141651\"\n$tmpDir = \"D:\\GitHub\\larksuite-cli\"\n\nforeach ($f in Get-ChildItem $sourceDir -Filter \"*.md\" | Sort-Object Name) {\n    $title = $f.BaseName -replace '-', ' '\n    if ($title.Length -gt 60) { $title = $title.Substring(0, 60) }\n    $content = [System.IO.File]::ReadAllText($f.FullName, [System.Text.UTF8Encoding]::new($false))\n    [System.IO.File]::WriteAllText(\"$tmpDir\\tmp-md.txt\", $content, [System.Text.UTF8Encoding]::new($false))\n    \n    # Step 1: Create docx\n    Set-Location $tmpDir\n    $raw = & $cli docs +create --api-version v2 --content \"@tmp-md.txt\" --doc-format markdown --title \"$title\" 2>&1 | Out-String\n    Set-Location \"D:\\GitHub\\therain2020-agent\"\n    \n    if ($raw -match '\"document_id\":\\s*\"([^\"]+)\"') {\n        $docId = $matches[1]\n        # Step 2: Move to wiki\n        Set-Location $tmpDir\n        $moveResult = & $cli wiki +move --obj-type docx --obj-token $docId --target-space-id $spaceId 2>&1 | Out-String\n        Set-Location \"D:\\GitHub\\therain2020-agent\"\n        if ($moveResult -match '\"ok\":\\s*true') { Write-Host \"  OK: $title\" } else { Write-Host \"  MOVE FAIL: $title\" }\n    } else { Write-Host \"  CREATE FAIL: $title\" }\n    Start-Sleep -Seconds 2\n}\nRemove-Item \"$tmpDir\\tmp-md.txt\" -ErrorAction SilentlyContinue\n```\n\n## Phase 3: Update References\n\nAfter successful upload, update `CLAUDE.md` to add the new docs to the Design Reference or Project Docs table.\n\nThe wiki space URL is: `https:\u002F\u002Fycn21rm70xup.feishu.cn\u002Fwiki\u002Fspace\u002F7644823612574141651`\n\n## Common Pitfalls\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| `--data invalid JSON format` | File has UTF-8 BOM from `Out-File -Encoding utf8` | Use `[System.Text.UTF8Encoding]::new($false)` |\n| `cannot read file \"tmp-md.txt\"` | CWD was reset by previous lark-cli call | `Set-Location $tmpDir` before every CLI call |\n| `--content is required` | Using v1 syntax (`--markdown`) with v2 API | Use `--content @file --doc-format markdown` |\n| First 18 docs OK, rest fail | Rate limiting | `Start-Sleep -Seconds 2` minimum |\n| `unknown flag: --wiki-space` | v2 API removed this flag | Two-step: create + wiki move |\n\n## Target Directories\n\n| Local path | Content type | Wiki section |\n|-----------|-------------|-------------|\n| `D:\\GitHub\\agent-design\\temp\\` | 设计文档 (30篇) | Root of wiki space |\n| `D:\\GitHub\\therain2020-agent\\docs\\` | 项目文档 (5篇) | Root of wiki space |\n",{"name":5,"triggers":23,"description":32,"allowed-tools":33},[24,25,26,27,28,29,30,31],"推送文档到飞书","上传文档到飞书","同步文档到飞书","push docs to feishu","飞书文档","同步到飞书","推到飞书","上传到知识库","Push local project Markdown documents to Feishu Wiki using lark-cli. Handles creation (docs +create v2), wiki move, UTF-8 encoding, rate limiting, and CLAUDE.md reference updates. Two-step pipeline: create docx + move to wiki.\n",[34,35,36,37,38,39,40],"Read","Write","Edit","Bash","PowerShell","Glob","Grep","master","6a4bedf92611371e7acc7614069465fa1f9902f8",".claude\u002Fskills\u002Fpush-docs-to-feishu","https:\u002F\u002Fgithub.com\u002Ftherain2020\u002Ftherain2020-agent","https:\u002F\u002Fgithub.com\u002Ftherain2020","Forward Deployed Engineer · AI Native · Sharing","2026-05-29 21:40:25",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add therain2020\u002Ftherain2020-agent --skill push-docs-to-feishu",{"tool":54,"command":55},"bunx","bunx skills add therain2020\u002Ftherain2020-agent --skill push-docs-to-feishu",{"tool":57,"command":58},"pnpm","pnpm dlx skills add therain2020\u002Ftherain2020-agent --skill push-docs-to-feishu","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftherain2020\u002Ftherain2020-agent\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fpush-docs-to-feishu\u002FSKILL.md",true,[],[63,69],{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M752WSAWPK6955CV3J7S7XXB","verify","https:\u002F\u002Fgithub.com\u002Ftherain2020\u002Ftherain2020-agent\u002Fblob\u002Fmaster\u002Fsrc\u002Fskills\u002Fbundled\u002Fverify\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M752WP3RH63SV5H4SG11Q7JV","update-docs","Update all project documentation, repository metadata, and progress tracking when the codebase has significantly changed. Handles README (EN\u002FCN), CLAUDE.md, CHANGELOG, pyproject.toml, GitHub About\u002Fdescription\u002Ftopics, and release notes. CRITICAL: bilingual docs are written independently, NOT translated.","https:\u002F\u002Fgithub.com\u002Ftherain2020\u002Ftherain2020-agent\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fupdate-docs\u002FSKILL.md",[],[]]