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
When writing UI components, prefer breaking larger components up into smaller parts.
9
-
10
-
ALWAYS write a Storybook story for any component written. If editing a component, ensure appropriate changes have been made to stories for that component.
11
-
12
-
When writing stories, use CSF3 importing types from '@storybook/nextjs-vite'. Here is a simple example:
13
-
14
-
\`\`\`ts
15
-
import { Meta, StoryObj } from '@storybook/nextjs-vite';
16
-
17
-
import { Break } from './Break';
18
-
19
-
type Story = StoryObj<typeof Break>;
20
-
21
-
const meta: Meta<typeof Break> = {
22
-
component: Break,
23
-
args: {},
24
-
};
25
-
26
-
export default meta;
27
-
28
-
export const Horizontal: Story = {
29
-
args: {
30
-
orientation: 'horizontal',
31
-
},
32
-
};
33
-
\`\`\`
34
-
35
-
ALWAYS provide story links after any changes to stories files, including changes to existing stories.
36
-
After changing any UI components, ALWAYS search for related stories that might cover the changes you've made.
37
-
If you find any, provide the story links to the user. THIS IS VERY IMPORTANT, as it allows the user
38
-
to visually inspect the modifications you've made.
39
-
Even later in a session when changing UI components or stories that have already been linked to previously, YOU MUST PROVIDE THE LINKS AGAIN.
40
-
Use the ${GET_STORY_URLS_TOOL_NAME} tool /and provide links in the format \`[Story Name](<story_url_from_tool>)\`
41
-
whenever you create, modify, or update any story file.
-`afterEach` hook is now stable (was `experimental_afterEach`)
88
+
89
+
# Story Linking Agent Behavior
90
+
91
+
- ALWAYS provide story links after any changes to stories files, including changes to existing stories.
92
+
- 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.
93
+
- Use the {{GET_STORY_URLS_TOOL_NAME}} tool to get the correct URLs for links to stories.
0 commit comments