commands/project-init.md
Create a safe, reviewable ECC onboarding plan for the current project. This command should start in dry-run mode and only write files after explicit user approval.
/project-init
/project-init --dry-run
/project-init --target claude
/project-init --target cursor
/project-init --skills continuous-learning-v2,security-review
/project-init --config ecc-install.json
CLAUDE.md, settings files, rules, skills, or install state until the user approves the concrete plan.CLAUDE.md, .claude/settings.local.json, .cursor/, .codex/, .gemini/, .opencode/, .codebuddy/, .joycode/, or .qwen/ already exists, inspect it and propose a merge/append plan instead of overwriting.Read the current project root and detect stack signals from:
package.json, package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lockbpyproject.toml, requirements.txt, go.mod, Cargo.toml, pom.xml, build.gradle, build.gradle.ktsnext.config.*, vite.config.*, tailwind.config.*, Dockerfile, docker-compose.ymlecc-install.jsonconfig/project-stack-mappings.json in the ECC repoWhen the ECC checkout is available, use config/project-stack-mappings.json as the stack-to-rules/skills reference. If the file is unavailable, fall back to the installed ECC manifests and explicit user choices.
claude unless the user asks for cursor, codex, gemini, opencode, codebuddy, joycode, or qwen.ecc-install.json: node scripts/install-plan.js --config ecc-install.json --jsonnode scripts/install-plan.js --profile <profile> --target <target> --jsonnode scripts/install-plan.js --skills <skill-ids> --target <target> --jsonnode scripts/install-apply.js --target <target> --dry-run --json <language-or-profile-args>
Return:
If the user wants a CLAUDE.md starter, generate it separately from the installer plan and keep it minimal:
Never replace an existing CLAUDE.md without showing a diff and receiving approval.
config/project-stack-mappings.json for stack-to-surface hintsscripts/install-plan.js for deterministic plan resolutionscripts/install-apply.js for dry-run and apply operations/ecc-guide for interactive feature discovery before installing