event4u-app/agent-config

doc-coauthoring

Use when co-authoring a PRD, design doc, RFC, decision doc, or technical spec — 3-stage flow (context → section-by-section → reader-test) — even if the user just says 'help me write this spec'.

87CollectingWrites filesReads files
See how to use itView GitHub source
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/doc-coauthoring"
Automated source guideTestingDeep source

Source checked Jul 28, 2026·Refresh due Oct 26, 2026

Reorganized from the pinned upstream SKILL.md

Source-grounded testing guide: doc-coauthoring

Use when co-authoring a PRD, design doc, RFC, decision doc, or technical spec — 3-stage flow (context → section-by-section → reader-test) — even if the user just says 'help me write this spec'.

npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/doc-coauthoring"
Check the pinned source

The pinned source contains enough sections and task detail for a source-grounded deep guide; automated content is still not an independent test.

1,149 source words · 14 usable sections

Best fit

  • User starts a substantial writing task — PRD, RFC, design doc, decision doc, technical spec, proposal
  • User says "help me write this up", "draft a proposal", "we need a doc for X"
  • The output is a structured prose document the user will own and ship

Test context

  • Meta-questions — one numbered-options block (per user-interaction): doc type? primary audience? desired impact? template/format constraint? existing related docs / threads / tickets?
  • Info dump — invite stream-of-consciousness context: plain text, paths to existing docs, ticket links, thread paste.
  • Clarifying questions — 5–10 numbered questions to fill remaining gaps. User answers shorthand (1: yes, 2: see channel, 3: backwards-compat reason).

Test artifacts

  • Target document file at the agreed path (e.g. agents/proposals/{slug}.md)
  • One concluding line stating "Doc complete at {path} — ready for owner review"
  • 1. Target document file at the agreed path (e.g. agents/proposals/{slug}.md) 2. One concluding line stating "Doc complete at {path} — ready for owner review"

Testing workflow

Read doc-coauthoring through these 5 source sections

Sections are extracted automatically from the pinned SKILL.md and link back to the source.

01

Procedure

Before any drafting, inspect the landscape: search agents/ and the repo for related prior docs (grep -ril "{topic}" agents/ docs/), check the user's named ticket / thread for context, and confirm no in-flight document already covers the ask. If a near-duplicate exists, surface i…

SKILL.md · Procedure
Meta-questions — one numbered-options block (per user-interaction): doc type? primary audience? desired impact? template/format constraint? existing related docs / threads / tickets?Info dump — invite stream-of-consciousness context: plain text, paths to existing docs, ticket links, thread paste.Clarifying questions — 5–10 numbered questions to fill remaining gaps. User answers shorthand (1: yes, 2: see channel, 3: backwards-compat reason).
02

When to use

Cross-surface handoff. When this document consumes upstream work (research → document, spreadsheet → report), read the handoff envelope from surface-agent-contracts: trust verificationalreadydone, honour source restrictions, and don't re-fetch what the source already grounded.

SKILL.md · When to use
User starts a substantial writing task — PRD, RFC, design doc, decision doc, technical spec, proposalUser says "help me write this up", "draft a proposal", "we need a doc for X"The output is a structured prose document the user will own and ship
03

Goal

Move from a fuzzy ask to a complete document the user owns, by:

SKILL.md · Goal
Closing the context gap before draftingBuilding each section through brainstorm → curate → draft → refineTesting the draft with a fresh-context reader before declaring done
04

Preconditions

User explicitly wants a document (not a quick answer) save-file and str-replace-editor available Target path and filename agreed up front

SKILL.md · Preconditions
User explicitly wants a document (not a quick answer)save-file and str-replace-editor availableTarget path and filename agreed up front
05

Document format & export floor

The document surface's floor (per surface-agent-contracts):

SKILL.md · Document format & export floor
Choose the format by intent. Markdown vs .docx vs PDF follows what thePreserve edit scope. On an edit, change only what was asked and preservePrint/PDF preserves selectable text. Never rasterize a text-heavy document

SkillSignal prompt templates

Provide the task, context, and acceptance criteria

These prompts were written by SkillSignal from the source structure; they are not upstream text.

Source-grounded prompt

Use for a testing task while explicitly checking the source sections.

Use doc-coauthoring for this testing task: [task]. Inputs and constraints: [details]. Work through these pinned SKILL.md sections: “Procedure”, “When to use”, “Goal”, “Preconditions”, “Document format & export floor”. Cite the concrete requirements that shape each step, do not invent capabilities absent from the source, and verify the result against: [acceptance criteria].

Verification checklist

Verify each item before delivery

The source section “Procedure” has been checked.

The source section “When to use” has been checked.

The source section “Goal” has been checked.

The source section “Preconditions” has been checked.

Source output checked: Target document file at the agreed path (e.g. agents/proposals/{slug}.md)

Source output checked: One concluding line stating "Doc complete at {path} — ready for owner review"

Static permission evidence

Inspect the exact source lines that triggered a signal

These are source excerpts matched by deterministic rules, not findings of malicious behavior, safety, or actual execution.

Choose a different workflow

When another Skill is the better fit

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.

A separate implementation from anthropics/skills; compare its source, maintenance signals, and permission requirements.

Open source detail

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

A separate implementation from coreyhaines31/marketingskills; compare its source, maintenance signals, and permission requirements.

Open source detail

design-review

Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.

A separate implementation from event4u-app/agent-config; compare its source, maintenance signals, and permission requirements.

Open source detail

FAQ

What does the doc-coauthoring source document cover?

Use when co-authoring a PRD, design doc, RFC, decision doc, or technical spec — 3-stage flow (context → section-by-section → reader-test) — even if the user just says 'help me write this spec'.

How do I install doc-coauthoring?

The source record exposes this install command: npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/doc-coauthoring". Inspect the command and pinned source before running it.

Which permission-related actions were detected?

Static rules flagged write-files, read-files in the source; the page lists the matching lines and excerpts.

Repository stars
7
Repository forks
1
Quality
87/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

87/100
Documentation24/30
Specificity25/25
Maintenance20/20
Trust signals18/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

doc-coauthoring by anthropics

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.

ab-testing by coreyhaines31

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

design-review by event4u-app

Use when the user says "review the design", "check the UI", or wants a comprehensive UI/UX review. Uses a 7-phase methodology covering interaction, responsiveness, accessibility, and more.

hexagonal-architecture by affaan-m

Design, implement, and refactor Ports & Adapters systems with clear domain boundaries, dependency inversion, and testable use-case orchestration across TypeScript, Java, Kotlin, and Go services.

playwright-architect by event4u-app

Use when shaping a Playwright suite — locator strategy, Page Object boundaries, fixture composition, flake-prevention architecture, CI-vs-local split — even on 'design our E2E tests'.

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 6 min

doc-coauthoring

When to use

Cross-surface handoff. When this document consumes upstream work (research → document, spreadsheet → report), read the handoff envelope from surface-agent-contracts: trust verification_already_done, honour source restrictions, and don't re-fetch what the source already grounded.

Use this skill when:

  • User starts a substantial writing task — PRD, RFC, design doc, decision doc, technical spec, proposal
  • User says "help me write this up", "draft a proposal", "we need a doc for X"
  • The output is a structured prose document the user will own and ship

Do NOT use when:

  • Authoring agent docs / module docs / AGENTS.md → agent-docs-writing
  • Writing a README → readme-writing / readme-writing-package
  • Writing an ADR (process is fixed, no co-authoring loop) → adr-create
  • Code documentation, inline comments, docstrings

Goal

Move from a fuzzy ask to a complete document the user owns, by:

  1. Closing the context gap before drafting
  2. Building each section through brainstorm → curate → draft → refine
  3. Testing the draft with a fresh-context reader before declaring done

Preconditions

  • User explicitly wants a document (not a quick answer)
  • save-file and str-replace-editor available
  • Target path and filename agreed up front

Document format & export floor

The document surface's floor (per surface-agent-contracts):

  • Choose the format by intent. Markdown vs .docx vs PDF follows what the user will DO with it — when a named format is requested, produce THAT format via the document tooling; never silently substitute markdown for a .docx request. (fixture: ssac-docx-requested-markdown-only.)
  • Preserve edit scope. On an edit, change only what was asked and preserve the rest of the document (mirrors minimal-safe-diff).
  • Print/PDF preserves selectable text. Never rasterize a text-heavy document to an image-only PDF when browser print or native export keeps the text selectable. (fixture: ssac-pdf-screenshot-rasterized.)
  • Verify the output opens/exports. Confirm the generated file opens / round-trips (design-artifact-verification); where the format's tooling is absent, ship the source + say what could not be verified rather than claiming a produced file.

Procedure

0. Inspect existing material

Before any drafting, inspect the landscape: search agents/ and the repo for related prior docs (grep -ril "{topic}" agents/ docs/), check the user's named ticket / thread for context, and confirm no in-flight document already covers the ask. If a near-duplicate exists, surface it and ask whether to extend or supersede.

1. Context gathering

Close the gap between what the user knows and what you know.

  1. Meta-questions — one numbered-options block (per user-interaction): doc type? primary audience? desired impact? template/format constraint? existing related docs / threads / tickets?
  2. Info dump — invite stream-of-consciousness context: plain text, paths to existing docs, ticket links, thread paste.
  3. Clarifying questions — 5–10 numbered questions to fill remaining gaps. User answers shorthand (1: yes, 2: see #channel, 3: backwards-compat reason).
  4. Exit gate — ask "ready to draft, or more context?" — wait for confirmation. Do not start scaffolding the file until the user confirms.

2. Refinement & structure

Build the document section by section.

  1. Agree on structure — propose 3–5 sections based on doc type and context. Ask user to confirm or adjust.
  2. Scaffold the file — use save-file to create the doc with placeholder text per section ([To be written]). One commit-equivalent action; review with the user before populating.
  3. Pick the starting section — suggest the one with the most unknowns (usually the core decision / proposal). Never start with the summary.
  4. Per-section loop — repeat for each section:
    • Clarifying questions — 5–10 numbered questions about what this section covers
    • Brainstorm — 5–20 numbered options of what could go in. Offer "more options?" at the end.
    • Curation — user picks: keep 1,4,7,9 / remove 3 (dupes 1) / combine 11+12. Parse freeform feedback if the user gives "looks good but ...".
    • Gap check — "anything missing for this section?"
    • Draftstr-replace-editor to replace the placeholder. Never reprint the whole doc.
    • Iterate — user feedback in, surgical edits out. After 3 iterations with no substantial change, ask "anything to remove without losing value?"
    • Section exit gate — "section done — move to next?"
  5. Whole-doc review at 80% complete — re-read the full file. Surface contradictions, redundancy, generic filler. Apply final edits.

3. Reader test

Verify the doc works for someone without your context.

  1. Predict reader questions — generate 5–10 questions a real reader would ask after reading.
  2. Run the test — pick one:
    • ai-council available → invoke with the doc + predicted questions; treat each council member as a fresh reader.
    • Otherwise → instruct the user to open a fresh Claude / ChatGPT, paste the doc, ask the questions one by one. Capture answers.
  3. Additional fresh-reader checks (always): "what is ambiguous?" · "what context does this doc assume readers have?" · "internal contradictions?"
  4. Report — surface where the fresh reader got it wrong, where assumptions break.
  5. Loop back to Stage 2 for problematic sections until the fresh reader answers cleanly and surfaces no new gaps.

4. Handover

  1. Final read-through by the user (they own the doc).
  2. Verify facts, links, technical details.
  3. Confirm intended impact achieved.
  4. Surface the final file path. Done.

Output format

  1. Target document file at the agreed path (e.g. agents/proposals/{slug}.md)
  2. One concluding line stating "Doc complete at {path} — ready for owner review"

Gotcha

  • One question per turn (Iron Law from ask-when-uncertain) — never bundle clarifying + brainstorm + curate prompts in one message.
  • Never reprint the full doc during iteration — always use str-replace-editor. Reprinting wastes tokens and creates merge drift.
  • Reader test is not optional — without it, you ship the version that makes sense to you, not to readers. Skip only on explicit user override.
  • Sub-agent absenceai-council may not be configured. Have the manual fresh-Claude fallback ready (Stage 3 step 2).
  • Image alt-text — if the doc embeds images, add alt-text inline; without it, fresh-reader tools can't see them.
  • Language discipline — keep the doc body in English (per language-and-tone). For verbatim German user phrases or interview quotes, use DE: … · EN: … anchor blocks.

Frugality Standards

Apply the Frugality Charter.

  • Per the default-terse rule, each section opens with content, not "In this section …".
  • Per the cheap-question check, numbered-options blocks only when consequences differ — skip "yes / no, continue?" type prompts.
  • Per the post-action summary suppression, the final output is the doc — no wrapping "Summary of what we did" block.

Pre-save self-check:

  1. Does any section open with a narrative preamble instead of content?
  2. Are clarifying questions bundled when one-at-a-time would surface user priorities better?
  3. Is the reader-test stage skipped or merged into a "we're done" claim?
  4. Is non-English prose present outside DE: / EN: anchor blocks?

Do NOT

  • Skip Stage 1 — straight-to-drafting produces docs that miss audience and impact
  • Bundle 5+ questions into one numbered block — breaks one-question-per-turn
  • Reprint the whole doc on every iteration
  • Declare "done" without the Stage 3 reader test
  • Generate doc content from scratch when the user has existing context — gap-closing is the whole point

→ Final prose pass for audience-facing output: humanizer — remove AI-writing tells before delivery.

Skill path
src/skills/doc-coauthoring/SKILL.md
Commit SHA
0adf49a8ae84
Repository license
MIT
Data collected