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
- Context Gathering: User provides all relevant context while Claude asks clarifying questions
- Refinement & Structure: Iteratively build each section through brainstorming and editing
- Reader Testing: Test the doc with a fresh Claude (no context) to catch blind spots before others read it
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:- What type of document is this? (e.g., technical spec, decision doc, proposal)
- Who’s the primary audience?
- What’s the desired impact when someone reads this?
- Is there a template or specific format to follow?
- Any other constraints or context to know?
- 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
- 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
- Info dump stream-of-consciousness
- Point to team channels or threads to read
- Link to shared documents
-
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
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:- Clarifying questions will be asked about what to include
- 5-20 options will be brainstormed
- User will indicate what to keep/remove/combine
- The section will be drafted
- It will be refined through surgical edits
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
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”
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
Usestr_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_replaceto 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)
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
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:- Open a fresh Claude conversation: https://claude.ai
- Paste or share the document content (if using a shared doc platform with connectors enabled, provide the link)
- Ask Reader Claude the generated questions
- The answer
- Whether anything was ambiguous or unclear
- What knowledge/context the doc assumes is already known
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:- Recommend they do a final read-through themselves - they own this document and are responsible for its quality
- Suggest double-checking any facts, links, or technical details
- Ask them to verify it achieves the impact they wanted
- 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
- 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
- Throughout, if context is missing on something mentioned, proactively ask
- Don’t let gaps accumulate - address them as they come up
- Use
create_filefor drafting full sections - Use
str_replacefor all edits - Provide artifact link after every change
- Never use artifacts for brainstorming lists - that’s just conversation
- Don’t rush through stages
- Each iteration should make meaningful improvements
- The goal is a document that actually works for readers