-
Notifications
You must be signed in to change notification settings - Fork 319
Create AGENTS.md #2561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: canary
Are you sure you want to change the base?
Create AGENTS.md #2561
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
31305de
to
5ba2856
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds an AGENTS.md file to document the BigCommerce Catalyst codebase architecture for AI-assisted development tools. The documentation explains the custom middleware-based routing system that overrides Next.js defaults, data fetching patterns using Partial Prerendering (PPR), and the separated UI design system.
- Added comprehensive documentation for the custom routing middleware that resolves URLs via GraphQL instead of file-based routing
- Documented data fetching patterns including the Streamable utility and PPR configuration
- Outlined the UI design system architecture with clear separation between business logic and presentation components
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
core/AGENTS.md
Outdated
|
||
1. **Queries the BigCommerce GraphQL API** to resolve incoming URL paths to specific entity types (products, categories, brands, blog posts, pages) | ||
|
||
2. **Rewrites requests** to internal Next.js routes based on the resolved entity type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line ends without proper punctuation. Consider adding a period for consistency with the formatting of other numbered points.
2. **Rewrites requests** to internal Next.js routes based on the resolved entity type | |
2. **Rewrites requests** to internal Next.js routes based on the resolved entity type. |
Copilot uses AI. Check for mistakes.
core/AGENTS.md
Outdated
|
||
2. **Rewrites requests** to internal Next.js routes based on the resolved entity type | ||
|
||
3. **Handles redirects** automatically based on BigCommerce's redirect configuration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line ends without proper punctuation. Consider adding a period for consistency with the formatting of other numbered points.
3. **Handles redirects** automatically based on BigCommerce's redirect configuration | |
3. **Handles redirects** automatically based on BigCommerce's redirect configuration. |
Copilot uses AI. Check for mistakes.
Co-Authored-By: Copilot <[email protected]>
72ce4b9
to
bc9e3f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm cool with merging so we can all collaborate and add to it, IMO it's already very valuable so far
|
||
1. **Use React's `cache()` function** for server-side data fetching to ensure deduplication. | ||
|
||
2. **Implement proper cache strategies** based on whether user authentication is present. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍹 Do examples help here?
Co-authored-by: Matthew Volk <[email protected]>
Co-authored-by: Matthew Volk <[email protected]>
What/Why?
Add an AGENTS.md file to help AI-assisted development tools in understand the structure of Catalyst as well as the best practices for extending it.
Testing
TBD - need to test various development scenarios
Migration
N/A