1.9 KiB
Using this repo with Cursor
This project includes a Cursor project rule so the Karpathy-inspired behavioral guidelines apply automatically when you work here.
In this repository
- Open the folder in Cursor.
- The rule
.cursor/rules/karpathy-guidelines.mdcis committed withalwaysApply: true, so you do not need extra installation steps. - In Cursor, you can confirm it under Settings → Rules (or the project rules UI), where
karpathy-guidelinesshould appear.
Use the same guidelines in another project
Cursor (recommended): Copy .cursor/rules/karpathy-guidelines.mdc into that project’s .cursor/rules/ directory (create the folders if needed). Adjust or merge with existing rules as you like.
Other tools: If a stack only supports a root instruction file, copy CLAUDE.md into that project instead (or merge its contents into your existing instructions).
Optional: personal Agent Skills
If you want the same content as a reusable skill under ~/.cursor/skills, use skills/karpathy-guidelines/SKILL.md. You can copy or symlink it into your personal skills directory; use whatever layout you use for other skills.
Claude Code vs Cursor
- Claude Code: Install via the plugin marketplace and
README.mdinstructions; the plugin exposes the skill from this repo. Per-project use can also rely onCLAUDE.md. - Cursor: Use the committed
.cursor/rules/file as described above. Cursor does not read.claude-plugin/orCLAUDE.mdby default.
For contributors
When you change the four principles, keep CLAUDE.md and .cursor/rules/karpathy-guidelines.mdc in sync. If the published skill/plugin text should match, update skills/karpathy-guidelines/SKILL.md as well.