Cursor rules collection
Battle-tested rules for AI coding agents. 10 skills covering React, Next.js, TypeScript, Express, Python, error handling, testing, security, API design, and performance. Each rule targets specific, concrete behaviors that actually change agent output — not generic best practices. Use when writing, reviewing, or refactoring code in any of these stacks.From its SKILL.md
npx -y skills add nedcodes-ok/skills --skill cursor-rules-collectionAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.3 KB, 418 tokens by cl100k_base, as published. Nobody here has run it
Cursor Rules Collection
Battle-tested rules for AI coding agents. Every rule has been verified to actually change agent output — if a rule didn't produce measurably different code in testing, it's not here.
What's Included
| Skill | Impact | What It Covers |
|---|---|---|
| react-patterns | HIGH | Hooks, composition, memoization, Server Components |
| nextjs-app-router | HIGH | App Router, Server Actions, caching, revalidation |
| typescript-strict | HIGH | Strict mode patterns, branded types, discriminated unions |
| express-api | HIGH | Middleware, error handling, validation, security headers |
| python-backend | HIGH | Type hints, async patterns, Pydantic, structured errors |
| error-handling | CRITICAL | Error boundaries, recovery, user-facing messages |
| security | CRITICAL | Auth, injection prevention, XSS, CSRF, secrets |
| testing-patterns | HIGH | Test structure, mocking, coverage, edge cases |
| api-design | MEDIUM | REST conventions, validation, versioning, pagination |
| performance | HIGH | Lazy loading, caching, bundle size, code splitting |
When to Apply
Use these rules when:
- Writing new components, APIs, or backend services
- Refactoring existing code for better patterns
- Reviewing code for common mistakes
- Setting up new projects with good defaults
What Makes These Different
Every rule contains something you can't get from a generic LLM prompt:
- Version-specific gotchas (e.g., Express 5 vs 4 patterns)
- Tested edge cases with before/after examples
- Anti-patterns with explanations of why they fail
- Framework-specific patterns, not language-generic advice
Related Tools
- cursor-doctor — lint your rules, detect conflicts, see load order
- Full collection — 98 rules across 30+ frameworks
What ships with it: 12 files
20.7 KB alongside SKILL.md
rules/
- api-design.md1.9 KB
- error-handling.md2.1 KB
- express-api.md2.4 KB
- nextjs-app-router.md1.3 KB
- performance.md1.2 KB
- python-backend.md2.8 KB
- react-patterns.md2.6 KB
- security.md1.2 KB
- testing-patterns.md1.2 KB
- typescript-strict.md2.6 KB
- AGENTS.md826 B
- metadata.json591 B