Community코딩 & 개발github.com

alfathafp/portofolio-web-design

버그, 테스트 실패, 예상치 못한 동작이 발생했을 때 수정을 제안하기 전에 반드시 사용합니다.

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

이 스킬은 체계적인 디버깅(SysDebug)을 위한 방법론을 제공합니다. 개발자가 버그나 예상치 못한 동작에 직면했을 때 증상만 고치는 것이 아니라 근본 원인을 철저히 조사한 후에만 수정을 가하도록 강제합니다. 네 단계(근본 원인 조사, 패턴 분석, 가설 및 테스트, 구현)로 구성되며, 각 단계는 반드시 순서대로 완료되어야 합니다. 특히 다중 구성 요소 시스템(예: CI, 빌드, 서명, API)에서는 진단 계측을 추가하여 데이터 흐름을 추적하고 정확히 어느 계층에서 실패하는지 파악하도록 안내합니다. 또한 같은 유형의 문제에 대해 3회 이상 수정이 실패하면 아키텍처 자체를 의심하고 근본적인 재설계를 고려해야 한다는 원칙을 포함합니다. 이 스킬은 Claude Code, Cursor, Codex 등 모든 AI 에이전트 환경에서 사용할 수 있으며, 시간적 압박이나 간단해 보이는 버그일수록 오히려 이 프로세스를 적용해야 한다고 강조합니다.

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

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

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

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

문서

체계적인 디버깅

개요

핵심 원칙: 수정을 시도하기 전에 항상 근본 원인을 찾으십시오. 증상만 고치는 것은 실패입니다.

이 프로세스의 글자를 위반하는 것은 디버깅의 정신을 위반하는 것입니다.

철칙

근본 원인 조사 없이 수정 금지

1단계를 완료하지 않았다면 수정을 제안할 수 없습니다.

사용 시기

모든 기술적 문제에 사용하십시오:

  • 테스트 실패
  • 프로덕션 버그
  • 예상치 못한 동작
  • 성능 문제
  • 빌드 실패
  • 통합 문제

특히 다음과 같은 상황에서 사용하십시오:

  • 시간적 압박이 있을 때 (긴급 상황일수록 추측하고 싶어짐)
  • "딱 하나 빠른 수정"이 당연해 보일 때
  • 이미 여러 번 수정을 시도했을 때
  • 이전 수정이 효과가 없었을 때
  • 문제를 완전히 이해하지 못했을 때

다음 상황에서는 건너뛰지 마십시오:

  • 문제가 간단해 보일 때 (간단한 버그에도 근본 원인이 있습니다)
  • 서두를 때 (서두르면 재작업이 보장됩니다)
  • 관리자가 지금 당장 고치라고 할 때 (체계적인 접근이 추측보다 빠릅니다)

네 단계

다음 단계로 진행하기 전에 각 단계를 반드시 완료해야 합니다.

1단계: 근본 원인 조사

수정을 시도하기 전에:

  1. 오류 메시지를 주의 깊게 읽으십시오

    • 오류나 경고를 지나치지 마십시오
    • 오류 메시지에는 정확한 해결책이 포함되어 있는 경우가 많습니다
    • 스택 추적을 완전히 읽으십시오
    • 줄 번호, 파일 경로, 오류 코드를 기록하십시오
  2. 일관되게 재현하십시오

    • 신뢰할 수 있게 트리거할 수 있습니까?
    • 정확한 단계는 무엇입니까?
    • 매번 발생합니까?
    • 재현할 수 없으면 → 더 많은 데이터를 수집하고 추측하지 마십시오
  3. 최근 변경 사항을 확인하십시오

    • 이 문제를 일으킬 수 있는 변경 사항은 무엇입니까?
    • Git diff, 최근 커밋
    • 새 종속성, 구성 변경
    • 환경 차이
  4. 다중 구성 요소 시스템에서 증거 수집

    시스템에 여러 구성 요소가 있는 경우(CI → 빌드 → 서명, API → 서비스 → 데이터베이스):

    수정을 제안하기 전에 진단 계측을 추가하십시오:

    각 구성 요소 경계에 대해:
      - 구성 요소에 들어오는 데이터 기록
      - 구성 요소에서 나가는 데이터 기록
      - 환경/구성 전파 확인
      - 각 계층의 상태 확인
    
    한 번 실행하여 어디에서 중단되는지 보여주는 증거 수집
    그런 다음 증거를 분석하여 실패하는 구성 요소 식별
    그런 다음 해당 특정 구성 요소 조사
    

    예시 (다중 계층 시스템):

    # 계층 1: 워크플로우
    echo "=== 워크플로우에서 사용 가능한 시크릿: ==="
    echo "IDENTITY: $([ -n "${IDENTITY:-}" ] && echo 설정됨 || echo 설정되지 않음)"
    
    # 계층 2: 빌드 스크립트
    echo "=== 빌드 스크립트의 환경 변수: ==="
    printenv IDENTITY >/dev/null 2>&1 && echo "환경에 IDENTITY 있음" || echo "환경에 IDENTITY 없음"
    
    # 계층 3: 서명 스크립트
    echo "=== 키체인 상태: ==="
    security list-keychains
    security find-identity -v
    
    # 계층 4: 실제 서명
    codesign --sign "$IDENTITY" --verbose=4 "$APP"
    

    이것이 밝혀내는 것: 어떤 계층이 실패하는지 (시크릿 → 워크플로우 ✓, 워크플로우 → 빌드 ✗)

  5. 데이터 흐름 추적

    오류가 호출 스택 깊숙이 있을 때:

    이 디렉토리의 root-cause-tracing.md 문서에서 완전한 역방향 추적 기법을 참조하십시오.

    빠른 버전:

    • 잘못된 값은 어디에서 시작됩니까?
    • 잘못된 값으로 이것을 호출한 것은 무엇입니까?
    • 근원을 찾을 때까지 계속 위로 추적하십시오
    • 증상이 아닌 근원에서 수정하십시오

2단계: 패턴 분석

수정하기 전에 패턴을 찾으십시오:

  1. 작동하는 예제 찾기

    • 동일한 코드베이스에서 유사한 작동 코드 찾기
    • 고장난 것과 유사하게 작동하는 것은 무엇입니까?
  2. 참조와 비교

    • 패턴을 구현하는 경우 참조 구현을 완전히 읽으십시오
    • 대충 읽지 말고 모든 줄을 읽으십시오
    • 적용하기 전에 패턴을 완전히 이해하십시오
  3. 차이점 식별

    • 작동하는 것과 고장난 것 사이에 무엇이 다릅니까?
    • 아무리 작은 차이라도 모두 나열하십시오
    • "그것은 중요하지 않을 거야"라고 가정하지 마십시오
  4. 종속성 이해

    • 이것에 필요한 다른 구성 요소는 무엇입니까?
    • 어떤 설정, 구성, 환경이 필요합니까?
    • 어떤 가정을 합니까?

3단계: 가설 및 테스트

과학적 방법:

  1. 단일 가설 수립

    • 명확히 진술하십시오: "Y 때문에 X가 근본 원인이라고 생각합니다"
    • 적어 두십시오
    • 모호하지 않고 구체적으로 하십시오
  2. 최소한으로 테스트

    • 가설을 테스트하기 위해 가능한 가장 작은 변경을 하십시오
    • 한 번에 하나의 변수만 변경하십시오
    • 여러 가지를 동시에 수정하지 마십시오
  3. 계속하기 전에 확인

    • 효과가 있었습니까? 예 → 4단계
    • 효과가 없었습니까? 새로운 가설을 수립하십시오
    • 위에 더 많은 수정을 추가하지 마십시오
  4. 모를 때

    • "X를 이해하지 못합니다"라고 말하십시오
    • 아는 척 하지 마십시오
    • 도움을 요청하십시오
    • 더 조사하십시오

4단계: 구현

증상이 아닌 근본 원인을 수정하십시오:

  1. 실패하는 테스트 케이스 생성

    • 가능한 가장 간단한 재현
    • 가능하면 자동화된 테스트
    • 프레임워크가 없으면 일회용 테스트 스크립트
    • 수정하기 전에 반드시 있어야 함
    • 적절한 실패 테스트 작성을 위해 superpowers:test-driven-development 스킬 사용
  2. 단일 수정 구현

    • 식별된 근본 원인을 해결
    • 한 번에 하나의 변경
    • "하는 김에" 개선 사항 없음
    • 번들 리팩터링 없음
  3. 수정 확인

    • 이제 테스트가 통과합니까?
    • 다른 테스트가 깨지지 않았습니까?
    • 문제가 실제로 해결되었습니까?
    • 성공을 주장하기 전에 superpowers:verification-before-completion 스킬 사용
  4. 수정이 효과가 없으면

    • 중지
    • 계산: 몇 번의 수정을 시도했습니까?
    • < 3회: 1단계로 돌아가 새로운 정보로 재분석
    • ≥ 3회: 중지하고 아키텍처 의심 (아래 5단계)
    • 아키텍처 논의 없이 4번째 수정을 시도하지 마십시오
  5. 3회 이상 수정 실패: 아키텍처 의심

    아키텍처 문제를 나타내는 패턴:

    • 각 수정이 다른 곳에서 새로운 공유 상태/결합/문제를 드러냄
    • 수정을 구현하려면 "대규모 리팩터링"이 필요함
    • 각 수정이 다른 곳에서 새로운 증상을 만듦

    중지하고 기본을 의심하십시오:

    • 이 패턴이 근본적으로 타당합니까?
    • "순전한 관성 때문에 계속 밀어붙이고" 있습니까?
    • 증상을 계속 수정하는 대신 아키텍처를 리팩터링해야 합니까?

    더 많은 수정을 시도하기 전에 인간 파트너와 논의하십시오

    이것은 실패한 가설이 아닙니다. 이것은 잘못된 아키텍처입니다.

위험 신호 - 중지하고 프로세스를 따르십시오

다음과 같은 생각이 들면:

  • "지금은 빠르게 고치고, 나중에 조사하자"
  • "X를 바꿔보고 작동하는지 보자"
  • "여러 변경을 추가하고 테스트 실행"
  • "테스트 건너뛰고, 수동으로 확인하겠다"
  • "아마 X일 거야, 고치자"
  • "완전히 이해하지는 못하지만 이게 작동할 수도 있어"
  • "패턴은 X라고 하지만 다르게 적용하겠다"
  • "주요 문제는 다음과 같습니다: [조사 없이 수정 나열]"
  • 데이터 흐름을 추적하기 전에 해결책 제안
  • "한 번 더 수정 시도" (이미 2회 이상 시도한 경우)
  • 각 수정이 다른 곳에서 새로운 문제를 드러냄

이 모든 것은 다음을 의미합니다: 중지. 1단계로 돌아가십시오.

3회 이상 수정 실패: 아키텍처를 의심하십시오 (4.5단계 참조)

인간 파트너가 보내는 신호 - 잘못하고 있다는 신호

다음과 같은 방향 전환에 주의하십시오:

  • "그런 일이 일어나지 않나요?" - 확인하지 않고 가정했습니다
  • "그것이 우리에게 보여줄까요...?" - 증거 수집을 추가했어야 합니다
  • "추측하지 마세요" - 이해하지 않고 수정을 제안하고 있습니다
  • "초집중해서 생각하세요" - 증상뿐만 아니라 기본을 의심하십시오
  • "우리가 막혔나요?" (좌절) - 접근 방식이 효과가 없습니다

이러한 신호를 보면: 중지. 1단계로 돌아가십시오.

일반적인 합리화

변명현실
"문제가 간단해서 프로세스가 필요 없어"간단한 문제에도 근본 원인이 있습니다. 간단한 버그에는 프로세스가 빠릅니다.
"긴급 상황이라 프로세스 할 시간 없어"체계적인 디버깅이 추측과 시행착오보다 더 빠릅니다.
"일단 이것만 시도해보고, 그다음에 조사할게"첫 번째 수정이 패턴을 만듭니다. 처음부터 제대로 하십시오.
"수정이 작동하는지 확인한 후에 테스트를 작성할게"테스트되지 않은 수정은 지속되지 않습니다. 테스트가 먼저임을 증명합니다.
"한 번에 여러 수정을 하면 시간을 절약할 수 있어"무엇이 효과가 있었는지 분리할 수 없습니다. 새로운 버그를 만듭니다.
"참조가 너무 길어서 패턴을 적용하겠다"부분적인 이해는 버그를 보장합니다. 완전히 읽으십시오.
"문제가 보이니 고치겠다"증상을 보는 것 ≠ 근본 원인을 이해하는 것.
"한 번 더 수정 시도" (2회 이상 실패 후)3회 이상 실패 = 아키텍처 문제. 패턴을 의심하고 다시 수정하지 마십시오.

빠른 참조

단계주요 활동성공 기준
1. 근본 원인오류 읽기, 재현, 변경 사항 확인, 증거 수집무엇과 왜를 이해
2. 패턴작동 예제 찾기, 비교차이점 식별
3. 가설이론 수립, 최소 테스트확인 또는 새 가설
4. 구현테스트 생성, 수정, 확인버그 해결, 테스트 통과

프로세스가 "근본 원인 없음"을 밝혀낼 때

체계적인 조사 결과 문제가 진정으로 환경적, 타이밍 종속적 또는 외부적이라면:

  1. 프로세스를 완료했습니다
  2. 조사한 내용을 문서화하십시오
  3. 적절한 처리를 구현하십시오 (재시도, 타임아웃, 오류 메시지)
  4. 향후 조사를 위해 모니터링/로깅을 추가하십시오

하지만: "근본 원인 없음" 사례의 95%는 불완전한 조사입니다.

지원 기술

이러한 기술은 체계적인 디버깅의 일부이며 이 디렉토리에서 사용할 수 있습니다:

  • root-cause-tracing.md - 호출 스택을 역방향으로 추적하여 버그의 원래 트리거를 찾습니다
  • defense-in-depth.md - 근본 원인을 찾은 후 여러 계층에 검증을 추가합니다
  • condition-based-waiting.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.

관련 스킬