craft-project-setup
Skill2 starsChanged 7 months agoMITView on GitHub
Set up a new project with complete Claude Code infrastructure, or enhance an existing project with missing pieces. Detects foreign structures and hook issues before touching anything.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- michtio/craftcms-claude-skillstheir own version, first seen Jul 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- michtio/craftcms-claude-skills★ 82same name
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 repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- craft-global-auditSkill
- craft-project-audit-fullSkill
- craft-project-auditSkill
- craft-project-dreamSkill
- craft-project-exploreSkill
- craft-project-rememberSkill
- craft-project-statusSkill
- craft-session-solidifySkill
- craft-update-selfSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Fresh mode: No CLAUDE.md and no .craft/ directory exist.
- Distinctive: line 26
Before doing anything, verify templates are available:
- Very specific: line 36
All template reads go through $TEMPLATES_DIR/<filename>.
- Distinctive: line 77
All paths are relative to the current working directory.
- Very specific: line 98
Read $TEMPLATES_DIR/stack-rules.md.
- Very specific: line 112
When CLAUDE.md or .craft/ already exists, skip Phase 1 entirely.
- Very specific: line 124
Stop hook using echo without JSON — invalid, causes "Invalid input" errors
- Very specific: line 125
Stop hook using hookSpecificOutput.additionalContext — wrong schema for Stop hooks
- Very specific: line 157
Check each file listed in Phase 2.
- Distinctive: line 159
Never overwrite an existing file.
- Distinctive: line 161
After creating all missing files, report:
- Distinctive: line 213
No GitHub repository creation
- Distinctive: line 214
No secrets or SSH key setup
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
craft-project-setup
Orchestrate fresh setup or enhance-mode. Reads templates from ~/.claude/craft-templates/, substitutes placeholders, writes to the current project.
IMPORTANT: Never overwrite existing files. Enhance-mode is strictly additive.
Two modes (auto-detected)
Fresh mode: No CLAUDE.md and no .craft/ directory exist. Create everything from scratch.
If this is an existing codebase (has source files), suggest running
/initfirst./initanalyses the codebase and generates a starter CLAUDE.md automatically. Then re-run/craft-project-setup— it will detect the file and switch to Enhance mode.
Enhance mode: CLAUDE.md or .craft/ already exists. Show what exists, show what is missing, ask before adding anything. Never overwrite. Never remove.
Template location
Before doing anything, verify templates are available:
TEMPLATES_DIR="$HOME/.claude/craft-templates"
if [[ ! -d "$TEMPLATES_DIR" ]]; then
echo "craft-templates not found at $TEMPLATES_DIR — reinstall craft via install.sh"
exit 1
fiAll template reads go through $TEMPLATES_DIR/<filename>. Placeholders use [UPPERCASE_WITH_UNDERSCORES] and are substituted based on Phase 1 answers.
Phase 1: Questions (Fresh mode only, ask one at a time, wait for each answer)
Q1: "What is this project?" (1-sentence description)
Q2: "Project type? A) Software project (code will be written) B) Project management (docs, planning, coordination) C) Hybrid (code + substantial documentation)"
Q3 (only if A or C): "Tech stack? (multiple ok, or 'not decided yet')
- Shopify Theme (Liquid)
- Shopify App (React + TypeScript + Prisma)
- Next.js / React (TypeScript)
- Astro (TypeScript, SSG)
- PHP / Drupal
- PHP custom / Composer
- Python
- WordPress
- Static HTML/CSS/JS
- Node.js / TypeScript (other)
- Other (describe)"
Q4: "Project context? (client name, team, personal, open source -- optional, press Enter to skip)"
Q5: "What is the goal? What should be better after this project? (2-4 sentences)"
Q6 (only if A or C): "Deploy target?
- Hetzner / VPS (SSH) · Vercel / Netlify · Fly.io · Shopify (no own server) · Local only · Not decided yet"
Q7: "Any first known tasks for the backlog? (list them, or press Enter to skip)"
Q8: "What language should project files be in? (Default: English -- or type e.g. German, French, Spanish)"
Phase 2: Create files (Fresh mode)
All paths are relative to the current working directory. Generate content in the language from Q8 (default English).
For each file below: read the template, substitute placeholders, write to destination.
| Destination | Template | Placeholders to substitute |
CLAUDE.md | CLAUDE.md.template | [PROJECT TITLE], [GOAL], [CONTEXT], [STACK_TABLE], [DEPLOY] |
.claude/settings.json | settings-software.json (type A or C) or settings-pm.json (type B) | none |
.craft/QUALITY.md | QUALITY.md | none — copy as-is |
.craft/memory/MEMORY_INDEX.md | MEMORY_INDEX.md.template | [PROJECT NAME] |
.craft/memory/learned-rules.md | learned-rules.md.template | [PROJECT NAME] |
.craft/PROJECT_STATE.md | PROJECT_STATE.md.template | [PROJECT TITLE], [DATE], [GOAL], [STACK], [DEPLOY] |
.craft/BACKLOG.md | BACKLOG.md.template | [PROJECT TITLE], [TASKS] (from Q7, one bullet per line, or _not yet defined_) |
.craft/HANDOVER.md | HANDOVER.md.template | [PROJECT TITLE], [DATE], [FIRST_TASK] |
.craft/DECISIONS.md | DECISIONS.md.template | [PROJECT TITLE], [DATE] |
.craft/rules/coding.md | coding.md.template (type A or C) | [PROJECT TITLE], [STACK_RULES] (see below) |
.craft/rules/workflow.md | workflow.md.template (type B or C) | [PROJECT TITLE] |
.gitignore | gitignore-base | append stack additions (see below) |
Stack-specific rules for .craft/rules/coding.md
Read $TEMPLATES_DIR/stack-rules.md. Find the section matching Q3's answer (e.g. ## Next.js / React (TypeScript)). Append that section's body to .craft/rules/coding.md in place of [STACK_RULES]. If no stack was chosen, write _to be defined_.
Stack-specific additions for .gitignore
Append based on Q3:
- Node.js / Next.js / Shopify App →
node_modules/,.next/,.vercel/,dist/,build/ - Python →
__pycache__/,*.pyc,venv/,.venv/ - PHP / Drupal →
vendor/,web/sites/default/settings.php - Shopify Theme →
*.bak,node_modules/
Phase 3: Enhance mode behavior
When CLAUDE.md or .craft/ already exists, skip Phase 1 entirely.
Step 0: Conflict scan (runs before anything else)
Scan for two things: unexpected files at root level, and hook issues in .claude/settings.json.
Unexpected files — files craft does not create, at project root (not inside .craft/):
PROFILE.json·TASKS.md·LESSONS.md·sessions.jsonl·memory/dir ·.memory/dir
Do NOT guess where these came from. Report what exists, nothing more. Exception: if three or more are present together, note it as a possibility (not certainty) that they may belong to the same external system. Still do not name a specific tool unless there is a clear in-file marker.
Hook issues in .claude/settings.json (if it exists):
- Stop hook using
echowithout JSON — invalid, causes "Invalid input" errors - Stop hook using
hookSpecificOutput.additionalContext— wrong schema for Stop hooks - Any hook command using
python3— fragile, fails silently if python3 is unavailable
If nothing unexpected and no hook issues: proceed to "One-shot" below immediately.
If anything is found: stop and report:
Unexpected files found in: [PROJECT NAME]
These files are not part of craft and their purpose is unknown:
[list]
Hook issues in .claude/settings.json:
[list]
How would you like to proceed?
A) Add craft alongside — unexpected files left untouched, hooks not fixed.
B) Fix hooks only — repair schema errors, leave everything else.
C) Add craft and fix hooks — create missing craft files, repair hooks.
D) Stop — no changes. Resolve manually first, then re-run.Wait for answer.
- A: Proceed to "One-shot". Skip
.claude/settings.json. - B: Fix only the hook issues using
settings-software.jsonas reference. Nothing else. - C: Proceed to "One-shot". Also fix hooks if present.
- D: Stop.
One-shot: scan, create, report
Check each file listed in Phase 2. For each that is missing: read the template, substitute derivable placeholders (project name from CLAUDE.md title or directory name, date from date +%Y-%m-%d, everything else left as placeholder for later editing), and write.
Never overwrite an existing file.
After creating all missing files, report:
Enhanced: [PROJECT NAME] (craft-project-setup v1.5.2)
Created:
[list]
Already existed (not modified):
[list]
IMPORTANT: .craft/ is for craft management only. Project work data
(analyses, research, outputs, inventories) goes in the project root
or in visible subfolders, never inside .craft/.Phase 4: Confirmation (Fresh mode)
Setup complete: [PROJECT NAME] (craft-project-setup v1.5.2)
Created:
CLAUDE.md
.claude/settings.json ([Software|PM] profile)
.craft/QUALITY.md
.craft/memory/ (MEMORY_INDEX.md + learned-rules.md)
.craft/ (STATE + BACKLOG + HANDOVER + DECISIONS + rules/)
.gitignore
IMPORTANT: .craft/ is for craft management only (STATE, BACKLOG, memory, etc.).
Project work data — analyses, research, outputs, inventories — goes in the
project root or in visible subfolders (inventory/, output/, analysis/),
never inside .craft/. .craft/ is hidden on macOS Finder; a user looking
there sees nothing.
Note: settings.json grants Write(*) and Edit(*) globally.
Restrict to Write(./) and Edit(./) if you prefer project-scoped access.
Next steps:
1. git init (if not already a repo)
2. Start your first task from the backlog
3. Run /craft-project-status anytime to check progressWhat this skill does NOT do
- No automatic
git init - No
package.json/composer.json/requirements.txt - No GitHub repository creation
- No secrets or SSH key setup
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.

