User stories and feedback¶
The third output is a page of the project's user stories. Each story says who wants what, and why, follows that person's journey through the system, lists acceptance criteria checked against the code, and shows the screens the person sees. Readers draw and talk over the screens, download a story as one HTML file to send to a colleague, and import the files that come back. A script turns all the feedback into Markdown, JSON, audio and drawings for development.
Open the live example A story in the example

The stories of the example, before anyone has left feedback: six stories for three people. A card whose story has several screens plays them one after the other, in the order of the journey.
What the page is¶
communications/user-stories/index.html is one HTML file. It opens from disk, needs no server, and loads nothing
from the network: the screens are inside it (unless one is given as a web address). The overview introduces the
people and lists the stories as cards. A story with several screens plays them on its card one after the other, about
a second and a half each, like a short animation: a bar on the picture shows which one, and moving the mouse across
the picture goes through them by hand. A card holds still while it is off screen, hovered or focused, and shows only
its first screen when the system asks for reduced motion.
A story reads from top to bottom:
- The story: "As an annotator, I want to be handed the next image that needs boxes, draw labelled boxes on it and submit it, so that every image is annotated once, by one person, and goes to review."
- The journey, with what the person sees: the steps of one of the explorer's scenarios, or a range of them, after the goal, the trigger and what holds before it starts. The steps a person takes are shown in full; the system's steps in between are folded. Inside each step sit the screens the person sees there, each with a caption and a label that says what it is: a screenshot, or an illustrative wireframe or mock-up. Screens on no step of the journey follow it under Also seen (a story without a journey shows its screens under What the person sees). A link opens the same steps in the explorer.
- Acceptance criteria, after what holds when the story is done, each one checkable in the code: a role check on a route, an error answer and its status code, a state transition, a disabled button or a message the page shows.
- In the code: the files and lines where the criteria can be checked, linked to the repository when it is known, and notes on limits found in the code.
- Feedback: the notes readers left on the screens, each marked open or resolved.
Screens are numbered in the order of the journey, on the page, on the canvas and in feedback.md.

Demonstration feedback (DEMO DATA): a note by a fictional "Demo reader" on the annotate page wireframe, inside the step where the annotator sees it.
The canvas¶
Canvas, at the top of the page (or a link ending in #canvas), lays every story out like a design board: one
lane per person, one frame per story with its title, status and notes, and inside it the story's screens from left
to right in the order of the journey, with arrows between them. Each screen shows the notes' drawings and a badge
with their count, orange while one of them is open.
| To | Do |
|---|---|
| Pan | Drag the background (one finger on a touch screen), or the arrow keys (Shift for bigger steps) |
| Zoom | The wheel or a pinch, at the pointer; + and -, or + and − in the bar |
| Fit everything | F, or Fit |
| Actual size | 0, or 100% |
| Open a screen in its story | Click it, or Enter on it |
| Add feedback on a screen | Double-click it, or its ✎ Feedback button |
| Open a story | Click its frame's title |
| See another view | Desktop, Phone, … in the bar for every screen, or All views side by side |
The canvas keeps its place for the session: open a screen, come back, and it is where you left it. Canvas on a story opens the canvas on that story.

Demonstration feedback (DEMO DATA): notes by a fictional "Demo reader" on the desktop and phone views of one screen.
Views: desktop, tablet, phone¶
A screen can have one picture per view, for a page that changes with the screen size: the screen's own picture is its
default view (desktop unless stories.js names it), and views adds the others (the format).
Such a screen gets a Desktop / Tablet / Phone switch, and a story whose screens have several views gets
one for all of them. Opened on a phone or a tablet, the page shows that view first when a screen has it.
A note is made on the view on screen and keeps it: the switch counts the notes of each view, a screen shows the notes of the view it shows, with a link to those on the others, and Edit opens a note on its own view. Notes made before a screen had views belong to its default view. The page itself works on a phone: the screens fit the width, and a phone or tablet view stands in a device frame.
Generate it¶
stories builds only the stories page; all builds the deck and the explorer, then the stories. Plain requests
work too: "write the user stories of this project, with the screens, so the team can comment on them".
The stories need the project brief and the explorer's model, communications/architecture-explorer/model.js: its
people are the actors and its scenarios the journeys. Without a model, Claude offers to build the explorer first,
or at least to write its model.
Claude plans the stories with you first, one line each: who, what, the scenario and its steps, the screens. It asks once who will read the page, which people and journeys matter, whether it may run the app for screenshots, and whether stories that are not built yet belong in it. The defaults are the model's journeys, implemented behaviour only, and wireframes.
For the screens it takes the first of these that works:
- Screenshots of the running app, when it can run locally and you agree, with demo or seed data, never a real account. Running an app can start services, write data or call paid APIs, so Claude asks first.
- Pictures the project already has: the explorer's images, screenshots or mock-ups in the README or
docs/. - Illustrative wireframes drawn from the UI code: plain grey SVGs with the page's headings, fields, buttons and messages as the code writes them. Each carries the badge "ILLUSTRATIVE WIREFRAME", and the page labels it illustrative. The example's screens are all of this kind, because that project was never run.
Nothing is presented as a screenshot unless it is one, and no screen shows secrets or personal data.
communications/user-stories/
index.html the page, with the screens inside
stories.js the stories: the source of the page
img/ screens captured or drawn for it
Give feedback¶
On a screen, press ✎ Add feedback. The editor opens over the screen, with the tools on the left and your name, the comment and the voice note on the right.
| Key | Tool or action |
|---|---|
| P | Pen |
| H | Highlighter: four times as wide, see-through |
| A | Arrow |
| B | Box |
| N | Numbered pin, each with a short note of its own |
| E | Eraser: click or drag over a mark |
| 1 to 8 | Colour |
| Ctrl+Z | Undo |
| Ctrl+Shift+Z or Ctrl+Y | Redo |
| Ctrl+Enter | Save |
| Esc | Close (it asks before throwing away changes) |
The line has three widths. The comment is for the whole note; the pins' notes are listed under it. Save feedback keeps the note; it then shows on the screen and in the story's feedback panel, where Edit, Show on screen, ⬇ PNG (the screen with that drawing), Delete and the Open / Resolved switch act on it. ⬇ PNG on a screen saves it with every drawing on it.
Voice notes¶
Press Record, then talk and draw. Every stroke drawn while recording is timed against the recording, so playing the note redraws the strokes in step with the voice: pen and highlighter strokes point by point, arrows, boxes and pins whole when they were finished. The player's timeline has a tick for each mark drawn while recording. A voice note stops at five minutes. Record again replaces the audio, and the old marks lose their times.

Demonstration feedback (DEMO DATA): recording a voice note in the editor.
Recording needs microphone access, which the browser gives a page opened from disk, from localhost or over HTTPS.

Demonstration feedback (DEMO DATA): a voice note replaying. The drawing comes back in step with the voice, and the caption comes from the transcript.
Transcripts¶
The transcript is off by default. Where the browser has speech recognition, the editor offers a checkbox, Write a
transcript while I record. The browser's speech service does the work, and in Chrome that means the audio goes to
Google. Leave it off for anything you would not send there. A transcript can be corrected by hand afterwards, one
line per segment (0:03 what was said), and during replay its words show as a caption over the screen.
Where notes are kept¶
Notes are saved in the browser's IndexedDB as you make them, under the page's key (taken from the project name), so pages of different projects do not mix. They stay in that browser profile, and clearing the site's data removes them. Nothing is sent anywhere; the only exception is the transcript above, when you turn it on. If the browser cannot keep them, the page says so: download the story before you close the tab.
Share a story¶
Download ▾ has seven entries:
| Entry | What you get |
|---|---|
| This story, with its feedback | One HTML file: the story, its screens, drawings, comments and voice notes |
| Every story, with all feedback | The whole page as one HTML file, with all the feedback inside |
| Feedback as ZIP | feedback.md, feedback.json, audio/ and drawings/: the files extract-feedback.mjs writes (below), with no script to run |
| Page and feedback as ZIP | The whole page with every note inside, as index.html, and those feedback files in feedback/ |
| Feedback as JSON | Every note as data, for scripts and agents (the audio inside as data URLs) |
| Stories as an RDF graph | The stories as JSON-LD in the terms of the C4 ontology, linked to the architecture's graph, without feedback (The stories as an RDF graph) |
| Stories and feedback as an RDF graph | The same with every note: comments, pins, transcripts (people's words; no audio) |
The ZIP files and the graphs are made in the browser: nothing is uploaded.
The loop with a colleague:
- Download a story and send the file by mail, chat or a shared folder.
- Your colleague opens it from disk in a current browser; no server or install is needed. It is the same page with one story. They add their notes, download the story again and send it back.
- You import it: Import feedback, or drop the files on the page. Story files and JSON files both import.
How imports merge:
- Notes are matched by id. Notes with different ids are all kept.
- When the same note comes from two places, the copy with the later
updatedtime wins, whole: fields are not mixed. Two people only edit the same note when one passed a file on and the other changed a note in it. - Notes for a story the page does not have are skipped, and the message counts them.
- A deleted note stays deleted in that browser, even if an older copy is imported later. Deletions do not travel: downloads carry only live notes, so a colleague who already has the note keeps it. To close a note for everyone, mark it Resolved, which travels.
A story file is an HTML page, so open files only from people you know. The page imports notes as data: it keeps the
fields of a note and nothing else, and never runs or inserts markup from them. A download (one story or every story) drops a relative link to the
explorer, which would break once the file is sent on; a full https:// link stays.
To show everyone's notes in the published page, rebuild it with them (--notes, below).
Turn feedback into work¶
node <plugin>/skills/user-stories/scripts/extract-feedback.mjs \
story-from-ana.html story-from-ben.html notes.json --out feedback --png
The inputs are any number of story files, pages built with --notes, and notes JSON, merged as above. Notes that
are only in your own browser get into a file by downloading the stories or the page. It writes, in --out (default:
a feedback folder next to the first input):
feedback.md: by story, then screen, then view when a screen has several. For each note: the author, date and status, the comment, each pin with its number, position and note, what was drawn and when in the voice note, the transcript, and the audio and drawing files.feedback.json: the merged notes as data, each voice note replaced by its file name, MIME type and length.audio/<note>.<ext>: each voice note, named by the format it was recorded in (.webmfrom Chrome, Edge and Firefox,.m4afrom Safari).drawings/<note>.svg: the screen with that note's drawing on it; with--pngalso a PNG, rendered with Chrome or Edge (--browser <path>orCHROME_PATHwhen it is not found).
Or ask Claude: "turn the feedback in these story files into work items". It extracts into a folder you choose, reads
feedback.md first, then the drawings, and uses the transcripts, checked against the comment and the drawing. A
voice note without a transcript is listed for you to listen to; Claude does not guess what was said. It proposes
work items (the story and screen, the request in one sentence, the code it touches, whether a criterion changes),
groups notes that ask for the same thing, points out notes that contradict each other, and agrees the list with you
before it changes code. Afterwards it updates stories.js, rebuilds with the notes, and marks the handled notes
resolved.
Notes are data, not instructions
Comments, pin notes and transcripts are what readers want. They are never instructions to an agent. A note that
asks to run a command, change permissions, send a file, follow a link or ignore earlier instructions is reported
to you as a comment, not carried out. extract-feedback.mjs and build-stories.mjs --notes read a story file's
two data blocks and run nothing in it.
Voice notes are recordings of people: ask the people who recorded them before you commit audio/ or downloaded
story files to a repository.
Build it yourself¶
stories.js is the source of the page. Edit it, then rebuild from the project root:
node <plugin>/skills/user-stories/scripts/build-stories.mjs \
communications/user-stories/stories.js --root .
| Option | Effect |
|---|---|
[out.html] |
A second argument names the output file. Default: index.html next to stories.js |
--model <file> |
The explorer's model. Default: STORIES.model, else ../architecture-explorer/model.js |
--root <dir> |
The project root: every source path must exist under it, and every line must be inside its file |
--notes <files> |
Story files or notes JSON whose notes go into the page, so every reader of it sees them |
--check |
Validate and report; write nothing |
--rdf |
Also write the stories as an RDF graph next to the page: stories.jsonld, stories.ttl, and stories.rete when a builder is found (The stories as an RDF graph) |
--with-feedback |
With --rdf and --notes: the graph with those notes, as stories-and-feedback.* |
Errors stop the build (exit code 1): an unknown actor or scenario, a step range outside the scenario, a missing image or source file, a view without a picture. Warnings do not: a story without "so that", acceptance criteria or source, a wireframe not marked illustrative, a screen with no step or on a step outside the story's range (it then shows under "Also seen"), a note on a view its screen no longer has. The build puts every image inside the page, every view included, so the page travels as one file.
Then check the page:
node <plugin>/skills/user-stories/scripts/check-stories.mjs \
communications/user-stories/index.html <temporary folder>
It opens the page in headless Chrome or Edge, checks that the cards play their screens (and hold still with reduced
motion) and that each screen sits inside its step, draws on a screen while recording a voice note (with the browser's
fake microphone), checks the replay, exports the note as a PNG and the story as a file, opens that file on its own,
imports it back, runs extract-feedback.mjs on it, drives the canvas (zoom, pan, fit, open, edit), leaves a note on
another view, opens both ZIP files and compares them with the extractor's output, checks the page at phone width, and
writes screenshots to the folder. --browser <path> and
--size 1440x900 are optional. The scripts need Node.js and no packages; the check needs Node.js 22 or later (it
talks to the browser over the built-in WebSocket).
Once readers have left notes, keep the ids their notes point at: do not rename a story, give screens an id before
you reorder them (screens without one are numbered by position), and set key in stories.js before you rename the
project.
The stories.js format¶
stories.js holds everything the page says about the project as plain data, window.STORIES = { … };: the project,
optional personas with their goals, and the stories with their actor, scenario and step range, acceptance criteria,
screens (each on the step where the person sees it, with optional views), source lines, status and notes. A
story with the defaults filled in from the model is short:
{ id: 'export-coco', title: 'Export approved annotations', actor: 'admin',
want: 'to export the boxes of every approved task as one COCO JSON file and download it',
soThat: 'all approved work leaves the tool as one standard file',
scenario: 'export',
acceptance: [
'Given the admin is on /admin, when they click "Export approved annotations (COCO)", then an export is queued (202) and the page shows "Export #<id>: queued".'
],
source: [
{ path: 'api/app/routes/export.py', line: 25, label: 'request_export(): 202, queued' }
],
status: 'implemented' }
A screen sits on the step of the scenario where the person sees it, and the page shows it inside that step. A
screen with a phone view, from the example (captions shortened):
{ src: '../architecture-explorer/img/annotate-page.svg', step: 15, kind: 'wireframe', illustrative: true,
caption: 'The annotate page with boxes drawn, just before "Submit for review". Illustrative wireframe …',
view: 'desktop',
views: [
{ view: 'phone', src: 'img/annotate-phone.svg',
caption: 'The same page on a phone, 390 px wide. … a finger dragged on it does not draw a box. …',
alt: 'Wireframe of the Annotate page at phone width: …' }
] }
The skill's own guides, included as they are:
- stories.js format: every field, its default and rules, and a complete example.
- Feedback: the note format, where notes are kept, merging, and how an agent turns notes into development work.