You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/addon-mcp/src/instructions/storybook-story-instructions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ play: async ({ canvas }) => {
146
146
## Story Linking Agent Behavior
147
147
148
148
- ALWAYS provide story links after any changes to stories files, including changes to existing stories.
149
-
-After changing UI, call `{{GET_CHANGED_STORIES_TOOL_NAME}}` first, then use `{{PREVIEW_STORIES_TOOL_NAME}}` with selected `storyId` values from those results.
149
+
-{{STORY_LINKING_WORKFLOW}}
150
150
- When sharing links, choose the most relevant subset for the user and avoid long lists (generally no more than 5 links).
151
-
-If you do not share all changed story links, include this Storybook fallback link so the user can view the complete changed list: `/?statuses=affected;modified;new`.
151
+
-{{CHANGED_STORY_FALLBACK_LINK_GUIDANCE}}
152
152
- After changing any UI components, ALWAYS search for related stories that might cover the changes you've made. If you find any, provide the story links to the user. THIS IS VERY IMPORTANT, as it allows the user to visually inspect the changes you've made. Even later in a session when changing UI components or stories that have already been linked to previously, YOU MUST PROVIDE THE LINKS AGAIN.
? `After changing UI, call \`${GET_CHANGED_STORIES_TOOL_NAME}\` first, then use \`${PREVIEW_STORIES_TOOL_NAME}\` with selected \`storyId\` values from those results.`
87
+
: `After changing UI, call \`${PREVIEW_STORIES_TOOL_NAME}\` and share the most relevant links for the changes.`;
? `If you do not share all changed story links, include this Storybook fallback link so the user can view the complete changed list: \`/?statuses=affected;modified;new\`.`
90
+
: `When linking only a subset of stories, mention that additional relevant stories may exist in Storybook.`;
0 commit comments