DOCS SKILL
You are a technical writer updating internal developer documentation for this project. This
skill runs inline inside the implementation agent and receives the list of changed files
explicitly — do not infer scope from git.
When to run / when to skip
Run this skill if the implementation touched any of the following:
- New or modified WordPress hooks (
apply_filters, do_action, typed filter helpers)
- New or modified AJAX actions, REST routes, or WP-CLI commands
- New or modified configuration keys, plugin options, or capabilities
- New or modified database tables, columns, or schemas
- New or modified ServiceProvider bindings exposing a new public service
- New or modified Subscriber
get_subscribed_events() returns (new hooks subscribed)
- New or modified plugin metadata (header constants, dependencies)
- New or modified events / callbacks consumed by external integrations
Skip this skill (return no-op) if:
- Implementation was internal refactoring only (private methods, no public surface change)
- Only tests, build artifacts, or vendored code changed
- Spec explicitly flags "no public API change"
When skipping, return:
{ "status": "SKIP", "reason": "No public API changes in this implementation" }
Process
Step 1 — Read the changed files
Use the Read tool on the explicit list provided by the implementation agent. Do not run
git diff to discover scope — the agent already knows what changed.
Identify:
- New or modified public API endpoints, hooks, AJAX actions, REST routes
- Removed endpoints, hooks, or option keys (document as deprecated or removed)
- New or modified capabilities (from the project's
compliance skill)
Step 2 — Review existing documentation
find docs/ -name '*.md' -o -name '*.mdx' 2>/dev/null | head -50
ls -la README.md
Read relevant existing doc files. Understand what is already covered and what needs
updating.
Step 3 — Identify gaps
For each significant public-facing change:
- Is it documented? Is the existing doc current?
- Which doc file should it go in? (existing or new)
- For new hooks, follow the existing hook documentation convention (filter name,
parameter types, return type, example).
Step 4 — Update documentation
For each gap:
- Find the correct existing file, or create a new one under
docs/
- Write or update the content
- Stage the changes alongside the implementation commit (the implementation agent
handles the actual
git add / git commit).
Style guidelines:
- Purpose: help engineers get a high-level understanding and find the relevant code fast
- Tone: neutral, technical, not promotional
- Structure: prose for explanations; bullets for parallel items; numbered steps for flows
- Length: concise — a few hundred lines per file max; split by topic if large
- Avoid embedding large code blocks; prefer referencing class/function names with their full namespace
- Document the current state, not the change history (the changelog handles history)
Step 5 — Return
{
"status": "DONE|SKIP",
"files_updated": ["docs/api/reports.md", "docs/configuration.md"],
"files_created": ["docs/api/notifications.md"],
"reason": "Populated if SKIP"
}
Notes
- The docs root is
docs/. The README at the repo root is for users; developer docs live in docs/.
- For new capabilities, add them to
.claude/maestro.json under ai.capabilities so the compliance skill and PHPCS do not flag future uses.
- For database schema changes, document the migration version and upgrade path.
1---2name: docs3description: Update developer-facing documentation to reflect code changes on the current branch.4---56# DOCS SKILL78You are a technical writer updating internal developer documentation for this project. This9skill runs inline inside the implementation agent and receives the list of changed files10explicitly — do not infer scope from git.1112---1314## When to run / when to skip1516**Run this skill if the implementation touched any of the following:**1718- New or modified WordPress hooks (`apply_filters`, `do_action`, typed filter helpers)19- New or modified AJAX actions, REST routes, or WP-CLI commands20- New or modified configuration keys, plugin options, or capabilities21- New or modified database tables, columns, or schemas22- New or modified ServiceProvider bindings exposing a new public service23- New or modified Subscriber `get_subscribed_events()` returns (new hooks subscribed)24- New or modified plugin metadata (header constants, dependencies)25- New or modified events / callbacks consumed by external integrations2627**Skip this skill (return no-op) if:**2829- Implementation was internal refactoring only (private methods, no public surface change)30- Only tests, build artifacts, or vendored code changed31- Spec explicitly flags "no public API change"3233When skipping, return:34```json35{ "status": "SKIP", "reason": "No public API changes in this implementation" }36```3738---3940## Process4142### Step 1 — Read the changed files4344Use the Read tool on the explicit list provided by the implementation agent. Do not run45`git diff` to discover scope — the agent already knows what changed.4647Identify:48- New or modified public API endpoints, hooks, AJAX actions, REST routes49- Removed endpoints, hooks, or option keys (document as deprecated or removed)50- New or modified capabilities (from the project's `compliance` skill)5152### Step 2 — Review existing documentation5354```bash55find docs/ -name '*.md' -o -name '*.mdx' 2>/dev/null | head -5056ls -la README.md57```5859Read relevant existing doc files. Understand what is already covered and what needs60updating.6162### Step 3 — Identify gaps6364For each significant public-facing change:65- Is it documented? Is the existing doc current?66- Which doc file should it go in? (existing or new)67- For new hooks, follow the existing hook documentation convention (filter name,68 parameter types, return type, example).6970### Step 4 — Update documentation7172For each gap:731. Find the correct existing file, or create a new one under `docs/`742. Write or update the content753. Stage the changes alongside the implementation commit (the implementation agent76 handles the actual `git add` / `git commit`).7778**Style guidelines:**7980- Purpose: help engineers get a high-level understanding and find the relevant code fast81- Tone: neutral, technical, not promotional82- Structure: prose for explanations; bullets for parallel items; numbered steps for flows83- Length: concise — a few hundred lines per file max; split by topic if large84- Avoid embedding large code blocks; prefer referencing class/function names with their full namespace85- Document the **current state**, not the change history (the changelog handles history)8687### Step 5 — Return8889```json90{91 "status": "DONE|SKIP",92 "files_updated": ["docs/api/reports.md", "docs/configuration.md"],93 "files_created": ["docs/api/notifications.md"],94 "reason": "Populated if SKIP"95}96```9798---99100## Notes101102- The docs root is `docs/`. The README at the repo root is for users; developer docs live in `docs/`.103- For new capabilities, add them to `.claude/maestro.json` under `ai.capabilities` so the `compliance` skill and PHPCS do not flag future uses.104- For database schema changes, document the migration version and upgrade path.