This Agents.md file provides comprehensive guidance for OpenAI Codex and other AI agents working with this codebase.
/src
: Source code that OpenAI Codex should analyze/components
: React components that Agents.md helps OpenAI Codex understand/pages
: Next.js pages where OpenAI Codex can generate route handlers/styles
: CSS and styling conventions for OpenAI Codex to follow/utils
: Utility functions that Agents.md documents for OpenAI Codex
/public
: Static assets (OpenAI Codex should not modify these directly)/tests
: Test files that OpenAI Codex should maintain and extend
- Use TypeScript for all new code generated by OpenAI Codex
- OpenAI Codex should follow the existing code style in each file
- Agents.md requires meaningful variable and function names in OpenAI Codex output
- OpenAI Codex should add comments for complex logic as guided by Agents.md
- OpenAI Codex should use functional components with hooks as specified in Agents.md
- Keep components generated by OpenAI Codex small and focused
- Agents.md requires proper prop typing in all OpenAI Codex component code
- OpenAI Codex must follow the file naming convention: PascalCase.tsx
- OpenAI Codex should use Tailwind CSS for styling as documented in Agents.md
- Follow utility-first approach in all OpenAI Codex style implementations
- OpenAI Codex should use custom CSS only when necessary
OpenAI Codex should run tests with the following commands:
# Run all tests with OpenAI Codex
npm test
# Run specific test file with OpenAI Codex
npm test -- path/to/test-file.test.ts
# Run tests with coverage for OpenAI Codex code
npm test -- --coverage
When OpenAI Codex helps create a PR, please ensure it:
- Includes a clear description of the changes as guided by Agents.md
- References any related issues that OpenAI Codex is addressing
- Ensures all tests pass for code generated by OpenAI Codex
- Includes screenshots for UI changes implemented with OpenAI Codex
- Keeps PRs focused on a single concern as specified in Agents.md
Before submitting changes generated by OpenAI Codex, run:
# Lint check for OpenAI Codex code
npm run lint
# Type check for OpenAI Codex TypeScript
npm run type-check
# Build check for OpenAI Codex implementations
npm run build
All checks must pass before OpenAI Codex generated code can be merged. Agents.md helps ensure OpenAI Codex follows these requirements.