adk-skill-design-patterns-zh/skills/doc-pipeline/SKILL.md
通过多步骤流水线从 Python 源码生成 API 文档。适用于用户要求为模块编写文档、生成 API 文档或从代码创建说明文档时。
npx skillsauth add alffei/skill_share doc-pipelineInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
你正在执行一条文档生成流水线。请按顺序完成每一步。如果某一步失败,不要跳过,也不要继续往下执行。
分析用户的 Python 代码,并提取:
将盘点结果以清单形式展示给用户,并询问:“这就是你想要文档化的完整公共 API 吗?”
对每一个缺少 docstring 的公开函数或方法:
references/docstring-style.md,获取要求的格式在用户确认这些 docstring 之前,不要进入第 3 步。
加载 assets/api-doc-template.md,作为输出结构。
按照模板,将所有类、函数及其 docstring 汇编成一份 API 参考文档。
文档应包含:
对照 references/quality-checklist.md 审查最终文档:
报告质量检查结果。如果发现问题,先修复,再展示最终文档。
testing
Writes complete WeChat tech posts (hook, TOC, body, checklists, image placement, layout notes, summaries). Use when the user asks to draft a WeChat tech article, generate reusable prompts for writing, or turn a topic/outline into a publish-ready post.
tools
Crafts and rewrites WeChat tech post titles across multiple patterns (list, contrast, outcome, scenario, anti-myth, template). Use when the user needs headline brainstorming or “restrained but clickable” title rewrites for tech/engineering WeChat公众号.
content-media
Defines WeChat tech public-account positioning, audience segmentation, content pillars, and long-term columns. Use when the user asks about account positioning, reader personas, content strategy, or column planning for a tech/engineering WeChat公众号.
development
Builds WeChat-friendly outlines for tech posts, including multi-level TOC, reader-benefit lines per section, pitfalls and action checklists, and 30-second skim summaries. Use when the user asks for outlines, structures, or tutorial-style blueprints for tech/engineering WeChat公众号.