Skip to content
Back to skills

Ape Plan Change

ASecurity

Plan a product change by change from the brief, journeys and app structure: the roadmap's milestones, one change file each in plan/changes with its header, ape change to see one and run its checks, the chain (plan, structure, design system, prototype, build) with its ape mcp tools, the branch and the Change and Task trailers.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
developmentgogitdatabasebackend

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add BuffApe/BuffApe --skill ape-plan-change --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ape Plan Change?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ape Plan Change
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/buffape-ape-plan-change/badge)](https://www.skillsdirectory.com/skills/buffape-ape-plan-change)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ape-plan-change
description: "Plan a product change by change from the brief, journeys and app structure: the roadmap's milestones, one change file each in plan/changes with its header, ape change to see one and run its checks, the chain (plan, structure, design system, prototype, build) with its ape mcp tools, the branch and the Change and Task trailers."
---

# Planning a change

A product is built change by change. The plan lives in the repository: `plan/brief.md` (the idea and the jobs), `plan/journeys.md` (the paths and states), `plan/structure.md` (the sections), `plan/roadmap.md` and one file per change in `plan/changes/`. Status is never written in them: it follows from git and the checks.

Before the first plan, if idea or journey notes are in one sibling folder, ask the person to replace `../<folder>` in `{"permissions":{"additionalDirectories":["../<folder>"]}}` with that folder and merge it into the git-ignored `.claude/settings.local.json` themselves, keeping existing settings. This lets Claude Code read and change files in that folder. Or, after a refused read, the person presses Allow this folder in the agent panel.

## Read by section

Planning a change reads only what it needs. For `plan/brief.md`, `plan/journeys.md`, `plan/roadmap.md`, `design/DESIGN.md` and `design/screens.md`, list the headings first (`grep -n '^## ' plan/brief.md`), then read the sections the change touches: its milestone, its journeys and their people, the brief's sections on its scope. Read a whole file only when it is short or the change is about all of it, such as writing the brief itself.

## Read-back, before the plan and journeys

In Brief, ask "What does it replace in their day?" Treat everything under "what they already use"
as in scope to replace unless the owner writes "keep using it" beside it.

For a new brief or a change to what it promises, write a few sentences from the brief under
`Read-back` in `plan/brief.md`. Say who it is for, what they need to do in a normal day, and what it
replaces or keeps. Show it to the owner as "Here's what I understood."
Wait for the owner to confirm or correct it before drafting the roadmap, changes or journeys.
If they correct it, update the brief and ask them to confirm the revised read-back. Record their
confirmation on the `Owner confirmation` line. For ongoing work from an older brief without the
section, use its agreed scope and suggest adding the section for the next plan.

## A summary line under each heading

The studio's Brief reads short first: under each `##` heading of `plan/brief.md`, write the
section's short form as `> Summary: <one line>` and keep it current when the section changes. In
`Who it is for`, write one per role as `> Summary: Role (app or console): what we know.`; in `Must
do` and `Later`, one per item worth seeing first. The rest of the section stays as written: Read
more opens it whole. A section without a summary shows its first sentence.

## Journeys from a normal day

Start each journey in `plan/journeys.md` with a moment in the person's normal day,
such as "8:00, a customer calls." Follow their actions through to the outcome in the agreed brief.
Show where the new way takes over a job and where the person continues using something
the owner kept. Give each core path a base state, steps, branches and an end state.

## Structure, after Journeys

Keep the studio loop's order: Brief, Plan, Brand, Journeys, Structure, Prototype, Build,
Release, Live and learn. After Journeys, ask: What are the sections? Which should always be
close at hand, and which comes first? Who sees each part? Where does each section start,
and what opens from it? Offer a draft from the journeys; let the person correct it.
Write `plan/structure.md` before the first prototype. Ask again only when sections,
audiences or screen ownership change. An existing product without this file keeps working:
propose a draft to review before its next affected prototype; never invent past approval.

Use one table, one row per section, with this exact header:
`| Section | First screen | Who | Place | Main |`. Main is `yes` or `no`; several rows can
be main (the starter has Home and Settings both main). File order ranks the main sections.
Names must be distinct within the same place and audience; Settings in app and console is fine.
First screen uses an existing inventory route (`/`, `/settings`) or console screen name.
A section a planned change adds names that change: `/billing (planned, C-020)`, where
C-020's file lists `'/billing'` under `touches.screens`. The studio shows it as planned until
the route exists, then as an ordinary row (the suffix can stay or go). Never invent a route
no change plans. The small CLI plan reader refuses missing or unknown first screens, a
planned screen its change does not list, repeated names, malformed rows and absent notes,
naming the offending row.
Nested screens go in short notes after the table: name their owning section and return target.
Sign-in/out and denied paths name a return or safe next destination. Add phone and wide-screen
notes: up to five phone places; over five, first four main sections plus More; wider, a labelled
rail; wide lists beside detail with selection preserved on resize. Console and public sections
keep separate frames. Audience is intent; existing access controls decide access.
SA4 will add section/screen coverage and traversal evidence; this file alone proves neither.

## The roadmap

`plan/roadmap.md` lists the milestones in order. Each is a `## ` heading with the outcome in the owner's words ("Customers can call your number"), a sentence of what they can try, and its changes as a list (`- C-012 SMS inbox`).

## A change file

`plan/changes/C-012-sms-inbox.md`: the id, then a short slug. The header is YAML between `---` lines:

```markdown
---
id: C-012
title: SMS inbox
milestone: Customers can text the shop   # a heading in the roadmap
type: feature                            # feature, fix, extension, upgrade, design, hosting or refactor
dependsOn: [C-010]                       # changes that land first
touches:
  modules: [sms]                         # module keys
  screens: ['/inbox', '/inbox/[id]', Messages]  # app routes, admin paths or admin screens
  tables: [sms_message]
  services: []                           # processes it adds or resizes (ape services)
doneWhen:                                # commands, run from the product's root
  - pnpm verify
  - pnpm ape prototype snapshot --scene inbox
---

## Goal
## Scope (what it uses, what it builds)
## Screens
## What the person using it will ask
## Data
```

Quote every route in `screens`: it is YAML, and an unquoted `[id]` ends the list early (`ape change` then reports "Missing , or :").

For work finished without a `Change` trailer, set `doneIn` to the quoted commit ID (7–40 hex digits) that finished the change, and Work shows Done once main contains that commit.

A change with no screens (an extension or a backend change, never a `design` change) says so with `noScreens: true` in the header, beside `touches` and with no `screens` listed. It is coded with no prototype once main commits it. The line takes effect only once main commits it and the change has no prototype versions; Autopilot's automatic save of a step that changes whether a change needs its prototype waits for a person's own save (merging a coding branch that adds the line is not checked yet). A change with prototype versions, or any other value, keeps the prototype step.

Then the goal, the scope, the screens, what the person using it will ask and the data in plain words. "What the person using it will ask" is filled at planning, one bullet each, for every screen the change adds or changes ("does not apply" with a reason is allowed): who enters or is reached, and can they be seen by name; from what data, and how it is kept up to date; what it costs; what each control does. The prototype answers them (`ape-prototype`'s questions pass) and the critique checks the answers. A `hosting` change (a new service, a bigger size, more copies) also says the services and sizes it adds (the `ape-add-service` skill). Keep each change small enough for one branch. Name what exists by its manifest name, so `ape change` can find it.

Keep a change file under about 15 KB (`ape size` warns past it): what was built and when is in git, so a shipped change keeps no running log of rounds, `Built` lists or answered questions.

## Using it

In a studio planning or loop turn, run only `pnpm ape change` and `pnpm ape change new`: neither loads the product's code. `pnpm ape change` reports each change file's header problems. Read existing modules, screens and tables from the product's files with read tools; `pnpm ape manifest` and `pnpm ape change C-012` load product code and are unavailable in these turns. The checks in `doneWhen` run later, in a build turn or by the person. When a studio turn needs the person's decision, ask one short question on the turn's ask line (its instructions give the exact form), then stop: the studio shows the question on the step's page and the person answers in the chat.

- `pnpm ape change` lists the changes and reports any malformed file with the file and the field.
- Outside studio planning, `pnpm ape change C-012` prints the change, its branch and what it touches: each module, screen and table found in `pnpm ape manifest` (with its file), or new.
- In a build turn or by the person, `pnpm ape change C-012 --check` runs its `doneWhen` checks; `--json` for programs.
- Outside studio planning, an agent has the same through the `ape mcp` tools `change_show` (`id`) and `change_check` (`id`).

## The chain: plan, structure, design system, prototype, build

A change with screens, or a change of look, goes through these steps in order; each has a skill (how) and `ape mcp` tools (state and actions). A step that has nothing to do is skipped, never reordered.

1. **Plan.** Check each change against the brief's agreed scope. In studio planning and loop turns, read what exists from the product's files with read tools, write the change file, then check its header with `pnpm ape change`. Outside those turns, `ape mcp` offers `app_inventory` and `search_docs`, then `change_show` with the id: every touched module, screen and table resolves, or is new on purpose.
2. **Structure.** After Journeys, review the structure questions above and write `plan/structure.md` before the first prototype. Keep an existing structure unless sections, audiences or screen ownership change.
3. **Design system** (the `ape-design-system` skill). A component the screens need and `design/components/` lacks comes first, as its own `type: design` change. `ape mcp`: `design_check` (no raw colors, fonts or sizes; a showcase scene per component), `design_diff` against the last approved commit.
4. **Prototype** (the `ape-prototype` skill). Views and scenes for every screen the change writes, the console's too (list them all in the change's `screens`), then `ape mcp`: `prototype_snapshot` with the scene's key while you work and with none before the commit, `prototype_data` with `change` to read its approved version. Stop at the snapshot commit until a person approves it.
5. **Build to match,** with the skill for each part (`ape-add-feature`, `ape-add-service`), then `change_check` runs `doneWhen`. `ape mcp`: `run_tests` for one package, `services_list` when the change adds or resizes a service.

## A fix from an error

`pnpm ape change new --from-error <group>` (or the `ape mcp` tool `change_from_error`) writes a `fix` change from an error group in the development database: what failed, where, how often, since when, and the top frames as `function@file`. `recent_errors` gives each group's id. The group was scrubbed when it was stored, and the file holds no person beyond an ID. Its header names the group (`error: <id>`), so a second ask returns the same file. It starts in the milestone `Fixes`; move it into a roadmap milestone if it belongs there, then build it as any change.

## A refactor

`type: refactor` changes how the code reads, never what it does. Its proof runs later, in a build turn or by the person: `pnpm ape change C-012 --check` on a refactor first proves the behavior unchanged against its base (its merge base with `main`, or `--base <ref>`), then runs `doneWhen`:
- `ape manifest --json` is identical, and so is every route's schema and every package's exports;
- no migration added or changed;
- no more files over the size limit, no more reaches past a boundary;
- `pnpm test` passes, and no package's coverage falls below the base's.

It checks the base out in a scratch worktree and installs it, then runs the tests on both, so it takes a while. Since it runs the tests, `doneWhen` can be `pnpm typecheck` and `pnpm lint`. A failing part names where it changed (`changed at identity.get_me GET /v1/me.response…`): put that part in a change of its own.

## The branch and the trailers

The roadmap and the change files are committed on `main`, before the branches that build them. A change is built on the branch `change/` plus its file's name: `change/C-012-sms-inbox`. Every commit on it ends with two trailers:

```text
Change: C-012
Task: add the inbox screen
```

The product's `.githooks/commit-msg` refuses a commit on a change's branch without them; other branches are untouched.
CI repeats the chain with `pnpm ape change --check` (the branch supplies the id) and `pnpm ape change trailers origin/main..HEAD` (every non-merge commit must carry its Change and Task trailers).

## Finishing a change

When `pnpm ape change C-012 --check` passes (and a prototype commit it needs is approved), merge through `pnpm ape change merge C-012`. Worktree checks receive no product settings and keep the person's own file access: a development computer's `.env` holds only development and sandbox values, never production secrets. After merging, use Snapshot in the studio on main, with its development servers running. Products with a prototype need a passing Snapshot record for main's exact HEAD before release approval or deployment; no owed list is kept. Missing, unreadable, failed or stale evidence closes release. On failure, fix or revert the change and run Snapshot for the new HEAD. The product's `.githooks/pre-merge-commit` holds protected paths (the `agents.protected` list in `buffcore.config.ts`) for a person. `pnpm ape agents held main`, run on the branch, names those paths before merging. A held merge stops there: report it and name the paths, and tell a person who doesn't use git that saying "merge it" is enough. Keep the hook and the Snapshot evidence check in place.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.