setup-project
Skill0 starsChanged 55 days agoMITView on GitHub
Bootstrap or repair a repo for the Bossmann agent stack (Claude Code primary; Cursor/Codex/Gemini via sync-all.sh) (cursor-kit templates, token-engine, pstack models, Matt Pocock engineering skills, cursor-team-kit, continual-learning, verification-planning, simplify, blindspot-pass). Use whenever the user asks to set up / setar / scaffold a project or repo for agents, wire AGENTS.md + PROJECT.md + .claude/state, run first-time Cursor kit install, or says the repo is missing agent memory, checkpoints, docs/agents, or stack integration — even if they do not say "setup-project". Prefer this over ad-hoc copying of templates.
20 other projects use a version of this.
Adopted by
Most recently taken up by
- lohi-ai/babysittheir own version, first seen Nov 8, 2026
- roedyrustam/doku-gemini-mcptheir own version, first seen Nov 8, 2026
- ok-oldking/ok-scripttheir own version, first seen Nov 1, 2026
- OlliTapio/claude_skillstheir own version, first seen Oct 26, 2026
- MacroMan5/autotrain-yolotheir own version, first seen Oct 25, 2026
- boonkgim/setup-projecttheir own version, first seen Oct 20, 2026
Used with
Projects with it also use implement and review-pr.
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.
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 4 projects that use this
DockerSkillreview-pr
Review one or more incoming Docker documentation pull requests as a maintainer. Independently validate technical claims, assess editorial fit and information architecture, choose a verdict, and draft exact inline or PR-wide feedback behind a confirmation gate. Use for requests such as "review PR 123", "is this PR correct?", "does this information belong here?", "validate this PR", or "help review backlog PRs". Do not use to maintain or fix a PR you own; use maintain-pr for that.
Also in 3 projects that use this
Other versions20 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 20
- ok-oldking/ok-script★ 831same name
- gricha/dangerous-skills★ 38same name
- MacroMan5/autotrain-yolo★ 8same name
- phatysddev/skills★ 8same name
- chav0/UnityFigmaMCP★ 7same name
- ByronFinn/dev-skills★ 4same name
- otaviobarros/agent-engineering★ 3same name
- beeltec/skills★ 2same name
- r2rka1/skills★ 2same name
- roedyrustam/doku-gemini-mcp★ 2same name
10 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- AGENTS.mdAGENTS.md
- claude/CLAUDE.mdCLAUDE.md
- ai-memory-curateSkill
- asd-ste100Skill
- blindspot-passSkill
- code-reviewSkill
- diagnosing-bugsSkill
- digest-filesSkill
- domain-modelingSkill
- emodeSkill
- find-skillsSkill
- grillingSkill
- handoffSkill
- new-botSkill
- prior-art-checkSkill
- prototypeSkill
- prSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- setup-ai-memorySkill
- setup-matt-pocock-skillsSkill
- setup-pucprSkill
- simplifySkill
- tddSkill
- verification-planningSkill
- wayfinderSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. 0 are common, 13 are distinctive, and 21 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
If missing, resolve from the plugin/repo path that contains AGENTS.md.template.
- Very specific: line 23
Read references/layers.md before writing files so global vs per-repo stays clear.
- Distinctive: line 29
C: ask interview depth 1 (minimal) or 2 (completo) before phase 2+
- Distinctive: line 37
Ask two questions up front (one answer each.
- Distinctive: line 47
If the user already stated mode/depth in the trigger message, skip the matching question.
- Distinctive: line 53
Check, do not duplicate:
- Distinctive: line 70
Create AGENTS.md only if absent — continual-learning sections only:
- Very specific: line 73
Create PROJECT.md only if absent
- Very specific: line 77
Prefer the kit's install.sh when the machine has ~/Projects/cursor-kit linked.
- Very specific: line 79
Do not copy global ~/.cursor/rules into the project.
- Very specific: line 83
If PROJECT.md is still template-empty, or the user said yes to filling it:
- Distinctive: line 86
Keep the Decisions table for approved architecture only
- Very specific: line 94
Run the same process as /setup-matt-pocock-skills (explore → section questions → confirm draft → write):
- Distinctive: line 105
Ensure AGENTS.md matches the plugin contract (two learned sections, plain bullets only).
- Distinctive: line 106
Document for the user (do not invent secrets):
- Distinctive: line 111
Do not invent learned bullets during setup.
- Very specific: line 121
Prefer the cursor-kit plugin (~/.cursor/plugins/local/cursor-kit/skills/ or marketplace/local plugin path).
- Very specific: line 131
If the plugin is missing and Cloud/VM needs the kit skills, run scripts/install-cloud-skills.sh (copies only when plugin absent, unless …
- Very specific: line 142
If interview depth is 2 and the repo looks JS/TS (package.json with js/ts tooling, or *.ts/*.tsx dominant):
- Very specific: line 144
Ask whether to install measure-only quality gates from templates/quality-gates/ (recommended default when no ESLint max-lines rule exists).
- Very specific: line 145
If yes, follow kit docs/prompts/05-quality-gates-install.md (copy templates, adapt paths, run measure, do not autofix).
- Very specific: line 146
Always point to kit docs/02-playbook-onboarding.md and docs/tools/05-quality-gates.md.
- Very specific: line 147
If not JS/TS, one line: quality-gates templates are N/A.
- Very specific: line 148
If the target repo will be used from Cursor Projects (Cloud) and has no .cursor/environment.json, offer to copy kit …
- Very specific: line 154
Always (depth 1 + 2): if companion is installed but broken (no binary, server down, MCP missing, or hooks wiped), repair via …
- Very specific: line 155
Depth 2 only: if companion was never installed, install it (recommended default on this stack.
- Very specific: line 156
Depth 1: if never installed, one line: long-horizon wiki skipped.
- Distinctive: line 159
Keep AGENTS / PROJECT / checkpoint authoritative.
- Distinctive: line 161
Do not reinvent matt-pocock, pstack, or ai-memory core here.
- Very specific: line 169
If ai-memory wired: curl loopback /mcp → 405, or MCP memory_status
- Distinctive: line 174
Always end with a compact checklist:
- Very specific: line 196
No competing episodic state — AGENTS.md + PROJECT.md + .claude/state stay authoritative.
- Distinctive: line 197
No Hermes / Claude Code / OMH runtime assumptions
- Very specific: line 200
If move_agent_to_root fails after creating a new repo, stop and ask the user to open that folder before writing further project files
“Common” is measured: kept by at least 6 in 10 of the 18 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.
Files
Setup project
Orchestrate one coherent per-repo setup on top of the global Cursor environment. Compose existing skills and templates — do not rewrite them inline.
Canonical kit root: ~/Projects/cursor-kit (the git checkout itself, no symlink).
If missing, resolve from the plugin/repo path that contains AGENTS.md.template.
Read references/layers.md before writing files so global vs per-repo stays clear.
Locked decisions (this skill)
- A2: per-repo setup + global repair when MCP / hooks / pstack rule are missing
- B3: support new empty repo and existing workspace — ask which at start
- C: ask interview depth 1 (minimal) or 2 (completo) before phase 2+
- Idempotent: never clobber filled
AGENTS.md/PROJECT.md; only create or fill gaps - Portuguese OK in chat; keep paths, identifiers, and file contents in English unless the target project is PT-first
Process
0. Mode + interview depth
Ask two questions up front (one answer each; lead with the recommended default):
- Target mode (recommended: existing workspace if a project root is already open)
- Existing repo — scaffold into the current project root
- New repo — confirm name + parent dir (prefer
~/Projects/or~/Developer/if present, else~), create dir,git init, thenmove_agent_to_rootinto it before writing files
- Interview depth
- 1 — Minimal: issue tracker (via Matt Pocock setup) + "fill PROJECT.md now?"
- 2 — Completo: everything in 1, plus confirm stack summary, offer codebase-memory index, note poteto/pstack as default for non-trivial work, offer quality gates for JS/TS (measure-only; point at kit playbook +
docs/prompts/05-quality-gates-install.md), arrumar ai-memory (install/repair companion via/setup-ai-memory; see §6c), remind kit skillsverification-planning+simplify+blindspot-pass, and point atdocs/02-playbook-onboarding.mdfor the stranger path
If the user already stated mode/depth in the trigger message, skip the matching question.
1. Global pré-check (repair only if broken)
On Claude Code the table below maps to: MCP → claude mcp list (token-engine, codebase-memory, context7, ai-memory); hooks → ~/.claude/settings.json; pstack/superpowers → claude plugin list. Repair any tool in one go with ~/Projects/cursor-kit/sync-all.sh (merge-safe). Cursor-only paths (~/.cursor/...) apply when Cursor is the active tool.
Check, do not duplicate:
| Check | Healthy signal | Repair |
| pstack models | ~/.cursor/rules/pstack-models.mdc exists | Follow /setup-pstack (detect models → confirm → write rule) |
| token-engine MCP | ~/.cursor/mcp.json has token-engine pointing at a real Python/venv | Point at ~/Projects/token-engine / ~/Projects/token-engine; remind user to enable MCP + reload if needed |
| Hooks | ~/.cursor/hooks.json has sessionStart / postToolUse / stop | Restore via kit ./sync-hooks.sh (merge-safe — preserves companions like ai-memory); do not invent a second hook system inside the repo; do not overwrite hooks.json from scratch when companions are present |
| ai-memory companion | Binary on PATH or ~/Applications/ai-memory/ai-memory; curl http://127.0.0.1:49374/mcp → 405; MCP ai-memory in ~/.cursor/mcp.json; hooks.json has kit and ai-memory commands | Repair if broken via /setup-ai-memory (or scripts/install-ai-memory.sh). If never installed: depth 1 → one-line note + skip; depth 2 → install/repair in §6c (default recommend yes on this stack). Keep AGENTS/PROJECT/checkpoint authoritative |
| Plugins | cursor-team-kit, continual-learning, pstack available | If missing, tell user to /add-plugin (or install this cursor-kit plugin); do not fake plugin install |
Summarize what was OK vs repaired in one short block before continuing.
2. Cursor-kit scaffold (idempotent)
From kit templates (AGENTS.md.template, PROJECT.md.template, state/checkpoint.json.example, gitignore.snippet):
- Ensure
.claude/state/exists - Create
AGENTS.mdonly if absent — continual-learning sections only:## Learned User Preferences## Learned Workspace Facts
- Create
PROJECT.mdonly if absent - Create
.claude/state/checkpoint.jsononly if absent - Append kit gitignore snippet if
checkpoint.jsonignore is missing
Prefer the kit's install.sh when the machine has ~/Projects/cursor-kit linked; otherwise copy the same files from this plugin repo root.
Do not copy global ~/.cursor/rules into the project.
3. Project brain
If PROJECT.md is still template-empty, or the user said yes to filling it:
- Derive stack/commands from manifests (
package.json,pyproject.toml, README, CI) - Keep the Decisions table for approved architecture only
- Never store secrets
Depth 1: ask before filling an existing non-empty PROJECT.md.
Depth 2: fill/refresh from manifests unless the user declines.
4. Matt Pocock engineering config
Run the same process as /setup-matt-pocock-skills (explore → section questions → confirm draft → write):
docs/agents/issue-tracker.mddocs/agents/domain.mddocs/agents/triage-labels.mdonly iftriageskill is installed## Agent skillsblock in existingAGENTS.mdorCLAUDE.md(never create the other when one exists; if neither exists,AGENTS.mdis the kit default — create it in phase 2 first)
Reuse the user's installed setup-matt-pocock-skills templates when present under ~/.cursor/skills/setup-matt-pocock-skills/.
5. Continual-learning ready
Ensure AGENTS.md matches the plugin contract (two learned sections, plain bullets only).
Document for the user (do not invent secrets):
- Transcripts:
~/.cursor/projects/<workspace-slug>/agent-transcripts/ - Incremental index:
.cursor/hooks/state/continual-learning-index.json(created by the plugin when it runs)
Do not invent learned bullets during setup.
6. Team-kit + pstack reminders
- Confirm cursor-team-kit skills (CI/PR/review,
deslop) are available; if not, instruct/add-plugin cursor-team-kit - pstack: only invoke
/setup-pstackwhen phase 1 found the rule missing; otherwise one line that models already apply to new sessions - Depth 2 only: note that non-trivial engineering should prefer
/poteto-modewhen that skill is installed
6a. Kit verification / cleanup skills
Prefer the cursor-kit plugin (~/.cursor/plugins/local/cursor-kit/skills/
or marketplace/local plugin path). Do not also copy these into
~/.cursor/skills/ on desktop — duplicates confuse which copy is live.
| Skill | When to point the user at it |
verification-planning | Before non-trivial implement — evidence path + budget |
simplify | After behavior is proven — readability without behavior change |
blindspot-pass | Second pass before ship (edges / silent failures) |
If the plugin is missing and Cloud/VM needs the kit skills, run
scripts/install-cloud-skills.sh (copies only when plugin absent, unless
FORCE_USER_SKILLS=1). Desktop sync: rsync kit → local plugin, then Reload.
Depth 2: add a short Agent skills note in AGENTS.md or
docs/agents/ only if the Matt phase already maintains an Agent skills block —
list the three triggers in one line each. Depth 1: mention in the Done
report only.
6b. Quality gates offer (depth 2 only)
If interview depth is 2 and the repo looks JS/TS (package.json with js/ts tooling, or *.ts/*.tsx dominant):
- Ask whether to install measure-only quality gates from
templates/quality-gates/(recommended default when no ESLint max-lines rule exists). - If yes, follow kit
docs/prompts/05-quality-gates-install.md(copy templates, adapt paths, run measure, do not autofix). - Always point to kit
docs/02-playbook-onboarding.mdanddocs/tools/05-quality-gates.md. - If not JS/TS, one line: quality-gates templates are N/A; document whatever gate the stack uses in
PROJECT.md. - If the target repo will be used from Cursor Projects (Cloud) and has no
.cursor/environment.json, offer to copy kittemplates/cloud/environment.json→.cursor/environment.jsonso Builds install kit skills on the VM (seedocs/tools/09-cloud-projects.md).
6c. ai-memory companion — arrumar (always check; install on depth 2)
Part of stack setup. Delegate to /setup-ai-memory — do not reimplement upstream.
- Always (depth 1 + 2): if companion is installed but broken (no binary, server down, MCP missing, or hooks wiped), repair via
/setup-ai-memory/scripts/install-ai-memory.sh. After repair, confirm kit hooks still present (./sync-hooks.shis merge-safe). - Depth 2 only: if companion was never installed, install it (recommended default on this stack; user may decline once). Point at
docs/prompts/07-ai-memory-wire.md+docs/tools/10-ai-memory.md. - Depth 1: if never installed, one line: long-horizon wiki skipped; use depth 2 or
/setup-ai-memorylater. - Reminder: new Cursor repos auto-capture once companion is healthy — no per-repo reinstall. Optional
.ai-memory.tomlonly if the user wants custom workspace/project naming. - Seed the new project (all depths, when ai-memory is healthy): run
~/Projects/cursor-kit/scripts/seed-project.sh <repo>. It installs the ai-memory routing snippet + managed skills into the repo (install-instructions --compact), applies the cross-project profile as a managed block viaai-memory profile apply(no-op until >=2 projects share a habit), and, only withAI_MEMORY_BOOTSTRAP=1on an existing git repo and user consent (sends repo text to the configured LLM), runsai-memory bootstrap. Handoff/brief delivery at SessionStart needs no repo step. - Keep AGENTS / PROJECT / checkpoint authoritative. Report: OK | repaired | installed | declined | N/A (non-macOS / blocked).
Do not reinvent matt-pocock, pstack, or ai-memory core here.
7. Optional smoke (depth 2 or when user asks)
Offer, do not force:
- Ping token-engine (
caveman_statsor a tiny compress) if MCP is up codebase-memoryindex_repository/list_projectsfor this root- If ai-memory wired:
curlloopback/mcp→ 405, or MCPmemory_status - Point at kit smoke A/B/C in
docs/02-playbook-onboarding.md(continue / PROJECT decision / failure retry)
8. Done report
Always end with a compact checklist:
## Setup complete
- Mode: existing | new (`path`)
- Interview: minimal | completo
- Global: OK | repaired (list)
- Created/updated: (file list)
- Matt Pocock: issue tracker = …
- Quality gates: offered | installed (measure) | N/A | declined
- ai-memory: OK | repaired | installed | declined | N/A
- Kit skills: verification-planning / simplify / blindspot-pass / setup-ai-memory = plugin | missing
- Plugins: team-kit / continual-learning / pstack = present | action needed
- Playbook: docs/02-playbook-onboarding.md
- External inventory: docs/EXTERNAL-COMPONENTS.md
- Next: reload window if MCP/plugins changed; then normal work (or `/poteto-mode` for non-trivial)Guardrails
- Composition over duplication: delegate to
setup-pstack,setup-matt-pocock-skills,/setup-ai-memory; fillPROJECT.mdfrom manifests inline (no separateproject-brainskill) - No competing episodic state — AGENTS.md + PROJECT.md +
.claude/statestay authoritative; ai-memory wiki is an optional long-horizon companion (not a second checkpoint) - No Hermes / Claude Code / OMH runtime assumptions
- Windows users may still use
install.ps1; on macOS/Linux preferinstall.sh - Global hooks: merge, do not clobber companions (
./sync-hooks.shis merge-safe) - If
move_agent_to_rootfails after creating a new repo, stop and ask the user to open that folder before writing further project files
Out of scope
- Implementing app features inside the target repo
- Packaging releases of token-engine or forking ai-memory
- Rewriting global hooks from scratch when they already work
- Full skill-creator eval loops (separate follow-up)
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
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.

