add-cycle
[ADD v0.11.0] Plan and execute a work cycle — select features, assess parallelism, define validation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
[ADD v0.11.0] Plan and execute a work cycle — select features, assess parallelism, define validation
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
[ADD v0.11.0] Generate or sync a portable AGENTS.md from ADD project state — writes, checks drift, or merges with hand-curated content
[ADD v0.11.0] Declare absence — get autonomous work plan for the duration
[ADD v0.11.0] Return from absence — get briefing on autonomous work
[ADD v0.11.0] View project branding — accent color, palette, drift detection, image gen status
[ADD v0.11.0] Update project branding — new colors, fonts, tone, audit artifacts
[ADD v0.11.0] Generate or refresh CHANGELOG.md from conventional commits
| name | add-cycle |
| description | [ADD v0.11.0] Plan and execute a work cycle — select features, assess parallelism, define validation |
| argument-hint | [--plan | --status | --complete | --milestone] [milestone M{N}] |
Cycles are the operational unit of ADD work. They batch features, assess dependencies, plan parallelism, and define validation criteria before execution. This command manages the full cycle lifecycle: planning, status checks, and completion/retrospective.
A cycle is the next batch of work before a human checkpoint. It:
Cycle outputs:
.add/cycles/cycle-{N}.md — the cycle plan (generated by --plan)--status and --complete).add/learnings.md checkpoint entries (filled in by --complete)All cycle commands start by reading context:
.add/config.json to find current maturity level
docs/milestones/
Status: IN_PROGRESS, or the most recent)planning.current_milestone is null or file doesn't exist): Display "No active milestone found." Offer: run /add-milestone --list to see available milestones, /add-milestone --switch <id> to activate one, or /add-milestone --create to create a new one. STOP cycle planning until a milestone is active.docs/milestones/ for NOT_STARTED milestones. If found, suggest switching. If none, suggest creating one. STOP cycle planning until milestone is switched./add-cycle --complete or switching to the next one.".add/cycles/
~/.codex/add/references/skill-epilogue.mdPlan the next cycle. Interactive, human-driven, agent-assisted.
Read the active milestone file and display:
Example output:
Active Milestone: M8 — Authentication & Session Stability
Goal: Stabilize authentication system and reduce session timeout bugs by 90%
Remaining Appetite: ~5 days (started with 2 weeks, 9 days used)
Hill Chart:
Auth Overhaul ████████████████████░░░░░░░░░░░░░░░░ downhill — testing & edge cases
Session Refresh ████████████░░░░░░░░░░░░░░░░░░░░░░░░░ peak — figured out approach, starting implementation
Mobile Logout ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ uphill — design in progress, dependencies unclear
Feature Details:
• Auth Overhaul (specs/auth-redesign.md) — SPECCED → Target: IN_PROGRESS
• Session Refresh (specs/session-refresh.md) — SHAPED → Target: SPECCED
• Mobile Logout (specs/mobile-logout.md) — SHAPED → Target: SPECCED
Ask the human 1-by-1 questions. Number of questions varies by maturity (see cascade matrix in ~/.codex/add/references/maturity-matrix.md):
Core questions (all maturities):
"Which features should we advance this cycle?"
"How long will you be available / away?"
"Any features that must be serialized (dependencies)?"
UI Gate (all maturities, UI features only):
After selecting features, check each selected feature's spec for UI components:
For each UI feature, check whether a signed-off UX artifact exists at specs/ux/{feature-slug}-ux.md with Status: APPROVED.
If a UI feature has no approved UX artifact:
At POC maturity, prompt:
{Feature name} has UI components but no signed-off design.
Options:
A) Run /add-ux specs/{feature-slug}.md now (recommended — prevents rework)
B) Skip and proceed (accepted risk — UI will be defined during implementation)
At Alpha+ maturity, block and require:
⚠ {Feature name} has UI components but no signed-off design.
Run /add-ux specs/{feature-slug}.md before including this feature in the cycle.
This gate exists to prevent implementation rework from late-breaking design changes.
Once the UX artifact is approved, re-run /add-cycle --plan.
If all UI features have approved artifacts (or no features have UI), continue without interruption.
Additional questions (Alpha+):
"What's blocking or at-risk?" — tap the milestone's risk table; any mitigations to pursue this cycle?
"Are there edge cases we should focus on?" — especially for downhill features (near VERIFIED); do we need QA or performance testing?
Additional questions (Beta+):
"Who's reviewing this cycle? Any availability constraints?" — Beta requires code review; GA requires 2 reviewers
"Should we do a pre-deploy sanity check?" — Beta/GA requires pre-deploy QA
"Do any features need performance testing?" — common in Beta/GA for downhill features
"What's the rollback plan if things go sideways?" — GA especially needs this upfront; feature flags? database migration reversibility?
Additional questions (GA):
"Is there a customer impact window we should avoid?" — peak usage hours to avoid deployments?
"Should we split this cycle into two smaller ones?" — GA favors smaller, more frequent cycles (less risk)
"Are there compliance or audit implications?" — any regulatory review needed before merge?
"What's our monitoring/alerting strategy?" — how will we detect failures post-deploy?
"Do we need a communication plan to customers?" — feature deprecation? beta label? known issues?
Based on answers, determine what can run in parallel:
Build dependency graph:
Auth Overhaul → Session Refresh, Mobile Logout (parallel)Check maturity parallelism limits:
Recommend agent allocation:
Plan file reservations (Beta/GA):
Agent 1: src/auth/*, src/session/* + Agent 2: src/mobile/logout/*Define merge sequence (Beta/GA):
Auth Overhaul → Session Refresh → Mobile LogoutCreate .add/cycles/cycle-{N}.md from ~/.codex/add/templates/cycle-plan.md, filling every section (work items, dependencies & serialization, parallel strategy, validation criteria, autonomy & checkpoints, notes) with the answers from Steps 1-3.
Depth varies by maturity:
Check the progress of the active cycle in real-time.
Load .add/cycles/cycle-{N}.md (most recent or explicitly named).
For each work item in the cycle:
specs/auth-redesign.md)
Move each feature's position on the milestone's hill chart:
Example:
Auth Overhaul ████████████████████████░░░░░░░░░░ downhill — 4/5 tests passing, PR in review
Session Refresh ████████████████░░░░░░░░░░░░░░░░░░░░ peak — spec finalized, starting TDD cycle
Display:
/add-cycle --completeExample report:
Cycle 8 Status (as of 2026-02-07)
✅ Auth Overhaul: SPECCED → IN_PROGRESS (on track)
• 4/5 acceptance criteria passed in tests
• PR #142 in review (1 comment pending)
• ETA: ready for merge tomorrow
🔄 Session Refresh: SHAPED → SPECCED (in progress)
• Spec 80% written, mobile device edge case TBD
• Waiting on dependency: Auth Overhaul merge
• ETA: spec done by EOD Friday
✅ Mobile Logout: SHAPED → SPECCED (on track)
• Spec complete and approved
• Ready to start implementation cycle-9
---
Cycle Validation:
• All features reached target position? 1/3 (Auth in progress, others specced)
• All acceptance criteria met? 4/5 (Auth downhill, others still uphill)
• Code review completed? Yes (Auth in progress)
• Pre-deploy QA passed? Pending
Overall: 67% complete. On track to finish by cycle end.
Suggestion: Continue cycle, target completion by 2026-02-09.
Close the active cycle. Verify validation, update milestone, capture learnings.
Check:
If any fails, don't complete. Report blockers and ask human to decide:
Move all features to their new positions in docs/milestones/M{X}-{name}.md:
Example:
| cycle-8 | Auth Overhaul (SPECCED→IN_PROGRESS), Session Refresh (SHAPED→SPECCED), Mobile Logout (SHAPED→SPECCED) | COMPLETE | All features on track. Auth ready for QA next cycle. |
Now that cycle is done, did the milestone's success criteria improve?
If milestone success criteria are now fully met, suggest milestone closure.
If milestone completion triggers a promotion suggestion, run an evidence scan before recommending it. Promotion requires evidence, not aspiration. The evidence items, scoring thresholds per transition, and promotion process are defined in ~/.codex/add/references/maturity-matrix.md — /add-promote --check is the canonical gap-analysis tool.
If evidence supports promotion:
Milestone M{N} complete. Evidence supports maturity promotion:
Current: {ALPHA}
Evidence score: {7}/10
Recommendation: Promote to {BETA}
Run /add-retro to formally promote (updates config, activates new rules).
If evidence does NOT support promotion: report the score, list the gaps for the target level, and suggest reassessing at the next /add-retro.
Do NOT auto-promote. Promotion is applied through /add-retro which updates config and records the change.
Write a structured JSON learning entry to the appropriate learnings file. Follow the checkpoint process in ~/.codex/add/references/learning-reference.md (section: "How to Write a Checkpoint Entry"):
project scope (specific to this project's milestone), but process insights may be workstation or universalcheckpoint_type: "retro" (cycle completion is a mini-retro)category: "process"title: "Cycle {N} complete: {summary}"body: Include cycle metrics (duration, features advanced, validation success, blockers), what worked, what was harder, and learnings for next cycleIf the cycle produced multiple distinct learnings (e.g., a technical discovery AND a process insight), write separate entries with appropriate scope classification for each.
After completing a cycle:
/add-cycle --plan)/add-milestone --close or similar)Example:
Cycle 8 complete! ✅
Milestone M8 progress:
• Goal: Stabilize authentication & reduce session timeout bugs by 90%
• Success Criteria: 5/5 met (all specs passing, 0 bugs for 7 days, mobile parity confirmed)
• Status: READY TO CLOSE
Recommendation: Complete milestone M8, then run /add-retro to assess evidence-based promotion.
Options:
/add-milestone --close M8
/add-retro M8 (write retrospective, assess promotion)
/add-cycle --plan M9 (plan next milestone's first cycle)
Select a milestone before planning. Convenience shortcut that runs milestone selection inline, then continues to --plan.
Glob docs/milestones/M*.md. Display table with Status, Horizon, Features, Completion %, Target Maturity. Highlight current active milestone.
"Which milestone should we plan the next cycle for?"
Accept milestone ID (e.g., M3-marketplace-ready or M3). Validate it exists and is not COMPLETE.
If selection differs from planning.current_milestone:
/add-milestone --switch (safety checks, config update)planning.current_milestone and planning.current_cycle in configProceed with normal /add-cycle --plan flow using the newly active milestone.
When the cycle plan includes parallel work with 2+ agents, follow the full protocol in ~/.codex/add/references/swarm-protocol.md — worktree setup, file reservation maps, merge sequencing, and coordination rules all live there.
Cycle-specific notes:
~/.codex/add/references/swarm-protocol.md (Resource Budgets +
role → tier defaults, tiers per rules/model-roles.md). Mechanical work —
frontmatter sweeps, generated-output regen, dashboard/SVG rendering — runs on
the fast tier; reserve the architect tier for review and orchestration.When /add-cycle is called on a project newly adopting ADD, detect the gap and hand off to /add-init's adoption mode rather than duplicating it here.
Detection — any of:
.add/cycles/ directory existsThen offer:
This project isn't yet structured for ADD cycles.
Run /add-init to bootstrap ADD adoption — it performs the gap analysis,
generates retroactive specs and a baseline catch-up milestone (M0), and
sets up quality gates and commit discipline.
Once /add-init completes, run /add-cycle --plan M0 to execute the
catch-up work in 1-2 intensive cycles, then resume normal cycles for M1+.
| Command | Purpose | Output |
|---|---|---|
/add-cycle --plan | Plan next cycle (interactive) | .add/cycles/cycle-{N}.md |
/add-cycle --status | Check cycle progress | Report + updated hill chart |
/add-cycle --complete | Close cycle + update milestone | Archived cycle + learnings checkpoint |
/add-cycle --milestone | Select milestone before planning | Config update + cycle plan |
/add-cycle --plan M0 | Catch-up spike (new projects) | Catch-up milestone + cycle plan |
Key principles:
End-of-skill epilogue: follow ~/.codex/add/references/skill-epilogue.md (observation + learning checkpoint + progress tracking).