agentleFS
PiloTracerPiloTracer/pilo.ai.logicbison/skills/project-bootstrap/skill.md

project-bootstrap

Skill0 starsChanged 5 months agoMITView on GitHub

Bootstrap Agent OS into a repository: copy .work skeleton from templates, install .cursorrules and DOCS_TECH_STACK from templates, report missing REPLACE tokens. Use when adopting Agent OS, project-bootstrap init, or bootstrap .work.

17 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

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before copying anything, inventory existing artifacts and decide what to do:

    line 37
  2. Distinctive:

    If any of the above are marked:

    line 48
  3. Distinctive:

    Stop: - do not write.

    line 50
  4. Very specific:

    .cursorrules: - if created from template, list every line containing REPLACE: and stop until user fills them (or use status output).

    line 84
  5. Very specific:

    Integration: - if external APIs: add .work/docs/integration/MANIFEST.txt from .ai/docs/integration/MANIFEST.template.txt.

    line 86
  6. Very specific:

    Do not: run plan-foundation greenfield automatically unless the user asked for full bootstrap in the same message.

    line 95
  7. Very specific:

    Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output.

    line 140

“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

project-bootstrap

One-time (or reset) setup for repositories using Agent OS. Does not replace plan-foundation greenfield (foundation docs 01–04) or plan-master greenfield (master plan).

Downstream (after init): See .ai/skills/SKILL_DEPENDENCIES.md - plan-foundation → certify → plan-master → code-implementation.

Canonical path: .ai/skills/project-bootstrap/skill.md
Templates: .ai/templates/ · Shell: .ai/templates/bootstrap.sh


Parse invocation

User saysMode
@project-bootstrap initCreate missing .work/ files, .cursorrules, DOCS_TECH_STACK.md from templates
@project-bootstrap statusRead-only: what exists, which REPLACE: tokens remain in .cursorrules
@project-bootstrap work-onlyCopy .work/ skeleton only (never overwrite existing files)

Default: status if unclear; suggest init when .work/context/HANDOFF.md is missing.


Init protocol

B0 - Brownfield detection (mandatory before any write)

Before copying anything, inventory existing artifacts and decide what to do:

PathIf exists
.cursorrules (at repo root)Mark as existing - protected
.work/context/HANDOFF.mdMark as existing - populated
.work/plans/NEXT.mdMark as existing - populated
.work/plans/ASSUMPTIONS.md, RISK_REGISTRY.md, UNKNOWNS.mdMark as existing - populated
REPLACE:TECH_STACK_DOC (stack doc)Mark as existing - protected
.work/features/, .work/plans/foundation/, .work/plans/full/ (any contents)Mark as existing - populated

If any of the above are marked:

  1. Stop - do not write.
  2. Emit the brownfield summary:
## @project-bootstrap init - brownfield detected

The repository is already partially bootstrapped. Choose how to proceed:

| Existing | Path | Action choice |
|----------|------|---------------|
| {list every detected file or folder}    | … | overwrite / keep / abort |

### Choose one (reply in the same message)
- **`overwrite-all`** - replace every existing file with the template (destroys current content)
- **`overwrite-missing`** - copy only files that are missing; never touch existing
- **`keep`** - run `@project-bootstrap status` instead (read-only) and exit init
- **`abort`** - exit silently

End the report with the Operator handoff close (Form B with the overwrite/keep/abort choice as a **Needs your approval:** item + one **Next step:** command) per SKILL_DEPENDENCIES.md.

  1. On overwrite-missing (default safest): proceed to step B1 below, copying only files that don't exist.
  2. On overwrite-all: require an extra confirm-overwrite-all token in the same message; otherwise treat as abort.
  3. On keep / abort: exit; do not write.

B1 - Copy templates (only after B0 resolved)

  1. Confirm repo root - directory that will hold .cursorrules and .work/ (the target repo root; when this repo is the framework source, use the repo root).
  2. Run (preferred):
    bash .ai/templates/bootstrap.sh
    Or copy manually from .ai/templates/work/*.template → .work/ (strip .template suffix). Honor the B0 choice - overwrite-missing skips existing paths; overwrite-all replaces them.
  3. Git hooks - bootstrap.sh runs bash .ai/scripts/install-git-hooks.sh when .git/ exists (strips/rejects forbidden Co-authored-by: trailers). Re-run manually after cloning if hooks are missing.
  4. .cursorrules - if created from template, list every line containing REPLACE: and stop until user fills them (or use status output).
  5. Standards - bootstrap.sh scaffolds an empty .work/standards/ (under .work/, never under .ai/; always under .work/standards/); it's populated by @plan-foundation greenfield P3, which points .cursorrules REPLACE:*_FILE tokens at the dated filenames it generates. No manual customization step needed here.
  6. Integration - if external APIs: add .work/docs/integration/MANIFEST.txt from .ai/docs/integration/MANIFEST.template.txt.
  7. Next commands (report in output):
    @plan-foundation greenfield
    @plan-foundation certify plan-master-ready
    @plan-master greenfield
    @session-control start

Do not run plan-foundation greenfield automatically unless the user asked for full bootstrap in the same message.

End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md.


Status protocol

Report:

CheckPathpass / missing
Agent rules.cursorrules
Stack docREPLACE:TECH_STACK_DOC path from rules
HANDOFF.work/context/HANDOFF.md
NEXT.work/plans/NEXT.md
RegistriesASSUMPTIONS, RISK_REGISTRY, UNKNOWNS
Foundation 01.work/plans/foundation/*-01-*
Master plan.work/plans/full/*-full-plan.md
Unfilled tokensrg 'REPLACE:' .cursorrules count

End the report with the Operator handoff close (Form A Next: … or Form B **Needs your approval:** / **Needs your answer:** / **Next step:**) per SKILL_DEPENDENCIES.md. Unfilled REPLACE: tokens the operator must fill are enumerated as Form B items with path:line, not only listed in the table.


Template index

TemplatePurpose
templates/cursorrules.templateRepo-root agent rules
templates/DOCS_TECH_STACK.md.templateStack pins
templates/work/context/HANDOFF.md.templateSession handoff
templates/work/plans/NEXT.md.templateBacklog + iteration block
templates/work/plans/foundation/YYYYMMDD-01-*.templateP0 scope (plan-foundation may author instead)
templates/work/plans/full/YYYYMMDD-full-plan.md.templateMaster plan outline
templates/work/features/example-slug/…Feature SPEC
templates/work/decisions/…ADR

Hard rules

  • Never overwrite existing .work/ or .cursorrules without explicit user permission.
  • Never commit secrets; templates contain no credentials.
  • Do not mark foundation or implementation-ready - other skills own those gates.
  • Operator handoff: every response that ends a turn follows the Operator handoff contract — terse output; approvals under **Needs your approval:** citing path:L<n>; questions numbered under **Needs your answer:**; exactly one **Next step:** command; one line when nothing is needed (Form A). Decisions and questions never mixed; empty sections omitted.

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.