Phase-gated commit workflow for clean git history -- implement, review, test, commit per phase
npx skills add https://github.com/vibeeval/vibecosystem --skill phase-gated-commits
Break large features and refactoring into discrete phases. Each phase follows a strict implement -> review -> test -> commit cycle. The result is a clean, bisectable git history where every commit represents a working state.
Break the work into 2-5 phases. Each phase should:
| Phase Size | Guideline |
|-----------|-----------|
| Too small | Renaming a single variable is not a phase |
| Right size | Add the data model + migration + basic tests |
| Too large | Implement entire feature end-to-end in one phase |
Aim for phases that touch 2-8 files each. If a phase touches more than 10 files, consider splitting it further.
Phase N:
1. IMPLEMENT -- Write the code for this phase only
2. REVIEW -- Self-review the diff, check for issues
3. TEST -- Run tests, verify nothing is broken
4. COMMIT -- Create a single commit for this phase
5. PAUSE -- Wait for user confirmation before Phase N+1
Write only the code that belongs to this phase. Do not reach ahead into the next phase. If you realize the current phase needs to be larger, stop and re-scope before continuing.
Review your own diff before committing:
If review finds issues, fix them within the same phase. Do not defer fixes to a later phase.
Run the project test suite. At minimum:
Create one commit per phase with a descriptive message.
Commit message format:
feat(phase N/M): <description of what this phase accomplishes>
<Optional body explaining WHY this phase exists as a separate unit>
Examples:
feat(phase 1/3): add user preference data model and migration
Separate from the API layer so the schema can be reviewed independently.
feat(phase 2/3): implement preference API endpoints with validation
Builds on the data model from phase 1. Includes input validation
with zod schemas and error handling for all edge cases.
feat(phase 3/3): add preference UI components and integration tests
Connects the API to the frontend. Integration tests cover the
full create/read/update flow.
After committing, pause and confirm with the user before starting the next phase. This gives the user a chance to:
When using this skill alongside plan-documentation:
<task>-phase-N-complete.md) are written after the commitGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
Take vibeeval/phase-gated-commits from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.