[Back to table of contents](./README.md)

# 04. Ship your first feature in 5 minutes

This page is your first hands-on exercise: follow one small bug fix from the idea stage to merge. Example scenario: handling the request **"The login failure error message is too generic, so it is hard to understand the cause."**

The concepts behind this flow are explained in more detail in [05. general cycle (small)](./04-general-cycle-small.md). This page focuses on practice.

## Step 1 - Create a plan

```
ywc-plan Login failure error messages are too generic to understand the cause. Want to show specific reasons like account locked / typo / not signed up
```

`ywc-plan` reads the codebase first and decides whether this change is **Small** enough to finish as a single PR. If it is judged Small, a `plan.md` file is created. Check that the four sections - What / Why / Out of Scope / Done When - are filled in.

## Step 2 - Converge the plan

```
ywc-spec-ready --spec plan.md
```

If `plan.md` still has concerns, they are automatically refined and revalidated. If it is already clean, it is handed off to the next step unchanged.

## Step 3 - Generate code

```
ywc-code-gen --spec plan.md --feature "specific login failure reason"
```

This generates the Backend / Frontend / QA layers in parallel. When generation finishes, you get a completion report ending in one of `DONE`, `DONE_WITH_CONCERNS`, `BLOCKED`, or `NEEDS_CONTEXT`. See [02. Core concepts](./02-core-concepts.md) for what each state means.

## Step 4 - Review before opening a PR

```
ywc-impl-review
```

`ywc-code-gen` has no automatic review flag. If you skip this step, the PR is opened without code review. **Do not skip it.**

## Step 5 - Create the PR and handle Review

```
ywc-create-pr --title "fix: show specific login failure reason"
```

`ywc-create-pr` handles commit, secret scan, local validation, draft PR creation, and remote CI/Bot Review checks. If Bot review comments or merge-readiness issues remain, run a separate PR health sweep like this:

```
ywc-handle-pr-reviews 123
```

The Small flow is based on `plan.md`, so it has no `tasks/<task-name>/` artifact. Therefore, after reviewer approval, merging through the GitHub UI or `gh pr merge` is safer than using `ywc-finish-branch`, which includes task completion handling.

## If you got this far

You have completed one change from start to finish. Good next pages:

- If the change is larger than this and needs to be split into multiple Tasks -> [06. general cycle (medium/large)](./05-general-cycle-medium-large.md)
- If the idea is not concrete yet, unlike this exercise where the problem is already clear -> start with `ywc-brainstorm` (see [19. Full Skill Reference](./14-skill-reference.md))
- If you want to hand over one goal and have the system proceed automatically to the end instead of managing each step yourself -> [07. Finish automatically from one goal](./06-agentic-autonomous-loop.md)

---

[Previous: 03. Prerequisites and installation](./15-prerequisites-installation.md) · [Next: 05. Handling a small change (general cycle - small)](./04-general-cycle-small.md)
