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

init

Skill4 starsChanged 32 days agoMITView on GitHub

Audit a repository's checks and set it up for Foreman unattended runs. It inventories linters and test suites, proves each can fail, proposes fixes and writes .foreman.toml. Use when the user invokes /foreman:init, asks to set a project up for the harness, or the doctor reports a missing or stale audit.

156 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use daily-arxiv, exp-eval and 10 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.
  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • skyllwtSkill

    exp-pilot-eval

    Pilot result evaluation — read pilot results, apply success criteria, update idea page (pilot_result, failure_reason if failed), generate PILOT_VERDICT_REPORT. Called by /ideate Phase 5 after /exp-pilot-run.

    Also in 4 projects that use this

  • skyllwtSkill

    exp-pilot-run

    Pilot experiment execution — read Pilot Spec YAML, write pilot code, run experiment(Confirm with the user before operation and require the applicant to conduct manual inspection), return results. Called by /ideate Phase 5. Does NOT modify wiki pages or judge pass/fail.

    Also in 4 projects that use this

  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 4 projects that use this

  • gaebalaiSkill

    design-tracker

    PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.

    Also in 4 projects that use this

  • +5 more from Lambenthan
  • +1 more from skyllwt

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 143 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Read the Makefile, package.json files, pyproject.toml, the pre-commit config and the CI pipeline.

    line 12
  2. Distinctive:

    Every gate in the proposed check gets a canary: test suites and type checkers, and also linters, formatter checks, migration checks and …

    line 20
  3. Distinctive:

    Run the proposed check command.

    line 32
  4. Distinctive:

    Remove the canary and confirm git status shows no trace of it.

    line 33
  5. Distinctive:

    Wait for the user's answer.

    line 46
  6. Distinctive:

    Create the decisions log and the parked file if they do not exist.

    line 51
  7. Very specific:

    Add .foreman/ to .gitignore.

    line 52
  8. Very specific:

    Write .foreman.toml with today's date, that fingerprint and that file list under [audit].

    line 55
  9. Very specific:

    Ask the user to read .foreman.toml, then approve it.

    line 56
  10. Very specific:

    Run the doctor: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/doctor.py" --cli.

    line 59
  11. Very specific:

    If the project publishes through an allow-list or similar, confirm .foreman.toml is not published.

    line 60

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

The goal is a check command that is complete and has been seen to fail. Propose everything; apply only what the user approves.

1. Inventory

Read the Makefile, package.json files, pyproject.toml, the pre-commit config and the CI pipeline. List every linter, formatter check, type checker and test suite the repo has, and the command that runs each.

2. Compare

Decide which single command should be the project check (often make check). Trace what it actually runs. List every item from the inventory that it does not run, and anything CI or pre-commit runs that it does not.

3. Prove each gate can fail

Every gate in the proposed check gets a canary: test suites and type checkers, and also linters, formatter checks, migration checks and docs or site builds. Plant one at a time, because a check often stops at its first failure and would hide the rest.

GateCanary
test suitea test asserting 1 == 2
type checkera line with a deliberate type error
linteran unused import, or another rule the config enforces
formatter checka few lines in a format it rewrites
migration checka model change with no migration
docs or site builda page with a broken link or reference
  1. Put the canary in a new file named foreman_canary with the gate's extension, where that gate looks (inside its test paths or include globs). Where only a change to a tracked file can trip the gate, as with most migration checks, pick a file with no uncommitted changes and restore it with git checkout -- <file> afterwards.
  2. Run the proposed check command. It must exit non-zero and name the canary.
  3. Remove the canary and confirm git status shows no trace of it.

A gate whose canary does not turn the check red is a no-op gate: report it as a gap. A gate you could not trip without touching something the user would mind is "not proven": say which and why. Never call the check proven while a gate is in neither list nor turned red.

4. Propose

Show the user one list:

  • each gate with its canary result: red, no-op, or not proven
  • each gap, and the change that closes it (for example, adding a frontend test target to check)
  • the drafted .foreman.toml: check command and timeout, working and protected branches, frontend path prefixes, decisions log, parked file
  • anything you left out on purpose and why (a slow suite, for instance)

Wait for the user's answer. Apply only what they approve.

5. Write

  1. Apply the approved build-file changes and re-run the check to confirm it passes.
  2. Create the decisions log and the parked file if they do not exist.
  3. Add .foreman/ to .gitignore.
  4. Compute the audit fingerprint from the project root, over every build file you read: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/audit.py" <file> <file> ...
  5. Write .foreman.toml with today's date, that fingerprint and that file list under [audit]. The guard will ask the user to approve this write; that is expected.
  6. Ask the user to read .foreman.toml, then approve it. The guard will prompt them; only a person approves: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/trust.py" approve Until it is approved, and again after any later change to it, every gate is off for this project.
  7. Run the doctor: uv run --no-project --python 3.12 "${CLAUDE_PLUGIN_ROOT}/hooks/doctor.py" --cli. It must print foreman: ok.
  8. If the project publishes through an allow-list or similar, confirm .foreman.toml is not published.

Declaration format

[check]
command = "make check"
timeout_seconds = 900

[branches]
protected = ["test", "main"]

[frontend]
paths = ["frontend/src/"]

[plan]
decisions_log = ".planning/DECISIONS-LOG.md"
parked = ".planning/PARKED.md"

[audit]
date = "YYYY-MM-DD"
fingerprint = "sha256:..."
files = ["Makefile", "frontend/package.json"]

frontend.paths are path prefixes. Keep timeout_seconds at 1100 or below.

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.