Repository navigation
chore: phase 4 — split AGENTS.md, add MCP config and spec-kit check - #3320
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (10)
📒 Files selected for processing (42)
WalkthroughThis PR introduces standardized ChangesPackage-specific AGENTS documentation
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/components/AGENTS.md (1)
315-331: 🛠️ Refactor suggestion | 🟠 Major | ⚡ Quick winChecklist is missing mandatory Storybook and visual-regression items.
The implementation checklist should explicitly require Storybook stories and visual regression coverage for component changes; otherwise this guide under-specifies required contribution gates.
Suggested checklist additions
- [ ] Component built successfully +- [ ] Storybook stories added/updated with variants, states, and props +- [ ] Visual regression coverage updated/passing for Storybook changes - [ ] Styles added to `@faststore/ui`Based on learnings: "Every component in
faststore/componentsandfaststore/uiMUST have Storybook stories demonstrating variants, states, and props." and "Visual regression tests run against Storybook to prevent unintended UI changes."🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/components/AGENTS.md` around lines 315 - 331, Update the "Component Implementation Checklist" section in AGENTS.md to include mandatory Storybook and visual-regression items: add checklist entries requiring Storybook stories that demonstrate variants, states, and props (referencing the existing "{ComponentName}Props" convention and the "Component Implementation Checklist" header) and require visual-regression tests run against those Storybook stories; ensure the new items are placed alongside other build/test/export checks and phrased as required gates for components in `@faststore/components` and `@faststore/ui`.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/api/AGENTS.md`:
- Around line 11-14: Update the tech stack list in AGENTS.md to match the actual
dependency versions: replace "GraphQL 15.6" with "GraphQL 16.11.0" and
"TypeScript 5.3 (strict)" with "TypeScript 5.9.3 (strict)"; ensure the
enumerated lines that currently read "GraphQL 15.6 + GraphQL Codegen" and
"TypeScript 5.3 (strict)" are edited so the documented versions reflect the
pnpm-lock.yaml values.
In `@packages/components/AGENTS.md`:
- Around line 183-189: The example imports NewComponent from the wrong package;
update the import to use the components package so the example demonstrates Step
2’s local component structure. Replace the import statement that references
"@faststore/ui" with one that references "@faststore/components" (keeping the
same imported symbol NewComponent and the Page function JSX usage unchanged) so
the example no longer depends on the styling layer before Step 3.
In `@packages/core/AGENTS.md`:
- Around line 11-12: Update the AGENTS.md entries for "Next.js" and "React" to
reflect the actual versions used by the project: check the project's
package.json (and lockfile) for the installed next and react versions and
replace "Next.js 13.5 (SSR/SSG)" and "React 18.2" with those exact versions (or
add a short note like "varies by project — see package.json") so the doc always
matches the codebase; ensure the strings "Next.js" and "React" in AGENTS.md are
updated accordingly.
---
Outside diff comments:
In `@packages/components/AGENTS.md`:
- Around line 315-331: Update the "Component Implementation Checklist" section
in AGENTS.md to include mandatory Storybook and visual-regression items: add
checklist entries requiring Storybook stories that demonstrate variants, states,
and props (referencing the existing "{ComponentName}Props" convention and the
"Component Implementation Checklist" header) and require visual-regression tests
run against those Storybook stories; ensure the new items are placed alongside
other build/test/export checks and phrased as required gates for components in
`@faststore/components` and `@faststore/ui`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: c0e89c82-6e81-4fea-8f34-ebac53331ce5
⛔ Files ignored due to path filters (4)
AGENTS.mdis excluded by none and included by nonemcp.jsonis excluded by none and included by nonepackage.jsonis excluded by none and included by nonescripts/check-spec-kit.mjsis excluded by none and included by none
📒 Files selected for processing (5)
packages/api/AGENTS.mdpackages/cli/AGENTS.mdpackages/components/AGENTS.mdpackages/core/AGENTS.mdpackages/sdk/AGENTS.md
@faststore/api
@faststore/cli
@faststore/components
@faststore/core
@faststore/diagnostics
@faststore/lighthouse
@faststore/sdk
@faststore/ui
commit: |
|
|
||
| ## GraphQL Conventions | ||
|
|
||
| ### Naming |
Adds an `mcp.json` at the repo root with the shared MCP server set expected by the FastStore agent workflow (chrome-devtools, Playwright, github, Figma, vtex-docs, vtex-developer, Atlassian).
Adds a read-only `scripts/check-spec-kit.mjs` helper that warns when the private `faststore-dx-spec-kit` symlinks (`.specify`, `.cursor`, `specs`) are missing or broken, and exposes it via the `check:spec-kit` pnpm script. The script always exits 0 so OSS contributors are not blocked — SDD Full commands are optional.
Introduces per-package AGENTS.md files capturing conventions that were previously buried in the monolithic root guide: - packages/api: GraphQL schema, codegen, platform integrations - packages/cli: oclif command structure and generate ordering - packages/components: atomic design, data attributes, two-package architecture - packages/core: Next.js patterns, sections.json, browser vs node tests - packages/sdk: framework-agnostic discipline, bundle budget, store conventions These are referenced from the root AGENTS.md and are intended to be the authoritative source for package-specific rules.
Trims the root AGENTS.md down to a public charter that establishes the authority chain (root AGENTS → scoped package AGENTS → skill files), codifies architectural principles, security & dependency rules, and agent autonomy boundaries, then defers package-specific conventions to the new scoped guides under `packages/*/AGENTS.md`. Net effect: ~1k lines of duplicated package detail removed from the root, conventions now live next to the code they describe.
- Upgraded GraphQL from 15.6 to 16.11.0 and TypeScript from 5.3 to 5.9.3 in packages/api/AGENTS.md. - Updated Next.js version from 13.5 to 16 in packages/core/AGENTS.md.
- Updated the commit format guideline to remove the scope from the syntax, streamlining the structure to `<type>: <description>`.
Co-authored-by: Fanny Chien <[email protected]>
- Changed Lerna version from 8.1.9 to ^9.0.3 for improved versioning and publishing capabilities.
- Deleted the mention of local skills for FastStore storefront-specific recipes to avoid duplication of official VTEX skills.
- Upgraded Next.js to version ^16, TypeScript to 5.9.3, and GraphQL to 16.11.0 for improved performance and compatibility.
- Deleted the optional temporary test page section to streamline the documentation and focus on essential content.
- Replaced the media query mixin with the new utility function from the Faststore UI package for improved consistency and maintainability.
- Introduced guidelines for adding and using SVG icons from a single sprite, including steps for modifying the `public/icons.svg` file and utilizing the `Icon` component from `@faststore/ui`.
- Updated the guidelines to specify when not to add code in @faststore/sdk, emphasizing the exclusion of store-specific logic that should reside in @faststore/core.
- Added detailed instructions for adding third-party dependencies, including justification, evaluation criteria, impact measurement, and documentation requirements. - Specified the need for explicit human approval for certain dependency changes to ensure compliance with the established Dependency Discipline.
- Updated the description of `@faststore/sdk` to emphasize the avoidance of framework-specific code, changing "MUST NOT" to "AVOID" for clarity. - Adjusted the language in the purpose section to recommend minimizing framework dependencies instead of prohibiting them entirely.
5c76372 to
c0ee476
Compare
## Summary Graduation PR from `dev` to `main`. Promotes the `4.1.0-dev.10` prerelease cycle to the next stable, expected `4.1.1` (only `fix:` and `chore:` commits since `4.1.0`). ### Notable changes since 4.1.0 - fix: region slider section render (#3318) - fix: allow_all_components for CMS (#3312) - chore: test coverage sonarqube (#3319) - chore: bump next.js to 16.2.6 (#3327) - chore: phase 4 — split AGENTS.md, add MCP config and spec-kit check (#3320) - chore: Update repo read me files (#3314) - Dark Kitchen Catalog Setup (#3317) ### Back-merge `main` was back-merged into `dev` (`3d4d24081`) before this PR to bring in the `4.1.0` release commit and avoid silent overwrites. Conflicts were resolved in favor of `dev` for code/CMS/version files, with `CHANGELOG` entries merged from both sides. ## Test plan - [x] dev CD published `4.1.0-dev.10` on the `dev` dist-tag for all 8 packages - [ ] After merge, main CD graduates to `4.1.1` on the `latest` dist-tag - [ ] All 8 packages publish (api, cli, components, core, diagnostics, lighthouse, sdk, ui) Made with [Cursor](https://cursor.com) --------- Co-authored-by: Larícia Mota <[email protected]> Co-authored-by: Matheus P. Silva <[email protected]> Co-authored-by: Leandro Rodrigues <[email protected]> Co-authored-by: vtexgithubbot <[email protected]> Co-authored-by: Lucas Feijó <[email protected]> Co-authored-by: Luiz Falcão <[email protected]> Co-authored-by: Artur Santiago <[email protected]> Co-authored-by: Sahan Jayawardana <[email protected]> Co-authored-by: Mateus Pontes <[email protected]> Co-authored-by: Matheus Martins <[email protected]> Co-authored-by: renatomaurovtex <[email protected]> Co-authored-by: Leandro Rodrigues <[email protected]> Co-authored-by: Fanny Chien <[email protected]> Co-authored-by: Arthur Andrade <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Thiago Pereira <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Giuliana Rigaud <[email protected]> Co-authored-by: renato <[email protected]> Co-authored-by: Bruna Santos <[email protected]> Co-authored-by: BrunaCubos <[email protected]> Co-authored-by: Ícaro Oliveira <[email protected]> Co-authored-by: Bruna Santos <[email protected]> Co-authored-by: Everton Ataide <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Co-authored-by: Otavio Moreira Meirelles <[email protected]> Co-authored-by: Marco Cardoso <[email protected]> Co-authored-by: Gabriel Paladino <[email protected]> Co-authored-by: CodeRabbit <[email protected]> Co-authored-by: dk-portal[bot] <134092483+dk-portal[bot]@users.noreply.github.com>
Summary
Phase 4 of the AI Week initiative. Restructures the agent-facing documentation and adds two small pieces of supporting tooling.
Commits (in chronological order)
chore: add root MCP servers configuration— introduces a top-levelmcp.jsonwith the shared MCP server set used by the FastStore agent workflow (chrome-devtools, Playwright, github, Figma, vtex-docs, vtex-developer, Atlassian).chore: add spec-kit symlink check script— read-onlyscripts/check-spec-kit.mjsthat warns when the privatefaststore-dx-spec-kitsymlinks (.specify,.cursor,specs) are missing or broken. Always exits 0 so OSS contributors are not blocked. Exposed aspnpm check:spec-kit.docs(agents): add scoped per-package AGENTS guides— newpackages/{api,cli,components,core,sdk}/AGENTS.mdfiles that capture conventions previously buried in the monolithic root guide.docs(agents): refactor root AGENTS.md as public charter— trims the root down to a public charter (authority chain, architectural principles, security & dependency rules, agent autonomy boundaries) and defers package-specific conventions to the new scoped guides. Net: ~1k lines of duplicated detail removed, conventions now live next to the code they describe.Authority chain after this PR
AGENTS.md— substantive principlespackages/*/AGENTS.md— package-specific context~/.agents/skills/*,vtex-agent-skills) — execution recipesTest plan
pnpm installstill succeeds (no behavioural changes)pnpm check:spec-kitruns and prints a warning (or exits silently) without failingAGENTS.mdfiles on GitHub for broken anchors / links between root and scoped guidesmcp.jsonis recognized by tooling that expects it at the repo rootSummary by CodeRabbit