todo-mcp / rules
Cursor rule2 starsChanged 18 months agoMITView on GitHub
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository6 other files it gives its agents.
- .cursor/rules/database-patterns.mdcCursor rule
- .cursor/rules/development-workflow.mdcCursor rule
- .cursor/rules/mcp-development.mdcCursor rule
- .cursor/rules/pr-automation.mdcCursor rule
- .cursor/rules/README.mdCursor rule
- .cursor/rules/release-management.mdcCursor rule
The file
We split this testing-standards.mdc into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use npm run test:coverage to run tests with coverage reporting
- Very specific: line 14
Follow the existing test patterns in src/__tests__/
- Distinctive: line 15
Use Vitest with globals enabled
- Very specific: line 16
Test database setup in src/test-utils/vitest.setup.ts
- Very specific: line 19
Use TEST_DATABASE_URL environment variable for test database
- Very specific: line 26
Use beforeEach/afterEach for setup/cleanup
- Distinctive: line 30
Use Vitest's built-in mocking capabilities
- Distinctive: line 31
Avoid mocking internal functions unless necessary
- Distinctive: line 34
Create meaningful test data that represents real usage
- Distinctive: line 35
Use factories or builders for complex test objects
- Distinctive: line 36
Keep test data minimal but realistic
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: globs: alwaysApply: true --- # Testing Standards ## Coverage Requirements - **Minimum 80%** coverage for branches, functions, lines, and statements - Use `npm run test:coverage` to run tests with coverage reporting - Coverage reports available in `coverage/` directory ## Test Structure - Follow the existing test patterns in `src/__tests__/` - Use Vitest with globals enabled - Test database setup in `src/test-utils/vitest.setup.ts` ## Database Testing - Use `TEST_DATABASE_URL` environment variable for test database - Tests should be isolated and not affect each other - Clean up test data after each test ## Test Naming - Describe what the test does: `should create task with valid data` - Group related tests with `describe` blocks - Use `beforeEach`/`afterEach` for setup/cleanup ## Mock Patterns - Mock external dependencies consistently - Use Vitest's built-in mocking capabilities - Avoid mocking internal functions unless necessary ## Test Data - Create meaningful test data that represents real usage - Use factories or builders for complex test objects - Keep test data minimal but realistic
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

