/agent-skills:document-lifecyclefrom agent-skills
Unified document lifecycle. Terminal statuses, numbering via .next-id, close procedures, orphan detection, and Implementer-completion status/changelog updates for agent-output/. Load at session start or when impl finishes / close procedure needed. Used by all persona skills.
Ships in agent-skills. 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.
Read when SKILL.md points to them.
Manage doc state transitions, unified numbering, closure across all agent-output/ dirs.
All persona skills (planner, critic, implementer, qa, architect, roadmap, plus plan-and-critique / scope-intake when writing files) load this skill. Addyosmani-style skills (interview-me, idea-refine, code-review-and-quality, …) use it whenever they touch agent-output/.
Every work chain shares one ID. Originating skill mints analysis/plan 080 → downstream plan, critique, impl, QA all use ID 080.
Docs in terminal status belong in closed/ subfolders.
| Status | Meaning | Closed by |
|---|---|---|
Committed | Changes committed to git (awaiting release) | User (manual review/commit) |
Released | Successfully pushed/published | User |
Abandoned | Explicitly dropped | User |
Deferred | Postponed indefinitely | User |
Superseded | Replaced by a newer document | User |
Resolved | All findings addressed (critiques only) | critic skill |
Location: agent-output/.next-id — single integer.
Rules:
analysis-methodology when writing analysis, or planner / plan-and-critique when no analysis) read + increment---
ID: 080
Origin: 080
UUID: a3f7c2b1
Status: Active
---
| Scenario | Action |
|---|---|
| Analysis starts new investigation | Read .next-id, increment, use as ID |
| Planner / plan-and-critique from analysis | Inherit; close analysis → Planned |
| Planner / plan-and-critique from user request | Read .next-id, increment |
| Implementer / QA / Critic on plan | Inherit from plan |
| Intake note with chain ID | Inherit or originate per above |
When implementer finishes a work package (code+tests per plan), update agent-output/ before QA/review:
Implemented / Ready for QA (not terminal). Changelog with paths + date.closed/ on impl complete — closure on Committed/Released (or Abandoned/Deferred).agent-output/qa/ (implementer read-only).agent-output/implementation/ → marker → stop follow-up runs self-learning + this checklist.See also: self-learning (instruction/skills capture) vs this skill (status/paths/closure only).
See references/close-procedure.md.
When doc reaches terminal status:
mkdir domain closed/ if neededclosed/Bulk close after user commit: close planning + implementation + qa (+ critiques if resolved) for the chain ID.
Scan exclusive domain excluding closed/; move terminal-status orphans.
roadmap skill runs full sweep across all agent-output/*/.
| Skill | Role | Closure trigger |
|---|---|---|
analysis-methodology | May originate IDs (analysis docs) | Planner closes when plan created |
planner / plan-and-critique | Originate or inherit | User closes after commit |
implementer | Inherit | User closes after commit |
qa | Inherit | User closes after commit |
critic | Inherit | Self-closes when findings resolved |
architect | Evergreen master; findings inherit | Findings follow standard close |
roadmap | Evergreen + orphan sweep | N/A |
code-review-and-quality | Optional review notes | User closes after commit |
| User (manual) | Commit / release | Sets Committed / Released + bulk close |
NEXT_ID=$(cat agent-output/.next-id)
echo $((NEXT_ID + 1)) > agent-output/.next-id
# use $NEXT_ID
mkdir -p agent-output/<domain>/closed/
mv agent-output/<domain>/NNN-name.md agent-output/<domain>/closed/
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gopalparashar421/agent-skills --plugin agent-skills25 skills in this plugin
/analysis-methodologySystematic approach to converting unknowns to knowns through structured investigation with confidence levels and gap tracking. Use when analyzing bugs, investigating systems, or reducing uncertainty in technical findings./architectMaintains architectural coherence, ADRs, and technical debt visibility. Reviews plans and systems for fit and long-term health. Use for architecture review, ADRs, health audits, or when planner/roadmap needs design authority.
/architecture-patternsCommon software architecture patterns, ADR templates, and anti-pattern detection. Supports architectural review, design decisions, and system documentation.Other plugins' skills for the same job