AGENTS.md · storybookjs/storybook
AGENTS.md from storybookjs/storybook: 49 lines covering Always, Never Run, Read Before You Start, Code Review and more.
Template by storybookjs
Chalk Labs
Need help deploying AGENTS.md · storybookjs/storybook?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/storybookjs/storybook/next/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 49 lines
- File
AGENTS.md
Sections
- Always
- Never Run
- Read Before You Start
- Code Review
- Maintaining These Instructions
First lines (shown under the repo's MIT license)
# Storybook Agent Instructions This file is the canonical instruction source for coding agents; other entrypoints point here. Storybook is a TypeScript monorepo: code lives in `code/`, build tooling in `scripts/`, and every PR targets `next`. ## Always - Run commands from the repository root unless stated otherwise. - After editing, format with `cd code && yarn fmt:write`. - Test React components with stories and `play` functions, never `*.test.tsx`. - Log through `storybook/internal/node-logger` or `storybook/internal/client-logger`, not `console.*`. - Use explicit extensions on relative TS imports (`./foo.ts`), except framework component files such as `.vue` and `.svelte`. - Prefer `pathe` over `node:path`. It normalizes separators to `/`, so path code should not rewrite slashes itself. - Do not commit incidental changes to generated files such as `code/core/src/manager/globals/exports.ts`. ## Never Run - `yarn task dev` without an explicit sandbox template - `yarn start` Both start long-running dev servers. `.github/workflows/claude.yml` `--disallowed-tools` mirrors this list; update both together. ## Read Before You Start | Before you... | Read | | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | install, compile, lint, run commands, or debug a build | [Development workflow](.agents/guidelines/development.md) | | write or edit code | [Code authoring](.agents/guidelines/code-authoring.md) and [Comments and JSDoc](.agents/guidelines/comments-and-jsdoc.md) | | write or run tests | [Testing](.agents/guidelines/testing.md) | | open or update a PR | [Pull requests](.agents/guidelines/pull-requests.md) | | touch `code/core` internals, presets, open services, or the tools CLI | [Architecture](.agents/guidelines/architecture.md) | | do sandbox, E2E, or CI-parity work | [NX and `yarn task`](.agents/guidelines/nx-and-yarn-task.md) and [Sandboxes](.agents/guidelines/sandboxes.md) | | call a Chromatic tool or debug a Chromatic build | [Chromatic projects](.agents/guidelines/chromatic-projects.md) | | add or change an automigration | [`code/lib/cli-storybook/src/automigrate/README.md`](code/lib/cli-storybook/src/automigrate/README.md) | Contributor skills live in `.agents/skills/`. Claude Code does not read `.agents/`, so each skill has a symlink in `.claude/skills/`; add one when you add a skill. ## Code Review Before reviewing a pull request or a diff, read [`.agents/guidelines/code-review.md`](.agents/guidelines/code-review.md) and follow it. ## Maintaining These Instructions - Keep this file to the always-on rules and pointers. Put detail in the linked document that owns the topic, and update that document when its topic changes. - If a topic disappears, remove its document and its pointer together. - Do not add a `CLAUDE.md`: Claude Code reads this file only when no `CLAUDE.md` exists. Keep other agent entrypoints as thin references to this file. - Turn recurring corrections into enforceable checks with [principle-encode-lessons-in-structure](.agents/skills/principle-encode-lessons-in-structure/SKILL.md).
Signals
- Stars
- 91,364
- Forks
- 10,457
- Open issues
- 1,563
- Last commit (this folder)
- Oct 21, 2026 (10 days ago)
- Last release
- Oct 20, 2026 (10 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/storybookjs/storybook
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from storybookjs
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get AGENTS.md · storybookjs/storybook running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
AGENTS.md · storybookjs/storybook. Agent Mart. https://agentmart.dev/templates/storybookjs-storybook-agents-md (last updated 2026-10-24)