بنقرة واحدة
documentation-writer
Write scannable, progressive-discovery documentation using layered contract pattern
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Write scannable, progressive-discovery documentation using layered contract pattern
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Close a GitHub issue with discipline — resolved, superseded, or duplicate. Pre-flights body + comments, migrates substance before destroying context, cross-links both directions.
File a new GitHub issue with duplicate search, scope decision, label discovery, and preview before posting. Prevents fragmented or silently-filed issues.
Restructure the topology of GitHub issues — split one into many focused replacements, or merge multiple into one keeper. Migrates substance and cross-links before closing anything.
Update an existing GitHub issue — edit body, post a comment, retag, or reopen. Pre-flights body + comments; acknowledges stale framing instead of silently rewriting.
Review and address PR feedback using 6-dimensional code review
Structured code review using 6 dimensions. Works with or without the code-reviewer agent.
| name | documentation-writer |
| description | Write scannable, progressive-discovery documentation using layered contract pattern |
| allowed-tools | Read, Write, Edit |
Write documentation that scales: PURPOSE ≤10 tokens (skim-worthy), CRITICAL ≤20 tokens (failure modes), STANDARD PATH ≤30 lines (80% workflow), DETAIL (opt-in). Full content ≤1500 tokens.
Create documentation that readers can scan quickly: short PURPOSE, non-negotiable CRITICAL constraints, happy-path STANDARD PATH, and optional DETAIL sections.
Add YAML with name, description, tools:
---
name: skill-name
description: [One-liner, <80 chars, specific]
allowed-tools: [Bash(pattern*), Read, Write, ...]
---
Skip model: on skills — they run in the parent conversation context, so pinning a model can break long-context sessions. Agents (read-only advisors) get a fresh context and can specify model: safely.
Write in order: PURPOSE, CRITICAL, ASSUMES, STANDARD PATH, EDGE CASES, DETAIL.
Run this test for each section:
PURPOSE answers: "What does this do? When would I use it?" in ONE sentence, ≤10 tokens, answerable without reading more.
Can someone skim PURPOSE (5 seconds) and decide whether to read further? If no, rewrite shorter.
| Bad | Good |
|---|---|
| "Format code using Prettier" | "Auto-format JavaScript/TypeScript files to maintain consistent style" |
| "Commit changes" | "Create conventional commits with quality gates: validate, stage, commit" |
| "Write documentation" | "Create scannable documentation: PURPOSE ≤10 tokens, CRITICAL constraints, STANDARD PATH 80% workflow, optional DETAIL" |
Remove adjectives and examples. Answer only: what + when.
CRITICAL constrains failure modes — things that break catastrophically if ignored.
For each constraint: "If someone ignores this, does the skill catastrophically fail?" If not, move it to STANDARD PATH or EDGE CASES.
| Bad (Nice-to-Know) | Good (Critical) |
|---|---|
| "Remember to add tests" | "Never commit secrets. Run detect-private-key before staging." |
| "Keep code clean" | "Formatting must run before validators. Validators must gate commits." |
| "Follow conventions" | "All skills must use PURPOSE/CRITICAL/STANDARD PATH structure or audit fails." |
STANDARD PATH is the 80% happy case: step-by-step with prose + code.
Mix narrative and code. Each step is 1-2 sentences + example:
### 1. [Step Name]```bash and ending with ```Example structure:
### 1. [Step Name]
[Prose: what to do and why]
[command showing the action]
[Prose: what to expect next]
Can 80% of users follow this without consulting EDGE CASES? If no, skill does too much or needs redesign.
If PURPOSE or CRITICAL are running long:
If the skill covers multiple domains ("format AND test AND commit"), split it.
Can you describe the happy path in 2-3 steps without conditionals? If no, split it.
If EDGE CASES section has >5 items, skill is doing too much.
Does 80% of users follow the STANDARD PATH? If <80% follow the same path, you're covering too many workflows.
/skill-writer — Structure skills using this pattern/harness audit — Audit skills for progressive disclosure complianceCLAUDE.md — Project documentation conventions