> ## Documentation Index
> Fetch the complete documentation index at: https://docs.karpathy.phronesisagent.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Karpathy Skills in Cursor: rules and skills setup

> Apply the four coding guidelines in Cursor using a committed project rule or a personal skill file, keeping behavior consistent across Claude Code and Cursor.

The same four principles — Think Before Coding, Simplicity First, Surgical Changes, and Goal-Driven Execution — apply in Cursor through a committed `.cursor/rules/` file. Because the rule is checked into the repository, anyone who opens the project in Cursor gets consistent behavior without any manual configuration.

## Using the committed project rule

The repository includes `.cursor/rules/karpathy-guidelines.mdc` with `alwaysApply: true`. When you open the project in Cursor, the rule activates automatically.

<Steps>
  <Step title="Open the project in Cursor">
    Open the `andrej-karpathy-skills` folder in Cursor as you would any project.
  </Step>

  <Step title="Confirm the rule is active">
    Navigate to **Settings → Rules** (or the project rules panel) and verify that `karpathy-guidelines` appears in the list.
  </Step>

  <Step title="Start working">
    The rule is applied to every new conversation in this project. No further setup is needed.
  </Step>
</Steps>

## Using the rule in another project

Copy the rule file into any project where you want the same guidelines.

<Steps>
  <Step title="Create the rules directory if it doesn't exist">
    ```bash theme={null}
    mkdir -p .cursor/rules
    ```
  </Step>

  <Step title="Copy the rule file">
    ```bash theme={null}
    cp path/to/andrej-karpathy-skills/.cursor/rules/karpathy-guidelines.mdc \
       .cursor/rules/karpathy-guidelines.mdc
    ```
  </Step>

  <Step title="Commit the file">
    Commit `.cursor/rules/karpathy-guidelines.mdc` so the rule is shared with your team automatically.
  </Step>
</Steps>

You can adjust or merge the rule with any existing rules already in that directory.

## Personal Cursor skill (optional)

If you prefer a reusable personal skill rather than a per-project file, use `skills/karpathy-guidelines/SKILL.md`. Copy or symlink it into your personal Cursor skills directory:

```bash theme={null}
# Copy
cp skills/karpathy-guidelines/SKILL.md ~/.cursor/skills/karpathy-guidelines.md

# Or symlink
ln -s "$(pwd)/skills/karpathy-guidelines/SKILL.md" \
      ~/.cursor/skills/karpathy-guidelines.md
```

Use whatever layout you already follow for other personal skills.

<Tip>
  A personal skill applies to you across all projects on your machine. A committed `.cursor/rules/` file applies to everyone who opens that project. Choose based on whether you want individual or team-wide coverage.
</Tip>

## Claude Code vs Cursor

The two tools use different mechanisms to load instructions, so the same content lives in two places:

|                                    | Claude Code                                              | Cursor                                         |
| ---------------------------------- | -------------------------------------------------------- | ---------------------------------------------- |
| **How rules are loaded**           | Plugin marketplace or `CLAUDE.md`                        | Committed `.cursor/rules/` file                |
| **Scope**                          | Plugin applies globally; `CLAUDE.md` applies per-project | Per-project by default                         |
| **Installation**                   | `/plugin install andrej-karpathy-skills@karpathy-skills` | Copy `.cursor/rules/karpathy-guidelines.mdc`   |
| **Reads the other tool's config?** | Reads `CLAUDE.md`                                        | Does not read `.claude-plugin/` or `CLAUDE.md` |

<Info>
  When you change the four principles, keep `CLAUDE.md` and `.cursor/rules/karpathy-guidelines.mdc` in sync. If you also use the published plugin or skill, update `skills/karpathy-guidelines/SKILL.md` as well so all three sources stay consistent.
</Info>
