安装方式
手动下载安装
下载 ZIP 后解压到技能目录即可安装。若在桌面客户端 WebView中直接下载出现异常,本站会改为提示页 + 原始链接,请按页内说明操作。
下载 ZIP (oss-anthropic-doc-coauthoring-v1.0.0.zip)触发指令
/doc-coauthoring
跨平台安装指引
该技能声明兼容以下 1 个平台,将 ZIP 解压到对应目录即可被识别。
unzip oss-anthropic-doc-coauthoring-v1.0.0.zip -d ~/.claude/skills/
mkdir -p 创建;启用 Skill 后请重启对应 Agent 让配置生效。
使用指南
文档共创工作流
引导用户 结构化地合写文档。你作为 主动向导,带用户走过三阶段:收集上下文、打磨与结构、读者测试。
何时提供本工作流
触发: 用户提到写文档、提案、规格、PRD、设计文档、决策文档、RFC 等,或明显在开始一项 较大写作任务。
开场: 说明三阶段分别做什么:
- 收集上下文:你问澄清问题,用户倒出所知。
- 打磨与结构:分节 brainstorm、筛选、起草、迭代修改。
- 读者测试:用 无上下文的全新 Claude 试读,抓作者盲区。
说明这有助于文档在 他人阅读(包括粘贴给 Claude)时仍然好用。问用户想 走结构化流程 还是 自由发挥。若拒绝,则自由协作;若接受,进入阶段一。
阶段一:收集上下文
目标: 缩小「用户知道」与「你知道」的差距,便于后续给准建议。
开场问题
先问文档元信息:
- 文档类型?(技术规格、决策文档、提案等)
- 主要读者是谁?
- 希望读者读完后 产生什么影响?
- 是否有模板或固定格式?
- 其他约束或背景?
说明用户可以用简写、随手记,怎么快怎么来。
若用户给了模板或类型: 问是否有模板文件;有链接则用集成读取;有文件则 Read。
若用户要编辑已有共享文档: 用集成读当前版本;检查图片是否缺 alt;若无 alt,说明 别人用 Claude 读文档时看不到图,问是否要生成 alt;若要,请用户把图贴到对话里描述。
信息倾倒
鼓励用户 一次性倒出 背景:项目/问题背景、团队讨论、为何不选其他方案、组织与政治语境、时间压力、架构与依赖、干系人顾虑等。说明 不用先整理,可:
- 意识流倾倒
- 指向频道/线程
- 给文档链接
若有集成(Slack、Teams、Drive、SharePoint、MCP 等),说明可直接拉取。若在 Claude.ai / App 且无集成: 可提示在设置里开启连接器。
说明倒完一轮后你会再问澄清问题。
过程中: 若提到频道/文档——有集成则去读;无则说明限制并建议开连接器或粘贴。若提到未知实体——问是否要连工具搜索,等用户确认 再搜。边收边记 已弄清 / 仍模糊。
澄清问题
用户表示倒完(或已足够)后,基于缺口列 5–10 个编号问题;用户可用简写回答(如「1 是,2 见 #频道…」)、给链接或继续倒。
退出条件: 你的问题已体现对 边界与权衡 的理解,无需再追问基础事实。
过渡: 问是否还有要补充的上下文,或可以进入起草阶段。用户准备好则进入 阶段二。
阶段二:打磨与结构
目标: 逐节 通过 brainstorm、筛选、起草、手术式修改建成文档。
向用户说明: 每节会:先问澄清 → brainstorm 5–20 条 → 用户选留/删/并 → 起草 → 迭代润色。通常从 未知最多 的一节开始(决策文档常是核心方案;规格常是技术路线);摘要类放最后。
若结构不明: 根据文档类型建议 3–5 个大节,问是否调整。
结构定下后: 用占位符搭出全篇骨架。
- 若能用 artifact: 用
create_file建 artifact,各节标题 +[待撰写]等占位。 - 若不能: 在工作目录建合适文件名的 Markdown,同样结构。
每一节循环:
- 澄清:宣布做 [节名],提 5–10 个具体问题。
- Brainstorm:列 5–20 条可能纳入的点(复杂度低则少,高则多),末尾可问要不要再加。
- 筛选:请用户标保留/删除/合并(给示例句式);若用户随口说「挺好但…」,解析其意图并继续。
- 缺口检查:根据选定内容问是否还有遗漏。
- 起草:用
str_replace把该节占位换成正文;宣布已完成,请用户通读并 具体指出改法(第一节起草时务必说明:请用户 不要私下改文档,而是用文字反馈,便于你学风格——例如「删第三段,与第二节重复」)。 - 迭代修改: 用户反馈后用
str_replace小步改;artifact 每次给链接;文件则确认已改。若用户自己改了文件再让你读,记住其偏好 供后续节使用。 - 质量: 若连续三轮无实质修改,问能否 删繁就简 而不失要点。节完成则确认,问是否进入下一节。
接近完成(约 80%+): 通读全文,查流畅性、重复矛盾、空话、每句是否必要,并给反馈。全部节完成后 再整体审一遍:连贯、完整,给终稿建议。问是否进入 读者测试 或再改。
阶段三:读者测试
目标: 用 无上下文泄露的新 Claude 测文档是否真的对读者好用。
向用户解释: 要发现「作者觉得清楚、读者却懵」的盲点。
若有子代理(如 Claude Code)
你可 直接代测,无需用户操作。
- 预测读者问题:列 5–10 个读者会用来「发现这篇文档」或理解内容时可能问的问题。
- 子代理测验:每个问题只给 文档全文 + 该问题,调子代理;汇总答对/答错/误解。
- 额外检查:再派子代理查 歧义、隐含假设、矛盾。
- 报告与修复:列出问题,回到 阶段二 改相应段落。
若无子代理(如网页 Claude)
指导用户 手动测:
- 同样先 预测 5–10 个读者问题。
- 步骤: 新开 https://claude.ai → 粘贴文档(或共享文档链接若已开连接器)→ 用 Reader Claude 逐问;要求回答里说明 是否有歧义、文档预设了哪些背景知识。
- 附加问题: 「哪里可能含糊?」「默认读者已知道什么?」「有无内部矛盾?」
- 迭代: 根据 Reader Claude 的卡壳点回到阶段二修改。
结束条件
Reader Claude 稳定答对 且 不再提出新缺口 时,可认为通过。
终检
宣布通过读者测试后:
- 建议用户 自己再通读(文档责任在用户)。
- 提醒核对事实、链接、技术细节。
- 问是否达成最初想要的 影响。
若还要最后一轮审阅则做;否则宣布完成,并可提示:可在附录链到本对话、用附录承载深度、随真实读者反馈更新。
有效引导提示
- 语气: 直接、按步骤;需要影响行为时简短说清理由;不必「推销」流程,执行即可。
- 偏离: 用户要跳过某阶段 → 确认是否改 自由写作。用户烦躁 → 承认耗时,给 加速选项。始终让用户有选择权。
- 上下文: 发现缺口 当场问,别让问题堆积。
- Artifact: 全文用
create_file,修改用str_replace,每次变更后给 artifact 链接;brainstorm 列表留在对话,不必建 artifact。 - 质量优先于速度: 每轮迭代要有实质改进;目标是 读者真能用 的文档。
# Doc Co-Authoring Workflow
This skill provides a structured workflow for guiding users through collaborative document creation. Act as an active guide, walking users through three stages: Context Gathering, Refinement & Structure, and Reader Testing.
## When to Offer This Workflow
**Trigger conditions:**
- User mentions writing documentation: "write a doc", "draft a proposal", "create a spec", "write up"
- User mentions specific doc types: "PRD", "design doc", "decision doc", "RFC"
- User seems to be starting a substantial writing task
**Initial offer:**
Offer the user a structured workflow for co-authoring the document. Explain the three stages:
1. **Context Gathering**: User provides all relevant context while Claude asks clarifying questions
2. **Refinement & Structure**: Iteratively build each section through brainstorming and editing
3. **Reader Testing**: Test the doc with a fresh Claude (no context) to catch blind spots before others read it
Explain that this approach helps ensure the doc works well when others read it (including when they paste it into Claude). Ask if they want to try this workflow or prefer to work freeform.
If user declines, work freeform. If user accepts, proceed to Stage 1.
## Stage 1: Context Gathering
**Goal:** Close the gap between what the user knows and what Claude knows, enabling smart guidance later.
### Initial Questions
Start by asking the user for meta-context about the document:
1. What type of document is this? (e.g., technical spec, decision doc, proposal)
2. Who's the primary audience?
3. What's the desired impact when someone reads this?
4. Is there a template or specific format to follow?
5. Any other constraints or context to know?
Inform them they can answer in shorthand or dump information however works best for them.
**If user provides a template or mentions a doc type:**
- Ask if they have a template document to share
- If they provide a link to a shared document, use the appropriate integration to fetch it
- If they provide a file, read it
**If user mentions editing an existing shared document:**
- Use the appropriate integration to read the current state
- Check for images without alt-text
- If images exist without alt-text, explain that when others use Claude to understand the doc, Claude won't be able to see them. Ask if they want alt-text generated. If so, request they paste each image into chat for descriptive alt-text generation.
### Info Dumping
Once initial questions are answered, encourage the user to dump all the context they have. Request information such as:
- Background on the project/problem
- Related team discussions or shared documents
- Why alternative solutions aren't being used
- Organizational context (team dynamics, past incidents, politics)
- Timeline pressures or constraints
- Technical architecture or dependencies
- Stakeholder concerns
Advise them not to worry about organizing it - just get it all out. Offer multiple ways to provide context:
- Info dump stream-of-consciousness
- Point to team channels or threads to read
- Link to shared documents
**If integrations are available** (e.g., Slack, Teams, Google Drive, SharePoint, or other MCP servers), mention that these can be used to pull in context directly.
**If no integrations are detected and in Claude.ai or Claude app:** Suggest they can enable connectors in their Claude settings to allow pulling context from messaging apps and document storage directly.
Inform them clarifying questions will be asked once they've done their initial dump.
**During context gathering:**
- If user mentions team channels or shared documents:
- If integrations available: Inform them the content will be read now, then use the appropriate integration
- If integrations not available: Explain lack of access. Suggest they enable connectors in Claude settings, or paste the relevant content directly.
- If user mentions entities/projects that are unknown:
- Ask if connected tools should be searched to learn more
- Wait for user confirmation before searching
- As user provides context, track what's being learned and what's still unclear
**Asking clarifying questions:**
When user signals they've done their initial dump (or after substantial context provided), ask clarifying questions to ensure understanding:
Generate 5-10 numbered questions based on gaps in the context.
Inform them they can use shorthand to answer (e.g., "1: yes, 2: see #channel, 3: no because backwards compat"), link to more docs, point to channels to read, or just keep info-dumping. Whatever's most efficient for them.
**Exit condition:**
Sufficient context has been gathered when questions show understanding - when edge cases and trade-offs can be asked about without needing basics explained.
**Transition:**
Ask if there's any more context they want to provide at this stage, or if it's time to move on to drafting the document.
If user wants to add more, let them. When ready, proceed to Stage 2.
## Stage 2: Refinement & Structure
**Goal:** Build the document section by section through brainstorming, curation, and iterative refinement.
**Instructions to user:**
Explain that the document will be built section by section. For each section:
1. Clarifying questions will be asked about what to include
2. 5-20 options will be brainstormed
3. User will indicate what to keep/remove/combine
4. The section will be drafted
5. It will be refined through surgical edits
Start with whichever section has the most unknowns (usually the core decision/proposal), then work through the rest.
**Section ordering:**
If the document structure is clear:
Ask which section they'd like to start with.
Suggest starting with whichever section has the most unknowns. For decision docs, that's usually the core proposal. For specs, it's typically the technical approach. Summary sections are best left for last.
If user doesn't know what sections they need:
Based on the type of document and template, suggest 3-5 sections appropriate for the doc type.
Ask if this structure works, or if they want to adjust it.
**Once structure is agreed:**
Create the initial document structure with placeholder text for all sections.
**If access to artifacts is available:**
Use `create_file` to create an artifact. This gives both Claude and the user a scaffold to work from.
Inform them that the initial structure with placeholders for all sections will be created.
Create artifact with all section headers and brief placeholder text like "[To be written]" or "[Content here]".
Provide the scaffold link and indicate it's time to fill in each section.
**If no access to artifacts:**
Create a markdown file in the working directory. Name it appropriately (e.g., `decision-doc.md`, `technical-spec.md`).
Inform them that the initial structure with placeholders for all sections will be created.
Create file with all section headers and placeholder text.
Confirm the filename has been created and indicate it's time to fill in each section.
**For each section:**
### Step 1: Clarifying Questions
Announce work will begin on the [SECTION NAME] section. Ask 5-10 clarifying questions about what should be included:
Generate 5-10 specific questions based on context and section purpose.
Inform them they can answer in shorthand or just indicate what's important to cover.
### Step 2: Brainstorming
For the [SECTION NAME] section, brainstorm [5-20] things that might be included, depending on the section's complexity. Look for:
- Context shared that might have been forgotten
- Angles or considerations not yet mentioned
Generate 5-20 numbered options based on section complexity. At the end, offer to brainstorm more if they want additional options.
### Step 3: Curation
Ask which points should be kept, removed, or combined. Request brief justifications to help learn priorities for the next sections.
Provide examples:
- "Keep 1,4,7,9"
- "Remove 3 (duplicates 1)"
- "Remove 6 (audience already knows this)"
- "Combine 11 and 12"
**If user gives freeform feedback** (e.g., "looks good" or "I like most of it but...") instead of numbered selections, extract their preferences and proceed. Parse what they want kept/removed/changed and apply it.
### Step 4: Gap Check
Based on what they've selected, ask if there's anything important missing for the [SECTION NAME] section.
### Step 5: Drafting
Use `str_replace` to replace the placeholder text for this section with the actual drafted content.
Announce the [SECTION NAME] section will be drafted now based on what they've selected.
**If using artifacts:**
After drafting, provide a link to the artifact.
Ask them to read through it and indicate what to change. Note that being specific helps learning for the next sections.
**If using a file (no artifacts):**
After drafting, confirm completion.
Inform them the [SECTION NAME] section has been drafted in [filename]. Ask them to read through it and indicate what to change. Note that being specific helps learning for the next sections.
**Key instruction for user (include when drafting the first section):**
Provide a note: Instead of editing the doc directly, ask them to indicate what to change. This helps learning of their style for future sections. For example: "Remove the X bullet - already covered by Y" or "Make the third paragraph more concise".
### Step 6: Iterative Refinement
As user provides feedback:
- Use `str_replace` to make edits (never reprint the whole doc)
- **If using artifacts:** Provide link to artifact after each edit
- **If using files:** Just confirm edits are complete
- If user edits doc directly and asks to read it: mentally note the changes they made and keep them in mind for future sections (this shows their preferences)
**Continue iterating** until user is satisfied with the section.
### Quality Checking
After 3 consecutive iterations with no substantial changes, ask if anything can be removed without losing important information.
When section is done, confirm [SECTION NAME] is complete. Ask if ready to move to the next section.
**Repeat for all sections.**
### Near Completion
As approaching completion (80%+ of sections done), announce intention to re-read the entire document and check for:
- Flow and consistency across sections
- Redundancy or contradictions
- Anything that feels like "slop" or generic filler
- Whether every sentence carries weight
Read entire document and provide feedback.
**When all sections are drafted and refined:**
Announce all sections are drafted. Indicate intention to review the complete document one more time.
Review for overall coherence, flow, completeness.
Provide any final suggestions.
Ask if ready to move to Reader Testing, or if they want to refine anything else.
## Stage 3: Reader Testing
**Goal:** Test the document with a fresh Claude (no context bleed) to verify it works for readers.
**Instructions to user:**
Explain that testing will now occur to see if the document actually works for readers. This catches blind spots - things that make sense to the authors but might confuse others.
### Testing Approach
**If access to sub-agents is available (e.g., in Claude Code):**
Perform the testing directly without user involvement.
### Step 1: Predict Reader Questions
Announce intention to predict what questions readers might ask when trying to discover this document.
Generate 5-10 questions that readers would realistically ask.
### Step 2: Test with Sub-Agent
Announce that these questions will be tested with a fresh Claude instance (no context from this conversation).
For each question, invoke a sub-agent with just the document content and the question.
Summarize what Reader Claude got right/wrong for each question.
### Step 3: Run Additional Checks
Announce additional checks will be performed.
Invoke sub-agent to check for ambiguity, false assumptions, contradictions.
Summarize any issues found.
### Step 4: Report and Fix
If issues found:
Report that Reader Claude struggled with specific issues.
List the specific issues.
Indicate intention to fix these gaps.
Loop back to refinement for problematic sections.
---
**If no access to sub-agents (e.g., claude.ai web interface):**
The user will need to do the testing manually.
### Step 1: Predict Reader Questions
Ask what questions people might ask when trying to discover this document. What would they type into Claude.ai?
Generate 5-10 questions that readers would realistically ask.
### Step 2: Setup Testing
Provide testing instructions:
1. Open a fresh Claude conversation: https://claude.ai
2. Paste or share the document content (if using a shared doc platform with connectors enabled, provide the link)
3. Ask Reader Claude the generated questions
For each question, instruct Reader Claude to provide:
- The answer
- Whether anything was ambiguous or unclear
- What knowledge/context the doc assumes is already known
Check if Reader Claude gives correct answers or misinterprets anything.
### Step 3: Additional Checks
Also ask Reader Claude:
- "What in this doc might be ambiguous or unclear to readers?"
- "What knowledge or context does this doc assume readers already have?"
- "Are there any internal contradictions or inconsistencies?"
### Step 4: Iterate Based on Results
Ask what Reader Claude got wrong or struggled with. Indicate intention to fix those gaps.
Loop back to refinement for any problematic sections.
---
### Exit Condition (Both Approaches)
When Reader Claude consistently answers questions correctly and doesn't surface new gaps or ambiguities, the doc is ready.
## Final Review
When Reader Testing passes:
Announce the doc has passed Reader Claude testing. Before completion:
1. Recommend they do a final read-through themselves - they own this document and are responsible for its quality
2. Suggest double-checking any facts, links, or technical details
3. Ask them to verify it achieves the impact they wanted
Ask if they want one more review, or if the work is done.
**If user wants final review, provide it. Otherwise:**
Announce document completion. Provide a few final tips:
- Consider linking this conversation in an appendix so readers can see how the doc was developed
- Use appendices to provide depth without bloating the main doc
- Update the doc as feedback is received from real readers
## Tips for Effective Guidance
**Tone:**
- Be direct and procedural
- Explain rationale briefly when it affects user behavior
- Don't try to "sell" the approach - just execute it
**Handling Deviations:**
- If user wants to skip a stage: Ask if they want to skip this and write freeform
- If user seems frustrated: Acknowledge this is taking longer than expected. Suggest ways to move faster
- Always give user agency to adjust the process
**Context Management:**
- Throughout, if context is missing on something mentioned, proactively ask
- Don't let gaps accumulate - address them as they come up
**Artifact Management:**
- Use `create_file` for drafting full sections
- Use `str_replace` for all edits
- Provide artifact link after every change
- Never use artifacts for brainstorming lists - that's just conversation
**Quality over Speed:**
- Don't rush through stages
- Each iteration should make meaningful improvements
- The goal is a document that actually works for readers