doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
1How It Works & Mechanism
The claimed 'guided co-authoring' relies on no code whatsoever, but purely on prompt orchestration: the model drives the user as an active guide following a three-phase interaction protocol (Context Gathering / Refinement & Structure / Reader Testing), with capabilities implemented entirely via structured conversational instructions.
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.
Stage 1 first transfers the 'knowledge in the user's head' into conversational context: 5 meta-questions + encouraging freeform brain dumps + generating 5-10 clarification questions based on gaps, using determinable exit criteria to prevent writing prematurely.
**Goal:** Close the gap between what the user knows and what Claude knows, enabling smart guidance later.
Stage 2 breaks drafting down into a fixed 6-step cycle per section (clarification -> brainstorm 5-20 items -> numbered curation -> gap check -> draft -> iterate), turning vague user feedback into executable instructions via a 'numbered selection' protocol.
Generate 5-20 numbered options based on section complexity. At the end, offer to brainstorm more if they want additional options.
Drafting and iteration entirely utilize host editing tools (`create_file` to establish the artifact scaffold / `str_replace` for surgical edits), deliberately maintaining 'never reprint the whole doc' to prevent drift caused by repeatedly rewriting long documents in full.
- Use `str_replace` to make edits (never reprint the whole doc)
Stage 3 Reader Testing is the skill's most distinctive mechanism: using a 'zero-context fresh Claude sub-agent' to simulate real readers, verifying whether the document remains self-contained outside the author's head—turning the 'reader's perspective' into an automated check.
**Goal:** Test the document with a fresh Claude (no context bleed) to verify it works for readers.
User agency is preserved throughout: can be declined at the start, skipped mid-way, or pivoted to freeform anytime; the process guides without railroading, maintaining clear boundaries that 'the user owns the document.'
If user declines, work freeform. If user accepts, proceed to Stage 1.
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| api | create_file(宿主内建 artifact 工具,非外部 API) |
| api | str_replace(宿主内建编辑工具,非外部 API) |
| api | sub-agents(Claude Code 运行时能力,非外部 API;skill 未指定具体 task 工具名) |
| api | 集成连接器 Slack/Teams/Google Drive/SharePoint/MCP 服务器 —— 条件性:仅在『If integrations are available』时提及,由宿主提供、无绑定端点 |
| network | claude.ai —— 仅作为用户手动 Reader Testing 的文字入口(用户自行打开新会话,skill/agent 不发起网络调用) |
4Recommended Governance & Evidence
- 本地工作目录: File read/write and artifact output: performs `str_replace` edits on co-authored documents — SKILL.md L188/L208
5Second-Pass Verification
- [ok] 目录内仅 SKILL.md、无脚本/引用/模板等资源 — git ls-files doc-coauthoring/ 只返回 doc-coauthoring/SKILL.md
- [ok] description 引用逐字一致 — L3 原文与 meta.official_desc 完全一致
- [ok] create_file / str_replace 调用点真实存在 — L135、L188、L208、L367-368 均实存,且 L367-368 收尾 Tips 再次强调同一工具对
- [ok] claude.ai 网络提及 — 全文件唯一 http(s) 命中为 L303;L72/L290 仅文字提及 Claude.ai 产品名,无调用语义
- [ok] Slack/Teams/Google Drive/SharePoint/MCP 集成语 — L70 实存且为条件式(If integrations are available),属宿主能力提示而非 skill 自带 API
- [ok] sub-agent Reader Testing 机制 — L251-253(无需用户参与的自动路径)、L265、L273 实存,L290 起手动路径对照完整
- [ok] 无凭证读取 — grep api key/token/secret/password/credential/env/export/keychain 全文件零命中
- [ok] 无脚本执行面 — grep bash/python/subprocess/curl/wget/exec( 全文件零命中;SKILL.md 内无代码块
6Verdict & Scenarios
930944490c8451b9…