본문으로 건너뛰기
cccskills
무료GitHub에 공개

phase-gated-commits

Phase-gated commit workflow for clean git history -- implement, review, test, commit per phase

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.7 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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.

When to Use

  • Multi-file features where changes span 3+ files
  • Refactoring that touches shared code used by many modules
  • Any work where you want the ability to revert one phase without losing others
  • Migrations or upgrades that should be applied incrementally

When NOT to Use

  • Single-file changes or small fixes
  • Exploratory work where the final shape is unknown
  • Prototyping where speed matters more than history

Phase Structure

Break the work into 2-5 phases. Each phase should:

  • Be independently functional (the codebase works after each commit)
  • Have a clear scope (you can describe it in one sentence)
  • Be reviewable in isolation (a reviewer can understand the diff without needing other phases)

Phase Sizing

Phase SizeGuideline
Too smallRenaming a single variable is not a phase
Right sizeAdd the data model + migration + basic tests
Too largeImplement 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.

Workflow Per Phase

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

Step 1: Implement

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.

Step 2: Review

Review your own diff before committing:

  • Are there debug statements or commented-out code?
  • Does the code follow existing patterns in the codebase?
  • Are there any security concerns (hardcoded values, missing validation)?
  • Is the change minimal -- nothing extra included?

If review finds issues, fix them within the same phase. Do not defer fixes to a later phase.

Step 3: Test

Run the project test suite. At minimum:

  • Existing tests must still pass (no regressions)
  • New code should have tests if the codebase has test coverage
  • If tests fail, fix within the current phase

Step 4: Commit

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.

Step 5: Pause

After committing, pause and confirm with the user before starting the next phase. This gives the user a chance to:

  • Review what was committed
  • Adjust the plan for remaining phases
  • Stop early if the work so far is sufficient

Rules

  1. One commit per phase. Do not batch multiple phases into one commit or split one phase into multiple commits.
  2. No forward references. Phase N should not depend on code that will be written in Phase N+1. Each commit must leave the codebase in a working state.
  3. Fix before advancing. If review or tests reveal a problem, resolve it in the current phase. Never push a known issue to the next phase.
  4. Phases are sequential. Do not start Phase N+1 until Phase N is committed. This ensures each phase builds on a verified foundation.
  5. Re-scope when needed. If mid-implementation you realize the phase breakdown is wrong, stop, revise the plan, and communicate the change. Do not silently merge phases.
  6. Keep phases balanced. Avoid one giant phase followed by tiny cleanup phases. Redistribute work so each phase carries meaningful weight.

Integration with Plan Documentation

When using this skill alongside plan-documentation:

  • Each phase in the plan maps to one phase-gated commit
  • Phase completion docs (<task>-phase-N-complete.md) are written after the commit
  • The plan file phase status is updated after each commit

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

WCAG 2.2 AA compliance, ARIA patterns, keyboard navigation, screen reader optimization

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vibeeval/vibecosystem5382026년 8월 9일 업데이트

axe-core integration, WCAG 2.2 AA checklist, keyboard navigation testing, screen reader testing, and ARIA pattern validation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vibeeval/vibecosystem5382026년 8월 9일 업데이트

Steam-style achievement system with XP, levels, streaks, and skill trees. Gamifies the development workflow. 25 achievements across 5 categories.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vibeeval/vibecosystem5382026년 8월 9일 업데이트

Framework for measuring and tracking agent response quality over time. Detects regressions before they reach production. Use when evaluating agent changes, auditing quality, or establishing performance baselines.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vibeeval/vibecosystem5382026년 8월 9일 업데이트

Agent Context Isolation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vibeeval/vibecosystem5382026년 8월 9일 업데이트

Agent ve skill dosyalarinin yapisal dogrulamasi. Frontmatter kontrol, naming convention, zorunlu bolum kontrolu, tutarlilik denetimi. Yeni agent/skill eklendiginde veya mevcut dosyalar duzenlediginde otomatik calistirilir.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vibeeval/vibecosystem5382026년 8월 9일 업데이트

vibeeval의 스킬 모두 보기

이 스킬의 문제 신고