Community코딩 & 개발github.com

alfathafp/portofolio-web-design

변경 사항을 얇고 검증 가능한 조각으로 나누어 점진적으로 전달합니다. 여러 파일에 걸친 기능이나 변경 사항을 구현할 때, 또는 계획에서 다음 작업을 수행할 때 사용합니다. 기능 플래그 뒤에 변경 사항을 롤아웃할 때, 한 번에 많은 코드를 작성하려 할 때, 또는 작업이 한 번에 완료하기에는 너무 크다고 느껴질 때 사용하세요.

portofolio-web-design란 무엇인가요?

이 스킬은 소프트웨어 개발 시 변경 사항을 작고 검증 가능한 단위(슬라이스)로 나누어 점진적으로 구현하는 방법론을 설명합니다. 하나의 큰 기능을 한 번에 구현하는 대신, 각 조각이 시스템을 작동 가능하고 테스트 가능한 상태로 유지하도록 합니다. 여러 파일에 걸친 변경, 새로운 기능 구현, 리팩토링과 같은 상황에서 유용하며, 변경 범위가 작은 단일 파일/함수 변경에는 사용하지 않는 것이 좋습니다. 각 증분(Increment) 사이클은 '구현(Implement) → 테스트(Test) → 검증(Verify) → 커밋(Commit)'의 과정을 거치며, 다음 슬라이스로 이동합니다. 수직 슬라이스(Vertical Slice), 계약 우선 슬라이싱(Contract-First Slicing), 위험 우선 슬라이싱(Risk-First Slicing)과 같은 다양한 전략을 제공하며, 단순성 우선, 범위 규율, 한 번에 한 가지 작업, 컴파일 가능 상태 유지, 기능 플래그 사용, 안전한 기본값, 롤백 친화적인 설계 등 구체적인 구현 규칙을 제시합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/incremental-implementation

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

점진적 구현 (Incremental Implementation)

개요

얇은 수직 슬라이스로 구축하세요. 한 조각을 구현하고, 테스트하고, 검증한 다음 확장합니다. 한 번에 전체 기능을 구현하지 마세요. 각 증분은 시스템을 작동 가능하고 테스트 가능한 상태로 유지해야 합니다. 이것이 대규모 기능을 관리 가능하게 만드는 실행 규율입니다.

사용 시점

  • 여러 파일에 걸친 변경을 구현할 때
  • 작업 분해(task breakdown)에서 새 기능을 구축할 때
  • 기존 코드를 리팩토링할 때
  • 테스트 없이 약 100줄 이상의 코드를 작성하고 싶을 때

사용하지 말아야 할 때: 범위가 이미 최소화된 단일 파일, 단일 함수 변경.

증분 사이클 (The Increment Cycle)

┌──────────────────────────────────────┐
│                                      │
│   구현 ──→ 테스트 ──→ 검증 ──┐      │
│       ▲                           │  │
│       └───── 커밋 ◄─────────────┘  │
│              │                       │
│              ▼                       │
│          다음 슬라이스               │
│                                      │
└──────────────────────────────────────┘

각 슬라이스에 대해:

  1. 구현 기능의 가장 작은 완전한 조각
  2. 테스트 — 테스트 스위트 실행 (또는 테스트가 없으면 작성)
  3. 검증 — 슬라이스가 예상대로 작동하는지 확인 (테스트 통과, 빌드 성공, 수동 확인)
  4. 커밋 — 설명적인 메시지와 함께 진행 상황 저장 (원자적 커밋 지침은 git-workflow-and-versioning 참조)
  5. 다음 슬라이스로 이동 — 계속 진행, 재시작하지 않음

슬라이싱 전략 (Slicing Strategies)

수직 슬라이스 (Vertical Slices, 권장)

스택을 완전히 관통하는 하나의 경로를 구축하세요:

슬라이스 1: 작업 생성 (DB + API + 기본 UI)
    → 테스트 통과, 사용자가 UI를 통해 작업을 생성할 수 있음

슬라이스 2: 작업 목록 조회 (쿼리 + API + UI)
    → 테스트 통과, 사용자가 자신의 작업을 볼 수 있음

슬라이스 3: 작업 편집 (업데이트 + API + UI)
    → 테스트 통과, 사용자가 작업을 수정할 수 있음

슬라이스 4: 작업 삭제 (삭제 + API + UI + 확인)
    → 테스트 통과, 전체 CRUD 완료

각 슬라이드는 종단 간(end-to-end) 작동하는 기능을 제공합니다.

계약 우선 슬라이싱 (Contract-First Slicing)

백엔드와 프론트엔드를 병렬로 개발해야 할 때:

슬라이스 0: API 계약 정의 (타입, 인터페이스, OpenAPI 스펙)
슬라이스 1a: 계약에 따라 백엔드 구현 + API 테스트
슬라이스 1b: 계약과 일치하는 모의 데이터로 프론트엔드 구현
슬라이스 2: 통합 및 종단 간 테스트

위험 우선 슬라이싱 (Risk-First Slicing)

가장 위험하거나 불확실한 부분을 먼저 처리하세요:

슬라이스 1: WebSocket 연결이 작동하는지 입증 (가장 높은 위험)
슬라이스 2: 입증된 연결 위에 실시간 작업 업데이트 구축
슬라이스 3: 오프라인 지원 및 재연결 추가

슬라이스 1이 실패하면 슬라이스 2와 3에 투자하기 전에 이를 발견할 수 있습니다.

구현 규칙 (Implementation Rules)

규칙 0: 단순성 우선 (Simplicity First)

코드를 작성하기 전에 항상 물어보세요: "작동할 수 있는 가장 간단한 것은 무엇인가?"

코드를 작성한 후, 다음 체크리스트를 기준으로 검토하세요:

  • 더 적은 줄로 이 작업을 수행할 수 있는가?
  • 이 추상화가 그 복잡성만큼 가치가 있는가?
  • 시니어 엔지니어가 보고 "왜 그냥 ...하지 않았어?" 라고 말하지 않을까?
  • 가상의 미래 요구사항을 위해 구축하고 있는가, 아니면 현재 작업을 위해 구축하고 있는가?
단순성 체크:
✗ 하나의 알림을 위한 미들웨어 파이프라인을 갖춘 제네릭 EventBus
✓ 간단한 함수 호출

✗ 두 개의 유사한 컴포넌트를 위한 추상 팩토리 패턴
✓ 공유 유틸리티를 사용하는 두 개의 직관적인 컴포넌트

✗ 세 개의 폼을 위한 설정 기반 폼 빌더
✓ 세 개의 폼 컴포넌트

세 줄의 유사한 코드는 성급한 추상화보다 낫습니다. 먼저 당연히 올바른 버전(naiive, obviously-correct version)을 구현하세요. 테스트로 정확성이 입증된 후에만 최적화하세요.

규칙 0.5: 범위 규율 (Scope Discipline)

작업에 필요한 것만 건드리세요.

하지 말아야 할 것:

  • 변경 사항에 인접한 코드를 "정리"
  • 수정하지 않는 파일의 임포트를 리팩토링
  • 완전히 이해하지 못한 주석 제거
  • "유용해 보인다"고 스펙에 없는 기능 추가
  • 읽기만 하는 파일의 구문 현대화

작업 범위 밖에서 개선할 가치가 있는 것을 발견하면, 고치지 말고 기록하세요:

발견했지만 건드리지 않음:
- src/utils/format.ts에 사용되지 않는 임포트가 있습니다 (이 작업과 무관)
- 인증 미들웨어의 오류 메시지를 개선할 수 있습니다 (별도 작업)
→ 이에 대한 작업을 생성해 드릴까요?

규칙 1: 한 번에 한 가지 (One Thing at a Time)

각 증분은 하나의 논리적인 것을 변경합니다. 관심사를 혼합하지 마세요:

나쁨: 새 컴포넌트를 추가하고, 기존 컴포넌트를 리팩토링하고, 빌드 설정을 업데이트하는 하나의 커밋.

좋음: 각 변경 사항에 대해 별도의 세 커밋.

규칙 2: 컴파일 가능 상태 유지 (Keep It Compilable)

각 증분 후에 프로젝트가 빌드되어야 하고 기존 테스트가 통과해야 합니다. 슬라이스 사이에 코드베이스를 깨진 상태로 두지 마세요.

규칙 3: 미완성 기능을 위한 기능 플래그 (Feature Flags for Incomplete Features)

기능이 사용자에게 제공될 준비가 안 되었지만 증분을 병합해야 하는 경우:

// 작업 진행 중인 기능을 위한 기능 플래그
const ENABLE_TASK_SHARING = process.env.FEATURE_TASK_SHARING === 'true';

if (ENABLE_TASK_SHARING) {
  // 새 공유 UI
}

이렇게 하면 미완성 작업을 노출하지 않고 작은 증분을 메인 브랜치에 병합할 수 있습니다.

규칙 4: 안전한 기본값 (Safe Defaults)

새 코드는 안전하고 보수적인 동작을 기본값으로 해야 합니다:

// 안전: 기본적으로 비활성화, 옵트인
function createTask(data: TaskInput, options?: { notify?: boolean }) {
  const shouldNotify = options?.notify ?? false;
  // ...
}

규칙 5: 롤백 친화적 (Rollback-Friendly)

각 증분은 독립적으로 되돌릴 수 있어야 합니다:

  • 추가적 변경(새 파일, 새 함수)은 되돌리기 쉽습니다.
  • 기존 코드에 대한 수정은 최소화되고 집중되어야 합니다.
  • 데이터베이스 마이그레이션에는 해당 롤백 마이그레이션이 있어야 합니다.
  • 같은 커밋에서 어떤 것을 삭제하고 대체하지 마세요. 분리하세요.

에이전트와 함께 작업하기 (Working with Agents)

에이전트에게 점진적으로 구현하도록 지시할 때:

"계획의 작업 3을 구현해 봅시다.

지금은 데이터베이스 스키마 변경과 API 엔드포인트만 시작하세요.
아직 UI는 건드리지 마세요. 다음 증분에서 할 것입니다.

구현 후에는 저장소의 테스트 및 빌드 명령을 실행하여
아무것도 깨지지 않았는지 확인하세요."

각 증분의 범위에 무엇이 포함되고 포함되지 않는지 명시적으로 밝히세요.

증분 체크리스트 (Increment Checklist)

각 증분 후에 저장소 자체 명령을 사용하여 확인하세요 (test-driven-development 스킬의 '먼저 스택 발견하기' 섹션 참조):

  • 변경 사항이 한 가지 작업을 수행하고 완전히 수행합니다.
  • 모든 기존 테스트가 여전히 통과합니다 (저장소의 테스트 명령: npm test, ./gradlew test, pytest, ...)
  • 빌드가 성공합니다 (저장소의 빌드 명령)
  • 타입 검사가 통과합니다 (스택에 해당 명령이 있는 경우: npx tsc --noEmit, mypy, ...)
  • 린팅이 통과합니다 (저장소의 린트 명령)
  • 새 기능이 예상대로 작동합니다.
  • 변경 사항이 설명적인 메시지와 함께 커밋되었습니다.

참고: 변경 사항이 영향을 줄 수 있는 각 검증 명령을 변경 후에 실행하세요. 성공적으로 실행된 후에는 코드가 변경되지 않는 한 동일한 명령을 반복하지 마세요. 변경되지 않은 코드에서 재실행은 추가 정보를 제공하지 않습니다.

일반적인 합리화 (Common Rationalizations)

합리화현실
"나중에 한꺼번에 테스트할게요"버그는 누적됩니다. 슬라이스 1의 버그는 슬라이스 2-5를 잘못 만듭니다. 각 슬라이스를 테스트하세요.
"한 번에 다 하는 게 더 빨라"무언가 깨져서 500줄 중 어떤 변경이 원인인지 찾을 수 없을 때까지는 더 빠르게 느껴집니다.
"이 변경 사항들은 너무 작아서 따로 커밋할 수 없어"작은 커밋은 부담이 없습니다. 큰 커밋은 버그를 숨기고 롤백을 어렵게 만듭니다.
"기능 플래그는 나중에 추가할게요"기능이 완료되지 않았다면 사용자에게 보여져서는 안 됩니다. 지금 플래그를 추가하세요.
"이 리팩토링은 포함시켜도 될 만큼 작아"리팩토링을 기능과 섞으면 검토와 디버깅이 모두 어려워집니다. 분리하세요.
"확실하게 하기 위해 빌드 명령을 다시 실행할게요"성공적으로 실행된 후에는 코드가 변경되지 않는 한 동일한 명령을 반복해도 아무것도 추가되지 않습니다. 이후 편집 후에 다시 실행하고, 안심하기 위해 실행하지 마세요.

위험 신호 (Red Flags)

  • 테스트 실행 없이 100줄 이상의 코드 작성
  • 단일 증분에 여러 개의 관련 없는 변경 사항
  • "이것만 빠르게 추가하자"라는 범위 확장
  • 더 빠르게 진행하기 위해 테스트/검증 단계 건너뛰기
  • 증분 사이에 빌드 또는 테스트가 깨짐
  • 커밋되지 않은 대규모 변경 사항이 누적됨
  • 세 번째 사용 사례에 필요하기 전에 추상화 구축
  • "내가 여기 있는 동안" 작업 범위 밖의 파일 건드리기
  • 일회성 작업을 위한 새 유틸리티 파일 생성
  • 코드 변경 없이 동일한 빌드/테스트 명령을 두 번 연속 실행

검증 (Verification)

작업에 대한 모든 증분을 완료한 후:

  • 각 증분이 개별적으로 테스트되고 커밋되었습니다.
  • 전체 테스트 스위트가 통과합니다.
  • 빌드가 깨끗합니다.
  • 기능이 지정된 대로 종단 간 작동합니다.
  • 커밋되지 않은 변경 사항이 남아 있지 않습니다.

참고 (See Also)

증분별 검증은 로컬 확인입니다. 작업 완료를 선언하기 전에 프로젝트 전체의 '완료 정의(Definition of Done)'를 최종 게이트로 적용하세요. 이는 작업에 관계없이 모든 증분이 통과해야 하는 기준입니다. ../../references/definition-of-done.md를 참조하세요.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

관련 스킬