doc-coauthoring
Guide users through structured collaborative documentation creation. Use when user wants to write documentation, update README, create architecture docs, draft proposals, technical specs, decision docs, refactor documentation, create API docs, or document code.
Best use case
doc-coauthoring is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Guide users through structured collaborative documentation creation. Use when user wants to write documentation, update README, create architecture docs, draft proposals, technical specs, decision docs, refactor documentation, create API docs, or document code.
Teams using doc-coauthoring should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/doc-coauthoring/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How doc-coauthoring Compares
| Feature / Agent | doc-coauthoring | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Guide users through structured collaborative documentation creation. Use when user wants to write documentation, update README, create architecture docs, draft proposals, technical specs, decision docs, refactor documentation, create API docs, or document code.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Doc Co-Authoring Workflow Collaborative workflow for creating documentation that works for readers. ## When to Offer This Workflow **Trigger conditions:** - Writing documentation: "write a doc", "draft a proposal", "create a spec", "write up" - Code documentation: "write README", "create API docs", "document this code", "architecture docs" - Specific doc types: "PRD", "design doc", "decision doc", "RFC", "technical spec" - User starting any substantial writing task ## Workflow Variants | Variant | Stages | Use For | |---------|--------|---------| | **Full Collaborative** | Context Gathering → Refinement → Reader Testing | Proposals, specs, decisions, RFCs | | **Streamlined Collaborative** | Context Gathering → Refinement | READMEs, API docs, architecture guides | Both variants use collaborative principles (clarifying questions, iterative refinement). Streamlined skips Reader Testing since code docs have different validation (working examples, API accuracy). ## Three Stages Overview ### Stage 1: Context Gathering Close the gap between what the user knows and what Claude knows. Ask about doc type, audience, desired impact, and template. Encourage info dumping. Ask clarifying questions until understanding is sufficient. ### Stage 2: Refinement & Structure Build the document section by section. For each section: ask clarifying questions, brainstorm options, let user curate, draft, and refine through surgical edits. Use code documentation patterns as scaffolds for READMEs, APIs, etc. ### Stage 3: Reader Testing (Full Collaborative only) Test the document with a fresh Claude (no context bleed) to verify it works for readers. If sub-agents available, test directly. Otherwise, guide user through manual testing. ## Initial Offer Template When triggered, offer the workflow: ``` I can help you write that [doc type]. I use a structured workflow that helps ensure the doc works well when others read it: 1. **Context Gathering**: You share relevant context while I ask clarifying questions 2. **Refinement & Structure**: We build each section through brainstorming and iteration 3. **Reader Testing**: We test the doc with a fresh Claude to catch blind spots (or skip for code docs like READMEs) Would you like to try this workflow, or prefer to work freeform? ``` ## Code Documentation Patterns For code docs, select the appropriate pattern as the starting scaffold: | Doc Type | Pattern | |----------|---------| | README | Features, Installation, Quick Start, Config, API, Contributing | | API Docs | OpenAPI spec with paths, schemas, examples | | Architecture | Overview, Component Diagram, Components table, Data Flow | | Configuration | Required/Optional vars table, example config | | Module | Purpose, Architecture diagram, Components, Methods table | See [WORKFLOW.md](WORKFLOW.md) for complete patterns. ## Resources - [WORKFLOW.md](WORKFLOW.md) - Full stage procedures and code patterns - [EXAMPLES.md](EXAMPLES.md) - Complete templates for proposals, specs, READMEs - [TROUBLESHOOTING.md](TROUBLESHOOTING.md) - Common issues and solutions ## Tips - **Be direct and procedural** - explain rationale briefly when it affects user behavior - **Give user agency** - always allow them to skip stages or work freeform - **Track context** - address gaps as they come up, don't let them accumulate - **Use surgical edits** - never reprint entire doc, use str_replace - **Quality over speed** - each iteration should make meaningful improvements - **For code docs** - verify examples work, check API signatures against actual code
Related Skills
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
ai-training-data-generation
Generate high-quality training datasets from documents, text corpora, and structured content. Use when creating AI training data from dictionaries, documents, or when generating examples for machine learning models. Optimized for low-resource languages and domain-specific knowledge extraction.
ai-model-cascade
A production-ready pattern for integrating AI models (specifically Google Gemini) with automatic fallback, retry logic, structured output via Zod schemas, and comprehensive error handling. Use when integrating AI/LLM APIs, need automatic fallback when models are overloaded, want type-safe structured responses, or building features requiring reliable AI generation.
ai-ml-timeseries
Operational patterns, templates, and decision rules for time series forecasting (modern best practices): tree-based methods (LightGBM), deep learning (Transformers, RNNs), future-guided learning, temporal validation, feature engineering, generative TS (Chronos), and production deployment. Emphasizes explainability, long-term dependency handling, and adaptive forecasting.
AI Integration Expert
Work with Leavn AI features - UnifiedAIService, on-device models, devotional generation, novelization, kids mode, image generation with Stable Diffusion
ai-engineer-expert
Expert-level AI implementation, deployment, LLM integration, and production AI systems
ai-coaching
Multi-turn conversational AI for intent extraction, clarification, and generation readiness detection. Guides users through articulating creative intent with structured parameter extraction.
ai-architect-expert
Expert-level AI system design, MLOps, architecture patterns, and AI infrastructure
webrtc-timing-test
Measure WebRTC connection timing on Daily rooms. Use when testing Daily video call connection performance, measuring ICE negotiation time, benchmarking WebRTC setup latency, or when asked to test how long a Daily room takes to connect.
webmcp-setup
Strategic guidance for adding WebMCP to web applications. Use when the user wants to make their web app AI-accessible, create LLM tools for their UI, or enable browser automation through MCP. Focuses on design principles, tool architecture, and testing workflow.
web-to-app
将任意网页转换为桌面应用,支持 macOS/Windows/Linux 三大平台。使用 Rust + Tauri 技术栈,生成的应用体积小(约 5MB)、性能高。支持自定义图标、窗口大小、快捷键等丰富配置。
web-testing
Playwright automation, Chrome DevTools debugging, and browser interaction testing. Use for E2E/unit tests, capturing screenshots, inspecting network/console logs, or validating user flows in web applications.