Update a story map with an AI agent
On this page
A coding agent that can run commands, such as Claude Code, Codex or Gemini CLI, can change the user story map as well as read it. It edits storymap.yml, checks the change with storymaps diff, and sends it with storymaps push, the same as you would.
Ask for a change
Say what to change and where, in plain words:
- "Add cards to the V1 slice for loyalty points, under Pay."
- "Tag every card under Pay with payments."
- "Split Group ordering into smaller cards in the same slice."
- "Group ordering passed QA in the real app. Mark its card done."
Then ask it to show the diff and push. The commands it runs look like this:
storymaps pullAlready up to date.storymaps backup -m "Before the loyalty cards"Backed up map abc12345 as 6e3cb08697e7 (27 cards)storymaps diff + V1: 2 cardsstorymaps push + V1: 2 cardsPushed to https://storymaps.io/abc12345
The change shows in the browser straight away, and in the activity log with the CLI icon.
Keep it safe
- Pull first. The story map may have changed in the browser since the agent last pulled.
- Back up first. If the change goes wrong, restore the backup, from the terminal or the app.
- Read the diff. Ask the agent to stop after
storymaps diff, and push once you've seen it. - Mark done only what's done. Done on the story map means done in the real product. Cards for a prototype the agent built to learn from stay as they are.
If a push stops with a conflict, ask the agent to copy the file, pull, and make its changes again. See Push changes to a story map.
A locked story map
The agent can't type a password. Run storymaps unlock yourself first, and its pushes use the saved password. For a locked project, run storymaps project unlock --maps, which does the same for every story map that uses the project password. The agent never sees the password either way.
Without it, a push stops before it sends anything and says what to do. In CI, give the password in STORYMAPS_PASSWORD instead. See Use the CLI in scripts and CI.
AI chat apps
ChatGPT, Claude and Gemini in the browser can't run the CLI. Ask one to write the cards as YAML in the shape of storymap.yml, add them to the file yourself, then push. See Edit the story map YAML for the shape.