agentleFS
allmontyallmonty/better-code-agent/skills/bootstrap-project/SKILL.md

bootstrap-project

Skill0 starsChanged 10 days agoMITView on GitHub

Installs the better-code-agent guardrails into the current project - AGENTS.md, rules, roadmap/progress/plan/ADR files and a scripts/check.sh quality gate filled in for the detected stack. Use when starting a new project or adding guardrails to an existing one.

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Copy templates: Run ${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.sh "$PWD".

    line 25
  2. Very specific:

    Prove the gate works: Run scripts/check.sh and show the output.

    line 31

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

Bootstrap project guardrails

Work in the user's project: the current working directory. Every path below is relative to it, not to this skill's own folder.

Copy this checklist and tick it as you go:

- [ ] 1. Copy templates
- [ ] 2. Detect the stack
- [ ] 3. Fill scripts/check.sh
- [ ] 4. Wire CI
- [ ] 5. Fill AGENTS.md
- [ ] 6. Seed the roadmap
- [ ] 7. Prove the gate works
- [ ] 8. Commit
  1. Copy templates. Run ${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.sh "$PWD". It never overwrites; note which files it skipped. Where a file already existed (for example an AGENTS.md), merge the missing sections into it instead of replacing it.
  2. Detect the stack from manifests and lockfiles. Read .claude/rules/stack-practices.md. List the formatter, linter, type checker, test runner and e2e tool already configured; prefer those over new ones.
  3. Fill scripts/check.sh with the format check, lint (including a complexity limit), type check, duplication check and test commands, in that order, each failing the script on error. Use what the project already has (npm run lint, make test, ...). If a category has no tool, add the stack's standard one only after asking the user. Remove the "not configured" stub.
  4. Wire CI: in .github/workflows/check.yml, replace the # Stack setup goes here. line with the setup steps the check needs (e.g. actions/setup-python and installing dependencies). Using another CI? Port the same two steps: check out, run scripts/check.sh.
  5. Fill AGENTS.md: the one-line description, the exact commands (check, single test, run app), and any conventions or gotchas you found that the code doesn't make obvious. Keep it short: no architecture tour, no generic advice.
  6. Seed docs/ROADMAP.md with milestones the user names. Leave it empty if they name none; don't invent work.
  7. Prove the gate works. Run scripts/check.sh and show the output. If it fails on existing problems, report them; fixing them is separate work, each fix its own commit.
  8. Commit the guardrail files alone, with a message saying what was installed.

The Stop hook from the plugin now runs scripts/check.sh whenever you try to finish with changed files.

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.