hxyv

Feishu Docs Skill — Documentation skill for Claude Code

Documentation community

Claude Code skill that turns your Feishu/Lark bot into a document editor: invite it to a doc and let the agent read, write, restructure and illustrate it through lark-cli - block-level inserts and rep.

How to install Feishu Docs Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open hxyv/feishu-docs-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Feishu Docs Skill does

Claude Code skill that turns your Feishu/Lark bot into a document editor: invite it to a doc and let the agent read, write, restructure and illustrate it through lark-cli - block-level inserts and replacements, Feishu-native heading numbering, local figures and tables, safe sharing, no overwrite

Alternatives in Documentation

  • Doc Co-authoring — Guide users through structured workflow for co-authoring documentation 94.1k ★
  • HitCC — Complete reverse-engineering documentation of the full logic of Claude Code CLI Node.js version v2.1.84 670 ★
  • Auth.Md — An open protocol that lets agents register for services on behalf of users — discoverable through a Markdown f 591 ★

README

feishu-docs: a Claude Code skill for editing Feishu docs

Invite your Feishu (Lark) bot to a document, then ask Claude Code to edit it: sections, tables and locally generated figures land in the right place, existing blocks are revised rather than duplicated, and headings carry Feishu's own numbering. The skill teaches the agent to drive [lark-cli](https://github.com/larksuite/cli) (the official Feishu/Lark command line) as the bot identity, which is what makes "invite the bot and let the agent manage the doc" work without a user login.

you:    I've invited the bot to https://xxx.feishu.cn/docx/ABC... — add a "Throughput" section
        at the end of Results with a plot of these numbers.
agent:  (reads the outline, makes the PNG with matplotlib, inserts a numbered heading, text
        and the figure after the last block of Results, fetches the doc back, reports the link)

What the agent learns

  • Access model. The bot can only open documents it was invited to; the skill recognises the "not invited" error instead of retrying, checks collaborators, and shares back any document the bot created itself.
  • Where edits land. Directly after a heading = top of the section; after the section's last block = end of the section. scripts/anchors.py prints both ids for every heading, with the number Feishu shows for it.
  • Section sync. scripts/sync_section.py "Heading" body.md replaces one section's body from a local Markdown or XML file in place (lists handled, heading and its number kept), or creates the section if it is missing. This is the primitive for "regenerate the Results section from the new run".
  • Feishu-native numbering. Automatic heading numbers (1, 1.1, 1.2.1 …) are the XML attribute seq="auto"; scripts/number_headings.py turns them on for every heading of a document in one run.
  • The whole block vocabulary, verified: callouts, quotes, code blocks, checklists, columns, coloured tables, inline form