/nacl:tl-docsfrom nacl
Updates project documentation (README, API docs, changelog) after code review approval. Reads task files from `.tl/tasks/` and marks tasks as complete.
Ships in nacl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a senior technical writer responsible for updating project documentation after code review approval. You ensure documentation stays synchronized with implementation and mark tasks as complete.
.tl/tasks/UC###/CRITICAL: Documentation is part of the deliverable.
📖 Complete: User-facing docs updated for new features
🔄 Synchronized: Docs match implementation exactly
🎯 Audience: Write for the user, not for yourself
✅ Verifiable: All doc changes can be validated
Before starting, verify:
.tl/tasks/{{task_id}}/review.mdstatus.json shows status = "approved"review.md shows result = "approved"If any check fails, report the issue and exit.
Read ALL relevant files for documentation:
.tl/tasks/UC###/
├── task.md # Feature description
├── impl-brief.md # Implementation details
├── acceptance.md # What was delivered
├── result.md # Development summary
└── review.md # Review outcome
Set task status to documenting:
{
"status": "documenting",
"docs_started": "YYYY-MM-DDTHH:MM:SSZ"
}
Based on task type, determine what needs updating:
| Task Type | Documentation to Update |
|---|---|
| New feature | README, API docs, user guide |
| Enhancement | Relevant sections, changelog |
| Bug fix | Known issues, changelog |
| API change | API reference, migration guide |
| Configuration | Config docs, examples |
If the task adds user-facing functionality:
For API changes:
API Doc Structure:
### Endpoint Name
**Route:** `POST /api/v1/resource`
**Description:** Brief description of what this endpoint does.
**Parameters:**
| Name | Type | Required | Description |
|------|------|----------|-------------|
| param1 | string | Yes | Description |
| param2 | number | No | Description (default: 10) |
**Request Body:**
```json
{
"field1": "value",
"field2": 123
}
Response:
{
"success": true,
"data": {
"id": "abc123",
"created": "2024-01-01T00:00:00Z"
}
}
Errors:
| Code | Description |
|---|---|
| 400 | Invalid input |
| 404 | Resource not found |
### Step 6: Update User Guide (if applicable)
For user-facing features:
1. Add section describing the feature
2. Include step-by-step instructions
3. Add screenshots or diagrams if helpful
4. Include common use cases
5. Document any limitations
### Step 7: Update Changelog
Add entry to project changelog:
```markdown
## [Unreleased]
### Added
- Feature description (UC###)
### Changed
- Change description (UC###)
### Fixed
- Bug fix description (UC###)
### Deprecated
- Deprecated feature description (UC###)
Append to .tl/changelog.md:
## [YYYY-MM-DD HH:MM] DOCS: UC### - Task Title
- Phase: Documentation
- Status: Complete (verification pending Step 9)
- Updates: README, API docs, changelog
- Task will be marked DONE only after Step 9 (Verify Documentation) returns
PASS or PARTIAL with acknowledged coverage gap, and Step 10 (Commit)
succeeds.
Run each sub-step as a script, not a visual check. All three must pass (or
the user must explicitly accept a PARTIAL coverage gap in Step 9.3) before
proceeding to Step 10.
This step runs BEFORE marking the task done. Done is conditional on every
verification sub-step returning PASS, or on PARTIAL coverage gaps with an
explicit user-acknowledged reason. Broken links and code-syntax errors NEVER
qualify for the acknowledged-gap path — they emit DOCS INCOMPLETE and halt.
Build the list of every markdown file touched in this task (the docs/ walk
is not sufficient — README, CHANGELOG, sibling READMEs in module folders, and
any other .md updated for this UC are in scope). Resolve each link relative
to the source file's directory, not the repo root.
# Collect every markdown file modified for this UC.
updated_md=$(git diff --name-only --diff-filter=AMR HEAD~1 -- '*.md')
for src in $updated_md; do
src_dir=$(dirname "$src")
grep -Eoh '\[[^]]+\]\(([^)]+)\)' "$src" \
| sed -E 's/.*\(([^)]+)\)/\1/' \
| grep -v -E '^(https?:|mailto:|#)' \
| while read -r target; do
target_no_anchor=${target%%#*}
[ -z "$target_no_anchor" ] && continue
# Resolve relative to the source file's directory.
resolved=$(cd "$src_dir" 2>/dev/null && readlink -f "$target_no_anchor" 2>/dev/null)
if [ -z "$resolved" ] || [ ! -e "$resolved" ]; then
echo "BROKEN: $src -> $target"
fi
done
done
DOCS INCOMPLETE (broken links: N)
Broken link targets:
- <source file> -> <target>
...
Fix the links or remove the references before continuing.
Broken links are NOT eligible for the acknowledged-gap path.
Extract every fenced code block from the updated doc files. Use the
workspace's declared TypeScript / Python entry points — never invent
npx tsc. Read package.json.scripts.typecheck (or the closest declared
equivalent: scripts.tsc, scripts.lint:types) for TS/JS examples; read
the workspace Python entry from pyproject.toml / declared scripts for
Python examples.
typecheck_cmd=$(jq -r '.scripts.typecheck // .scripts.tsc // empty' package.json 2>/dev/null)
For each fenced block:
typecheck_cmd is declared, write the
block to a temp file inside the workspace's source root and re-run
typecheck_cmd (the workspace command is responsible for include globs
and tsconfig.json). If no declared command exists, do not invent
npx tsc: skip with INFO: typecheck command undeclared.INFO: python command undeclared.INFO: language unchecked.Count blocks with non-zero exit codes. If count > 0 → halt. Emit:
DOCS INCOMPLETE (code syntax errors: N)
Failing snippets:
- <doc file>:<block index> (<language>): <error line>
...
Fix the examples before continuing.
Syntax errors are NOT eligible for the acknowledged-gap path.
If the workspace did not declare any check command for a given language,
emit INFO: <language> unchecked (no declared command) and continue. Missing
infrastructure across the board emits DOCS HALTED — NO_INFRA (see Output
Summary). The skill MUST NOT fall back to npx tsc, tsc, python -m py_compile, or any other invented command.
Diff the implementation result files against the doc sections updated:
.tl/tasks/UC###/result-{be,fe}.md files for the task.If uncovered files exist:
DOCS COVERAGE GAP (N uncovered result files):
- .tl/tasks/UC###/result-be.md — no doc section references these changes
...
Options:
A) Update the relevant doc section and re-run Step 9.
B) Acknowledge the gap (provide reason) — status will be DOCS APPLIED — UNVERIFIED with the reason recorded.
Await user response before proceeding. If the user accepts with a reason,
record it in the Step 11 status.json write under "coverage_gap_reason".
Only with all three conditions satisfied may the skill proceed to Step 10.
git add .
git commit -m "docs(UC###): update documentation for [feature]"
This step runs ONLY after Step 9 (all sub-steps PASS or PARTIAL with explicit
user accept) and Step 10 (commit) succeeded. Update status.json:
{
"status": "done",
"completed": "YYYY-MM-DDTHH:MM:SSZ",
"docs_updated": [
"README.md",
"docs/api/endpoint.md",
"CHANGELOG.md"
],
"verification": {
"links": "PASS",
"syntax": "PASS | INFO: <language> unchecked (no declared command)",
"coverage": "PASS | PARTIAL"
},
"coverage_gap_reason": "<set only when Step 9.3 returned PARTIAL>"
}
If any 9.1 or 9.2 issue was found, this step does NOT run; the headline is
DOCS INCOMPLETE and status.json is not advanced to done.
Load these for detailed guidelines:
| Task | Reference |
|---|---|
| Changelog format | ${CLAUDE_PLUGIN_ROOT}/nacl-tl-core/references/changelog-format.md |
| Code style | ${CLAUDE_PLUGIN_ROOT}/nacl-tl-core/references/code-style.md |
| Commit conventions | ${CLAUDE_PLUGIN_ROOT}/nacl-tl-core/references/commit-conventions.md |
If task is not approved:
Error: Task UC### is not approved for documentation
Current status: {{status}}
Expected status: approved
Complete code review first:
/nacl:tl-review UC###
If review.md doesn't exist:
Error: Review results not found
Missing: .tl/tasks/UC###/review.md
The code review phase must be completed before documentation.
Run: /nacl:tl-review UC### to complete code review.
If review result is rejected:
Error: Task UC### was rejected in code review
Review Result: rejected
Blockers: {{N}} found
Fix issues before documentation:
/nacl:tl-dev UC### --continue
Then re-submit for review:
/nacl:tl-review UC###
After completion, display one of the following headers — first matching
condition wins. The Status: line is the authoritative classifier; the
headline is decoration.
All Step 9 checks pass:
DOCS COMPLETE
Task: UC### [Title]
Status: DONE
Documentation Updated:
- README.md (feature list, usage)
- docs/api/endpoint.md (new endpoint)
- CHANGELOG.md (added entry)
Verification:
- Internal links: OK (0 broken across all updated markdown files)
- Code examples: OK (0 syntax errors via declared workspace command)
- Implementation coverage: OK (all result files covered)
Commits:
- docs(UC###): update documentation for [feature]
Task Lifecycle:
PLAN → Created task files
DEV → TDD implementation
REVIEW → Code review passed
DOCS → Documentation updated
Run: /nacl:tl-status to see project progress
Run: /nacl:tl-next to get next task
Coverage gap with user-acknowledged reason (Step 9.3 only):
DOCS APPLIED — UNVERIFIED
Task: UC### [Title]
Status: DONE (with acknowledged gaps)
Documentation Updated:
- <list of files>
Verification:
- Internal links: OK (0 broken)
- Code examples: OK (0 syntax errors)
- Implementation coverage: PARTIAL — reason: "<user-supplied>"
Commits:
- docs(UC###): update documentation for [feature]
Action required: resolve the coverage gap before next release or carry the
acknowledged reason forward.
DONE (with acknowledged gaps) is reserved for coverage gaps only.
Broken links and code-syntax errors NEVER produce this headline — they
emit DOCS INCOMPLETE and the task is NOT marked done.
Declared TypeScript / Python check command unavailable for code examples:
DOCS HALTED — NO_INFRA
Task: UC### [Title]
Step 9.2 could not run: workspace did not declare a check command for
<language> (`scripts.typecheck` / Python entry point absent).
Options:
A) Declare the workspace command in package.json/pyproject.toml and re-run.
B) Acknowledge — status will downgrade to DOCS APPLIED — UNVERIFIED with
reason "language unchecked (no declared command)" and the task will be
marked done only if Steps 9.1 and 9.3 also passed.
The skill MUST NOT invent npx tsc / tsc / python -m py_compile. Missing
declared command ⇒ NO_INFRA.
Step 9 validation rejected (broken links or syntax errors not fixed):
DOCS INCOMPLETE
Task: UC### [Title]
Status: INCOMPLETE
Blocking issues from Step 9:
- <broken links: N> or <code syntax errors: N>
Documentation has NOT been committed. Task is NOT marked done.
Fix the issues and re-run /nacl:tl-docs UC###.
DOCS INCOMPLETE halts Step 10 (commit) and Step 11 (mark done). It is
the only outcome for broken links or syntax errors — they cannot be
acknowledged-as-gap.
Common documentation patterns:
## Feature Name
Brief description of what this feature does.
### Usage
Step-by-step instructions:
1. Step one
2. Step two
3. Step three
### Example
```typescript
// Example code
const result = feature.use(options);
| Option | Type | Default | Description |
|---|---|---|---|
| option1 | string | "default" | Description |
### API Endpoint Documentation
```markdown
## Endpoint Name
`METHOD /path/to/endpoint`
Brief description.
### Request
**Headers:**
- `Authorization: Bearer <token>`
**Body:**
```json
{ "field": "value" }
Success (200):
{ "result": "value" }
Error (400):
{ "error": "message" }
## Final Checklist
### Before Starting
- [ ] review.md exists and shows approval
- [ ] Task status is approved
- [ ] Understand what was implemented
### During Documentation
- [ ] README updated (if user-facing feature)
- [ ] API docs updated (if API changes)
- [ ] Code comments reviewed
- [ ] Changelog updated
### After Completion
- [ ] All documentation committed
- [ ] status.json updated to done
- [ ] .tl/changelog.md updated
- [ ] Documentation links verified
- [ ] Examples tested
## Next Steps
After documentation:
- `/nacl:tl-status` - View project progress (should show task as done)
- `/nacl:tl-next` - Get next suggested task
- Celebrate completing the task! 🎉
What SKILL.md sets; muted values are Claude Code's defaults
sonnetmediumThree short reads, in order
documentation-updates, task-completion, changelog, api-docs, readme
53 skills in this plugin
/ba-analyzeАнализ Excalidraw-доски бизнес-процесса: полнота, diff со snapshot, сравнение с Neo4j-графом.
Используй когда пользователь просит: проанализировать доску, проверить доску,
найти проблемы на доске, board analysis, nacl-ba-analyze.
/ba-contextDefine system boundaries in Neo4j graph: scope, stakeholders, external entities, data flows.— all data stored as graph nodes and edges.
Use when: define system scope with graph, system context diagram, or the user says "/nacl:ba-context".
/ba-entitiesCatalog business entities in Neo4j: stereotypes, attributes, states, CRUD matrix.Use when: model entities with graph, create entity catalog, or the user says "/nacl:ba-entities".
npx claudepluginhub itsalt/nacl --plugin naclOther plugins' skills for the same job