Community코딩 & 개발github.com

alfathafp/portfolio-web-design

코드를 작성하기 전에 구조화된 명세서를 먼저 작성합니다. 새 프로젝트나 기능을 시작할 때, 요구사항이 명확하지 않거나 여러 모듈에 걸친 변경이 필요할 때 사용합니다.

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

이 스킬은 명세 기반 개발(Spec-Driven Development) 방법론을 구현한 것입니다. 코드를 작성하기 전에 목적, 기술 스택, 명령어, 프로젝트 구조, 코드 스타일, 테스트 전략, 경계 조건 등을 포함한 명세서를 작성하도록 설계되었습니다. 특히 여러 개의 독립적으로 테스트 가능한 기능이 하나의 요청에 포함된 경우, Phase 0에서 기능 맵(Capability Map)을 통해 모듈 단위로 분해한 후 각 모듈에 대해 명세-계획-작업-구현의 순차적 워크플로우를 따릅니다. 이 스킬은 Claude Code, Cursor, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있으며, 명세서 작성 후 즉시 구현 단계로 넘어가지 않고 반드시 인간의 승인을 기다리도록 설계되어 있습니다. 또한 명세는 살아있는 문서로, 결정 사항이나 범위 변경 시 업데이트되며 버전 관리 시스템에 함께 커밋됩니다.

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

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

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

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

문서

명세 기반 개발(Spec-Driven Development)

개요

코드를 작성하기 전에 구조화된 명세서를 작성하십시오. 명세서는 당신과 인간 엔지니어 간의 공유된 진실 공급원입니다. 무엇을, 왜 구축하는지, 그리고 어떻게 완료되었는지 알 수 있는지를 정의합니다. 명세서 없는 코드는 추측입니다.

사용 시기

  • 새 프로젝트나 기능을 시작할 때
  • 요구사항이 모호하거나 불완전할 때
  • 변경 사항이 여러 파일이나 모듈에 걸쳐 있을 때
  • 아키텍처 결정을 내리려고 할 때
  • 구현하는 데 30분 이상 소요될 작업일 때

사용하지 말아야 할 경우: 한 줄 수정, 오타 수정, 또는 요구사항이 명확하고 자족적인 변경.

게이트 워크플로우

명세 기반 개발은 네 단계로 구성되며, 그 앞에 범위 확인(Phase 0)이 있습니다. Phase 0은 하나의 요청이 여러 독립적으로 테스트 가능한 기능을 묶을 때만 활성화됩니다. 현재 단계가 검증될 때까지 다음 단계로 넘어가지 마십시오.

명세화 ──→ 계획 ──→ 작업 ──→ 구현
   │          │        │          │
   ▼          ▼        ▼          ▼
  인간       인간     인간       인간
  검토       검토     검토       검토

Phase 0: 범위 확인

대부분의 요청은 하나의 기능을 설명합니다. 그렇다면 이 단계를 건너뛰고 바로 명세화 단계로 가십시오. Phase 0은 예외적인 경우를 위한 것이며, 단일 기능에 계층 구조를 부여하지 않습니다.

감지. 하나의 요구사항이 여러 독립적으로 테스트 가능한 기능을 묶고 있다면 명세화 전에 분해하십시오:

  • 요구사항이 각각 고유한 사용자나 데이터를 가진 기능(예: 인증, 청구, 알림, 보고)을 명명합니다.
  • 인수 기준이 독립적으로 제공되고 검증될 수 있는 그룹으로 모입니다.
  • 한 기능을 다른 기능의 요구사항을 다시 작성하지 않고 제거하거나 교체할 수 있습니다.

명세서를 작성하기 전에 기능 맵을 제안하십시오. 작고 검토 가능하게 작성하십시오. 프로젝트 계획이 아닌 모듈 테이블과 빌드 순서여야 합니다:

# 기능 맵: [이니셔티브 이름]

| 모듈 ID | 책임 | 의존성 |
|---|---|---|
| identity | 계정, 세션, SSO | — |
| billing | 요금제, 청구서, 결제 | identity |
| notifications | 이메일 및 웹훅 전파 | identity |
| reporting | 사용량 대시보드 | billing, notifications |

빌드 순서: identity → billing, notifications → reporting
  • 안정적인 모듈 ID. 케밥-케이스로 한 번 선택하고 이니셔티브 도중에 이름을 바꾸지 마십시오. 명세서, 계획, 다운스트림 명령어는 이 ID를 사용하여 어떤 명세서가 활성화되었는지 추측하지 않고 작업을 선택합니다.
  • 의존성 방향, 순환 없음. 화살표는 한 방향으로만 갑니다. 두 모듈이 서로를 필요로 한다면 하나의 모듈입니다.
  • 인터페이스는 경계에 위치합니다. 맵은 billing이 identity에 의존한다고 기록합니다. 두 모듈 간의 계약은 제공자 모듈의 명세서에 속합니다(api-and-interface-design 참조).

맵은 모든 단계와 마찬가지로 게이트 방식입니다. 인간이 모듈 경계, 의존성 방향, 빌드 순서를 검토한 후에야 모듈 명세서가 작성됩니다. 맵을 잘못 만드는 것은 비용이 많이 들지만, 열 줄짜리 맵을 검토하는 것은 그렇지 않습니다.

그런 다음 모듈별로 재귀적으로 수행하십시오. 각 모듈에 대해 명세화 → 계획 → 작업 → 구현을 의존성 순서로 실행하십시오. 각 모듈은 해당 모듈의 목적, 경계, 성공 기준에 맞춰진 고유한 명세서를 가집니다. 승인된 맵을 프로젝트 루트에 저장하고 각 모듈의 명세서를 모듈 ID로 명명하여 함께 저장하십시오(SPEC-identity.md, SPEC-billing.md). 맵은 파일 이름 추측이 아닌 존재하는 것의 인덱스 역할을 합니다.

Phase 1: 명세화

상위 수준의 비전부터 시작하십시오. 요구사항이 구체화될 때까지 인간에게 명확하게 질문하십시오.

즉시 가정을 표면화하십시오. 명세서 내용을 작성하기 전에, 당신이 가정하고 있는 것을 나열하십시오:

내가 가정하는 것들:
1. 이것은 웹 애플리케이션입니다(네이티브 모바일이 아님)
2. 인증은 세션 기반 쿠키를 사용합니다(JWT 아님)
3. 데이터베이스는 PostgreSQL입니다(기존 Prisma 스키마 기반)
4. 최신 브라우저만 대상으로 합니다(IE11 없음)
→ 지금 수정해 주세요, 아니면 이대로 진행하겠습니다.

모호한 요구사항을 조용히 채우지 마십시오. 명세서의 전체 목적은 코드가 작성되기 전에 오해를 표면화하는 것입니다. 가정은 가장 위험한 형태의 오해입니다.

다음 여섯 가지 핵심 영역을 포함하는 명세서 문서를 작성하십시오:

  1. 목적 — 무엇을, 왜 구축하는가? 사용자는 누구인가? 성공은 어떻게 생겼는가?

  2. 명령어 — 플래그를 포함한 완전한 실행 가능 명령어.

    Build: npm run build
    Test: npm test -- --coverage
    Lint: npm run lint --fix
    Dev: npm run dev
    
  3. 프로젝트 구조 — 소스 코드, 테스트, 문서의 위치.

    src/           → 애플리케이션 소스 코드
    src/components → React 컴포넌트
    src/lib        → 공유 유틸리티
    tests/         → 단위 및 통합 테스트
    e2e/           → 종단간 테스트
    docs/          → 문서
    
  4. 코드 스타일 — 세 단락의 설명보다 하나의 실제 코드 스니펫이 스타일을 더 잘 보여줍니다. 명명 규칙, 포맷팅 규칙, 좋은 출력 예시를 포함하십시오.

  5. 테스트 전략 — 어떤 프레임워크, 테스트 위치, 커버리지 기대치, 어떤 테스트 수준이 어떤 문제에 적합한지.

  6. 경계 조건 — 세 가지 계층 시스템:

    • 항상 할 것: 커밋 전에 테스트 실행, 명명 규칙 따르기, 입력 검증
    • 먼저 물어볼 것: 데이터베이스 스키마 변경, 의존성 추가, CI 구성 변경
    • 절대 하지 말 것: 시크릿 커밋, 공급업체 디렉토리 편집, 승인 없이 실패 테스트 제거

명세서 템플릿:

# 명세: [프로젝트/기능 이름]

## 목적
[무엇을, 왜 구축하는지. 사용자 스토리 또는 인수 기준.]

## 기술 스택
[프레임워크, 언어, 주요 의존성 및 버전]

## 명령어
[빌드, 테스트, 린트, 개발 — 전체 명령어]

## 프로젝트 구조
[디렉토리 레이아웃 및 설명]

## 코드 스타일
[예제 스니펫 + 주요 규칙]

## 테스트 전략
[프레임워크, 테스트 위치, 커버리지 요구사항, 테스트 수준]

## 경계 조건
- 항상 할 것: [...]
- 먼저 물어볼 것: [...]
- 절대 하지 말 것: [...]

## 성공 기준
[이것이 완료되었음을 어떻게 알 수 있는지 — 구체적이고 테스트 가능한 조건]

## 미해결 질문
[인간의 입력이 필요한 미해결 사항]

외부 명세 도구: 이 워크플로우는 형식에 구애받지 않습니다. 프로젝트가 이미 OpenSpec 또는 다른 명세 시스템을 사용하고 있다면, 중복된 SPEC.md를 생성하는 대신 해당 시스템의 아티팩트 형식과 저장 규칙을 유지하십시오. 이 스킬은 명확화, 내용, 승인 게이트를 담당하며, 외부 도구는 승인된 명세서가 어떻게 표현되는지를 담당합니다.

지침을 성공 기준으로 재구성하십시오. 모호한 요구사항을 받았을 때, 구체적인 조건으로 번역하십시오:

요구사항: "대시보드를 더 빠르게 만드세요"

재구성된 성공 기준:
- 대시보드 LCP < 4G 연결에서 2.5초
- 초기 데이터 로드가 500ms 이내에 완료됨
- 로드 중 레이아웃 이동 없음 (CLS < 0.1)
→ 이것이 올바른 목표인가요?

이렇게 하면 '더 빠르게'가 무엇을 의미하는지 추측하는 대신 명확한 목표를 향해 반복, 재시도, 문제 해결을 할 수 있습니다.

명세서 작성 후 중단(매우 중요). 명세서가 저장되면:

  1. 요약하고 미해결 질문을 나열하십시오.
  2. 인간에게 승인 또는 변경 요청을 하십시오.
  3. 즉시 턴을 종료하십시오. Phase 2를 시작하거나, planning-and-task-breakdown을 호출하거나, 이 턴에서 코드를 작성하지 마십시오. 계획은 인간이 나중 턴에서 명세서를 승인한 후에만 시작됩니다.

Phase 2: 계획

검증된 명세서와 함께 기술 구현 계획을 생성하십시오:

  1. 주요 구성 요소와 그 의존성을 식별하십시오
  2. 구현 순서를 결정하십시오 (무엇이 먼저 구축되어야 하는지)
  3. 위험 및 완화 전략을 기록하십시오
  4. 병렬로 구축할 수 있는 것과 순차적으로 해야 하는 것을 식별하십시오
  5. 단계 간 검증 체크포인트를 정의하십시오

planning-and-task-breakdown을 따라 의존성 그래프 매핑 및 수직 슬라이싱 메커니즘을 확인하십시오. 위의 글머리 기호는 가벼운 요약입니다. 둘이 다를 경우 planning-and-task-breakdown이 우선합니다.

출력 규칙: 계획을 tasks/plan.md에 저장하고 작업 목록을 planning-and-task-breakdown이 정의한 작업 목록 대상(기본값 tasks/todo.md; 프로젝트는 외부 트래커를 지정할 수 있음)에 기록하십시오. tasks/가 없으면 생성하십시오. 다운스트림 명령어(/build 등)는 이 기본값을 예상합니다.

계획은 검토 가능해야 합니다. 인간이 읽고 "예, 올바른 접근 방식입니다" 또는 "아니요, X를 변경하세요"라고 말할 수 있어야 합니다.

Phase 3: 작업

계획을 개별적인 실행 가능한 작업으로 나누십시오:

  • 각 작업은 한 번의 집중된 세션에서 완료 가능해야 합니다
  • 각 작업에는 명시적인 인수 기준이 있습니다
  • 각 작업에는 검증 단계(테스트, 빌드, 수동 확인)가 포함됩니다
  • 작업은 인지된 중요성이 아닌 의존성에 따라 정렬됩니다
  • 어떤 작업도 약 5개 이상의 파일을 변경해서는 안 됩니다

전체 작업 크기 조정 및 의존성 순서 메커니즘은 planning-and-task-breakdown을 따르십시오. 아래 템플릿은 가벼운 인라인 형식입니다. 둘이 다를 경우 planning-and-task-breakdown이 우선합니다.

작업 템플릿:

- [ ] 작업: [설명]
  - 인수 기준: [완료되었을 때 참이어야 하는 것]
  - 검증 방법: [확인 방법 — 테스트 명령어, 빌드, 수동 확인]
  - 파일: [영향을 받을 파일]

Phase 4: 구현

incremental-implementation 및 test-driven-development 스킬을 따라 한 번에 하나씩 작업을 실행하십시오. 각 단계에서 context-engineering을 사용하여 에이전트에 전체 명세서를 범람시키는 대신 올바른 명세서 섹션과 소스 파일을 로드하십시오.

명세서 유지 관리

명세서는 일회성 아티팩트가 아닌 살아있는 문서입니다:

  • 결정이 변경되면 업데이트하십시오 — 데이터 모델이 변경되어야 한다는 것을 발견하면 먼저 명세서를 업데이트한 다음 구현하십시오.
  • 범위가 변경되면 업데이트하십시오 — 추가되거나 제거된 기능은 명세서에 반영되어야 합니다.
  • 명세서를 커밋하십시오 — 명세서는 코드와 함께 버전 관리에 속합니다.
  • PR에서 명세서를 참조하십시오 — 각 PR이 구현하는 명세서 섹션으로 연결하십시오.

일반적인 합리화

합리화현실
"이건 간단하니까 명세서가 필요 없어"간단한 작업은 긴 명세서가 필요하지 않지만, 여전히 인수 기준은 필요합니다. 두 줄짜리 명세서도 괜찮습니다.
"코드 작성 후에 명세서를 쓸게"그것은 문서화이지 명세화가 아닙니다. 명세서의 가치는 코드 전에 명확성을 강제하는 데 있습니다.
"명세서가 속도를 늦출 거야"15분짜리 명세서가 몇 시간의 재작업을 방지합니다. 15시간 디버깅보다 15분 폭포수 방법이 낫습니다.
"어차피 요구사항은 변경될 거야"그래서 명세서가 살아있는 문서인 이유입니다. 오래된 명세서도 명세서가 없는 것보다는 낫습니다.
"사용자는 자신이 원하는 것을 알고 있어"명확한 요청에도 암묵적인 가정이 있습니다. 명세서는 그 가정을 표면화합니다.
"하나의 큰 기능인데, 나누는 것은 오버헤드다"인수 기준이 독립적으로 테스트 가능한 그룹으로 모인다면, 모놀리식 명세서는 모든 다운스트림 작업이 전체 계약에 대해 추론하도록 강제합니다. 열 줄짜리 기능 맵이 저렴한 대안입니다.
"계획할 때 분해할게"계획은 명세서 내에서 작업을 슬라이스합니다. 그때쯤이면 거대한 아티팩트가 이미 존재합니다. 모듈 경계와 의존성 방향은 명세서가 작성되기 전에 결정되어야 하며, 그 후가 아닙니다.

위험 신호

  • 작성된 요구사항 없이 코드 작성을 시작하는 경우
  • "그냥 구축을 시작할까요?"라고 묻기 전에 '완료'의 의미를 명확히 하지 않는 경우
  • 명세서나 작업 목록에 언급되지 않은 기능을 구현하는 경우
  • 아키텍처 결정을 문서화하지 않고 내리는 경우
  • "뭘 구축할지 명확하니까"라는 이유로 명세서를 건너뛰는 경우
  • 같은 턴에서 명세서를 작성하고 계획이나 코드를 시작하는 경우
  • 요구사항이 여러 독립적으로 테스트 가능한 기능에 걸쳐 있는 하나의 명세서
  • 기능 맵이 사전에 승인되지 않아 구현 중에 암묵적으로 모듈 경계나 빌드 순서가 결정되는 경우

검증

구현을 진행하기 전에 확인하십시오:

  • 명세서가 여섯 가지 핵심 영역을 모두 다루는가?
  • 인간이 명세서를 검토하고 승인했는가?
  • 명세서 저장 후 턴이 종료되었으며, 승인은 이후 턴에서 이루어졌는가?
  • 성공 기준이 구체적이고 테스트 가능한가?
  • 경계 조건(항상/먼저 물어봄/절대 안 함)이 정의되었는가?
  • 명세서가 저장소의 파일에 저장되었는가?
  • 요청이 여러 독립적으로 테스트 가능한 기능을 묶은 경우, 모듈 명세서가 작성되기 전에 기능 맵(모듈 ID, 의존성 방향, 빌드 순서)이 승인되었는가?
  • 모든 모듈 명세서가 승인된 맵의 모듈 ID를 추적하는가?

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.

관련 스킬