Cursor rule
.cursor/rules/creating-agents-md.mdcCreating agents.md files with plain markdown format (NO frontmatter) - use when creating agents.md packages for PRPM or generating project context files
Cursor rules
Quality
92/100
Scores the file, not the repository.Length
678 words
29 headings · 6 code blocksRepository
121
— · pushed 39 days agoLast changed
3 days ago
First indexed 3 days ago.1234567# Creating agents.md Files89Quick reference for creating agents.md files - plain markdown project context for AI coding assistants.1011**Schema**: https://github.com/pr-pm/prpm/blob/main/packages/converters/schemas/agents-md.schema.json1213## Format Rules1415| Requirement | Value |16|------------|-------|17| Format | Plain markdown only |18| Frontmatter | **None** (forbidden) |19| Structure | Free-form |20| File | `agents.md` in project root |2122## Critical Requirements23241. **No frontmatter**: Pure markdown only (no YAML)252. **Single file**: Typically `agents.md` in project root263. **Plain markdown**: Standard markdown syntax274. **Free-form content**: No required structure2829## What to Include3031**High Priority:**32- Project overview and purpose33- Architecture decisions and patterns34- Tech stack and dependencies35- File structure and organization36- Coding conventions37- Development workflow38- Testing approach39- Domain knowledge and business logic4041**Skip:**42- General programming best practices43- Language syntax explanations44- Framework basics45- Obvious code quality rules4647## Example: Full Stack App4849```markdown50# TaskMaster Development Guide5152## Project Overview5354TaskMaster is a task management application for remote teams with real-time collaboration and offline-first architecture.5556## Architecture5758### Frontend59- React 18 with TypeScript60- Vite for build tooling61- Zustand for state management62- Tailwind CSS for styling6364### Backend65- Node.js with Express66- PostgreSQL with Prisma ORM67- WebSocket for real-time features68- Redis for caching and pub/sub6970## Coding Conventions7172- Use TypeScript strict mode73- Functional components with hooks (no class components)74- Colocate tests with source files (*.test.tsx)75- Use Zod for runtime validation7677## File Structure7879\`\`\`80src/81 components/ # Reusable UI components82 features/ # Feature-based modules83 hooks/ # Custom React hooks84 lib/ # Utility functions85 pages/ # Route pages86\`\`\`8788## Development Workflow89901. Create feature branch from `main`912. Write tests first (TDD)923. Implement feature934. Run `pnpm test` and `pnpm lint`945. Create PR with description9596## Testing9798- Vitest for unit tests99- Playwright for E2E tests100- 80% coverage target101- Mock external dependencies102```103104## Example: API Project105106```markdown107# Payment Gateway API108109RESTful API for payment processing with multiple payment providers.110111## Tech Stack112113- Node.js 20.x114- Express115- PostgreSQL 15116- Stripe and PayPal integrations117118## API Design119120All endpoints follow REST:121- `GET /api/payments` - List payments122- `POST /api/payments` - Create payment123- `PUT /api/payments/:id` - Update payment124125## Error Format126127\`\`\`json128{129 "error": {130 "code": "PAYMENT_FAILED",131 "message": "Payment could not be processed"132 }133}134\`\`\`135136## Security137138- JWT authentication required139- Rate limiting: 100 req/min per IP140- Input validation with Zod141- PCI DSS compliance142143## Database Conventions144145- snake_case for table/column names146- UUIDs for primary keys147- Foreign keys: `{table}_id` pattern148```149150## Writing Style151152**Good - Concise:**153```markdown154## Testing155- Vitest for unit tests156- Playwright for E2E157- 80% coverage target158- Mock external dependencies159```160161**Bad - Verbose:**162```markdown163## Testing164When you are writing tests, it's important to understand that we use Vitest165for our unit tests because it's fast and modern. For end-to-end testing...166```167168## Common Mistakes169170| Mistake | Fix |171|---------|-----|172| Adding YAML frontmatter | No frontmatter - plain markdown only |173| Generic best practices | Focus on project-specific patterns |174| Verbose explanations | Be concise - AI knows general concepts |175| Language tutorials | Skip basics, focus on conventions |176177## File Placement178179Single project:180```181project-root/182 agents.md183 src/184 package.json185```186187Monorepo (multiple files possible):188```189monorepo/190 packages/191 frontend/agents.md192 backend/agents.md193```194195## Best Practices1961971. **Be concise**: Focus on project-specific info (AI knows general practices)1982. **Keep updated**: Review as project evolves1993. **Real examples**: Show actual code patterns2004. **Plain markdown**: No YAML frontmatter2015. **Human-readable**: For both AI and humans2026. **Project-specific**: Avoid generic advice203204## Migration from Other Formats2052061. **Strip frontmatter** - Remove all YAML headers2072. **Focus content** - Keep only markdown2083. **Combine files** - Merge multiple rules into one2094. **Simplify** - Remove format-specific features2105. **Plain markdown** - Standard syntax only211212## References213214- **Official Spec**: https://github.com/openai/agents.md215- **Schema**: `/Users/khaliqgant/Projects/prpm/app/packages/converters/schemas/agents-md.schema.json`216- **Docs**: `/Users/khaliqgant/Projects/prpm/app/packages/converters/docs/agents-md.md`217
Also in pr-pm/prpm
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| pr-pm/prpm.cursor/rules/beanstalk-deploy.mdc · 121 | Cursor rules | teststyletypes | 62/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/core-principles.mdc · 121 | Cursor rules | testlint-formatstylearch+6 | 69/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/creating-cursor-rules.mdc · 121 | Cursor rules | testlint-formatstylearch+5 | 76/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/creating-kiro-agents.mdc · 121 | Cursor rules | setupbuildteststyle+5 | 76/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/creating-skills.mdc · 121 | Cursor rules | stylearchtesting-strategydo-not+1 | 61/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/format-conversion.mdc · 121 | Cursor rules | testlint-formatstyledo-not+1 | 63/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/github-actions-testing.mdc · 121 | Cursor rules | setupbuildstylearch+4 | 93/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/karen-repo-reviewer.mdc · 121 | Cursor rules | archgit | 58/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/prpm-json-best-practices.mdc · 121 | Cursor rules | setuplint-formatstylearch+5 | 73/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/self-improve-cursor.mdc · 121 | Cursor rules | setuptestarchdependencies+3 | 69/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/testing-patterns.mdc · 121 | Cursor rules | testlint-formatstyletesting-strategy | 77/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/typescript-type-safety.mdc · 121 | Cursor rules | buildstylearchtypes+2 | 89/100 | 3 days ago | |
| pr-pm/prpm.cursor/rules/typescript-type-specialist.mdc · 121 | Cursor rules | styletypesdo-notagent-behaviour | 65/100 | 3 days ago | |
| pr-pm/prpmAGENTS.md · 121 | AGENTS.md | setupbuildtestlint-format+12 | 84/100 | 3 days ago | |
| pr-pm/prpmCLAUDE.md · 121 | CLAUDE.md | teststylegitapi+2 | 69/100 | 3 days ago |
Diff against .cursor/rules/beanstalk-deploy.mdc Diff against .cursor/rules/core-principles.mdc Diff against .cursor/rules/creating-cursor-rules.mdc Diff against .cursor/rules/creating-kiro-agents.mdc Diff against .cursor/rules/creating-skills.mdc Diff against .cursor/rules/format-conversion.mdc Diff against .cursor/rules/github-actions-testing.mdc Diff against .cursor/rules/karen-repo-reviewer.mdc Diff against .cursor/rules/prpm-json-best-practices.mdc Diff against .cursor/rules/self-improve-cursor.mdc Diff against .cursor/rules/testing-patterns.mdc Diff against .cursor/rules/typescript-type-safety.mdc Diff against .cursor/rules/typescript-type-specialist.mdc Diff against AGENTS.md Diff against CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago |
