02. Core concepts

Guide3 min read

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

Back to table of contents

02. Core concepts

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).

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.md04. general cycle (small)
Medium/LargeMust be split into multiple Tasks, or includes a DB migration or new Library adoptiondocs/ywc-plans/<slug>.md05. 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)
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 04 and 05.

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 16. 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. Ship your first feature in 5 minutes