project-update
SKILL.md
Project Update
Run this workflow only for existing projects with initialized docs.
1. Mode Guard
Before starting:
- Require both
docs/architecture.mdanddocs/plans.md. - If both files are missing and code exists, switch to
project-convert. - If docs and code are both missing, switch to
project-init. - If only one required doc exists, report partial state and ask user whether to repair via convert, continue with caution, or re-init.
2. Context Loading
Load current state first:
- Read
docs/architecture.mdanddocs/plans.md. - Read supporting docs:
docs/implement.md,docs/secrets.md,docs/documentation.md,docs/design.md. - Auto-create missing supporting docs from templates before update edits.
- Summarize current milestones, architecture, and patterns to the user.
- If code exists, scan code roots and compare docs vs code; report major divergences before planning.
3. Classify Update Type
Classify and announce one type (allow override):
- New Feature: 3-8 focused rounds
- Bug Fix: 1-3 focused rounds
- Change/Refactor/Migration: 2-5 focused rounds
Reclassify if discovered scope no longer matches the original type.
4. Focused Interview
- Capture user description of requested change.
- Run scoped clarifying rounds based on type.
- Produce synthesis and require explicit approval before editing docs.
5. Update Documentation
Update existing files instead of recreating:
- Always update
docs/plans.mdby inserting new milestones before the final Production Readiness Gate milestone. - Always update
docs/documentation.mdstatus section. - Update
docs/architecture.mdonly where behavior/spec/architecture is affected. - Update
docs/design.md,docs/secrets.md,CLAUDE.md,AGENTS.mdonly when the change impacts them. - Keep completed milestone history intact unless fixing proven inconsistency.
- Do not silently remove replaced requirements; mark and explain transitions.
- Keep
docs/implement.mdaligned with these mandatory sections:First-Principles ExecutionAtomic Task ExecutionRewrite-First PolicyNo-Compatibility Rule
- In
docs/plans.md, every new or modified task must includeCommit Boundary: exactly one atomic commit. - In
tasks/todo.md, every new or modified task must includeTask IDandCommit Status(pendingordone).
5.5. Implementation Discipline (Mandatory)
Apply these rules to every update task:
- Use first-principles execution: address root causes based on product intent and architecture, not workaround layers.
- Treat
taskandsub-taskas the same execution unit. - Enforce
one task -> one atomic commit. - Complete one task end-to-end before commit, including all impacted files (code/tests/config/scripts/docs).
- Follow
code is cheap: prefer deleting and rewriting problematic modules instead of patching around them. - Never introduce compatibility code (
adapter,shim, dual-path logic, deprecated aliases, temporary compatibility flags). - If a rewrite changes interfaces, update all impacted callers in the same task.
- Do not split breakage repair into later tasks.
6. Review Protocol
Run lightweight review on modified scope:
- Agent 2 (plans coverage) + Agent 3 (cross-doc consistency).
- Mandatory
mcp__codex__codexreview on changed sections (or full docs if needed). - Apply valid findings, then run exactly one Agent 2 + Agent 3 post-Codex re-review.
- Run one user annotation pass on updated
docs/architecture.md+docs/plans.md(Bug Fix can skip only when strictly local and behavior docs are unchanged).
If mcp__codex__codex is unavailable, stop and ask user to choose manual checklist path or alternate-model path.
7. Hooks Installation (Mandatory)
Install/update hooks for both platforms:
- Resolve installer path in this order:
scripts/setup-hooks.sh../full-project-skill/scripts/setup-hooks.sh
- Run:
bash <resolved-setup-hooks-path> --pm <detected-pm> --project-dir <project-dir> --platform both
- Detect package manager using lockfiles (
bun.lock,pnpm-lock.yaml,yarn.lock, fallback npm). - If no installer path exists, ask the user where their hook installer lives and stop.
- If install fails, show error and stop.
8. Final Handoff
Tell the user:
- Docs were updated.
- Hooks were installed/updated in
.claude/and.codex/. - Which milestones/sections changed.
- They should review
docs/architecture.mdanddocs/plans.mdbefore execution. - New work still must pass the final Production Readiness Gate.
Weekly Installs
3
Repository
phlegonlabs/skillsFirst Seen
10 days ago
Security Audits
Installed on
opencode3
gemini-cli3
claude-code3
github-copilot3
codex3
kimi-cli3