agentleFS
DallasEllemanDallasElleman/llm-dev/skills/cycle/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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.

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
  1. Distinctive:

    Ask the user for a working directory, accepting any override.

    line 15
  2. Very specific:

    Create a todo checklist (todo_write / TodoWrite, or a markdown checklist in the iteration directory if neither tool is available):

    line 19
  3. Very specific:

    Reflection (iteration 2+ only): If a previous iteration directory exists, read its outputs — especially 5-execute.md and 6-verify.md — and …

    line 38
  4. Distinctive:

    Ask the user what files, documents, or context to read — don't assume

    line 47
  5. Distinctive:

    If summarizing user-provided documents, ask the user to verify accuracy

    line 51
  6. Very specific:

    Output: Write 1-review.md with: reflection (if applicable), context summary, constraints, and candidate approaches.

    line 53
  7. Very specific:

    Superpowers option: If superpowers:brainstorming is available, offer the user a choice:

    line 65
  8. Very specific:

    If they choose B, invoke superpowers:brainstorming.

    line 69
  9. Distinctive:

    Start with open-ended questions — understand intent before proposing solutions

    line 72
  10. Distinctive:

    Ask one question at a time.

    line 73
  11. Distinctive:

    Document rejected alternatives and why

    line 78
  12. Distinctive:

    Document trust boundaries and potential threats

    line 82
  13. Distinctive:

    If the artifact handles sensitive data or faces untrusted input, note which boundaries need hardening in later phases

    line 83
  14. Very specific:

    Output: Write 2-brainstorm.md with: chosen concept, alternatives considered and rejected, scope boundaries, and security-relevant …

    line 87
  15. Distinctive:

    Verify that recommended libraries actually exist and are installable

    line 101
  16. Very specific:

    Check dependencies for known vulnerabilities and maintenance status (e.g., npm audit, pip audit, or equivalent)

    line 103
  17. Very specific:

    Output: Write 3-research.md with: tech stack selection with rationale, dependencies (including security posture), key technical decisions.

    line 108
  18. Very specific:

    If they choose B, invoke superpowers:writing-plans.

    line 122
  19. Distinctive:

    Write acceptance criteria — specific, testable conditions that define "done"

    line 127
  20. Distinctive:

    Ensure the plan is self-contained: executable without re-reading earlier phases

    line 130
  21. Distinctive:

    If any single step would take more than an hour, break it into smaller steps

    line 133
  22. Very specific:

    Output: Write 4-plan.md with: file structure, build sequence, testing strategy, acceptance criteria checklist.

    line 136
  23. Distinctive:

    Test each component as you build it — don't wait until the end

    line 154
  24. Distinctive:

    When something breaks, fix it or adjust the plan

    line 155
  25. Distinctive:

    Read and understand generated code.

    line 156
  26. Very specific:

    Output: Write 5-execute.md with: summary of what was built, bugs found and fixed, acceptance criteria results.

    line 160
  27. Distinctive:

    Run the full test suite and record results — don't trust prior Execute output

    line 179
  28. Distinctive:

    Run static analysis, linting, or security scanning if available in the project

    line 181
  29. Distinctive:

    Check for common security issues: unsanitized input, hardcoded secrets, missing auth checks, exposed error details

    line 182
  30. Very specific:

    If superpowers:requesting-code-review is available, offer to invoke it for a structured code review

    line 183
  31. Distinctive:

    If verification fails: Do not mark the iteration complete.

    line 185
  32. Very specific:

    Output: Write 6-verify.md with: test results, acceptance criteria pass/fail with evidence, security check results, and any issues found.

    line 187
  33. Distinctive:

    Update the todo checklist as each phase completes or is skipped.

    line 204
  34. Distinctive:

    Small, targeted refactoring during Execute: When implementation reveals that the code structure isn't right — a function doing too much, a …

    line 232
  35. Distinctive:

    Refactoring as its own iteration: When structural problems are large enough to warrant dedicated attention, run a full cycle with …

    line 234
  36. Distinctive:

    Verify reveals code that's hard to test or reason about

    line 237
  37. Distinctive:

    Don't refactor on a schedule.

    line 242

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. 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.
  2. Determine the next iteration number by checking for existing iteration-N/ directories. Create iteration-N/ in the working directory.
  3. Create a todo checklist (todo_write / TodoWrite, or a markdown checklist in the iteration directory if neither tool is available):
PhaseOutput
Review/Reflect1-review.md
Brainstorm2-brainstorm.md
Research3-research.md
Plan4-plan.md
Execute5-execute.md
Verify6-verify.md
  1. 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.md B) Go deep with superpowers: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.md B) Go deep with superpowers: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.md B) Go deep with superpowers: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-review is 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.

ResponseBehavior
"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:

  1. Re-invoke /llm-dev:cycle in the same working directory
  2. The skill auto-increments to iteration-N+1/
  3. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.