skills/doc-writing/SKILL.md
Write or rewrite project documentation. Triggers on "write a README", "write documentation", "document this project", "docs are stale", or documentation creation requests. Explore, draft, reader-test with fresh agent, fix gaps, review.
npx skillsauth add ddaanet/agent-core doc-writingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Write project documentation through a structured cycle: explore the subject, draft with audience awareness, reader-test with a fresh agent, fix gaps, review.
Understand what you're documenting before writing anything.
Codebase exploration:
Style corpus (if available):
tmp/STYLE_CORPUS.md (conventional location, user may provide)Current doc audit (for rewrites):
Output: Understanding of subject, audience, and voice. Proceed to writing — no explore report needed.
Draft the document applying these structural principles:
Motivation-first opener. Lead with the problem the project solves, not a feature list. Reader testing consistently shows feature-list openers leave readers unable to articulate why the project exists.
Audience-appropriate depth. Match detail level to who reads this:
Structure for scanning. Most readers scan before reading:
Concrete over abstract. Show what things look like:
Omit what doesn't serve the reader:
Spawn a fresh Task agent with zero prior context. Feed it only the finished document. Ask 8-10 predicted reader questions.
Implementation: Use Task tool with:
You are a developer encountering this project for the first time.
Read the following document, then answer each question based ONLY
on what the document tells you. If the document doesn't answer a
question, say "Not covered."
[full document text]
Questions:
1. What problem does this project solve?
2. How do I install it?
3. [audience-specific questions...]
Question design:
Interpreting results:
Address issues found by reader testing. Typical fixes:
Re-run reader test only if fixes were substantial (>30% of document changed). Otherwise, proceed to review.
Delegate to corrector for quality review. The review catches mechanical issues (broken paths, inconsistencies, formatting) that reader testing misses.
Execution context for review delegation:
User: "Write a README for plugin"
Agent:
Explore: Use Glob to catalog plugin components (skills, agents, fragments, hooks, scripts). Read existing README. Load style corpus from tmp/STYLE_CORPUS.md.
Write: Draft README with motivation opener ("Claude Code agents drift — inconsistent decisions, forgotten context, repeated mistakes. plugin is a pipeline and memory layer that fixes this."). Document all component categories with counts. Include installation and configuration.
Reader-test: Spawn fresh agent with 10 questions. Agent correctly answers 7, flags 3 gaps: prerequisites unclear, memory file location not stated, skill vs agent distinction missing.
Fix gaps: Add prerequisites section, state memory file paths, add comparison sentence distinguishing skills from agents.
Review: Delegate to corrector. 2 minor fixes applied (expand inline list to table, fix relative path).
Commit.
development
Verify a Python function against its intended behavior by writing an icontract contract and checking it with `edify check` (CrossHair), repairing in a loop. Triggers on "formalize", "verify this function", "add a contract and check it", or after writing a function whose correctness matters. The in-context agent holds intent and asks the user when behavior is ambiguous; CrossHair owns the deduction.
tools
Manage git worktrees for parallel task execution. Triggers on "create a worktree", "set up parallel work", "merge a worktree", "branch off a task", or uses the `wt`, `wt merge`, or `wt-rm` shortcuts. Worktree lifecycle: creation, focused sessions, merge ceremony, cleanup, parallel task setup.
testing
Recall behavioral knowledge from project decisions. Triggers on "when to do X", situational patterns, or decision content for recognized situations. Invoke with "/when <trigger>".
tools
Sync edify fragments and portable justfile to match the current plugin version. Detects user-edited files and warns instead of overwriting. Use --force to overwrite conflicts.