agentleFS
weselbenweselben/RooForge/skills/forge-init/SKILL.md

forge-init

Skill4 starsChanged 3 months agoApache-2.0View on GitHub

Repo bootstrap runbook — writes the local agent contract and captures repo specifics. User-invoked only.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Read ./agents.template.md.

    line 16
  2. Distinctive:

    Write the template content verbatim as AGENTS.md at repo root.

    line 19
  3. Distinctive:

    Do not overwrite user-written sections.

    line 24
  4. Distinctive:

    Never commit or stage AGENTS.md.

    line 32
  5. Distinctive:

    After every grilling wave (4 questions answered), adapt AGENTS.md:

    line 40
  6. Distinctive:

    Never add deployment-specific or coding-stack-specific content (frameworks, ORMs, runtimes, languages) — the agent reads the code for that.

    line 43
  7. Distinctive:

    Ask the user: "Is this as intended?"

    line 44
  8. Distinctive:

    Only add statements the you judge as unambiguous and valuable.

    line 45
  9. Distinctive:

    Never emit code blocks. Never explain what code does.

    line 49
  10. Distinctive:

    One-shot: Run once. Idempotent re-runs only update.

    line 56
  11. Distinctive:

    Grilling is mandatory: Do not skip. User must confirm the contract.

    line 60
  12. Distinctive:

    Goal-driven: Every addition to AGENTS.md states the goal, not the procedure.

    line 61
  13. Distinctive:

    Create docs folders (forge-flow handles work surface)

    line 76

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

Forge Init

One-shot bootstrap. Runs once per repo. Prepares the agent's local contract (AGENTS.md) so every session starts aligned.

Steps

1. Create or smart-append AGENTS.md

Read ./agents.template.md. Use it as the base.

If AGENTS.md does not exist at repo root:

  • Write the template content verbatim as AGENTS.md at repo root.
  • Load use-git-identity to check ownership. If repo is under the configured identity, proceed. If unclear, ask: "Create AGENTS.md with forge contract at repo root?"

If AGENTS.md exists:

  • Smart-append: preserve existing content, prepend the template's mandatory header (forge load rule + mandates rule) if absent, merge jargon entries (skip duplicates), keep letter-style prose.
  • Do not overwrite user-written sections.

Always:

  • Append at bottom (once):
    ---
    Do not commit or stage this file. Local changes only.
  • Never commit or stage AGENTS.md.

Completion criterion: AGENTS.md at repo root contains the mandatory header, the jargon letter, the no-commit footer.

2. Grilling session for repo-specifics

Load grilling skill. Interview the user about this repo.

After every grilling wave (4 questions answered), adapt AGENTS.md:

  • Amend only non-obvious facts not inferable from reading the repo.
  • Interpret user's language into STE100.
  • Never add deployment-specific or coding-stack-specific content (frameworks, ORMs, runtimes, languages) — the agent reads the code for that.
  • Ask the user: "Is this as intended?"
  • Only add statements the you judge as unambiguous and valuable.

During grilling:

  • Answer user questions back in STE100.
  • Never emit code blocks. Never explain what code does. Never document other files.
  • Goal-driven prompting: frame every addition as "the goal is X, so the agent must Y" — no paths, no procedures, only the contract.

Completion criterion: grilling frontier empty; AGENTS.md captures repo-specific contract.

Rules

  • One-shot. Run once. Idempotent re-runs only update.
  • Never commit AGENTS.md. It is a local contract, not a repo artefact.
  • STE100 throughout. Letter style; jargon: one flowing sentence per term.
  • Mandatory header lives at top of AGENTS.md. Forge load rule + mandates rule. Never removed.
  • Grilling is mandatory. Do not skip. User must confirm the contract.
  • Goal-driven. Every addition to AGENTS.md states the goal, not the procedure.
  • No stack-specific content. Frameworks, ORMs, runtimes, languages are inferable from the code — do not write them into AGENTS.md.

Template

The template lives at ./agents.template.md. Read it verbatim. It contains:

  1. Letter header — "This is a letter from me to you"
  2. Mandatory forge load rule
  3. Mandates rule
  4. Jargon — one flowing sentence per confusing term only

Boundaries

Forge Init does not:

  • Create docs folders (forge-flow handles work surface)
  • Set git identity (use-git-identity does that)
  • Initialise labels (wayfinder/scripts/setup-repo-gh-cli.sh does that)
  • Chart maps or resolve tickets (forge does that)

It only ensures AGENTS.md exists with the contract, then grills for repo specifics.

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.