document-completion
Document a completed issue in the wiki (functional, technical, decision, solution).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Document a completed issue in the wiki (functional, technical, decision, solution).
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Add a comment to an issue.
Summarize a ticket's history, description, comments, and status.
Summarize recent activity across issues and commits.
Start tracked work: find/create ticket, set in-progress, track progress in comments.
Bump the tracker VERSION (semver) so update-check hook notifies existing installs.
Create a new issue (ticket, bug, feature request).
| name | document-completion |
| description | Document a completed issue in the wiki (functional, technical, decision, solution). |
| argument-hint | <ISSUE-ID> |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash(jq *) |
| disable-model-invocation | false |
When an issue is completed, create or update the right documentation based on what was done.
Keep wiki content lean. Every word is re-read on later sessions.
Documented in wiki: <link>. <Branch/PR>. Nothing else.## Documentation section: links only — no prose.Run this automatically after setting an issue status to "done" or "review".
$ARGUMENTS is provided and looks like an issue ID (e.g., PROJ-5): use that issue.jq (TOON output, no full-file dump) for the most recently updated done or review issue:
jq -r '
[.[] | select(.status == "done" or .status == "review")]
| sort_by(.updated) | reverse | .[0:1]
| "candidate[\(length)]{id,status,title}:",
(.[] | " \(.id),\(.status),\(.title)")
' .project/issues_index.json
Read .project/issues/{ID}/issue.json, description.md, and all comments/*.json to determine:
Use this decision matrix:
Multiple types can apply to a single issue. At minimum, one type should always be created.
When: A new feature was added, existing behavior changed, or a bug fix changes what users experience.
What: What it does and how to use it — written for end users and stakeholders, not developers.
Wiki slug: functional-{feature-area} (e.g., functional-authentication, functional-chapter-generation)
Parent: functional
Skip when: Pure internal refactors, dev tooling, or infrastructure changes with no user-visible impact.
When: New APIs, new services, significant architectural changes, complex internal logic.
What: How it works internally — data flow, key functions, configuration, dependencies.
Wiki slug: technical-{area} (e.g., technical-api, technical-style-analysis)
Parent: technical
Skip when: Simple bug fixes, UI-only changes, minor tweaks.
When: A non-obvious technical decision was made (chose library X over Y, designed schema a certain way, rejected an approach).
What: Context, decision, consequences, alternatives considered.
Wiki slug: decisions (single page, append new entries at top)
Parent: decisions
Skip when: Straightforward implementations with no significant trade-offs.
For each documentation type needed:
.project/wiki/_index.jsonfunctional, technical, decisions). If not, create it:
.project/wiki/pages/{parent}.md with a simple heading_index.json with "parent": null_index.json"parent" in _index.json to the correct parent slug. Pages must nest under their category.## {Feature Name}
{What it does in 1-2 sentences}
### How to Use
{How the user interacts with this — steps, expected behavior}
### Example
{Concrete example of usage or output}
### Notes
{Edge cases, limitations, tips — omit if none}
## {Component/Feature Name}
### Overview
{What this component does and why it exists}
### How It Works
{Data flow, key functions, architecture}
### Configuration
{Environment variables, config files, options}
### Dependencies
{What this depends on, what depends on this}
decisions page)## {Date} — {Decision Title}
**Context:** {Why this decision was needed}
**Decision:** {What was decided}
**Alternatives considered:** {What else was evaluated}
**Consequences:** {Trade-offs, what this means going forward}
---
Append wiki links to the issue description (.project/issues/{ID}/description.md):
Add a ## Documentation section at the end with links to the created pages:
## Documentation
- [Functional: {title}](/wiki/functional-{area})
- [Technical: {title}](/wiki/technical-{area})
- [Decision Record](/wiki/decisions)
Only include links for doc types that were actually created.
Add a short outro comment to the issue (2–4 lines max):
{
"id": "NNN",
"author": "Claude Code",
"content": "Documented in wiki: /wiki/functional-{area}. Branch: feat/{ID}-{slug}.",
"created": "ISO-8601"
}
No celebratory recap. No "Next steps" section. Links live in the description.
Update the issues index (.project/issues_index.json):
[] if missing)id and update its updated fieldupdated descending, write back