cursorrules: Settings file for Claude Code

.claude/settings.json

cursorrules is a settings file for Claude Code from usrrname/cursorrules. Its token cost is not measured, scanned C, original, ISC.

A Claude Code settings file that controls allowed tools, blocked actions, approval prompts, and automatic hooks.

In plain words
What is it for?
Use it to allow reading, editing, writing, Git, Make, and selected npm commands; require approval for web requests, curl, and Docker; block secrets, unsafe deletion, sudo, and edits to Git metadata. It also formats JavaScript and TypeScript files after edits.
Why use it?
It limits what the coding agent can do and adds checks around shell commands and file changes.

Settings file for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: reads .claude/ paths.

This is usrrname/cursorrules's own configuration. It tells Claude Code how to work on cursorrules itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cursorrules configures →

One of 3 entries in settings.json upstream. Installing this one merges just its entry into your config; the other 2 are separate, each on its own page.

Reuse

Borrowing it

Nothing to install: this file belongs to usrrname/cursorrules. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/usrrname/cursorrules/main/.claude/settings.json
Clone the repo
git clone --depth 1 https://github.com/usrrname/cursorrules

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cursorrules

README.md
[![agentmods](https://agentmods.dev/badge/settings/usrrname/cursorrules/settings/github.svg)](https://agentmods.dev/settings/usrrname/cursorrules/settings)
Your own site
<a href="https://agentmods.dev/settings/usrrname/cursorrules/settings"><img src="https://agentmods.dev/badge/settings/usrrname/cursorrules/settings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cursorrules

Your own site · 80×15
<a href="https://agentmods.dev/settings/usrrname/cursorrules/settings"><img src="https://agentmods.dev/badge/settings/usrrname/cursorrules/settings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade C, and why

cursorrules scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

"Bash(rm -rf:/*)",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

"Bash(curl:*)",
.claude/settings.json · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "$schema": "https://json.schemastore.org/claude-code-settings.json",
  "model": "claude-opus-4-5",
  "permissions": {
    "allow": [
      "Read",
      "Edit",
      "Write",
      "Bash(npm run:*)",
      "Bash(git:*)",
      "Bash(make:*)",
      "Glob",
      "Grep"
    ],
    "deny": [
      "Read(.env*)",
      "Read(secrets/**)",
      "Bash(rm -rf:/*)",
      "Bash(sudo:*)",
      "Edit(.git/**)"
    ],
    "ask": [
      "WebFetch",
      "Bash(curl:*)",
      "Bash(docker:*)"
    ],
    "defaultMode": "acceptEdits"
  },
  "env": {
    "NODE_ENV": "development"
  },
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "bash -c 'FILE=$(jq -r \".tool_input.file_path\" <<< \"$(cat)\"); if [[ \"$FILE\" == *.ts || \"$FILE\" == *.tsx || \"$FILE\" == *.js || \"$FILE\" == *.jsx ]]; then npx prettier --write \"$FILE\" 2>/dev/null || true; fi'",
            "description": "Auto-format TypeScript/JavaScript files with Prettier"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": ".claude/hooks/security-block.sh",
            "description": "Block dangerous bash commands"
          }
        ]
      }
    ]
  },
  "mcpServers": {},
  "includeCoAuthoredBy": true,
  "cleanupPeriodDays": 30,
  "personas": {
    "BasicBitch": {
      "name": "BasicBitch",
      "description": "Reliable corporate developer who does exactly what's asked, nothing more. Adequate and dependable.",
      "model": "claude-sonnet-4-5",
      "prompt": "You are a mediocre but dependable software developer with textbook experience.\n\nCAPABILITIES:\n- Implement features with exact adherence to requirements\n- Apply design patterns adequately\n- Code review and technical documentation\n\nPERSONALITY:\n- Quiet, professional, and thorough\n- Writes maintainable code\n- O

Read the full file on GitHub · 92 lines

Same file

What else settings.json configures

This page is one entry in a file that holds 3. Installing the file brings all of them; each is measured and scanned on its own page.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 92 lines scan C 9a846d46c3b3

Subscribe to this mod's changes

cursorrules is a settings file published in the GitHub repository usrrname/cursorrules (11 stars, last pushed 7mo ago), licensed ISC. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

cursorrules compared with settings from other repositories

cursorrules next to 6 settings from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cursorrulesusrrname/cursorrulesSettings file117mo agoISCC—Claude Code
supabasesupabase/supabaseSettings file115kyesterdayApache-2.0A—Claude Code
supersetapache/supersetSettings file75kyesterdayApache-2.0A—Claude Code
RuViewruvnet/RuViewSettings file103kyesterdayMITA—Claude Code
claude-cookbooksanthropics/claude-cookbooksSettings file54k2d agoMITA—Claude Code
ormprisma/ormSettings file48kyesterdayApache-2.0A—Claude Code
claude-code-best-practiceshanraisshan/claude-code-best-practiceSettings file69k2d agoMITA—Claude Code