Integrate the vibe/mature phase workflow into a project
Integrate the two-phase (vibe → mature) development workflow into the current project. The phase-workflow repo is located at ../phase-workflow relative to the target project.
Copy everything from ../phase-workflow/scaffold/ into the project root, preserving directory structure:
.claude/phase.claude/settings.json.claude/skills/vibe/SKILL.md.claude/skills/phase/SKILL.md.husky/pre-commit.husky/commit-msg.lintstagedrc.jsoncommitlint.config.jsMake .husky/pre-commit and .husky/commit-msg executable.
If .claude/settings.json already exists, merge the hooks from the scaffold into the existing file rather than overwriting.
Read through the project to determine:
src/main.tsx, src/index.ts, api/*.ts). Look at existing package.json scripts and tsconfig*.json for hints.src/, api/, lib/).tsconfig.app.json, tsconfig.api.json).Read ../phase-workflow/templates/knip.json as a reference. Create knip.json in the project root with the detected entry points and project globs.
Read ../phase-workflow/templates/eslint.config.js as a reference. Create eslint.config.js adapted to the project:
strictTypeCheckedIf the project already has an ESLint config, upgrade it to strictTypeChecked and add the phase-workflow rules rather than replacing it entirely.
Copy ../phase-workflow/templates/mature-SKILL.md to .claude/skills/mature/SKILL.md.
Read ../phase-workflow/templates/devDependencies.json and ../phase-workflow/templates/scripts.json. Merge them into the project's package.json:
"prepare": "husky" is presentRun npm install.
If the project doesn't have a CLAUDE.md, create one. If it does, add the phase workflow section.
The CLAUDE.md should include:
satisfies over as! non-null assertionsTell the user what was set up and that the project is now in vibe phase. Mention that /vibe, /mature, and /phase skills are available.