structured-dev-cycle
Gets multi-model code review. Use this to receive feedback from multiple AI perspectives.
Install
mkdir -p .claude/skills/structured-dev-cycle && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18846" && unzip -o skill.zip -d .claude/skills/structured-dev-cycle && rm skill.zipInstalls to .claude/skills/structured-dev-cycle
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
6-stage structured development cycle with stage-based tool restrictionsKey capabilities
- →Define approach and analyze requirements in the Plan stage
- →Review plan for completeness and edge cases in Verify Plan stage
- →Write code and create files in the Implement stage
- →Run tests and review code quality in Verify Implementation stage
- →Run integration tests and cross-module validation in Compound stage
- →Summarize changes and document completion in the Done stage
How it works
This skill implements a 6-stage structured development cycle that restricts tool usage based on the current stage to enforce quality and prevent premature implementation.
Inputs & outputs
When to use structured-dev-cycle
- →Get code review feedback
- →Compare diff analysis
- →Review design question
- →Gather AI model opinions
About this skill
Structured Development Cycle
A disciplined 6-stage development cycle that enforces quality through stage-based tool restrictions. Prevents premature implementation by requiring planning and verification phases.
Background
Inspired by Pi Coding Agent Workflow Extension's structured development approach. The core insight: restricting file modification tools during planning phases forces thorough analysis before code changes.
Stages
| # | Stage | Allowed Tools | Blocked Tools | Purpose |
|---|---|---|---|---|
| 1 | Plan | Read, Glob, Grep, WebSearch, WebFetch | Write, Edit, Bash (modifying) | Define approach, analyze requirements |
| 2 | Verify Plan | Read, Glob, Grep | Write, Edit, Bash | Review plan from different perspective |
| 3 | Implement | All tools | None | Write code, create files |
| 4 | Verify Implementation | Read, Glob, Grep, Bash (tests only) | Write, Edit | Review code, run tests |
| 5 | Compound | Read, Bash (tests only) | Write, Edit | Integration testing, cross-module validation |
| 6 | Done | Read | Write, Edit, Bash | Summary and documentation |
Stage Model Recommendations
Following the reasoning-sandwich pattern:
| Stage | Recommended Lane / Effort | Rationale |
|---|---|---|
| 1: Plan | frontier/high | Architectural reasoning, requirement analysis |
| 2: Verify Plan | frontier/high | Edge case detection, alternative evaluation |
| 3: Implement | frontier/medium | Code generation, file creation optimized |
| 4: Verify Implementation | frontier/medium | Test execution, structural review |
| 5: Compound | frontier/medium | Integration testing, cross-module validation |
| 6: Done | spark/low | Checklist validation, summary generation |
Model selection is advisory — the orchestrator may override based on task complexity.
Stage Tracking
Stage state is tracked via a marker file for hook enforcement:
# Set stage (used by orchestrator or skill)
echo "plan" > /tmp/.codex-dev-stage-$PPID
# Valid stage values (all block Write/Edit except 'implement'):
# plan, verify-plan, implement, verify-impl, compound, done
# Clear stage (disable blocking)
rm -f /tmp/.codex-dev-stage-$PPID
A PreToolUse hook in .codex/hooks/hooks.json checks this marker and blocks Write/Edit tools during non-implementation stages.
Workflow
Stage 1: Plan
[Stage 1/6: Plan]
├── Analyze requirements and constraints
├── Read existing code for context
├── Search for related patterns
├── Define approach with rationale
└── Output: Implementation plan document
Exit criteria: Clear plan with file list, approach description, and risk assessment.
Stage 2: Verify Plan
[Stage 2/6: Verify Plan]
├── Review plan for completeness
├── Check for missing edge cases
├── Validate against existing patterns
├── Consider alternative approaches
└── Output: Plan approval or revision requests
Exit criteria: Plan verified by different perspective (ideally different model via multi-model-verification).
Stage 3: Implement
[Stage 3/6: Implement]
├── Follow verified plan
├── Create/modify files as specified
├── Write tests alongside code
├── Track deviations from plan
└── Output: Implementation complete
Optional Codex Plugin Interop: When entering Stage 3:
- Use domain expert agents as the default implementation path.
- If the native Claude Code plugin
openai/codex-plugin-ccis explicitly installed and requested, it may provide Codex interop for new-file scaffolding before expert review. - Otherwise display
[Codex Plugin] Not requested — proceeding with expert agents directlyand proceed with standard implementation.
Suitable for optional plugin interop: new files, boilerplate, test stubs, scaffolding Not suitable: modifying existing code, architecture-dependent changes
Exit criteria: All planned files created/modified, tests written.
Stage 4: Verify Implementation
[Stage 4/6: Verify Implementation]
├── Run test suite
├── Review code quality
├── Check for plan deviations
├── Validate error handling
└── Output: Verification report
Exit criteria: All tests pass, no critical issues found. If issues found, return to Stage 3.
Stage 5: Compound
[Stage 5/6: Compound]
├── Run integration tests
├── Cross-module validation
├── Check for side effects
├── Verify documentation accuracy
└── Output: Integration report
Exit criteria: No integration issues. If issues found, return to Stage 3.
Stage 6: Done
[Stage 6/6: Done]
├── Summarize changes made
├── List files modified
├── Note any deviations from plan
├── Suggest follow-up tasks
└── Output: Completion summary
Integration
With EnterPlanMode
Stage 1 (Plan) maps to Claude Code's EnterPlanMode. When the structured cycle is active:
- EnterPlanMode triggers Stage 1
- ExitPlanMode transitions to Stage 2 (Verify Plan), not directly to implementation
With Multi-Model Verification
Stage 2 (Verify Plan) and Stage 4 (Verify Implementation) can invoke the multi-model-verification skill for comprehensive review.
With PreToolUse Hooks
The stage marker file (/tmp/.codex-dev-stage-$PPID) is read by a PreToolUse hook that enforces tool restrictions. This provides a safety net beyond instruction-based compliance.
With Agent Teams
For complex tasks, Agent Teams is preferred when available (R018):
- Plan: architect agent
- Verify: reviewer agent(s) — multi-model-verification via Agent Teams
- Implement: domain expert agent (+ optional
openai/codex-plugin-ccinterop only when explicitly installed/requested) - Compound: QA agent
When Agent Teams is enabled AND task involves 3+ agents or review→fix cycles, using Agent Teams is MANDATORY per R018.
When to Use
| Task Complexity | Recommended Cycle |
|---|---|
| Simple fix (< 3 files) | Skip — direct implementation |
| Medium feature (3-10 files) | Stages 1, 3, 4, 6 (skip verify plan, compound) |
| Complex feature (10+ files) | Full 6-stage cycle |
| Architecture change | Full 6-stage cycle with multi-model verification |
| Security-critical code | Full 6-stage cycle (mandatory) |
Stage Transition Commands
# Orchestrator manages transitions:
echo "plan" > /tmp/.codex-dev-stage-$PPID # Enter planning
echo "verify-plan" > /tmp/.codex-dev-stage-$PPID # Enter plan verification
echo "implement" > /tmp/.codex-dev-stage-$PPID # Enter implementation
echo "verify-impl" > /tmp/.codex-dev-stage-$PPID # Enter impl verification
echo "compound" > /tmp/.codex-dev-stage-$PPID # Enter compound testing
echo "done" > /tmp/.codex-dev-stage-$PPID # Mark done
rm -f /tmp/.codex-dev-stage-$PPID # Clear (disable blocking)
Limitations
- Session scoping: The marker path is scoped by parent PID (
/tmp/.codex-dev-stage-$PPID), so concurrent Codex sessions use distinct markers and do not conflict. The reader hooks (stage-blocker.sh,task-state-precompact.sh) and the writer commands above all resolve$PPIDto the same Codex process, keeping the gate consistent. - World-writable path: The
/tmp/directory is accessible to all users. The-$PPIDsuffix isolates per-session state but does not restrict filesystem permissions; avoid storing sensitive data in the marker file.
Display Format
═══ Structured Dev Cycle ═══════════════════════════
[■■□□□□] Stage 2/6: Verify Plan
Files planned: 5 | Risks identified: 2
═════════════════════════════════════════════════════
When not to use it
- →For simple fixes involving less than 3 files
- →When the user asks to modify files during Plan or Verify Plan stages
- →When the user asks to write or edit files during Verify Implementation, Compound, or Done stages
Limitations
- →Does not support concurrent Claude Code sessions due to fixed path `/tmp/.codex-dev-stage`
- →The `/tmp/` directory is world-writable, which may be a concern in multi-user environments
- →Does not allow Write/Edit tools during Plan, Verify Plan, Verify Implementation, Compound, or Done stages
How it compares
This skill enforces a disciplined development process with stage-based tool restrictions, ensuring thorough planning and verification before and after coding, unlike an unstructured approach.
Compared to similar skills
structured-dev-cycle side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| structured-dev-cycle (this skill) | 0 | 14d | Review | Advanced |
| effective-go | 323 | 9mo | No flags | Beginner |
| architect-review | 109 | 3mo | No flags | Advanced |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by baekenough
View all by baekenough →You might also like
effective-go
openshift
Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.
architect-review
sickn33
Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
solid-principles
SmidigStorm
Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.
python-testing-patterns
wshobson
Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.
codex
Lucklyric
Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.