cursor-rules
Detect your stack and auto-generate AI editor rules - AGENTS.md (Cursor, Copilot, Codex, Claude Code) or Cursor .mdc. npx cursor-compose
Install / Use
npx skills add Kabi10/cursor-rulesInstalls into whichever agent you are using.
.cursorrules
Cursor IDE rules (legacy)
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Our assessment of cursor-rules
cursor-rules scores 77/100 on our quality scale, 809th of 953 AI & Machine Learning skills we index.
Its .cursorrules is 4.4 KB long, well organised into 15 sections with 4 code examples: a solid amount of guidance for an agent.
It has 22 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
- Our last check on 2026-10-20 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 95/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
cursor-rules compared with similar skills
All 4 of these similar skills score higher than cursor-rules; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| cursor-rules (this skill)by Kabi10 | 77 | 22 | 4mo ago | .cursorrules |
| claude-memby thedotmack | 100 | 113.8k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 91.0k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.0k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install cursor-rules?
- Run
npx skills add Kabi10/cursor-rules. The install tabs above show the steps for each supported agent. - Which AI agents does cursor-rules work with?
- It is written for Cursor, Claude Code, GitHub Copilot and OpenAI Codex, as a .cursorrules file. Other agents that read the same format can often use it too.
- Is cursor-rules safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is cursor-rules still maintained?
- The repository was last updated about 4 months ago. That is recent enough to be usable, but agent tooling moves fast, so check the instructions against your agent's current version.
Skill content
View source on GitHubcursor-compose
Stop hand-writing AI coding rules. Detect your stack, generate them — for every tool.
One command scans your project, detects your frameworks, and writes a tailored rules file. Output a portable AGENTS.md (read by Cursor, Copilot, Codex & Claude Code) or Cursor's native .cursor/rules/*.mdc — from one source.
npx cursor-compose --agents # → AGENTS.md, works across every major AI editor
<!--
⚠️ ADD A DEMO GIF HERE — the #1 thing that converts a visitor into a star.
Record with https://github.com/charmbracelet/vhs (scriptable) or asciinema + agg.
Show: run command → detected modules → toggle one → file written. Then update the path below.
-->

Why
Everyone is pasting the same recycled rules files between projects. They go stale, they don't match your actual stack, and every editor wants its own format.
cursor-compose reads your real dependencies (package.json, requirements.txt, pubspec.yaml) and composes a rules file from modular, stack-specific building blocks — and writes it as the portable AGENTS.md standard so the same source works in Cursor, Copilot, Codex and Claude Code. Zero config to start.
Usage
# In your project root:
npx cursor-compose # default → per-module .cursor/rules/*.mdc
npx cursor-compose --agents # → AGENTS.md (portable, cross-tool)
npx cursor-compose --all # → both .mdc and AGENTS.md, one pass
It will:
- Scan your project for dependency files.
- Show the modules it detected and let you toggle optional ones.
- Write your chosen output(s).
No install, no config file required.
Flags
| Flag | Output |
|---|---|
| (default) | per-module .cursor/rules/*.mdc (current Cursor format) |
| --agents | AGENTS.md at repo root — portable across Cursor, Copilot, Codex, Claude Code |
| --all | both .mdc and AGENTS.md in one pass |
| --legacy | a single .cursorrules file |
| --yes, -y | non-interactive: use detected modules, no prompts (great for CI/scripts) |
| -h, --help | show help |
AGENTS.md is safe to hand-edit
The generated content lives between managed markers:
<!-- cursor-compose:start -->
# AGENTS.md
...generated from your stack...
<!-- cursor-compose:end -->
## Your own notes (preserved on regenerate)
Re-running --agents only replaces the managed block — anything you add outside it is kept.
What it detects
| Auto-detected | From |
|---|---|
| Next.js + TypeScript | package.json |
| Supabase | package.json |
| Drizzle ORM | package.json |
| shadcn / Radix UI | package.json |
| FastAPI | requirements.txt |
| Flutter | pubspec.yaml |
Core conventions always load by default.
Optional modules
Toggle these on during the interactive prompt:
saas— multi-tenancy, billing, auth patternsecommerce— cart, checkout, payment flowsclaude-code—CLAUDE.md/ documentation conventionsagentic— agent & tool-calling patterns
Requirements
- Node.js 18+
Roadmap
- [ ]
cursor-compose check— CI command that fails the build when your committed rules drift from your actual dependencies. - [ ] More stacks (Django, Rails, SvelteKit, Expo).
Want a stack supported? Open an issue or send a PR — adding a module is just a markdown file (see CONTRIBUTING.md).
How it works
src/
cli.js # interactive prompt + orchestration + flags
detect.js # reads dependency files → detected modules
compose.js # assembles selected modules; writes .mdc / .cursorrules / AGENTS.md
frontmatter.js # Cursor .mdc YAML frontmatter (not used for AGENTS.md)
modules/ # one .md per framework — the rule building blocks
patterns/ # reusable code-organization patterns
Contributing
New modules are welcome and easy — drop a markdown file in modules/. See CONTRIBUTING.md.
License
MIT
Related Skills
claude-mem
113.8kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
91.0kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
79.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
