cycle
Skill4 starsChanged 6 months agoMITView on GitHub
Use when starting a development task that needs structured thinking before coding — especially greenfield features, unfamiliar domains, or tasks where jumping straight to implementation would likely require rework. Invoke at the start of work, not mid-task.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- serbanghita/plan-critique-skillstheir own version, first seen Sep 7, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- serbanghita/plan-critique-skills★ 13same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- .project-template/CLAUDE.mdCLAUDE.md
- .workspace-template/CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
37 rules. About 0 are common, 24 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈24
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Ask the user for a working directory, accepting any override.
- Very specific: line 19
Create a todo checklist (todo_write / TodoWrite, or a markdown checklist in the iteration directory if neither tool is available):
- Very specific: line 38
Reflection (iteration 2+ only): If a previous iteration directory exists, read its outputs — especially 5-execute.md and 6-verify.md — and …
- Distinctive: line 47
Ask the user what files, documents, or context to read — don't assume
- Distinctive: line 51
If summarizing user-provided documents, ask the user to verify accuracy
- Very specific: line 53
Output: Write 1-review.md with: reflection (if applicable), context summary, constraints, and candidate approaches.
- Very specific: line 65
Superpowers option: If superpowers:brainstorming is available, offer the user a choice:
- Very specific: line 69
If they choose B, invoke superpowers:brainstorming.
- Distinctive: line 72
Start with open-ended questions — understand intent before proposing solutions
- Distinctive: line 73
Ask one question at a time.
- Distinctive: line 78
Document rejected alternatives and why
- Distinctive: line 82
Document trust boundaries and potential threats
- Distinctive: line 83
If the artifact handles sensitive data or faces untrusted input, note which boundaries need hardening in later phases
- Very specific: line 87
Output: Write 2-brainstorm.md with: chosen concept, alternatives considered and rejected, scope boundaries, and security-relevant …
- Distinctive: line 101
Verify that recommended libraries actually exist and are installable
- Very specific: line 103
Check dependencies for known vulnerabilities and maintenance status (e.g., npm audit, pip audit, or equivalent)
- Very specific: line 108
Output: Write 3-research.md with: tech stack selection with rationale, dependencies (including security posture), key technical decisions.
- Very specific: line 122
If they choose B, invoke superpowers:writing-plans.
- Distinctive: line 127
Write acceptance criteria — specific, testable conditions that define "done"
- Distinctive: line 130
Ensure the plan is self-contained: executable without re-reading earlier phases
- Distinctive: line 133
If any single step would take more than an hour, break it into smaller steps
- Very specific: line 136
Output: Write 4-plan.md with: file structure, build sequence, testing strategy, acceptance criteria checklist.
- Distinctive: line 154
Test each component as you build it — don't wait until the end
- Distinctive: line 155
When something breaks, fix it or adjust the plan
- Distinctive: line 156
Read and understand generated code.
- Very specific: line 160
Output: Write 5-execute.md with: summary of what was built, bugs found and fixed, acceptance criteria results.
- Distinctive: line 179
Run the full test suite and record results — don't trust prior Execute output
- Distinctive: line 181
Run static analysis, linting, or security scanning if available in the project
- Distinctive: line 182
Check for common security issues: unsanitized input, hardcoded secrets, missing auth checks, exposed error details
- Very specific: line 183
If superpowers:requesting-code-review is available, offer to invoke it for a structured code review
- Distinctive: line 185
If verification fails: Do not mark the iteration complete.
- Very specific: line 187
Output: Write 6-verify.md with: test results, acceptance criteria pass/fail with evidence, security check results, and any issues found.
- Distinctive: line 204
Update the todo checklist as each phase completes or is skipped.
- Distinctive: line 232
Small, targeted refactoring during Execute: When implementation reveals that the code structure isn't right — a function doing too much, a …
- Distinctive: line 234
Refactoring as its own iteration: When structural problems are large enough to warrant dedicated attention, run a full cycle with …
- Distinctive: line 237
Verify reveals code that's hard to test or reason about
- Distinctive: line 242
Don't refactor on a schedule.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Development Cycle
A structured 6-phase development loop: Review/Reflect → Brainstorm → Research → Plan → Execute → Verify.
Work through each phase in order, producing a markdown file for each. Phases can be skipped at the user's request. Deeper treatment is available via superpowers skills where noted.
On Invocation
- Ask the user for a working directory, accepting any override. Choose the proposed default by project type:
- llm-dev-managed project (an
.archive/directory exists at the project root): propose.archive/cycle-artifacts/, co-locating cycle artifacts with session notes, transcripts, and handoffs. - Any other project: propose
llm-dev-artifacts/at the project root.
- llm-dev-managed project (an
- Determine the next iteration number by checking for existing
iteration-N/directories. Createiteration-N/in the working directory. - Create a todo checklist (
todo_write/TodoWrite, or a markdown checklist in the iteration directory if neither tool is available):
| Phase | Output |
| Review/Reflect | 1-review.md |
| Brainstorm | 2-brainstorm.md |
| Research | 3-research.md |
| Plan | 4-plan.md |
| Execute | 5-execute.md |
| Verify | 6-verify.md |
- Begin Phase 1.
Phase 1: Review/Reflect
Goal: Load context and identify what you're working with. On iteration 2+, reflect on the previous iteration first.
Reflection (iteration 2+ only): If a previous iteration directory exists, read its outputs — especially 5-execute.md and 6-verify.md — and address:
- What assumptions proved wrong?
- What worked well and should carry forward?
- What should change this iteration?
- Has scope or priority shifted based on what was learned?
Include a Reflection section at the top of 1-review.md. Lead with this before loading new context — ground the iteration in concrete experience, not a fresh read of original requirements.
Review:
- Ask the user what files, documents, or context to read — don't assume
- Summarize requirements, constraints, and options
- Identify gaps or ambiguities in the requirements
- Narrow scope: eliminate options, not add them
- If summarizing user-provided documents, ask the user to verify accuracy
Output: Write 1-review.md with: reflection (if applicable), context summary, constraints, and candidate approaches.
Gate: "Review written to iteration-N/1-review.md. Ready for Brainstorm, or want to revise?"
Phase 2: Brainstorm
Goal: Explore what to build through interactive conversation, then converge on a path forward.
This phase is a dialogue, not a monologue. Ask questions, challenge assumptions, explore edge cases, and think outside the box with the user — don't just present a menu of options. Surface insights that neither party would reach alone.
Superpowers option: If superpowers:brainstorming is available, offer the user a choice:
A) Use the built-in Brainstorm phase — lighter, produces
2-brainstorm.mdB) Go deep withsuperpowers:brainstorming— visual companion, structured spec workflow
If they choose B, invoke superpowers:brainstorming. After it completes, synthesize results into 2-brainstorm.md in the iteration directory before advancing. On Grok, Superpowers path B is a no-op unless those skills are installed and remapped (/design is the closest built-in stand-in — do not pretend Superpowers ran).
Process:
- Start with open-ended questions — understand intent before proposing solutions
- Ask one question at a time. Don't overwhelm with a list of ten questions at once
- Explore possibilities: what if we did X instead? What would the simplest version look like? What's the version you'd be embarrassed to ship?
- Push back constructively if scope seems too large or too vague
- Propose 2-3 approaches with trade-offs; recommend one
- Set explicit scope boundaries — what you will and won't build
- Document rejected alternatives and why
Security boundaries:
- Identify security-relevant boundaries: user input, authentication, authorization, data storage, external API calls
- Document trust boundaries and potential threats
- If the artifact handles sensitive data or faces untrusted input, note which boundaries need hardening in later phases
Do not write code. The value is in making decisions before committing to implementation.
Output: Write 2-brainstorm.md with: chosen concept, alternatives considered and rejected, scope boundaries, and security-relevant boundaries (if applicable).
Gate: "Brainstorm written to iteration-N/2-brainstorm.md. Ready for Research, or want to revise?"
Phase 3: Research
Goal: Identify the right tools and technologies for the chosen approach.
Activities:
- Evaluate tech stack options with trade-offs
- Recommend the simplest tool that meets requirements
- For unfamiliar tools, show a minimal working example before committing
- Verify that recommended libraries actually exist and are installable
- Confirm dependencies work in the user's environment
- Check dependencies for known vulnerabilities and maintenance status (e.g.,
npm audit,pip audit, or equivalent) - Identify security-relevant configuration: secrets management, TLS, auth tokens, API keys
Verify your own claims. You sometimes recommend deprecated or nonexistent packages — check before committing.
Output: Write 3-research.md with: tech stack selection with rationale, dependencies (including security posture), key technical decisions.
Gate: "Research written to iteration-N/3-research.md. Ready for Plan, or want to revise?"
Phase 4: Plan
Goal: Turn research into a concrete, ordered build sequence.
Superpowers option: If superpowers:writing-plans is available, offer the user a choice:
A) Use the built-in Plan phase — lighter, produces
4-plan.mdB) Go deep withsuperpowers:writing-plans— formal implementation plan with bite-sized tasks, TDD, and acceptance criteria
If they choose B, invoke superpowers:writing-plans. After it completes, synthesize results into 4-plan.md in the iteration directory before advancing. On Grok, skip B unless Superpowers is actually installed.
Activities:
- Define the file structure for the project
- Produce an ordered build sequence: what gets built first, second, third
- Write acceptance criteria — specific, testable conditions that define "done"
- Define testing strategy: unit, integration, and security tests as part of the build sequence, not after it
- Identify inputs that need validation and boundaries that need hardening (carry forward from Brainstorm security boundaries)
- Ensure the plan is self-contained: executable without re-reading earlier phases
Tips:
- If any single step would take more than an hour, break it into smaller steps
- The plan is a living document — update it if execution reveals problems
Output: Write 4-plan.md with: file structure, build sequence, testing strategy, acceptance criteria checklist.
Gate: "Plan written to iteration-N/4-plan.md. Ready for Execute, or want to revise?"
Phase 5: Execute
Goal: Build the artifact according to the plan.
Superpowers option: If superpowers:executing-plans is available, offer the user a choice:
A) Use the built-in Execute phase — work through the plan step by step B) Go deep with
superpowers:executing-plans— structured execution with review checkpoints
If they choose B, invoke superpowers:executing-plans. After it completes, synthesize results into 5-execute.md in the iteration directory before advancing. On Grok, skip B unless Superpowers is actually installed.
Activities:
- Work through the build sequence step by step
- Test each component as you build it — don't wait until the end
- When something breaks, fix it or adjust the plan
- Read and understand generated code; explain it when asked
Test early and often — smoke testing catches bugs that you miss. If something doesn't work, describe the error precisely: "This function returns X but I expected Y."
Output: Write 5-execute.md with: summary of what was built, bugs found and fixed, acceptance criteria results.
Gate: "Execution complete. Ready for Verify, or want to revise?"
Phase 6: Verify
Goal: Independently confirm that what was built actually works, is secure, and meets acceptance criteria.
This phase exists because Execute self-reports its own results. Verify is the adversarial counterpart — assume the result has problems and check.
Superpowers option: If superpowers:verification-before-completion is available, offer the user a choice:
A) Use the built-in Verify phase — run tests, check criteria, produce
6-verify.mdB) Go deep withsuperpowers:verification-before-completion— structured verification with evidence requirements
If they choose B, invoke superpowers:verification-before-completion. After it completes, synthesize results into 6-verify.md in the iteration directory before advancing. On Grok, skip B unless Superpowers is actually installed.
Activities:
- Run the full test suite and record results — don't trust prior Execute output
- Walk through each acceptance criterion from the plan and confirm pass/fail with evidence
- Run static analysis, linting, or security scanning if available in the project
- Check for common security issues: unsanitized input, hardcoded secrets, missing auth checks, exposed error details
- If
superpowers:requesting-code-reviewis available, offer to invoke it for a structured code review
If verification fails: Do not mark the iteration complete. Either return to Execute to fix issues, or note failures for the next iteration's Review/Reflect phase.
Output: Write 6-verify.md with: test results, acceptance criteria pass/fail with evidence, security check results, and any issues found.
Gate: "Verification complete. Iteration N finished." (Only if all acceptance criteria pass. Otherwise: "Verification found issues — return to Execute, or carry forward to next iteration?")
Gating Mechanics
Phase gates are guided, not rigid. Present the gate prompt and wait for the user's response.
| Response | Behavior |
| "yes" / "next" / "go" | Advance to next phase |
| "skip" | Advance without producing the output file; mark as skipped in checklist |
| "revise" | Stay in current phase, continue working |
| "back" / "back to [phase]" | Return to a previous phase |
Update the todo checklist as each phase completes or is skipped.
Parallel Agent Dispatch
At any phase, if the work involves 2+ independent subtasks, suggest dispatching parallel agents (spawn_subagent on Grok, Agent / Task on Claude Code). This is a suggestion — the user can decline.
Examples:
- Review/Reflect: Loading and summarizing multiple independent documents
- Brainstorm: Exploring alternative approaches concurrently
- Research: Evaluating competing tech stack options side by side
- Plan: Designing independent subsystems concurrently
- Execute: Building independent components in parallel
- Verify: Running independent test suites or security checks concurrently
Iteration
This skill handles one pass through the cycle. To iterate:
- Re-invoke
/llm-dev:cyclein the same working directory - The skill auto-increments to
iteration-N+1/ - The Review/Reflect phase of the new iteration reads prior iteration outputs and reflects on what happened
Each iteration should be smaller and more focused than the last.
When to Refactor
Refactoring is not a phase — it emerges from the existing phases when the code signals it's time. Two patterns:
Small, targeted refactoring during Execute. When implementation reveals that the code structure isn't right — a function doing too much, a module with tangled responsibilities — fix it as you go. This is normal engineering, not a separate activity.
Refactoring as its own iteration. When structural problems are large enough to warrant dedicated attention, run a full cycle with refactoring as the goal: Review/Reflect identifies the friction, Brainstorm explores alternative designs, Plan sequences the changes, Execute does the refactoring, Verify confirms nothing broke.
Signals that it's time:
- Verify reveals code that's hard to test or reason about
- Review/Reflect on successive iterations keeps noting the same friction points
- Adding a new feature requires touching too many files or understanding too much context
- You find yourself working around the structure rather than working with it
Don't refactor on a schedule. Don't refactor preemptively. Let the cycle surface the need.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

