— No reviews yet
0 installs
11 views
0.0% view→install
Install
$ agentstack add skill-piasy-lark-skills-markdown-larkdoc-sync ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Markdown Larkdoc Sync? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
markdown-larkdoc-sync
开始前先确认:
- 只支持一个手动触发的同步工作流。
- 每次只处理一篇明确指定的 Markdown 文件。
- frontmatter 是受限子集,绑定读写必须走脚本。
- 一致性审校必须由独立 sub-agent 执行,且 sub-agent 使用与父 agent 相同的模型配置。
- 成功收尾时要解决全部未解决评论,并创建专用 sync commit。
- Mermaid 特殊约束:飞书正文中必须落地为“文本绘图 add-on(codeChart)”,不能保留 whiteboard 块。
执行约束:
- 确定性结构化步骤优先调用仓库脚本,不要在 prompt 中手写 Git 或 Lark 解析逻辑。
bin/resolve_doc_key.py、bin/find_last_sync_commit.py、bin/extract_markdown_body.py、bin/fetch_open_comments.py、bin/fetch_remote_markdown.py、bin/write_back_and_verify.py、bin/resolve_all_comments.py、bin/create_sync_commit.py、bin/create_bootstrap_doc.py都应被视为工作流标准入口。- 调用
bin/find_last_sync_commit.py时,第二个参数doc_key必须直接使用bin/resolve_doc_key.py输出中的doc_key原值。 doc_key格式固定为:(示例:docx:KlpudvT7so6kfwxyzZsl0L9ogbg),不得手工改写成docx/KlpudvT7so6kfwxyzZsl0L9ogbg这类/分隔格式。profile必须使用本机可用的 lark-cli profile(通常为 appId),不要硬编码default。可用值通过lark-cli auth list和lark-cli config show确认。- 调用
bin/create_bootstrap_doc.py时可以不传--profile让脚本自动选择;若传入的--profile不可用,脚本会按 active profile 或单 profile 自动回退,并在输出中标记profile_resolution/profile_warning。 - 读取 frontmatter 绑定必须调用
bin/read_frontmatter_binding.py。 - 修改 frontmatter 绑定必须调用
bin/write_frontmatter_binding.py。 - 读取远端正文用于合并或落盘时,必须调用
bin/fetch_remote_markdown.py --canonical,禁止直接使用docs +fetch原始文本参与比较。 - 回写飞书必须调用
bin/write_back_and_verify.py,并使用脚本内置的overwrite策略。 bin/write_back_and_verify.py会先写占位符,再通过 raw docx block API 把 mermaid 占位符替换为文本绘图 add-on(block_type=40,view=codeChart)。- 当本地包含 mermaid 代码块时,若回读仍出现 ``,视为写回验证失败并中止 sync。
- agent 不得手改 frontmatter。
- agent 不得自行解析 frontmatter。
- sync commit message 与
Markdown-Pathtrailer 中的markdown_path必须是相对于 git repo root 的相对路径,不得写入绝对路径或基于当前目录的非归一化路径。 - 任何低置信合并、评论冲突、一致性审校失败、remote 漂移或写回验证失败,都要中止整次 sync。
执行顺序:
- 调用
bin/read_frontmatter_binding.py读取绑定与正文。 - 调用
bin/resolve_doc_key.py。 - 调用
bin/find_last_sync_commit.py,并直接复用上一步产出的doc_key参数。 - 调用
bin/fetch_remote_markdown.py --canonical获取远端正文,并调用bin/fetch_open_comments.py获取当前全部未解决评论。 - 做正文三方合并。
- 把评论转成 review patch。
- 调用 sub-agent 做一致性审校。
- 调用
bin/write_back_and_verify.py回写飞书并验证(含 mermaid->文本绘图 add-on 替换和 canonical 回读比对)。 - 调用
bin/resolve_all_comments.py,解决当前文档全部未解决评论。 - 调用
bin/create_sync_commit.py。
首版建链(本地已有 Markdown,远端还没有文档)必须流程:
- 调用
bin/create_bootstrap_doc.py --title --identity [--profile ]创建初版飞书文档,并在脚本输出中确认auto_normalized=true且normalized_verified=true。 - 从输出中获取
doc_id/doc_url,并调用bin/write_frontmatter_binding.py写回 frontmatter 绑定;--profile必须使用输出中的effective_profile(不要继续写入无效 profile)。 - 若
create_bootstrap_doc.py返回非零或normalized_verified=false,必须中止本次 sync,不得进入收尾步骤。 - 完成后按常规流程进入
bin/create_sync_commit.py收尾。
收尾成功条件:
- 飞书 canonical 正文与最终候选正文一致。
- Mermaid 代码块在飞书中已落地为文本绘图 add-on(codeChart)。
- 当前文档全部未解决评论均已解决。
- 已创建专用 sync commit。
参考文档:
- frontmatter 受限子集:
references/frontmatter-subset.md - 安装与前置说明:
references/installation.md
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: Piasy
- Source: Piasy/lark-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.