doc-author
它能做什么
它指导 AI 智能体起草和改进文档。适用于希望文档清晰、读起来自然的写作者和团队。
适用场景
- ✓当你想在自己的输入下起草新的指南或操作步骤页面时。
- ✓当你有清楚的说明,希望智能体独立撰写文档时。
- ✓当你需要改进或更新现有文档时。
技能链接
https://github.com/InsForge/InsForge/blob/main/.claude/skills/doc-author/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我写一份新应用的设置指南,在起草前先问我一些问题。”
每周 5 个新技能,1 分钟读完。
工作原理
默认情况下,智能体作为协作者工作,会提出问题、给出建议,并把最终决定权留给你。只有当你明确要求时,它才会切换为独立撰写。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Write and maintain documentation
This skill guides documentation work—from collaborative drafting with a human to autonomous writing with PR-based review.
Operating modes
Collaborative (default)
You're a collaborator. The human drives decisions, you assist. Use this mode unless you have a clear signal to work autonomously.
In collaborative mode:
- Draft content for the human to refine
- Suggest improvements with clear reasoning
- Ask clarifying questions before assuming
- Offer alternatives when there are trade-offs
- Flag concerns without blocking progress
Autonomous
You write independently, open PRs, and flag uncertainties for human review. Use this mode only when:
- The task is explicitly delegated (e.g., a Linear issue assigned to you)
- The human tells you to "just do it" or "go ahead and write this"
- You're working from a clear, specific brief with no ambiguity
In autonomous mode:
- Write complete documentation and open a PR
- Add TODO comments for anything you can't verify
- Note uncertainties in the PR description
- Never commit directly—always open a PR for review
When in doubt about which mode to use, default to collaborative.
Core principles
- Only document what you can verify. If you can't confirm something from the codebase or explicit user input, don't write it. Leave a TODO instead.
- Write just enough. Help users succeed and get back to their work. More docs isn't better docs.
- Match existing patterns. Read surrounding content before writing. Consistency beats personal preference.
- Flag uncertainty. When unsure, ask in collaborative mode or add a TODO comment in autonomous mode.
- Ask before assuming. If something is unclear, ask. Don't guess at product behavior, user needs, or organizational preferences.
- Explain your reasoning. When you suggest changes, say why. This helps people learn and make better decisions.
Before you write
Verify you have enough context
Before writing, confirm you can answer:
- What is this feature or concept?
- Who needs this documentation?
- What should they be able to do after reading?
If you can't answer these from the codebase or user input:
- Collaborative mode: Ask the human
- Autonomous mode: Stop and escalate
Check for existing content
Search the docs for related content before creating new pages. You may need to:
- Update an existing page instead of creating a new one
- Add a section to an existing page
- Link to existing content rather than duplicating
Read surrounding content
Before writing, read 2-3 similar pages to understand:
- Voice and tone patterns
- Structure and formatting conventions
- Level of detail provided
- Component usage patterns
Working with humans
These practices apply in both modes—collaborative work is more interactive, but even autonomous work benefits from clear communication.
When to ask questions
Ask before writing when:
- You don't understand the feature being documented
- The audience isn't clear
- You're unsure what level of detail is appropriate
- There are multiple valid approaches
Good questions:
- "Who's the primary audience for this page—developers integrating the API or admins configuring the product?"
- "Should this be a separate page or a new section on the existing [page name]?"
- "What should people be able to accomplish after they read the documentation?"
- "The codebase shows two ways to do this. Which should we document, or both?"
When to offer alternatives
Present options when:
- There are different valid structures
- Tone could go multiple directions
- Detail level is a judgment call
Example:
"I can write this as either: A. A quick reference with just the essential steps B. A detailed guide with context and troubleshooting
A is faster to scan but assumes more knowledge. B helps beginners but takes longer to read. Which fits your users better?"
When to flag concerns
Speak up when you notice:
- Content that might be inaccurate
- Patterns that differ from the rest of th
常见问题
它会不问我就写文档吗?
默认不会。除非你明确说让它独立工作,否则它会协作并提出澄清问题。
自主模式会做什么?
它会撰写完整的文档,可以发起拉取请求,并把它不确定的内容标出,供你审核。
这个技能是谁做的?
它由文档平台 Mintlify 开发。
详情
作者的原始描述
Write, edit, and maintain documentation. Use for collaborative drafting, autonomous writing, or improving existing docs. Defaults to collaborative mode where the human makes final decisions. Built by Mintlify.
repo: InsForge/InsForge
热度
- GitHub 星标
- 13k
- 排名
- #11377
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …