02. 핵심 개념

Guide7분 소요

이 페이지의 용어와 개념을 알고 나면 나머지 모든 가이드 페이지의 예시를 그대로 응용할 수 있습니다.

Skill, Agent, Executor, Task

용어의미
Skill/ywc-plan 처럼 사용자가 직접 호출하는 절차. claude-code/skills/<name>/SKILL.md 에 정의되어 있으며, 이 Guidebook 이 다루는 대부분의 대상입니다.
Agent (Subagent)Skill 이 내부적으로 위임하는 전문 역할 실행 단위 (예: ywc-backend-coder, ywc-security-engineer). 사용자가 직접 호출하지 않고 Skill 이 Task 도구로 dispatch 합니다.
ExecutorTask 를 실제로 실행하는 두 Skill, ywc-sequential-executor (순차) 와 ywc-parallel-executor (병렬)를 함께 부르는 말.
Taskywc-task-generator 가 spec 을 분해해서 만든, tasks/<phase>-<sequence>-<slug>/ 디렉토리 하나. README.md(metadata) + task.md(구현 checklist) 로 구성됩니다.

도구별 Agent 구성

Agent 는 Skill 안에서 실행되며, 사용자가 직접 호출하지 않습니다. 두 도구가 제공하는 agent 는 서로 다릅니다. Claude Code 는 13개, Codex 는 10개입니다. Claude Code 에서는 worker agent 가 server·UI·test code 를 작성합니다. Codex 에서는 Skill 을 실행하는 session 이 직접 code 를 작성하고, agent 는 대부분 read-only 자문·리뷰 역할입니다.

Agent역할주로 호출하는 SkillClaude CodeCodex
ywc-architect아키텍처 판단과 trade-off 자문 (read-only)ywc-plan, ywc-impl-review✓✓
ywc-security-engineer정적 보안 리뷰 (read-only)ywc-security-audit, ywc-impl-review, ywc-infra-review✓✓
ywc-root-cause-analyst근본 원인 분석 (read-only)ywc-debug-rootcause✓✓
ywc-performance-engineer성능 분석과 profiling 권고 (read-only)ywc-impl-review✓✓
ywc-typescript-reviewer / ywc-python-reviewer / ywc-go-reviewer언어별 리뷰 (read-only)ywc-impl-review✓✓
ywc-cloud-engineerTerraform IaC. Claude Code 에서는 작성과 리뷰, Codex 에서는 리뷰만 (read-only)ywc-iac-author, ywc-infra-review, ywc-infra-optimize✓✓
ywc-backend-coder / ywc-frontend-coder / ywc-qa-engineerServer code / UI code / test code 작성ywc-code-gen, 두 executor✓
ywc-refactor-cleaner안전한 dead code 삭제 루프 실행ywc-refactor-clean✓
ywc-doc-writer문서 작성ywc-auth-implement, ywc-project-docs✓
ywc-complexity-cleaner / ywc-test-hardenerQuality gate worker: production code 복잡도 감소 / 살아남은 mutant 에 대한 test 보강Executor 의 quality gate (18)✓

규모(Scale) 가 흐름을 결정한다

모든 작업은 ywc-plan 에서 시작하며, ywc-plan 이 요청의 규모를 판단해 두 흐름 중 하나로 routing 합니다.

규모판단 기준산출물다음 단계
Small단일 PR 로 끝나는 변경, DB migration/새 Library 도입이 없음plan.md05. general cycle (small)
Medium/Large여러 Task 로 쪼개야 함, DB migration 또는 새 Library 도입 포함docs/ywc-plans/<slug>.md06. general cycle (medium/large)

DB migration 이나 새 Library 도입은 규모와 무관하게 항상 별도 취급됩니다 — ywc-plan 과 ywc-task-generator 모두의 안전 불변식(Safety Invariant)입니다.

4가지 완료 상태

거의 모든 Skill 은 작업을 마칠 때 아래 4가지 상태 중 하나로 끝맺습니다. 이 어휘를 알아두면 어떤 Skill 의 결과 보고서를 읽어도 다음에 뭘 해야 할지 바로 판단할 수 있습니다.

상태의미사용자가 할 일
DONE완전히 끝남, 문제 없음다음 단계로 진행
DONE_WITH_CONCERNS끝났지만 주의할 점이 있음Concern 을 읽고 correctness 문제면 수정, observation 이면 그냥 진행
BLOCKED진행 불가 — 사람의 판단이 필요함제시된 blocker 를 확인하고 직접 해결 후 재실행
NEEDS_CONTEXT정보가 부족해 시작할 수 없음요청된 정보를 채워서 다시 호출

전체 흐름 한눈에 보기

아이디어
ywc-plan (규모 판단)
테스트 & 통합테스트 (ywc-gen-testcase, 필요 시 ywc-e2e-test-strategy)
Small
01plan.md
02ywc-spec-ready
03ywc-code-gen
04ywc-impl-review
05ywc-create-pr
Medium/Large
01docs/ywc-plans/<slug>.md
02ywc-spec-ready
03ywc-task-generator
ywc-sequential-executor --review 또는 ywc-parallel-executor --review
01PR
02CI
03Bot Review
04Merge (Executor 가 자동 처리)

이 흐름의 각 갈래는 05, 06 페이지에서 실제 command 예시와 함께 자세히 다루며, 마지막 테스트 단계는 11, 12 페이지에서 다룹니다.

PR Delivery 모드 공통 개념

ywc-finish-branch, ywc-sequential-executor, ywc-parallel-executor 는 task 기반 delivery 에서 아래 모드 개념을 공유합니다. plan.md 기반 Small 흐름은 task artifact 가 없으므로 ywc-create-pr 로 PR 을 열고 이후 review/merge 를 별도로 처리합니다. 정확한 flag 조합은 18. Executor / Code-gen Prompt 패턴에서 다룹니다.

모드의미
normal-pr (기본값)PR 생성 → CI 대기 → Bot Review 대응 → Merge 까지 전부 자동 처리
--draftPR 만 생성하고 멈춤 — Merge 는 사람이 수동으로
--local-mergePR 없이 로컬에서 base branch 로 직접 merge
--aggregate-pr (executor 전용)여러 Task 를 브랜치 하나에 모아 PR 1개로 묶어 delivery

← 이전: 01. 소개 · 다음: 03. 사전 준비와 설치 →