docs-createlisted
Install: claude install-skill devgirishattri/agent-plugins
# Creating Documentation
A structured process for creating and updating project documentation. Documents use **reference-based notation** (function names, table names, file paths) for describing what exists, because references stay accurate as code evolves while line numbers and copied code rot immediately. Use **focused code examples** for showing how to do things — recurring patterns, conventions, and interfaces that developers need to copy and adapt.
## Process
0. **Reviewer-role preflight — MANDATORY, run FIRST, before any other step.** Resolve `PLUGIN_ROOT` from the absolute source path Codex supplied for this selected `SKILL.md` (go up two directories from `<plugin-root>/skills/docs-create/SKILL.md`). In a separate read-only step, resolve the repository root with `git rev-parse --show-toplevel`; if this is not a Git repository, resolve the current working directory instead. Substitute both absolute paths literally below. Invoke the preflight as one literal Bash segment (no `export`/`env`/assignment prefix, command substitution, chaining, piping, or redirection):
```bash
bash "<PLUGIN_ROOT>/scripts/docs-write.sh" --repo "<REPO_ROOT>"
```
Exit `0` means proceed. Any non-zero exit — including `6` with stderr `reviewer role: docs writes refused`, or an unresolved fleet identity asking to set `KNOWLEDGE_PANE_NAME` — means **stop immediately**: do not create/edit/delete any file (including `TODO.md`/`ISSUES.md`), and relay the script's stderr line as the reason