Skip to content
Back to skills

Lets Shape

ASecurity

Shape an idea into backlog issues, or prepare one bug, chore or story for planning. Use to split or prioritize work, fit a request into the backlog, or resume or revise discovery. Discovery records the people the product serves and their journeys; each issue describes work that lets-go can take next.

  • 18 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
businessgobashnodegitapidocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add sidereal-io/sidereal --skill lets-shape --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lets Shape?

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

Security grade badge for Lets Shape
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sidereal-io-lets-shape/badge)](https://www.skillsdirectory.com/skills/sidereal-io-lets-shape)

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: lets-shape
description: Shape an idea into backlog issues, or prepare one bug, chore or story for planning. Use to split or prioritize work, fit a request into the backlog, or resume or revise discovery. Discovery records the people the product serves and their journeys; each issue describes work that lets-go can take next.
---

# Let's shape

Turn the user's request into work the backlog can hold. For a large idea,
discovery identifies the people the product serves (personas), maps their
paths through it (journeys), sets priorities and splits the work into
stories.
For one bug, chore or small story, prepare that issue on its own. Run every
command below from the repo root.

Start with [Locate the discovery](#locate-the-discovery). It checks the
project and selects the right path:

- [Shape one issue](#shape-one-issue) for one bug, chore or small story.
- [The phases](#the-phases) for a new discovery.
- [Resume mode](#resume-mode) for unfinished discovery.
- [Revision mode](#revision-mode) to update an existing map and backlog.

[The Project](#the-project) gives the commands those paths use. Read
[Glossary handoff](#glossary-handoff) when shaping finishes; it first checks
whether this run has glossary edits to carry forward.

**Discovery plans; it does not build.** Read files, search code and
investigate the codebase. Never write application code, and never create a
change. Discovery writes the map, issues, and agreed project-owned glossary
definitions: no roadmap, release plan or changelog.

- `openspec/discovery.md` — the living map: personas and journey map
  ([templates/discovery-template.md](templates/discovery-template.md)). It
  outlives every run; see [The map](#the-map). In a repository with several
  products, each product has a map of its own, and this file lists them; see
  [Pick the map](#pick-the-map).
- GitHub issues — one **parent issue** per discovery run, and the stories
  ([templates/issue-template.md](templates/issue-template.md)).

Changes are created later, one at a time, by `lets-go`.

**The input is read-only.** A discovery run starts from an input: a PRD or
vision file, a GitHub issue, pasted text, or just conversation. Read it.
Never create, edit or restate it in a file. The run records what it decides
in its parent issue: the confirmed scope, the priorities and the Won't
calls.

**This is a stance with a light structure.** The phases below give the
conversation a shape. They are not a script. Revisit an earlier phase when
new information arrives, and confirm with the user before you move to the
next.

Read [Plain language](references/plain-language.md) before writing.
Use it for questions, the discovery map and issue packets. Each must give
its next reader enough context to decide or act.

## The Project

Kind, Priority, Size and Status are fields on the GitHub Project linked to
this repository. Set them only with the `gh project item-edit` commands
below. Kind is Epic, Story, Bug or Chore. Priority is Must, Should, Could or
Wont. Size is XS, S, M, L or XL.

Find the Project first:

```bash
gh api graphql -F owner='{owner}' -F name='{repo}' -f query='
query($owner: String!, $name: String!) {
  repository(owner: $owner, name: $name) {
    nameWithOwner
    projectsV2(first: 100) { nodes { number title url closed owner { ... on User { login } ... on Organization { login } } } }
  }
  repositoryOwner(login: $owner) {
    ... on ProjectV2Owner {
      projectsV2(first: 100) { nodes { number title url closed owner { ... on User { login } ... on Organization { login } } repositories(first: 100) { nodes { nameWithOwner } } } }
    }
  }
}' --jq '.data.repository.nameWithOwner as $repo
  | {repo: $repo, projects: ([.data.repository.projectsV2.nodes[], (.data.repositoryOwner.projectsV2.nodes[] | select(any(.repositories.nodes[]; .nameWithOwner == $repo)))]
      | map(select(.closed | not) | {number, title, url, owner: .owner.login}) | unique_by(.owner, .number))}'
```

The query lists the Projects linked to the repository, and the owner's
Projects that link back to it. A user-owned Project can be missing from the
repository's own listing for a while after it is linked, so neither list
alone is enough.

- **One Project:** use its `number` as `<n>`, its `owner` as `<owner>` and
  its `title` as `<project title>` in every command below. `repo` is the
  repository, as `owner/name`.
- **None:** say to run the `lets-setup-backlog` skill, and stop.
- **Two or more:** list each one's title and URL, ask the user to unlink the
  extras, and stop. Never pick one yourself.

Every issue joins the Project when you create it with `--project "<project title>"`. `gh issue create` prints the issue's URL, `<url>`; for an existing
issue, get it with `gh issue view <i> --json url --jq .url`. Set the fields
one at a time:

```bash
gh project item-edit <n> --owner <owner> --url <url> --field Kind --value Story
gh project item-edit <n> --owner <owner> --url <url> --field Priority --value Must
gh project item-edit <n> --owner <owner> --url <url> --field Size --value S
gh project item-edit <n> --owner <owner> --url <url> --field Status --value Todo
```

An issue is shaped when Kind, Priority and Size are set. Status Todo says
nobody has taken it. The glossary documentation Chore below is the sole
exception: assign it and set In Progress. Set Todo once, right after the
other three, whenever you create or reshape a story, bug or chore; the
Project's workflows and `lets-go` move it on from there. An epic gets a Kind
and nothing else.

## The stance

- **Curious, not prescriptive.** Ask the questions the input raises.
- **Visual.** Draw journey flows and priority tables.
- **Grounded.** Explore the codebase, and annotate the plan with what exists
  today.
- **Adaptive.** Follow a thread, and change course when new information
  arrives.
- **Outcome-oriented.** Converge on concrete output: the map and the issues.
- **One phase at a time.** Confirm each phase before the next.
- **Checkpointed.** Write every confirmed phase at once, so the session can
  stop and resume at any phase boundary.

## The map

The run's map describes the people the product serves and the paths they
take through it. It is not a record of runs. Many runs edit the same map, so
its size follows the number of personas and paths, never the number of runs.
Every run keeps these rules:

- **Personas are durable.** A persona entry reads the same before and after
  any single epic ships. *Pain today* is the person's real-world problem
  without a good tool; *Success looks like* is the lasting outcome they
  want. Neither names code, milestones, or epics. Edit a persona only when
  facts about the person change.
- **Personas sit in audience groups.** Under `## Personas`, one `###`
  heading per audience — typically `People who use <product>` and `People who build <product>` — and one `####` entry per persona. Omit a group that
  has no personas. `## Journey Map` uses the same groups.
- **One journey per distinct path.** Personas who walk the same stages share
  one journey, named for all of them, with an *Implication* note saying what
  that means for the build. A stage only some of them reach stays in the
  shared journey and names whose it is, such as `Bump pins (Mo)`. A persona
  gets its own journey only when most of its stages differ.
- **A journey shows the full path.** Map every stage the persona goes
  through, not only the part this run's input covers. Draw future stages
  only from sources the project already has (vision, architecture docs,
  decision records); do not invent them.
- **Annotations show present status only.** A `supported` stage links no
  issues — the code is the evidence. A `partial` or `gap` stage links only
  the open issues that close it. A `gap` with no link is known but
  unplanned.
- **A freshness line dates the annotations.** The Journey Map opens with
  `Stage status checked against the code on YYYY-MM-DD.` Update it whenever
  you re-check stages.
- **Epic scope stays out.** A run's scope, exit criterion, and "what this
  release covers" go in its parent issue, never in the map. No section,
  heading, or persona is named for a milestone or epic.
- **Finished journeys stay.** A journey whose stages are all `supported`
  stays in the map; it still shows what the product does. Only a path that
  no longer applies is removed.
- **Removal is recorded.** Remove a persona or journey that no longer
  applies, and note the removal and its reason in the current run's parent
  issue.

## Locate the discovery

At the start:

1. Run `openspec list --json` and take the OpenSpec root from `root.path`.
   It must be this repository's root, or a directory inside it: `openspec list` answers with the nearest root, which can be a parent of the
   repository. If it is outside, stop and say the project has no OpenSpec
   root. Use the resolved root everywhere below, never a bare `./openspec/`.
2. Read `<root.path>/openspec/config.yaml` (or `config.yml`) if it exists.
   Its `context` and `rules` are constraints for you to follow, not content
   to reproduce. Read [Domain language](references/domain-language.md) and
   resolve the shared glossary from that root and context. Load ancestor and
   affected-scope glossaries as capabilities emerge, before using their
   terms.
3. Find the Project, as in [The Project](#the-project). The map's links need
   the owner and the name from its `repo`.
4. Pick the mode, first match wins:
   - **The user brings one bug, chore or small story, or names one issue to
     shape on its own**: [Shape one issue](#shape-one-issue). An issue that
     holds a large idea is the input to a discovery run instead. If you
     cannot tell which the user means, ask.
   - **An open parent issue says `Discovery status: in-progress`** (`gh issue list --state open --search '"Discovery status: in-progress" in:body' --json number,title,body`): [Resume mode](#resume-mode). If
     more than one does, list them and ask the user which to resume, or
     whether to start a new run. Never pick one yourself.
   - **`<root.path>/openspec/discovery.md` does not exist**: run every
     phase.
   - **Otherwise**: [Revision mode](#revision-mode).

If any of these fails, stop and show the error. Never write the map anywhere
but the resolved root.

## Pick the map

Each run reads and writes one discovery map: the run's map. Ingest picks it
before its first write. Revision mode picks it before its step 1, from what
the user brings. Write no map until the run's map is settled.

1. Read `<root.path>/openspec/discovery.md`. When it does not exist, or it
   has no `## Products` heading, the repository has one product, and that
   file is the run's map. Ask no question about products, unless the idea
   is a separate thing the repository delivers, apart from the map's
   product. A new persona or a new journey of the same product asks
   nothing. When the idea is a separate thing, ask whether it belongs to
   the map's product or to a new product. A new product goes to [Add a
   second product](#add-a-second-product).
2. When it has a `## Products` heading, it is the root map. Each row of its
   table names a product, what it covers and the path to its map. When the
   idea clearly fits one listed product, use that product's map. When you
   cannot tell, ask which product the idea belongs to, offering each listed
   product and a new product. A new product goes to [Add a later
   product](#add-a-later-product).
3. Name the run's map to the user every time, such as
   `This run uses openspec/discovery/web-shop.md.`, so they can catch a
   wrong pick.

The question about which product an idea belongs to, and the question that
moves the map for a second product, are confirmation questions, with no
recommendation: the user decides them, so `lets-go` at `auto` puts them to
the user.

### Add a second product

When the idea belongs to a new product, and the repository has one product:

1. Propose kebab-case names for both products, from the map's title and
   the idea, such as `web-shop` for `Discovery: Web shop` and `warehouse`
   for a warehouse app.
2. Show the user the move: the existing map's new path,
   `openspec/discovery/<first-product>.md`, and the root's table of
   contents with a row for each product. Ask whether to make it, as a
   confirmation question with no recommendation. On a no, keep
   `openspec/discovery.md` as the run's map, and move nothing.
3. On a yes, write the files before you touch any issue:
   1. Move the map to `openspec/discovery/<first-product>.md`, with a plain
      file move, not `git mv`, so nothing is staged.
   2. Write `openspec/discovery.md` from
      [templates/discovery-root-template.md](templates/discovery-root-template.md),
      with a row for each product.
   3. Create `openspec/discovery/<new-product>.md` from
      [templates/discovery-template.md](templates/discovery-template.md).
      It is the run's map.
4. Retarget each open parent issue whose map is the root. Find the parents
   with `gh issue list --state open --search '"Input:" in:body' --json number,title,body`,
   and keep each whose body has no `Map:` line or says
   `Map: openspec/discovery.md`. Give each one
   `Map: openspec/discovery/<first-product>.md`, beside its `Input:` line,
   with `gh issue edit <parent> --body-file <file>`. When an update fails,
   stop, and name each parent you have not retargeted. A later Resume or
   Finalize repairs it, as [Resume mode](#resume-mode) says.

### Add a later product

When the idea belongs to a new product, and the root already lists two or
more products, nothing moves:

1. Propose a kebab-case name for the product, from the idea. When
   `openspec/discovery/<product>.md` already exists, say the name
   is taken, ask for another, and write no file.
2. Ask whether to add it, as a confirmation question with no
   recommendation. On a yes, add the product's row to the root's
   `## Products` table, and create `openspec/discovery/<product>.md` from
   [templates/discovery-template.md](templates/discovery-template.md). It is
   the run's map. Change no other product's map.

### Read the parent's map

Resume mode and Finalize take the run's map from the parent issue's `Map:`
line, not from the idea:

1. With one product, a parent with no `Map:` line means
   `openspec/discovery.md`.
2. In any repository, when the file the `Map:` line names does not exist,
   write no map and create no file. Say the file is missing. Say that it
   may be on a branch this checkout does not have yet, or may have been
   discarded, and that choosing a product cannot bring back its phases. Say
   to bring the map into this checkout, or correct the parent's `Map:`
   line. Then stop.
3. When the root lists products, a parent with no `Map:` line, or one that
   says `Map: openspec/discovery.md`, points at the root, which holds no
   journeys. Write no map, and ask the user which product the parent
   belongs to, offering each listed product, as a confirmation question
   with no recommendation. On the answer, write that product's `Map:` line
   to the parent with `gh issue edit <parent> --body-file <file>`, and go
   on with that map.

Write the phases to the run's map only. The one edit a run makes to another
product's map is the link that replaces a shared persona's entry, as
[Phase 2: Personas](#phase-2-personas) says.

## Develop the vocabulary

Use the shared reference in discovery, revision, resume and single-issue
shaping. Before writing a packet that relies on a term, compare its meaning
with established vocabulary. For example, distinguish an authentication
Session from an existing game Session with the user. Keep unresolved terms
and candidate meanings explicitly tentative in the shaping issue.

Propose meaning and the narrowest scope covering actual uses, checking
ancestor definitions and siblings. Order used by checkout and fulfillment
belongs in their common scope; Checkout attempt used only by checkout stays
local. Confirm meaning and scope with the user, then write the accepted
entry immediately to its authoritative glossary. In single-issue shaping,
confirm and write only after [step 6](#shape-one-issue) sizing passes.
Subsequent packets use that agreed concept. Qualify conflicting local
meanings rather than silently overriding shared ones; move newly shared
definitions and update references without duplicate authoritative copies.
A stale declared glossary path must be reported and resolved before
dependent discussion continues.

## Preserve glossary edits between sessions

Before the first glossary write, record the starting branch and full commit,
working-tree and index status, and the original contents (or absence) of
each affected path in `.workspace/<run>-glossary-handoff.md`. Check each
additional path before writing it. Track exactly which edits this shaping
run owns. If a glossary already has user edits, resolve ownership with the
user before touching it. Separate or preserve those edits first; never
include them in an owned checkpoint merely because they share a path.
A checkpoint's base must contain the baseline needed to reproduce its patch.

At every confirmed phase checkpoint with glossary changes:

1. Inspect the owned diff against its baseline and the staged diff. Commit
   only owned glossary paths as a separate `docs:` unit. Use explicit paths
   (including new files); never `git add -A` or commit unrelated staged
   work.
   From the default branch, first create a holding branch named for the
   shaping issue from the recorded starting commit. Continue shaping there;
   subsequent checkpoints extend the same branch. Check branch existence
   before creation and never reset a branch to reuse its name.
2. If shaping began on an existing change branch, keep glossary checkpoints
   there as separate `docs:` commits. Do not create a holding branch from
   unrelated implementation history. Record each exact owned commit and its
   parent, so build imports only glossary commits with available context.
3. Publish the checkpoint branch to a chosen writable remote without a PR.
   Confirm the remote head contains the checkpoint. If no writable remote
   exists or publication fails, report the limitation, keep the local
   checkpoint and do not call it available to another checkout.
4. Update **Glossary handoff** in the shaping issue (or parent): starting
   branch/base, owned paths, ordered checkpoint commits and their parents,
   head, remote URL and remote branch, publication state, and owner still
   undecided. Keep tentative meanings separate. In discovery, record the
   checkpoint beside the status line too. Do this after each phase, not only
   at final handoff. The issue is the durable recovery record; scratch files
   alone are insufficient.

On resume, read the issue's handoff before deciding whether this run has
vocabulary edits. Fetch its recorded branch and verify the exact checkpoint
and path-only commit range, then restore that branch and its definitions
before continuing. Verify the baseline from its recorded base; do not rely
on conversation history or another checkout's `.workspace/`. Never force a
checkout or automatically stash unrelated changes. If local edits obstruct
recovery, preserve them and report the obstruction.

After the final checkpoint, restore owned paths to the recorded starting
baseline before normal build. Usually switch safely to the starting branch;
verify tracked owned paths have no diff and newly introduced paths are
absent. On an existing change branch, the separately committed vocabulary
stays in its PR; record that destination rather than undoing its commits.
For an explicit restoration, first compare each path and index with the
owned checkpoint. Restore only verified owned edits, deleting a newly
created file only when it still matches the checkpoint. If later user edits
exist, stop restoration of that path and resolve ownership. Never discard
those edits, reset the whole tree, or change unrelated paths. Retain the
checkpoint branch until the destination safely contains its definitions.

## The phases

**Checkpoint every phase.** Apply the glossary checkpoint procedure above
whenever the phase changed definitions. When the user confirms a phase,
write its result at once, and set the parent issue's status line to the next
phase: `personas`, `journey-map`, `moscow`, `stories`, then `finalize`. A
revision run that skips personas and the journey map goes from Ingest
straight to `moscow`.

Personas and the journey map go in the run's map. Everything else goes in
the parent issue.

The parent issue and the run's map are the resume point. A future session
with none of this conversation must be able to pick up exactly where this
one stopped.

### Phase 1: Ingest

Take in the input — a file path, an issue (`gh issue view <n>`), pasted
text, or just conversation. Then:

- Restate the scope in your own words; have the user confirm
- Pick the run's map, as [Pick the map](#pick-the-map) says, before the
  checkpoint writes anything
- Surface goals and non-goals
- List open questions as they emerge (they land in the parent issue)
- When the input is an issue, read its thread as [Issue
  comments](references/issue-comments.md) says, and show the user the list.
  Ask about each comment not labelled `read`, in list order, one at a time.
  Recommend taking it into the parent issue or dismissing it, with the
  reason. A point the user takes in goes into the parent's Scope or Open
  questions.

**Checkpoint:** The parent issue is public, so confirm its text first. Write
it from the parent template in
[templates/issue-template.md](templates/issue-template.md): the status line,
the input reference, the `Map:` line with the run's map, the confirmed scope
and any open questions so far. In the same step, create the run's map from
[templates/discovery-template.md](templates/discovery-template.md) when the
file is missing, so a resumed run always finds it.
Title it `Epic: <capability>`, create it with `gh issue create --title "Epic: <capability>" --body-file <file> --project "<project title>"`, then
set its Kind to `Epic` with `item-edit`. Phase 5 may turn it into a single
story.

When the input is an issue, fetch its thread again, even when the first
fetch found nothing to ask about. Ask about each comment that is new or
edited since the last fetch. When a point goes into the parent, confirm the
updated body and write it with `gh issue edit <parent> --body-file <file>`.
Repeat until a fetch finds nothing new. Then, when the run judged at least
one comment, post one reply on the input issue, as the reference says. It
lists each point taken in as `Taken into #<parent>:`, and each dismissal as
`Dismissed:`.

### Phase 2: Personas

Start from the personas already in the run's map. For the people this input
serves, reuse an existing persona first; extend its entry only if the input
reveals a lasting fact about them. Add a new persona only for a person the
map lacks; most runs add none. For each new persona:

- **Who** they are
- **Goal** they are trying to reach
- **Pain today** their real-world problem without a good tool
- **Success looks like** the lasting, observable signal they got value

When the run's product serves a persona whose entry is in another
product's map, move its entry to the root map's `## Shared personas`, under
its audience group. In the other map, leave a link to the root entry in its
place, as [templates/discovery-template.md](templates/discovery-template.md)
shows, and name the persona the same way in the run's map. That link is
the one edit a run makes to another product's map. A persona only one
product serves stays in that product's map.

Push back if personas are roles without needs ("admin") rather than people
with goals, or if an entry would stop being true once this run ships (see
[The map](#the-map)).

**Checkpoint:** write the Personas section of the run's map.

### Phase 3: Journey map

For each persona this run serves, find the journey they walk. Extend an
existing journey — add stages, re-annotate, link new stories — before
drawing a new one; draw a new journey only for a path the map lacks. Map the
persona's full path, not only this run's slice. Draw it:

```
  Discover ──► Sign up ──► First run ──► Daily use ──► Share
     │            │            │             │           │
    gap          gap        partial      supported      gap
```

Annotate every stage against the **real codebase** — read the code, do not
guess:

- `supported`: works today
- `partial`: exists but incomplete for this journey
- `gap`: does not exist

Cite the open issue that closes a gap as a full link,
`[#N](https://github.com/<owner>/<repo>/issues/N)`; a bare `#N` does not
link inside a repository file. A `supported` stage carries no link.

**Checkpoint:** write the Journey Map section of the run's map, with
today's date on its freshness line.

### Phase 4: MoSCoW

Bucket the capabilities the journey surfaced into **Must / Should / Could /
Won't (this release)**.

- Every Must needs a reason tied to a persona's journey
- Push back on Must inflation: if everything is a Must, nothing is
- Won't is a decision, not a dumping ground — record why

**Checkpoint:** write the MoSCoW section of the parent issue.

### Phase 5: Stories

Cut the Must (then Should) work into stories:

- **Every story is a thin vertical slice:** end-to-end and demoable, never a
  horizontal layer. A persona can do something new when it ships.
- **Each story is one OpenSpec change.** Its future proposal's what and why
  fits in about 200 words. If the story packet already strains that budget,
  the story is too big: split it.
- **The first story is the walking skeleton:** the smallest working path
  through the whole journey.
- **Order by dependency first, then value.**
- **Size each story XS, S, M, L or XL.** L and XL are too big: split them.
- **Read the backlog before you cut:** `gh issue list --state all --limit 500 --json number,title,state,body,assignees`. Work that fits an open,
  unassigned story updates that issue instead of duplicating it.

Each story gets a **story packet**: the story template in
[templates/issue-template.md](templates/issue-template.md). Every field is
required, because the `lets-go` run that plans the story starts with none of
this conversation.

**Size check-out:** after drafting the stories, review each against the
~200-word proposal budget. List every story that looks too large, each with
1-2 candidate split lines (or a one-line reason it genuinely resists
splitting), and resolve with the user before finalizing.

**One story or many:**

- **The whole run fits one story.** The parent issue becomes that story.
  Retitle it `<kebab-story-name> — <one-line outcome>` and replace its body
  with the story template. Then set Kind `Story`, its Priority, its Size and
  Status `Todo`, with four `item-edit` commands. Keep the status line, input
  reference, `Map:` line and complete **Glossary handoff** recovery record
  when replacing the body. Won't calls go in its Scope `out`.
- **More than one story.** The stories are sub-issues of the parent.

**Checkpoint:** Issues are public, so show the new and changed issues as a
table (title, blocked by, MoSCoW, size) and confirm. Put each blocker on the
story it blocks, never only on the parent, because `lets-go` cannot see a
blocker on a parent issue when it picks the next story. When something
blocks every story under the parent, give each story its own `--blocked-by`
link. Then create them in dependency order, blockers first:

```bash
gh issue create --title "<title>" --body-file <file> --project "<project title>" --parent <parent#> [--blocked-by <n>,<n>]
```

For each issue:

1. The command prints the issue URL, `<url>`. The number is its last
   segment.
2. Set Kind `Story` with `item-edit`.
3. Set Priority to the story's MoSCoW value: `Must`, `Should` or `Could`.
4. Set Size to the story's size.
5. Set Status `Todo`.
6. Stop at the first error, including a failed field update.
7. Before you retry, search for the title with `gh issue list --state all --search "<title> in:title"`, so you never create a duplicate. If the
   issue exists but a field is unset, set it on that issue. Do not create
   the issue again.

When every story issue exists, set the status line to `next phase: finalize`.

### Phase 6: Finalize

Take the run's map from the parent's `Map:` line, as [Read the parent's
map](#read-the-parents-map) says. Remove the status line from the parent
issue. Keep the `Input:` and `Map:` lines, so the run always names what it
started from and where its map is. Resolve every open question, or move it
to the story it blocks. Link the journey stages in the run's map to the
stories that close them. `## Backlog` stays a single link to the
repository's issues page, never a list of issues. Show the user the stories
as a checklist of issue links.

Run [Glossary handoff](#glossary-handoff) before the ordinary handoff below.

Then hand off:

> The stories are GitHub issues under `#<parent>`. To start building, run `lets-go` on the default branch: it picks the next story, claims it and builds it. Run this skill again at any time to revise the plan.

## Shape one issue

Use this when the user brings one bug, chore or small story, or names an
open issue that has no packet. It shapes that one issue. It never edits a
discovery map and never starts a discovery run. Another skill can send work
here too, such as `lets-brainstorm` when it splits a story; it gives you the
issue's parent and what blocks it.

1. **Find or create the issue.** When the user names no issue, search for
   one first: `gh issue list --state open --search "<words> in:title" --json number,title`. If one matches, ask whether it is the same work. If none
   does, you create it in step 7. Read a named or confirmed issue with `gh issue view <i> --json title,body,url,parent`. Read its thread as [Issue
   comments](references/issue-comments.md) says, and show the user the list.
   If the issue has a **Glossary handoff**, recover its recorded checkpoint
   before continuing or deciding whether this run has glossary edits. An
   existing issue that is not on the Project yet joins it with `gh project item-add <n> --owner <owner> --url <url>`.
2. **Pick the Kind, and confirm it.** A Bug is something that should work
   and does not. A Chore is work no persona sees, such as a dependency bump,
   a CI fix or a tidy-up. A Story is something a persona can do once it
   ships.
3. **Read the code the issue names**, and search for more. Load shared,
   ancestor and affected-scope vocabulary and develop candidate meanings
   as above. Keep them tentative until step 6.
   **Relevant code** lists what you find, or `new` when the story builds on
   nothing that exists.
4. **Ask about each comment not labelled `read`**, in list order, one at a
   time, for every Kind. Recommend fold or dismiss, with the reason. When
   the packet already holds what a comment says, recommend dismiss, and say
   so.
5. **Interview for the Kind's template** in
   [templates/issue-template.md](templates/issue-template.md), one question
   at a time: the story template for a Story, the bug template for a Bug. A
   Chore has no template. It needs only its one-line outcome, and a title in
   the template's shape. When `openspec/discovery.md` exists, use its
   persona and journey names, but do not edit it. When it lists products,
   read the map of the issue's product and the root's `## Shared personas`
   instead, picking the product as [Pick the map](#pick-the-map) says, with
   one difference. Offer only the listed products, never a new one. When
   no listed product fits, use no map's names.
6. **Size it** XS, S, M, L or XL. L or XL is too big for one change: say so,
   offer a discovery run on it instead, and stop. Then write no glossary
   definition. If the user starts the discovery run, record the tentative
   meanings in its parent issue when Ingest writes it. This stop creates no
   issue and starts no discovery. Once sizing passes, agree each meaning and
   scope with the user and write it as
   [Develop the vocabulary](#develop-the-vocabulary) says.
7. **Confirm, then write.** The issue is public, so show the user its title,
   body, Kind, Priority and Size, and get a yes. The body carries every
   fold, so one write covers them all. When the user confirms that an
   existing packet stands unchanged, write nothing and leave its Project
   fields as they are. Otherwise write the packet, retaining any existing
   **Glossary handoff** recovery record when replacing the body. For an
   existing issue, use `gh issue edit <i> --title "<title>" --body-file <file>`. For a new one, use `gh issue create --title "<title>" --body-file <file> --project "<project title>" [--parent <p>] [--blocked-by <i>,<i>]`. Then set Kind, Priority, Size and Status `Todo`,
   in that order, with `item-edit`. A Chore and a Bug get a Priority and a
   Size too.
8. **Fetch the thread again**, even when the first fetch found nothing to
   ask about. Show and ask about each comment that is new or edited since
   the last fetch. When a yes changes the body, confirm it and write it with
   `gh issue edit <i> --body-file <file>`. Repeat until a fetch finds
   nothing new.
9. **Reply**, when this run judged at least one comment. Post one reply, as
   the reference says, with `gh issue comment <i> --body-file <file>`. It
   lists every comment judged in steps 4 and 8.

Checkpoint any glossary edits and run [Glossary handoff](#glossary-handoff).
Then say that `lets-go` can take it: on the default branch, it picks the
next issue, or the user can name this one.

## Resume mode

When an open parent issue says `Discovery status: in-progress` (or the user
picked one of several):

1. **Read it and its map.** Take the run's map from the parent's `Map:`
   line, as [Read the parent's map](#read-the-parents-map) says. Recover any
   recorded glossary checkpoint as above first. The status line records the next phase; the sections
   already present are confirmed work.
2. **Restate where discovery stopped** — a one-paragraph summary of what the
   parent issue and map already capture — and confirm with the user.
3. **Continue from the recorded phase.** Do not re-litigate confirmed
   sections unless the user brings new information; then revisit and update
   them. When it says `finalize`, go straight to
   [Phase 6: Finalize](#phase-6-finalize).

## Revision mode

Use this when `openspec/discovery.md` exists and no run is in progress.
Before step 1, pick the run's map from what the user brings, as [Pick the
map](#pick-the-map) says, so you read no thread and change no stage first.

1. **Read the run's map**, then reconcile the map against reality. The
   stale-link check covers every map. The thread reads, the re-annotation
   and the freshness line below cover the run's map only.
   - `gh issue list --state all --limit 500 --json number,title,state,stateReason,parent` lists shipped and open stories
   - Find the links to closed issues in the root map and every product's
     map. This prints the number of each closed issue a map still links:

     ```bash
     grep -rhoE 'issues/[0-9]+' <root.path>/openspec/discovery.md <root.path>/openspec/discovery 2>/dev/null | cut -d/ -f2 | sort -u \
       | grep -xFf <(gh issue list --state closed --limit 500 --json number --jq '.[].number')
     ```

     No output means no link is stale. Re-check each one's stage against the
     code, in the map that links it, and change nothing else in another
     product's map. Set its status by the [Journey map](#phase-3-journey-map)
     definitions; open issues do not decide it. Then do one of:
     - the stage now works: upgrade it and drop the link;
     - an open issue now closes the gap: link that one instead;
     - nothing open does: drop the link and keep that status.
   - **Read the thread of each open issue the map links**, one issue at a
     time, in ascending number. Take the numbers from the map's `issues/<n>`
     links, and keep those the issue list shows as open. Finish each issue
     before you fetch the next:
     1. Fetch the thread and show the list, as [Issue
        comments](references/issue-comments.md) says.
     2. Ask about each comment not labelled `read`, in list order, one at a
        time. When a comment changes the packet, recommend a fold, naming
        the line. When it changes a stage and not the packet, recommend
        updating the map, naming the stage. When the packet already holds
        it, or it changes neither, recommend dismiss, and say why.
     3. Write what the answers call for. For a fold, show the folded body,
        get a yes, and write it once with `gh issue edit <i> --body-file <file>`. Write the body only. The story may be In Progress, so leave
        its title and Project fields as they are. For a map change, edit
        the run's map now, with one of the three outcomes above.
     4. If you asked anything, fetch the thread again after the write, or
        after the last answer when nothing was folded. Ask about each new or
        edited comment, and write what each yes calls for. Repeat until a
        fetch finds nothing new.
     5. Post one reply with `gh issue comment <i> --body-file <file>`. An
        issue with nothing to ask gets no second fetch and no reply.
   - Re-annotate every journey stage against the code; stages move to
     `supported` as their stories ship
   - Update the freshness line to today
2. **Take in what the user brings** — a new PRD, new requirements, changed
   priorities, learnings from shipped stories. New work is a new run with
   its own parent issue: Ingest, then MoSCoW and Stories. Revisit Personas
   and the Journey Map only when the input changes who the product serves or
   how they use it.
3. **Priorities of existing stories are revisable too:** update the story's
   MoSCoW line, with its reason, and set its Priority with `item-edit` in
   the same step.
4. **Never silently delete a story.** Close a superseded story as not
   planned with a one-line reason, so the plan's history stays legible: `gh issue close <n> --reason "not planned" --comment "Superseded by #<m>: <reason>"`.

## Glossary handoff

Work through these steps in order. "You" is the agent; "the user" is the
person shaping with you.

### Decide whether to ask

1. Compare this run's owned glossary paths and checkpoints with the
   starting baseline. Include checkpoints you recovered on resume. Ignore
   unrelated changes.
2. If this run made no glossary edits, use the ordinary handoff. Ask no
   glossary question, and skip the rest of this section.

### Ask who carries the edits

1. Ask the user which pull request carries the edits. Do not ask again
   whether the meanings are accepted.
   - For one story, offer its build branch and pull request, or a
     documentation pull request if the user stops after shaping. Create
     that pull request only if the user chooses it.
   - For definitions several stories share, offer one story's pull
     request, or a documentation pull request that lands first.
2. Pick exactly one owner. Never copy the edits into other pull requests,
   and never stack independent work automatically.
3. If you are shaping on a change branch and split off another story, the
   definitions stay in the original change's glossary commit, unless the
   user picks a safe alternative. When the split story needs them, record
   the original issue and pull request as the owner. Still [ask who carries
   the edits](#ask-who-carries-the-edits).

### Record the choice

1. In the owner issue, or the shaping parent, extend **Glossary handoff**
   with: the owner issue and pull request, the affected paths, the base,
   the remote URL and branch, the full ordered checkpoint range, and
   whether it is published.
2. In each affected packet, point **Depends on** at that record. Never
   copy definitions into issue bodies.
3. If the user stops before choosing an owner, record that the choice is
   pending. The work stays an unresolved prerequisite.

### Set up a documentation pull request

Only when the user chose a documentation pull request:

1. Confirm the issue and the pull request content with the user.
2. Create a Chore issue with a one-line documentation outcome. Set Kind
   Chore, a Priority and a Size with the Project operations above, run
   `gh issue edit <i> --add-assignee @me`, and set Status In Progress.
   Never leave it Todo for another build to pick.
3. If the assignment or a field update fails, tell the user the setup is
   incomplete, and do not call it ready. Resume on the same issue. Never
   create a second one.
4. Use the verified glossary-only holding branch, or move its owned
   commits to a clean documentation branch. Open the pull request with
   `Closes #<chore>`. It never closes the implementation story or an
   unfinished parent.
5. This pull request creates no OpenSpec change. It still uses separate
   `docs:` commits, runs the project's checks before you push, follows
   the finishing rules that apply, and leaves the merge to the user.
   Never commit to the default branch. A change branch that holds code
   cannot become this pull request; take only the verified glossary
   commits.

### Link the blocked stories

1. Ask the user before you add blockers. Then, on each other story that
   needs the unmerged definitions, run
   `gh issue edit <dependent> --add-blocked-by <owner>`, where `<owner>` is
   the owner issue number recorded in **Glossary handoff**, not the Project
   owner login or the PR number. Never put the blocker only on the parent,
   and never use a "relates to" link.
2. If the user declines the links, make the dependent story's
   **Depends on** name the owner, the definitions it needs and the
   unresolved prerequisite. Do not call the story ready. Build's
   glossary check must still stop it.
3. Independent stories can use the definitions once the owner's pull
   request merges.

### Hand over

1. Restore the owned paths to the baseline, as
   [Preserve glossary edits between
   sessions](#preserve-glossary-edits-between-sessions)
   says, before normal build. Keep the holding branch until the
   destination holds its edits. After the transfer, record the
   destination branch, commits and pull request in the issue's
   **Glossary handoff**.
2. If a checkpoint is unpublished or missing, resolve that first. It
   never permits writing competing definitions in another checkout.

## Handing off to lets-go

- Discovery **never** creates changes. `lets-go` creates them, one story at
  a time.
- `lets-go` picks the next story, and owns the selection rule. The user can
  also name an issue for it.
- The story packet is the input — it must stand alone.
- One story per change. If the user asks you to batch-create proposals for
  all stories, decline and explain: proposals written ahead of
  implementation go stale and overlap on shared specs.

Files in this skill

  • SKILL.md33.6 KB
  • references/domain-language.md6.6 KB
  • references/issue-comments.md3.3 KB
  • templates/discovery-template.md1.7 KB
  • templates/issue-template.md3.3 KB

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 business →

Comments

Loading comments…

Newsletter

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