02. Core concepts

Guide5 min read

Once you understand the terms and concepts on this page, you can apply the examples from every other guide page directly.

Skill, Agent, Executor, Task

TermMeaning
SkillA procedure users invoke directly, such as /ywc-plan. It is defined in claude-code/skills/<name>/SKILL.md, and most of this Guidebook is about Skills.
Agent (Subagent)A specialized execution unit delegated to internally by a Skill, such as ywc-backend-coder or ywc-security-engineer. Users do not invoke these directly; Skills dispatch them through the Task tool.
ExecutorA collective term for the two Skills that actually execute Tasks: ywc-sequential-executor (sequential) and ywc-parallel-executor (parallel).
TaskOne tasks/<phase>-<sequence>-<slug>/ directory created when ywc-task-generator decomposes a spec. It consists of README.md (metadata) and task.md (implementation checklist).

Agents by tool

Agents run inside Skills; you never call them yourself. The two tools ship different sets: 13 agents for Claude Code and 10 for Codex. In Claude Code, worker agents write server, UI and test code. In Codex the Skill session writes the code itself, and most agents are read-only advisors and reviewers.

AgentRoleMain calling SkillsClaude CodeCodex
ywc-architectArchitecture decisions and trade-offs (read-only)ywc-plan, ywc-impl-review✓✓
ywc-security-engineerStatic security review (read-only)ywc-security-audit, ywc-impl-review, ywc-infra-review✓✓
ywc-root-cause-analystRoot-cause analysis (read-only)ywc-debug-rootcause✓✓
ywc-performance-engineerPerformance analysis and profiling advice (read-only)ywc-impl-review✓✓
ywc-typescript-reviewer / ywc-python-reviewer / ywc-go-reviewerLanguage-specific review (read-only)ywc-impl-review✓✓
ywc-cloud-engineerTerraform IaC. Writes and reviews it in Claude Code; review only (read-only) in Codexywc-iac-author, ywc-infra-review, ywc-infra-optimize✓✓
ywc-backend-coder / ywc-frontend-coder / ywc-qa-engineerWrite server code / UI code / test codeywc-code-gen, both executors✓
ywc-refactor-cleanerRuns the safe dead-code deletion loopywc-refactor-clean✓
ywc-doc-writerWrites documentationywc-auth-implement, ywc-project-docs✓
ywc-complexity-cleaner / ywc-test-hardenerQuality-gate workers: reduce production-code complexity / harden tests against surviving mutantsexecutor quality gate (18)✓

Scale determines the flow

Every work item starts with ywc-plan. ywc-plan judges the scale of the request and routes it into one of two flows.

ScaleDecision criteriaOutputNext step
SmallA change that can finish in a single PR, with no DB migration or new Library adoptionplan.md05. general cycle (small)
Medium/LargeMust be split into multiple Tasks, or includes a DB migration or new Library adoptiondocs/ywc-plans/<slug>.md06. general cycle (medium/large)

DB migrations and new Library adoption are always handled separately, regardless of scale. This is a Safety Invariant for both ywc-plan and ywc-task-generator.

The four completion states

Almost every Skill finishes with one of the four states below. Once you know this vocabulary, you can read any Skill's completion report and immediately decide what to do next.

StateMeaningWhat the user should do
DONEFully finished, no issuesMove to the next step
DONE_WITH_CONCERNSFinished, but with something to watchRead the Concern; fix it if it is a correctness issue, otherwise proceed
BLOCKEDCannot proceed - human judgment is neededReview the stated blocker, resolve it directly, then rerun
NEEDS_CONTEXTNot enough information to startProvide the requested information and invoke again

Overall flow at a glance

Idea
ywc-plan (scale decision)
Testing & integration testing (ywc-gen-testcase, ywc-e2e-test-strategy when needed)
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 or ywc-parallel-executor --review
01PR
02CI
03Bot Review
04Merge (automated by Executor)

Each branch of this flow is covered in detail with concrete command examples on pages 05 and 06, and the final testing step is covered on pages 11 and 12.

Shared PR Delivery mode concepts

ywc-finish-branch, ywc-sequential-executor, and ywc-parallel-executor share the mode concepts below for task-based delivery. The Small flow based on plan.md has no task artifact, so it opens a PR with ywc-create-pr and handles review/merge separately. Exact flag combinations are covered in 18. Executor / Code-gen Prompt patterns.

ModeMeaning
normal-pr (default)Automatically handle PR creation -> CI wait -> Bot Review response -> Merge
--draftCreate only a PR and stop - Merge is manual
--local-mergeMerge directly into the base branch locally without a PR
--aggregate-pr (executor only)Collect multiple Tasks onto one branch and deliver them as one PR

Previous: 01. Introduction · Next: 03. Prerequisites and installation