/livt-discovery:record-example-mappingfrom livt-discovery
Record an Example Mapping session into discoveries/example-mappings/{story-key}.yaml — the board's rules, examples, and questions committed verbatim as the baseline every later diff is read against. Use after a session on a story's board, whether or not the story has a card, or when that board was reworked; it never changes what the room agreed, and never tidies what it wrote — sharpening the mapping is formulate-example-mapping's commit, laid over yours. A rule changed or added outside a session routes to change-rule, and one put forward for agreement to propose-rule; this skill never reads the implementation.
Ships in livt-discovery. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You record an example mapping — the record station of the discovery ring, at the story level.
The Example Mapping session already happened: people worked it out together on a board (Miro, sticky notes, a photo), and the content was agreed in the room. Your job is not to facilitate, improve, or re-discover it. It is talk, then record: write the board out so the conversation leaves a faithful residue. Tidying it for a reader is the next station's work, and it lands as a visible diff over what you commit, never as a silent rewrite. In Ron Jeffries' three Cs, the story's card was written before the session and the session was the conversation; you write the confirmation — the rules and examples the team will hold the implementation to.
This skill is written in English for maintainability — English is not the language to answer in. Match the user: hold the conversation and write user-facing prose in the language they are using. Only structural keys, identifiers, and code stay English — the same split the artifacts already make.
You ship one commit: the board verbatim, with no edits at all. It is the session's residue, and the reference every later diff is read against.
Making the mapping read well — rule clarity, example naming, grouping, question phrasing — is the next station, and formulate-example-mapping ships it as its own commit consulting bdd-expert. Never do that work here. A pre-polished baseline hides the edit, and the review loses the one thing that second commit exists to show. When you are done, say the baseline is in and that formulating it is the next step.
write-story-card wrote stories/{story-key}.md, and the team held the session on that story's board. A story taken straight to its rules and examples — a bug fix whose behaviour is already clear — may have no card at all; its board is then named by the mapping itself (see Name Contract).formulate-example-mapping lays the structural edit over your baseline, and the agreed mapping is handed outward from there by file-story-issue and file-rule-issues — the start of the delivery ring. A rule that changes later is change-rule's; one put forward without a session, still waiting for agreement, is propose-rule's.stories/{story-key}.md to get the scope and key. With no card, the board's yellow sticky is the scope, and the key is agreed with the user under write-story-card's Key Contract — kebab-case English, at least four words — naming neither an existing card nor an existing mapping.name:, as written on the boardrules[] entryexamples[] entry under its rulequestions[] entryubiquitous[] term reference (see Ubiquitous Language below)discoveries/example-mappings/{story-key}.yaml.status: proposed; every other rule was agreed in the room and takes no status. Never mark one proposed on your own reading of it.formulate-example-mapping is where it may be addressed, in the open.name: {the yellow sticky, as written on the board — only when the story has no card}
rules:
- id: R-01
name: {rule description, as written on the board}
examples:
- id: EX-01
name: {concrete example, as written on the board}
questions:
- id: Q-01
text: {unresolved question, as written on the board}
ubiquitous:
- {term-key}
- {ctx}/{term-key}
story: field. The top-level name: follows the Name Contract below.key: identifiers in English; name:/text: follow the board's language.ubiquitous lists the board's pink stickies as term references (see Ubiquitous Language below).Canonical statement in change-rule; these bullets are verbatim from it. You mint every ID in the mapping, so they start with you — and a tidier numbering is never a reason to renumber.
R-NN, Q-NN), examples within their rule (each rule starts from EX-01). With R-01/R-02/R-03 on file and R-03 retired, the next rule is R-04 — never R-03 again.status (rejected or retired) and an example or question gets retired: true; either way it stays in the file, its ID taken and its text readable. Deleting it hands the ID to the next item and silently re-targets every reference. Don't comment it out either: a comment is not part of the YAML structure, so a structural edit drops it.superseded_by: beside the status or the flag, listing the successors as livt URIs — livt://mapping/{story-key}/rule/{rule-id}, the same followed by /example/{example-id}, or livt://mapping/{story-key}/question/{question-id} — so a reference landing on the retired item reads on instead of stopping. A list, because an item can split into two; livt URIs, because a successor can live in another mapping and a bare R-05 names nothing. Leave the field off when nothing replaced it. Only the pointer goes in the YAML — why it was retired belongs to the commit, where it is written once and cannot drift.retired says a decision was agreed and then withdrawn, and on an item the default branch never held it writes the review's back-and-forth into the record as history. The default branch's copy of the file is the test: an ID it holds is bound wherever the item is changed next, and one you cannot check is treated as bound too.Canonical statement in write-story-card; these bullets are verbatim from it. You write the mapping's name:, so the contract binds you from the other side: name: goes in only for a story with no card, and one already on file beside a card keeps reading as the card does.
stories/{key}.md. A story that never got a card — a bug fix taken straight to its rules and a failing example — is named by name: at the top of its example mapping instead, and livt shows that name wherever the board is named.name:, the two are the same string. livt reads them independently and never compares them, so nothing but a skill keeps them together: a skill that writes either one reads the other first.Pink stickies are the words the room agreed on, and the record is their only path off the board. A term that never reaches ubiquitous/ can never be looked up. record-story-map carries this section verbatim — a skill loads on its own, so both record skills have to hold it. Change one, change both.
ubiquitous: entry. The list holds term references, not display names: kebab-case English, {ctx}/{term-key} when the board scopes the word to a context. Mint the key from the term, and ask the user when the wording gives no obvious one.ubiquitous/{term-key}.md with the board's word as name: and the definition as the body.ubiquitous/ keeps its definition. The board naming a word does not license rewriting what the glossary already says about it.When the team reworks a board that has already been recorded, discoveries/example-mappings/{story-key}.yaml already holds IDs. Record onto that file — never write a fresh one over it, which would re-mint every ID:
name: takes the board's wording; beside a card, ask the user rather than letting the two names part.status: retired on a rule, retired: true on an example or a question — no longer agreed, still in the file. A rule that has gone takes each of its examples with it: neither spelling cascades, so an unflagged example still resolves as live.superseded_by: on the retired one naming the new URI: the board's grouping is honoured, the old URI still resolves to the same text, and it says where the example went.Canonical statement in change-rule; these bullets are verbatim from it.
Yours is one: Record {story-key} example mapping (baseline), committed with no edits. The structural edit that follows is a second unit, and a second skill's.
Before the baseline commit, verify the record is complete — not whether the map is "good" (that is formulate-example-mapping's question, and the session's before it):
name: carries it when there is no card.ubiquitous:, and every term whose definition the board carried has its ubiquitous/{term-key}.md.discoveries/example-mappings/{story-key}.yaml as one commit: the verbatim baseline every later diff is read against. Plus the ubiquitous/{term-key}.md files the board's definitions produced, a note of which referenced terms are still undefined, and the hand-off to formulate-example-mapping.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
9 skills in this plugin
/bdd-expertBehaviour-Driven Development expertise grounded in the BDD community's work — the three phases (Discovery, Formulation, Automation), Example Mapping, and Gherkin syntax. Use it to review a story or example mapping, answer a BDD practice question, or check artifact consistency; the formulate-example-mapping skill consults it for the structural edit it lays over a recorded baseline./change-ruleChange one agreed business rule in an existing Example Mapping — add, change, or retire it, with its examples — as its own fine-grained commit. Use for "this rule changed", "a rule was added", "this rule no longer holds"; a rule not yet agreed routes to propose-rule, a session's outcome to record-example-mapping, and this skill never reads the implementation./formulate-example-mappingFormulate a recorded Example Mapping — rule wording, example naming, grouping, and question phrasing — as one structural edit over a committed baseline, consulting the bdd-expert skill, whose diff is what the review reads. Use after record-example-mapping, or to work a mapping recorded long ago; it changes expression and structure only, never what the room agreed. A rule whose meaning changed routes to change-rule, and this skill never reads the implementation./opportunity-expertOpportunity Canvas expertise grounded in Jeff Patton's work — framing a product opportunity, separating verifiable facts from assumptions about value, and deciding whether to take it on at all. Use it to review an opportunity canvas, pressure-test an opportunity before mapping it, or answer a product discovery question./propose-ruleCarry one business rule from proposal to agreement in an existing Example Mapping — put it forward with status `proposed` and the people whose agreement it needs, then accept or reject it — each step as its own fine-grained commit. Use when a rule was found without the people who have to agree to it, as when one person works a story through with an AI — "propose this rule", "who has to agree to this", "accept the proposal". A rule already agreed routes to change-rule, a session's outcome to record-example-mapping, and this skill never reads the implementation./record-story-mapRecord a User Story Mapping session into discoveries/usm/{opportunity-key}.yaml as two commits — the board as it stands, committed verbatim as the baseline, then a structural edit consulting the usm-expert skill, whose diff is what the review reads. Use after a story-mapping session, or when a mapped board was reworked; it never changes what the room agreed. A story's card routes to write-story-card, a rule-level change to change-rule.npx claudepluginhub boykush/livt --plugin livt-discovery