agentleFS
Upsolve-LabsUpsolve-Labs/upstack/skills/execute/SKILL.md

execute

Skill17 starsChanged 8 months agoMITView on GitHub

Build a plan to spec using Red/Green TDD. Writes tests first, confirms they fail, then implements. Supports --ticket mode for scoped execution with dependency checks and file-level scope guardrails. Use after /plan to implement a feature or fix.

35 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use blueprint, discover and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • WordPressSkill

    blueprint

    Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing steps/resources, and debugging Blueprint files. For only running or sharing a Playground environment, use wp-playground.

    Also in 4 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 3 projects that use this

  • MicrosoftSkill

    init

    Generate or update chat customization files for AI coding agents

    Also in 5 projects that use this

  • agenticnotetakingSkill

    ask

    Query the bundled research knowledge graph for methodology guidance. Routes questions through a 3-tier knowledge base — WHY (research claims), HOW (guidance docs), WHAT IT LOOKS LIKE (domain examples) — plus structured reference documents. Returns research-backed answers grounded in specific claims with practical application to the user's system. Triggers on "/ask", "/ask [question]", "why does my system...", "how should I...".

    Also in 3 projects that use this

  • AGMO-IncSkill

    benchmark

    Use to run benchmarks, save results to Obsidian vault, and detect regressions against a baseline. Triggers on "벤치마크", "benchmark", "성능 측정".

    Also in 3 projects that use this

  • nicodianskSkill

    brainstorm

    Use when starting creative work - creating features, building components, adding functionality, or modifying behavior. Explores requirements through Socratic dialogue before any implementation.

    Also in 5 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. 0 are common, 18 are distinctive, and 10 are very specific to this project.

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/upstack/skills/upgrade/SKILL.md and follow the "Inline upgrade flow" …

    line 16
  2. Distinctive:

    If no plan exists in context: warn the user and suggest running /plan first.

    line 23
  3. Distinctive:

    If on main/master: create a feature branch with a descriptive name.

    line 24
  4. Distinctive:

    If a test rig was opted into during /plan: confirm it's set up and working before proceeding.

    line 25
  5. Very specific:

    If the user passes --ticket <ID> (e.g., /execute --ticket P1-3):

    line 28
  6. Distinctive:

    If ticket ID is not found: error with a list of available ticket IDs from the plan.

    line 31
  7. Distinctive:

    Before writing any code, check if dependent tickets are complete:

    line 35
  8. Very specific:

    Read TODOS.md. For each ID in depends_on, check if it's marked [x].

    line 36
  9. Very specific:

    If Linear CLI is available (which linear 2>/dev/null), also check Linear ticket status.

    line 37
  10. Distinctive:

    If any dependency is incomplete: AskUserQuestion warning — "Ticket P1-3 depends on P1-1 and P1-2 which aren't done yet.

    line 38
  11. Distinctive:

    If TODOS.md doesn't exist: warn and proceed (dependencies can't be verified).

    line 39
  12. Very specific:

    Check if any planned file changes are in a UI/frontend package (e.g., packages/ui/, src/app/, src/components/, or any directory containing …

    line 44
  13. Distinctive:

    Start the dev server if not running.

    line 48
  14. Very specific:

    Use agent-browser open <url> to navigate affected pages.

    line 49
  15. Very specific:

    Use curl to hit relevant API endpoints.

    line 55
  16. Distinctive:

    Write tests for every feature/fix described in the plan.

    line 60
  17. Distinctive:

    Run the test suite. Confirm all new tests FAIL.

    line 63
  18. Distinctive:

    If any new test passes already: investigate.

    line 64
  19. Distinctive:

    Write the minimum code to make each test pass.

    line 67
  20. Distinctive:

    Run the full test suite. Every test must pass.

    line 73
  21. Distinctive:

    If any test fails: fix and re-run.

    line 74
  22. Distinctive:

    If the task grows beyond what was planned:

    line 77
  23. Distinctive:

    Add out-of-scope items to TODOS.md.

    line 79
  24. Distinctive:

    Only AskUserQuestion for scope changes.

    line 81
  25. Very specific:

    When in ticket mode, the ticket's files list defines the expected scope:

    line 84
  26. Very specific:

    Before modifying a file not in the files list: AskUserQuestion — "File path/to/file.ts isn't in this ticket's scope.

    line 85
  27. Distinctive:

    After all tests pass, update tracking systems:

    line 90
  28. Very specific:

    Report unblocked tickets: Read the plan's dependency DAG.

    line 94

“Common” is measured: kept by at least 6 in 10 of the 35 edited versions of this file we could read. “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

Update Check (run first)

_UPD=$(~/.claude/skills/upstack/bin/upstack-update-check 2>/dev/null || .claude/skills/upstack/bin/upstack-update-check 2>/dev/null || true)
[ -n "$_UPD" ] && echo "$_UPD" || true

If output shows UPGRADE_AVAILABLE <old> <new>: read ~/.claude/skills/upstack/skills/upgrade/SKILL.md and follow the "Inline upgrade flow" (auto-upgrade if configured, otherwise AskUserQuestion with 4 options, write snooze state if declined). If JUST_UPGRADED <from> <to>: tell user "Running upstack v{to} (just updated!)" and continue.

Execute

You are implementing a plan using strict Red/Green TDD. Ask as few questions as possible and keep churning.

Pre-flight

  • If no plan exists in context: warn the user and suggest running /plan first. Skipping planning may cause sloppy code.
  • If on main/master: create a feature branch with a descriptive name.
  • If a test rig was opted into during /plan: confirm it's set up and working before proceeding.

Ticket Mode

If the user passes --ticket <ID> (e.g., /execute --ticket P1-3):

  1. Find the structured ticket block in the plan's Phase 5 YAML output.
  2. Extract: title, files, acceptance_criteria, depends_on, context, and effort.
  3. If ticket ID is not found: error with a list of available ticket IDs from the plan.
  4. Announce: "Executing ticket P1-3: <title>"

Dependency Check (ticket mode only)

Before writing any code, check if dependent tickets are complete:

  1. Read TODOS.md. For each ID in depends_on, check if it's marked [x].
  2. If Linear CLI is available (which linear 2>/dev/null), also check Linear ticket status.
  3. If any dependency is incomplete: AskUserQuestion warning — "Ticket P1-3 depends on P1-1 and P1-2 which aren't done yet. Proceed anyway?"
  4. If TODOS.md doesn't exist: warn and proceed (dependencies can't be verified).

Phase 1: Familiarize (before writing anything)

Determine if this plan has UI impact: Check if any planned file changes are in a UI/frontend package (e.g., packages/ui/, src/app/, src/components/, or any directory containing .tsx/.jsx files).

If UI impact exists (even if the primary feature is backend):

  • Start the dev server if not running.
  • Use agent-browser open <url> to navigate affected pages.
  • Click through paths in the plan that currently work.
  • Capture current state before making changes.
  • Note actual selectors and @refs for writing E2E tests.

For backend paths (always, regardless of UI impact):

  • Use curl to hit relevant API endpoints.
  • Observe current request/response patterns.
  • Note auth requirements, headers, response shapes.

Phase 2: RED — Write all tests first

  • Write tests for every feature/fix described in the plan.
  • Ticket mode: scope tests to the ticket's acceptance_criteria only. Do not write tests for other tickets.
  • Cover the happy path, edge cases, and error cases.
  • Run the test suite. Confirm all new tests FAIL.
  • If any new test passes already: investigate. Is the feature already implemented? Adjust the plan accordingly.

Phase 3: GREEN — Implement

  • Write the minimum code to make each test pass.
  • One atomic commit per logical change.
  • Commit format: <type>(<scope>): <description>
  • Types: feat, fix, refactor, test, docs, chore

Phase 4: Confirm GREEN

  • Run the full test suite. Every test must pass.
  • If any test fails: fix and re-run. Do not move on until green.

Scope Guard

If the task grows beyond what was planned:

  1. STOP immediately.
  2. Add out-of-scope items to TODOS.md.
  3. AskUserQuestion: "Discovered [X] is also needed. Include in current scope, note as follow-up, or re-plan?"
  4. Only AskUserQuestion for scope changes. For implementation details, make the simpler choice and keep moving.

File Scope Guard (ticket mode only)

When in ticket mode, the ticket's files list defines the expected scope:

  • Before modifying a file not in the files list: AskUserQuestion — "File path/to/file.ts isn't in this ticket's scope. Add to scope or create a follow-up ticket?"
  • This prevents parallel agents from creating merge conflicts by touching the same files.

Phase 5: Post-Execution (ticket mode only)

After all tests pass, update tracking systems:

  1. Update TODOS.md: Mark the ticket as done — change - [ ] to - [x] for the ticket's line.
  2. Update Linear (if CLI available): Run linear issue update <issue-id> --status "Done".
  3. Report unblocked tickets: Read the plan's dependency DAG. List any tickets whose depends_on are now all complete. Announce: "Newly unblocked: P1-4, P2-3"

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.