Communitygithub.com

alfathafp/portofolio-web-design

새로운 스킬을 생성하거나, 기존 스킬을 편집하거나, 배포 전에 스킬이 제대로 작동하는지 확인할 때 사용합니다.

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

이 스킬은 AI 에이전트와 개발자가 테스트 주도 개발(TDD) 원칙을 프로세스 문서화에 적용하여 효과적인 스킬을 생성, 편집, 검증할 수 있도록 안내합니다. 스킬이란 특정 문제 상황에서 에이전트가 올바르게 행동하도록 돕는 참조 가이드로, 테스트 케이스(압박 시나리오)를 먼저 작성하고 실패를 확인한 후 스킬 문서를 작성하여 통과시키는 RED-GREEN-REFACTOR 사이클을 따릅니다. Claude Code, Codex, Copilot CLI, Gemini CLI 등 다양한 런타임에서 사용할 수 있으며, 스킬 디렉토리 구조와 SKILL.md 파일의 작성법, 설명 필드 최적화, 키워드 커버리지, 토큰 효율성 등 스킬 발견 최적화(SDO)에 대한 상세한 지침을 제공합니다.

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

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

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

문서

Writing Skills (스킬 작성하기)

개요 (Overview)

Writing skills (스킬 작성)은 프로세스 문서화에 TDD(테스트 주도 개발)를 적용한 것입니다.

개인 스킬은 런타임의 skills 디렉토리 (Claude Code의 경우 ~/.claude/skills/)에 저장됩니다. 다른 런타임의 경로는 codex-tools.md 또는 gemini-tools.md를 참조하세요. Codex, Copilot CLI, Gemini CLI 모두 ~/.agents/skills/를 교차 런타임 별칭으로 인식합니다.

테스트 케이스(서브 에이전트를 사용한 압박 시나리오)를 작성하고, 실패(기준 행동)를 관찰한 후, 스킬(문서)을 작성하고, 테스트가 통과(에이전트가 준수)하는지 확인한 다음, 리팩터링(허점을 메움)합니다.

핵심 원칙: 스킬 없이 에이전트가 실패하는 모습을 보지 않았다면, 스킬이 올바른 것을 가르치는지 알 수 없습니다.

필수 배경 지식: 이 스킬을 사용하기 전에 반드시 superpowers:test-driven-development를 이해해야 합니다. 해당 스킬은 기본적인 RED-GREEN-REFACTOR 사이클을 정의합니다. 이 스킬은 TDD를 문서화에 적용합니다.

공식 가이드: Anthropic의 공식 스킬 작성 모범 사례는 anthropic-best-practices.md를 참조하세요. 이 문서는 TDD 중심의 접근 방식을 보완하는 추가 패턴과 지침을 제공합니다.

스킬이란 무엇인가? (What is a Skill?)

스킬은 입증된 기술, 패턴 또는 도구에 대한 참조 가이드입니다. 스킬은 미래의 에이전트가 효과적인 접근 방식을 찾고 적용하는 데 도움을 줍니다.

스킬의 대상: 재사용 가능한 기술, 패턴, 도구, 참조 가이드

스킬이 아닌 것: 한 번 문제를 해결한 방법에 대한 이야기

스킬을 위한 TDD 매핑 (TDD Mapping for Skills)

TDD 개념스킬 생성
테스트 케이스서브 에이전트를 사용한 압박 시나리오
프로덕션 코드스킬 문서 (SKILL.md)
테스트 실패 (RED)스킬 없이 에이전트가 규칙을 위반 (기준 행동)
테스트 통과 (GREEN)스킬이 있을 때 에이전트가 준수
리팩터링준수를 유지하면서 허점을 메움
먼저 테스트 작성스킬 작성 전에 기준 시나리오 실행
실패 관찰에이전트가 사용하는 정확한 합리화 기록
최소 코드해당 특정 위반 사항을 해결하는 스킬 작성
통과 관찰에이전트가 준수하는지 확인
리팩터링 사이클새로운 합리화 찾기 → 차단 → 재확인

전체 스킬 생성 과정은 RED-GREEN-REFACTOR를 따릅니다.

스킬을 생성해야 하는 경우 (When to Create a Skill)

생성해야 하는 경우:

  • 기술이 직관적으로 명확하지 않았을 때
  • 프로젝트 전반에 걸쳐 다시 참조할 때
  • 패턴이 광범위하게 적용될 때 (프로젝트별 아님)
  • 다른 사람에게도 도움이 될 때

생성하지 말아야 할 경우:

  • 일회성 솔루션
  • 다른 곳에 잘 문서화된 표준 관행
  • 프로젝트별 규칙 (명령어 파일에 넣기)
  • 기계적 제약 조건 (정규식/검증으로 시행 가능한 경우, 자동화하고 판단이 필요한 경우에만 문서화)

스킬 유형 (Skill Types)

기술 (Technique)

따라야 할 단계가 있는 구체적인 방법 (condition-based-waiting, root-cause-tracing)

패턴 (Pattern)

문제를 사고하는 방식 (flatten-with-flags, test-invariants)

참조 (Reference)

API 문서, 문법 가이드, 도구 문서 (office docs)

디렉토리 구조 (Directory Structure)

skills/
  skill-name/
    SKILL.md              # Main reference (필수)
    supporting-file.*     # 필요한 경우에만

플랫 네임스페이스 - 모든 스킬은 하나의 검색 가능한 네임스페이스에 있습니다.

별도 파일의 대상:

  1. 무거운 참조 (100줄 이상) - API 문서, 포괄적인 문법
  2. 재사용 가능한 도구 - 스크립트, 유틸리티, 템플릿

인라인으로 유지할 것:

  • 원칙 및 개념
  • 코드 패턴 (50줄 미만)
  • 그 외 모든 것

SKILL.md 구조 (SKILL.md Structure)

프론트매터 (YAML):

  • 두 개의 필수 필드: name과 description (지원되는 모든 필드는 agentskills.io/specification 참조)
  • 총 1024자 이하
  • name: 문자, 숫자, 하이픈만 사용 (괄호, 특수 문자 사용 금지)
  • description: 3인칭, 무엇을 하는지가 아닌 언제 사용해야 하는지만 설명
    • "Use when..."으로 시작하여 트리거 조건에 집중
    • 특정 증상, 상황, 맥락 포함
    • 절대 스킬의 프로세스나 워크플로를 요약하지 마세요 (SDO 섹션 참조)
    • 가능하면 500자 이내로 유지
---
name: Skill-Name-With-Hyphens
description: Use when [특정 트리거 조건 및 증상]
---

# 스킬 이름

## 개요
이것은 무엇인가? 1-2문장으로 핵심 원칙 설명.

## 사용 시기
[결정이 명확하지 않은 경우 작은 인라인 순서도]

증상 및 사용 사례를 포함한 글머리 목록
사용하지 말아야 할 경우

## 핵심 패턴 (기술/패턴의 경우)
전후 코드 비교

## 빠른 참조
일반적인 작업 스캔을 위한 표 또는 글머리 목록

## 구현
간단한 패턴의 경우 인라인 코드
무거운 참조 또는 재사용 가능한 도구의 경우 파일로 연결

## 일반적인 실수
잘못되는 상황 + 수정 방법

## 실제 영향 (선택 사항)
구체적인 결과

스킬 발견 최적화 - SDO (Skill Discovery Optimization)

발견에 중요: 미래의 에이전트가 여러분의 스킬을 찾아야 합니다.

1. 풍부한 설명 필드 (Rich Description Field)

목적: 에이전트가 설명을 읽고 주어진 작업에 어떤 스킬을 로드할지 결정합니다. "지금 이 스킬을 읽어야 할까?"라는 질문에 답하도록 만드세요.

형식: "Use when..."으로 시작하여 트리거 조건에 집중

중요: 설명 = 사용 시기, 스킬이 무엇을 하는지가 아님

설명은 오직 트리거 조건만 설명해야 합니다. 설명에 스킬의 프로세스나 워크플로를 요약하지 마세요.

이것이 중요한 이유: 테스트 결과 설명이 스킬의 워크플로를 요약하면, 에이전트가 전체 스킬 내용을 읽는 대신 설명을 따를 수 있음이 밝혀졌습니다. "작업 간 코드 리뷰"라는 설명은 스킬의 순서도에 두 번의 리뷰(사양 준수 후 코드 품질)가 명확히 표시되어 있었음에도 에이전트가 한 번만 리뷰하게 만들었습니다.

설명을 "독립적인 작업으로 구현 계획을 실행할 때 사용"(워크플로 요약 없음)으로 변경했을 때, 에이전트는 순서도를 올바르게 읽고 2단계 리뷰 프로세스를 따랐습니다.

함정: 워크플로를 요약하는 설명은 에이전트가 취할 수 있는 지름길을 만듭니다. 스킬 본문은 에이전트가 건너뛰는 문서가 됩니다.

# ❌ 나쁨: 워크플로 요약 - 에이전트가 이를 따르며 스킬을 읽지 않을 수 있음
description: Use when executing plans - dispatches subagent per task with code review between tasks

# ❌ 나쁨: 너무 많은 프로세스 세부 정보
description: Use for TDD - write test first, watch it fail, write minimal code, refactor

# ✅ 좋음: 트리거 조건만, 워크플로 요약 없음
description: Use when executing implementation plans with independent tasks in the current session

# ✅ 좋음: 트리거 조건만
description: Use when implementing any feature or bugfix, before writing implementation code

내용:

  • 이 스킬이 적용됨을 알리는 구체적인 트리거, 증상, 상황 사용
  • 문제(경쟁 상태, 일관성 없는 동작)를 설명하고 언어별 증상(setTimeout, sleep)은 설명하지 마세요
  • 스킬 자체가 특정 기술에 관한 것이 아니라면 트리거를 기술 중립적으로 유지하세요
  • 스킬이 특정 기술에 관한 것이라면 트리거에 명시적으로 표시하세요
  • 3인칭으로 작성 (시스템 프롬프트에 주입됨)
  • 절대 스킬의 프로세스나 워크플로를 요약하지 마세요
# ❌ 나쁨: 너무 추상적, 모호함, 사용 시기 미포함
description: For async testing

# ❌ 나쁨: 1인칭
description: I can help you with async tests when they're flaky

# ❌ 나쁨: 스킬이 특정 기술에 관한 것이 아닌데 기술 언급
description: Use when tests use setTimeout/sleep and are flaky

# ✅ 좋음: "Use when"으로 시작, 문제 설명, 워크플로 없음
description: Use when tests have race conditions, timing dependencies, or pass/fail inconsistently

# ✅ 좋음: 특정 기술 스킬, 명시적 트리거
description: Use when using React Router and handling authentication redirects

2. 키워드 커버리지 (Keyword Coverage)

에이전트가 검색할 만한 단어 사용:

  • 오류 메시지: "Hook timed out", "ENOTEMPTY", "race condition"
  • 증상: "flaky", "hanging", "zombie", "pollution"
  • 동의어: "timeout/hang/freeze", "cleanup/teardown/afterEach"
  • 도구: 실제 명령어, 라이브러리 이름, 파일 유형

3. 설명적인 이름 지정 (Descriptive Naming)

능동태, 동사 우선 사용:

  • ✅ creating-skills (not skill-creation)
  • ✅ condition-based-waiting (not async-test-helpers)

4. 토큰 효율성 (Token Efficiency) - 중요

문제: getting-started 및 자주 참조되는 스킬은 모든 대화에 로드됩니다. 모든 토큰이 중요합니다.

목표 단어 수:

  • getting-started 워크플로: 각각 <150단어
  • 자주 로드되는 스킬: 총 <200단어
  • 기타 스킬: <500단어 (간결하게 유지)

기법:

세부 사항을 도구 도움말로 이동:

# ❌ 나쁨: SKILL.md에 모든 플래그 문서화
search-conversations supports --text, --both, --after DATE, --before DATE, --limit N

# ✅ 좋음: --help 참조
search-conversations supports multiple modes and filters. Run --help for details.

교차 참조 사용:

# ❌ 나쁨: 워크플로 세부 정보 반복
When searching, dispatch subagent with template...
[20 lines of repeated instructions]

# ✅ 좋음: 다른 스킬 참조
Always use subagents (50-100x context savings). REQUIRED: Use [other-skill-name] for workflow.

예제 압축:

# ❌ 나쁨: 장황한 예제 (42단어)
your human partner: "How did we handle authentication errors in React Router before?"
You: I'll search past conversations for React Router authentication patterns.
[Dispatch subagent with search query: "React Router authentication error handling 401"]

# ✅ 좋음: 최소 예제 (20단어)
Partner: "How did we handle auth errors in React Router?"
You: Searching...
[Dispatch subagent → synthesis]

중복 제거:

  • 교차 참조된 스킬에 있는 내용을 반복하지 마세요
  • 명령어에서 명백한 것을 설명하지 마세요
  • 동일한 패턴의 여러 예제를 포함하지 마세요

검증:

wc -w skills/path/SKILL.md
# getting-started workflows: aim for <150 each
# Other frequently-loaded: aim for <200 total

하는 일이나 핵심 통찰력에 따라 이름 짓기:

  • ✅ condition-based-waiting > async-test-helpers
  • ✅ using-skills not skill-usage
  • ✅ flatten-with-flags > data-structure-refactoring
  • ✅ root-cause-tracing > debugging-techniques

동명사(-ing)는 프로세스에 적합:

  • creating-skills, testing-skills, debugging-with-logs
  • 능동적, 수행 중인 작업 설명

5. 다른 스킬과의 교차 참조 (Cross-Referencing Other Skills)

다른 스킬을 참조하는 문서 작성 시:

스킬 이름만 사용하고 명시적 요구 사항 표시:

  • ✅ 좋음: **REQUIRED SUB-SKILL:** Use superpowers:test-driven-development
  • ✅ 좋음: **REQUIRED BACKGROUND:** You MUST understand superpowers:systematic-debugging
  • ❌ 나쁨: See skills/testing/test-driven-development (필수 여부 불명확)
  • ❌ 나쁨: @skills/testing/test-driven-development/SKILL.md (강제 로드, 컨텍스트 소모)

@ 링크를 사용하지 않는 이유: @ 구문은 파일을 즉시 강제 로드하여 필요하기 전에 200k+ 컨텍스트를 소모합니다.

순서도 사용법 (Flowchart Usage)

digraph when_flowchart {
    "정보를 표시해야 하나?" [shape=diamond];
    "내가 잘못할 수 있는 결정인가?" [shape=diamond];
    "마크다운 사용" [shape=box];
    "작은 인라인 순서도" [shape=box];

    "정보를 표시해야 하나?" -> "내가 잘못할 수 있는 결정인가?" [label="yes"];
    "내가 잘못할 수 있는 결정인가?" -> "작은 인라인 순서도" [label="yes"];
    "내가 잘못할 수 있는 결정인가?" -> "마크다운 사용" [label="no"];
}

순서도는 다음 경우에만 사용:

  • 명확하지 않은 결정 지점
  • 너무 일찍 멈출 수 있는 프로세스 루프
  • "A 대 B를 사용해야 하는 경우" 결정

순서도를 절대 사용하지 말아야 할 경우:

  • 참조 자료 → 표, 목록
  • 코드 예제 → 마크다운 블록
  • 선형 지침 → 번호 매기기 목록
  • 의미 없는 레이블 (step1, helper2)

그래프비즈 스타일 규칙은 이 디렉토리의 graphviz-conventions.dot를 참조하세요.

인간 파트너를 위한 시각화: 이 디렉토리의 render-graphs.js를 사용하여 스킬의 순서도를 SVG로 렌더링하세요:

node ./render-graphs.js ../some-skill           # 각 다이어그램을 개별적으로
node ./render-graphs.js ../some-skill --combine # 모든 다이어그램을 하나의 SVG로

코드 예제 (Code Examples)

하나의 훌륭한 예제가 여러 개의 평범한 예제보다 낫습니다

가장 관련성 높은 언어 선택:

  • 테스팅 기술 → TypeScript/JavaScript
  • 시스템 디버깅 → Shell/Python
  • 데이터 처리 → Python

좋은 예제:

  • 완전하고 실행 가능
  • WHY를 설명하는 주석이 잘 달림
  • 실제 시나리오에서 비롯
  • 패턴을 명확하게 보여줌
  • 적응 준비 완료 (일반 템플릿 아님)

하지 말아야 할 것:

  • 5개 이상의 언어로 구현
  • 빈칸 채우기 템플릿 생성
  • 인위적인 예제 작성

여러분은 포팅에 능숙합니다. 하나의 훌륭한 예제로 충분합니다.

파일 구성 (File Organization)

자체 포함 스킬 (Self-Contained Skill)

defense-in-depth/
  SKILL.md    # 모든 것을 인라인으로

경우: 모든 내용이 들어맞고, 무거운 참조가 필요하지 않을 때

재사용 가능한 도구가 있는 스킬 (Skill with Reusable Tool)

condition-based-waiting/
  SKILL.md    # 개요 + 패턴
  example.ts  # 적용 가능한 작업 예제

경우: 도구가 재사용 가능한 코드이고 단순한 설명이 아닐 때

무거운 참조가 있는 스킬 (Skill with Heavy Reference)

pptx/
  SKILL.md       # 개요 + 워크플로
  pptxgenjs.md   # 600줄 API 참조
  ooxml.md       # 500줄 XML 구조
  scripts/       # 실행 가능한 도구

경우: 참조 자료가 인라인으로 포함하기에 너무 클 때

번들 스크립트는 산문에서 해당 인터프리터를 통해 호출하세요 (bash scripts/tool.sh, node scripts/tool.js). 절대 경로로 호출하지 마세요. 일부 하네스 플러그인 패키저는 실행 비트를 제거하여 scripts/tool.sh가 Permission denied 오류로 실패할 수 있습니다.

철칙 (The Iron Law) - TDD와 동일

NO SKILL WITHOUT A FAILING TEST FIRST
(실패하는 테스트 없이 스킬은 없다)

이것은 새로운 스킬과 기존 스킬의 편집 모두에 적용됩니다.

테스트 없이 스킬을 먼저 작성했습니까? 삭제하세요. 다시 시작하세요. 테스트 없이 스킬을 편집했습니까? 동일한 위반입니다.

예외 없음:

  • "간단한 추가"도 안 됨
  • "그냥 섹션 추가"도 안 됨
  • "문서 업데이트"도 안 됨
  • 테스트되지 않은 변경 사항을 "참조"로 유지하지 마세요
  • 테스트를 실행하는 동안 "적응"하지 마세요
  • 삭제는 삭제를 의미합니다

필수 배경 지식: superpowers:test-driven-development를 이해해야 합니다.

기여 방법 (How to Contribute)

이 저장소의 스킬에 기여하려면:

  1. 새로운 스킬: creating-skills 스킬의 단계를 따르세요
  2. 기존 스킬 편집: 먼저 스킬의 기존 테스트를 실행하여 기준 행동을 확인하세요
  3. 가이드라인 준수: 위의 모든 구조 및 내용 규칙을 따르세요
  4. 풀 리퀘스트 제출: 명확한 설명과 함께 PR을 제출하세요

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.

관련 스킬