Skip to content

Add CLAUDE.md, merge global Copilot instructions#159

Open
kasperpeulen wants to merge 7 commits intomainfrom
kasper/claude-md
Open

Add CLAUDE.md, merge global Copilot instructions#159
kasperpeulen wants to merge 7 commits intomainfrom
kasper/claude-md

Conversation

@kasperpeulen
Copy link
Contributor

@kasperpeulen kasperpeulen commented Feb 16, 2026

Summary

  • Add CLAUDE.md at repo root with merged content from .github/copilot-instructions.md — both Claude Code and Copilot read this file
  • Delete .github/copilot-instructions.md (merged into CLAUDE.md)
  • Add per-directory CLAUDE.md files in packages/mcp/, packages/addon-mcp/, and eval/ that reference the existing .github/instructions/*.instructions.md files via @
  • Keep per-directory .github/instructions/*.instructions.md files (Copilot needs these for applyTo path scoping)

Follows up on feedback from #140.

The Copilot instruction files (.github/copilot-instructions.md and
.github/instructions/*.instructions.md) were verbose and duplicative.
Replace them with a single concise CLAUDE.md that both Claude Code and
Copilot can read.
Copilot AI review requested due to automatic review settings February 16, 2026 15:41
@changeset-bot
Copy link

changeset-bot bot commented Feb 16, 2026

⚠️ No Changeset found

Latest commit: cbf0fe4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 16, 2026

npm i https://pkg.pr.new/storybookjs/mcp/@storybook/addon-mcp@159
npm i https://pkg.pr.new/storybookjs/mcp/@storybook/mcp@159

commit: 4104d71

@codecov
Copy link

codecov bot commented Feb 16, 2026

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
324 1 323 0
View the full list of 1 ❄️ flaky test(s)
apps/internal-storybook/tests/check-deps.e2e.test.ts > Storybook Dependencies > should be using latest versions from registry

Flake rate in main: 32.35% (Passed 23 times, Failed 11 times)

Stack Traces | 5.24s run time
Error: Storybook dependencies are outdated. Update the catalog in pnpm-workspace.yaml:

  sed -i '' 's/10\.3\.0-alpha\.4/10.3.0-alpha.6/g' pnpm-workspace.yaml && pnpm install

Outdated packages:
  - @storybook/addon-docs: 10.3.0-alpha.4 → 10.3.0-alpha.6
  - @storybook/react-vite: 10.3.0-alpha.4 → 10.3.0-alpha.6
  - storybook: 10.3.0-alpha.4 → 10.3.0-alpha.6
 ❯ tests/check-deps.e2e.test.ts:42:10

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Restore Copilot instruction files and reference them from CLAUDE.md
so both Claude Code and Copilot can access the detailed per-package
guidance.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Consolidates repository AI/dev guidance by replacing multiple GitHub Copilot instruction files with a single root-level CLAUDE.md, intended to be the shared source of truth for agent instructions across the repo.

Changes:

  • Add a concise CLAUDE.md describing repo structure, tech stack, and common commands.
  • Remove .github/copilot-instructions.md.
  • Remove .github/instructions/*.instructions.md (addon-mcp, mcp, eval).

Reviewed changes

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
CLAUDE.md Introduces consolidated repo overview/commands/testing guidance.
.github/copilot-instructions.md Removed in favor of consolidated instructions.
.github/instructions/addon-mcp.instructions.md Removed to reduce duplication; previously scoped to packages/addon-mcp/**.
.github/instructions/mcp.instructions.md Removed to reduce duplication; previously scoped to packages/mcp/**.
.github/instructions/eval.instructions.md Removed to reduce duplication; previously scoped to eval/**.

Combine .github/copilot-instructions.md content into CLAUDE.md (read
by both Claude Code and Copilot). Keep per-directory .instructions.md
files since CLAUDE.md only works at repo root.
Copilot AI review requested due to automatic review settings February 16, 2026 15:50
@kasperpeulen kasperpeulen changed the title Replace Copilot instructions with CLAUDE.md Add CLAUDE.md, merge global Copilot instructions Feb 16, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

turbo is a devDependency and not on PATH in a fresh shell.
Using pnpm exec ensures it works after pnpm install.
@codecov
Copy link

codecov bot commented Feb 16, 2026

Bundle Report

Changes will increase total bundle size by 44.74kB (100.0%) ⬆️⚠️, exceeding the configured threshold of 5%.

Bundle name Size Change
@storybook/addon-mcp-esm* 5.05kB 5.05kB (100%) ⬆️⚠️
@storybook/mcp-esm* 39.69kB 39.69kB (100%) ⬆️⚠️

ℹ️ *Bundle size includes cached data from a previous commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants