agentleFS
michalzanmichalzan/foreman/skills/run/SKILL.md

run

Skill4 starsChanged 32 days agoMITView on GitHub

Start an unattended run on an approved plan, in a project that has a .foreman.toml. Takes a plan file, or several plan files to run as a chain one after the other, and optionally the units to run; with no units it runs everything from each plan's resume point to the end. Use when the user says "run W8 to W10", "run this plan", "start a run", "work through these units unattended", or invokes /foreman:run.

57 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use status, plan and 8 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.
  • AnthropicSkill

    status

    Case status summary by audience — client-facing (plain language), internal (for the professor), or court-ready (formal caption format per local rules). Same facts, different framing and depth. Use when a student needs to update the client, brief the professor, or prepare a court status report.

    Also in 5 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 6 projects that use this

  • MicrosoftSkill

    doctor

    Diagnose an Amplifier CLI environment through the CLI doctor agent. USE WHEN a user requests CLI runtime, settings or missing-capability inspection. DO NOT USE for project bugs or other hosts.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    verify

    End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.

    Also in 6 projects that use this

  • SentrySkill

    spec

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 4 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 54 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

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

    Run the doctor: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/doctor.py" --cli If it prints anything except foreman: ok, …

    line 14
  2. Very specific:

    If it prints anything except foreman: ok, show the output and stop.

    line 15
  3. Distinctive:

    If the user named units, use those.

    line 18
  4. Very specific:

    Start the run from the project root: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/run.py" start --plan <plan file> <unit> …

    line 20
  5. Very specific:

    If the user asked for a plain run, add --plain before --plan.

    line 23
  6. Very specific:

    Follow the run contract that run.py start printed.

    line 27
  7. Distinctive:

    not to commit, push, or edit the plan file, the decisions log or the parked file: those are yours

    line 35
  8. Distinctive:

    Read the report when it arrives.

    line 42
  9. Very specific:

    Run the project's check command (it is in .foreman.toml).

    line 43
  10. Distinctive:

    Commit, update the resume point in the plan file, push the working branch.

    line 44
  11. Very specific:

    Do not run /foreman:init or edit .foreman.toml during a run, even when the doctor says the audit is stale (a unit that adds build files …

    line 46
  12. Very specific:

    When the stop gate tells you to continue, continue.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 54 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

Foreman run

A run tells the stop gate to keep you working through the named units instead of stopping to ask what comes next.

Start

A run is best started in a fresh session (quit and start claude again, or /clear, then /foreman:run): everything already in the session is carried through the whole run. Clearing before the start is safe; the run binds to a session only when it starts. Never /clear during a run: it starts a new session the run is not bound to.

  1. Run the doctor: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/doctor.py" --cli If it prints anything except foreman: ok, show the output and stop. Never start a run while Foreman is weakened.
  2. Take the plan file from the user's message. Ask only if it is missing. Several plan files make a chain: they run in the order given, in this one run.
  3. Work out the units:
    • If the user named units, use those.
    • If not, read the plan, find its resume point, and take every unit from there to the end of the plan, in plan order. In a chain, do this for each plan. Tell the user in one line which units that is, then carry on without waiting for an answer.
  4. Start the run from the project root: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/run.py" start --plan <plan file> <unit> <unit> ... For a chain, repeat --plan for each plan, in order: start --plan <first plan> <unit> ... --plan <second plan> <unit> ... If the user asked for a plain run, add --plain before --plan. A plain run skips the simplify pass; the doctor repeats this at every session start and after compaction.

Work

Follow the run contract that run.py start printed; it applies until the run ends, and the doctor repeats it after compaction. Each unit gets a fresh subagent, so your own context only grows by a report per unit. Work natively only if the plan says so.

For each unit, in plan order:

  1. Hand the unit to a subagent (general-purpose). Never start the next unit's subagent before this unit is committed: units share one working tree, so they never run in parallel. Its brief is the only context it has, so give it:

    • the unit's section of the plan, verbatim, and the plan file's path
    • the working directory and branch
    • the decisions log's path, and the rule: a choice cheap to undo, make it and add one line there; a choice expensive to undo or client-facing, do not make it, report it back
    • not to commit, push, or edit the plan file, the decisions log or the parked file: those are yours
    • to run /simplify on its changes before reporting (leave this out in a plain run)
    • for a frontend change, to open the changed screen in a browser and save a screenshot to .foreman/walkthrough/
    • to report back briefly: files changed, decisions logged, anything it could not decide, check output if it ran it
    • the local ports tunnels hold, if run.py start listed any, and the rule: check a localhost port is free before a test or service uses it

    Claude Code runs the subagent in the background and returns at once. End your turn with one line ("Task 3 is with a subagent") and wait: its report wakes you, and the stop gate lets a stop through while a subagent you launched is still working. Do not poll its output file, do not wait with sleep, and do nothing else in the working tree meanwhile.

  2. Read the report when it arrives. Add anything it could not decide to the parked file.
  3. Run the project's check command (it is in .foreman.toml). If it fails, send the failure back to the same subagent, or fix small things yourself.
  4. Commit, update the resume point in the plan file, push the working branch.

Do not run /foreman:init or edit .foreman.toml during a run, even when the doctor says the audit is stale (a unit that adds build files makes it stale). Note it for the hand-back; the user re-runs init and approves it once, after the run.

When the stop gate tells you to continue, continue. Do not run run.py stop: the run ends by itself when your final message opens with Run complete:.

Chains

  • Work the plans in order. Start the next plan when the current one is complete, or when everything left in it is parked. If the current plan ends blocked (a failing check you cannot fix, Blocked on you:), stop there: do not build the next plan on top of it.
  • Branches are stacked: each plan after the first branches from the tip of the previous plan's branch, not from main, whatever the plan's own branch step says. Merging into a protected branch is the user's job, never the run's.
  • A plan's build-file changes make the audit stale; that goes in the hand-back like any other stale audit.

Hand-back

Open the final message with Run complete:, Blocked on you: or Decision needed:, then give:

  • units done, with commit hashes (in a chain, one section per plan)
  • decisions you made (they are in the decisions log)
  • questions parked (they are in the parked file)
  • check status
  • Foreman follow-ups (for example: audit stale, re-run /foreman:init)
  • for a chain: each plan's branch, and for every plan after the first the command that moves it onto main once the previous one is squash-merged: git rebase --onto main <previous branch> <this branch> (re-lock and run the check if a lock file conflicts)
  • what you need from the user

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.