SKILL: Project Init
Initialize a project so future sessions and handoffs work consistently in both Cursor and Claude Code. Default to the minimum: three docs plus git. A project earns more files by outgrowing these, not on day 0.
MISSION
Create the minimum durable scaffolding a project needs on day 0:
- Git repo initialized with a
.gitignore, and an MITLICENSEwhenever the project uses git CLAUDE.mdfor project-facing AI guidance, including a short "What this is" and "Key decisions" sectiondocs/WORKLOG.mdwith the task checklist (Now / Next) up top and rolling session notes belowREADME.mdbaseline sections so agents and humans can pick up the repo quickly.cursor/rules/context-router.mdfor Cursor startup routing
Do NOT create SPEC.md, DECISIONS.md, ROADMAP.md, or PROJECT.md. Spec and decision content starts as sections inside CLAUDE.md; the escalation path (below) covers projects that outgrow that.
PROTOCOL (run in this exact order)
Invoking this skill is the user's confirmation for its standard outputs: create the files for the chosen scope without per-file approval. Only two questions need answers at either scope: the scope question and the git question. This overrides any general "state proposed changes and wait for confirmation" habit for files this skill is defined to create.
Step 1: Determine project scope
Ask the user:
"Is this a simple, smaller project (a script, a one-off page, a config, a quick artifact), or an in-depth build (an app or tool you'll develop over time)?"
Do not infer the answer from file types or folder contents, only the user knows how deep this project goes. Exception: if the user already described the project's depth earlier in the conversation, state the scope you inferred and ask them to confirm instead of asking from scratch.
Simple project:
Ask one setup question: "Will this live on git?"
- Yes: run
git initif not already a repo, create a minimal.gitignore(.DS_Store,.env,CLAUDE.local.md, plus stack-specific entries if detected), and create an MITLICENSE, all automatically, no further questions. Use a different license only if the user names one. Do NOT ask where it will be pushed or create a remote; the completion report covers connecting to GitHub later. After all files are created, make an initial commit (Initial scaffold) so the folder is push-ready. - No: skip git,
.gitignore, andLICENSEentirely.
- Yes: run
Create or patch
README.mdwith just: What this is, How to install/use it, and any key configuration. Skip "How to run it" / "How to test or preview" if they don't apply.Create a minimal
CLAUDE.mdso return sessions start oriented (it's the file AI tools auto-load), using the template inassets/claude-md-simple.md.Create
.cursor/rules/context-router.mdso Cursor loads CLAUDE.md too, using the template inassets/context-router-simple.md.Do not create WORKLOG.md or a
docs/folder, a simple project doesn't need session scaffolding. If it grows into a real build later, rerunproject-initand answer "in-depth"; it patches in the missing files.Report completion using the "Simple project" checklist in Step 7 and stop.
In-depth build: continue to Step 2.
Step 2: Verify workspace and detect current state
Confirm you are in the project root and inventory whether these files already exist:
CLAUDE.mddocs/WORKLOG.mdREADME.md.cursor/rules/context-router.md
Prefer patching existing files over replacing them.
Step 3: Ask the git question
Ask: "Will this live on git?" (Skip the question if the project root is already a git repo, treat that as a yes.)
- Yes: run
git initif not already a repo. If.gitignoredoes not exist, create one with sensible defaults for the detected stack (check forpackage.json,requirements.txt,Gemfile, etc.), at minimum.DS_Store,.env,CLAUDE.local.md,node_modules/(if JS/TS), and editor/IDE cruft. Create an MITLICENSEautomatically (use a different license only if the user names one). No further git questions. Do not ask where the repo will be pushed or create a remote; after all scaffolding steps finish, make an initial commit (Initial scaffold) so the folder is push-ready, and the completion report's follow-up block covers connecting to GitHub later. - No: skip git,
.gitignore, andLICENSE. Note in the report thathandoff's commit step won't apply until git is initialized.
If .gitignore or LICENSE already exist, leave them untouched.
Step 4: Create CLAUDE.md and docs/WORKLOG.md
Ensure the docs/ folder exists.
If CLAUDE.md is missing, create it using the template in assets/claude-md-indepth.md (fill in what you know from the conversation; leave honest placeholders otherwise). If CLAUDE.md exists, patch in the worklog check line and any missing section headers, don't rewrite existing content.
Note: Claude Code also loads a gitignored CLAUDE.local.md for personal-only prefs; this skill doesn't create one automatically.
If docs/WORKLOG.md is missing, create it using the template in assets/worklog-template.md.
Step 5: Create or patch README baseline
Ensure README.md includes these minimum sections, adapting or omitting any that don't apply:
- What this is
- How to run it
- How to test or preview
- Key configuration
- Project structure (lightweight, top-level paths)
If README.md already exists, preserve project-specific details and only add missing sections.
Step 6: Create/repair Cursor context router
Ensure .cursor/rules/context-router.md exists, using the template in assets/context-router-indepth.md.
Step 7: Report completion checklist (required)
For the simple branch, return:
Project init checklist (simple project):
- [x] Git repo + `.gitignore` + MIT `LICENSE` (created|skipped-no-git|already good)
- [x] `README.md` (created|updated|already good)
- [x] Minimal `CLAUDE.md` (created|updated|already good)
- [x] `.cursor/rules/context-router.md` (created|already good)
- [x] WORKLOG.md, docs/: not applicable at this scope
Manual follow-up:
- <only include items that still need user action>
If git was initialized (either scope) and no remote exists, always append this to Manual follow-up. Substitute the real values before printing (folder name from the project root, username via gh api user -q .login), the command must be copy-pasteable exactly as shown, no <placeholders>. If gh isn't installed or isn't authenticated, that lookup fails, in that case print the block with ACTUAL-USERNAME left as a literal placeholder and add a one-line note that the user needs to fill in their own GitHub username:
- This folder is committed and ready to push whenever you want it on GitHub:
- Fastest (creates the repo and pushes in one step, paste as-is): `gh repo create ACTUAL-FOLDER-NAME --private --source=. --push` (use `--public` to share it)
- Or create the repo on github.com first, then connect it:
```bash
git remote add origin git@github.com:ACTUAL-USERNAME/ACTUAL-FOLDER-NAME.git
git branch -M main
git push -u origin main
```
For the in-depth branch, return:
Project init checklist:
- [x] Git repo + `.gitignore` + MIT `LICENSE` (created|skipped-no-git|already good)
- [x] `CLAUDE.md` (created|updated|already good)
- [x] `docs/WORKLOG.md` (created|updated|already good)
- [x] `README.md` baseline sections (created|updated|already good)
- [x] `.cursor/rules/context-router.md` (created|updated|already good)
Manual follow-up:
- <only include items that still need user action>
DEFAULTS AND GUARDRAILS
- Never guess scope, always ask (Step 1). Folder contents are not a reliable signal for how deep a project will go.
- Both scopes ask the git question once; a yes covers
.gitignoreand MITLICENSEautomatically, a no skips all three. Never create a remote at scaffold time. - Never delete existing project content to satisfy this skill; patch minimally.
- Never rewrite a full
README.mdif only sections are missing. - Keep file paths in output explicit and copy-pasteable.
- This skill only creates
CLAUDE.md, notAGENTS.md. If you already useAGENTS.mdfrom another tool,handoffwill still recognize and update it, project-init just doesn't create one itself.
Tool-specific notes
Cursor: context-router.md points Cursor at CLAUDE.md and docs/WORKLOG.md. If you maintain a separate global-context file shared across projects, link or reference it from your own Cursor setup; that's outside this skill's scope.
Claude Code: if you keep global instructions in ~/.claude/CLAUDE.md, that's a one-time, machine-level setup, not per-project. This skill does not configure it.
BOUNDARY
project-initis for one-time bootstrap or repairing missing scaffolding.handoffis for recurring session updates (session notes, Now/Next checklist, README health check, durable doc deltas) and owns the escalation when CLAUDE.md's "What this is"/"Key decisions" sections outgrow a screen of content and move todocs/PROJECT.md(the last tier, never split further; the task checklist always stays indocs/WORKLOG.md, never a separate ROADMAP.md). Not part of day-0 init.- Do not move recurring handoff logging into
project-init.