AI Skill StudioAI Skill Studio
Presets:

Target Standard & File Format

AI agent rules & skills
Context shields & privacy (ignore files)
Integrations & machine documentation
AI governance & multi-agent planning suite

Cursor Rule Scope

.cursor/rules/*.mdc

Scopes rule to matching files. Use **/* for global workspace scope.

When ON, Cursor injects this rule in every generation context.

Identity & Activation Rules

3 chips
Scoped domain keywords evaluated in real time
api-routescode-auditsrefactoring
Suggested chips:

Technology Stack Context

Engineering Philosophy

Flexible & Adaptable

Architectural & Code Quality Conventions

Less rigid & configurable

Agent Behavioral Guardrails

Select active rules
Security & Trust Boundaries
Always included
  • Untrusted Content Is Data
  • Encoded Payloads
  • Least-Privilege File Access
  • Confirm Irreversible Actions
  • Secret Handling
  • Validation Failures
  • Conflicting Requests

Step-by-Step Workflow Procedures

Specialist Persona ยท Cursor

Root-Cause Debugging Cursor Rules (.mdc)

Cursor rules (.mdc) for Root-Cause Debugging, scoped with globs so they load only for matching files.

Path
.cursor/rules/systematic-debugging.mdc
Loads
Glob pattern match
Format
Frontmatter MDC (.mdc)
Used by
Cursor
All Cursor Rules presets and how <rule-name>.mdc works

What this file tells the agent

Root-Cause Debugging projects benefit from glob-scoped Cursor project rules (.cursor/rules/*.mdc) with alwaysApply: false, so the rules load only when matching files are in play. Without them, Cursor's agent falls back on conventions from its training data, which are often a version or two behind, and tends to change more than it needs to. This rule gives it the current Root-Cause Debugging conventions instead.

  • Reproduce first with the smallest failing test or command.
  • Find the breaking commit with git bisect when it used to work.
  • Test one hypothesis at a time and revert experiments that fail.
  • Never delete, skip, or weaken a failing test to make the build pass.
  • Keep the regression test and remove temporary logging.

Install it in one command

  1. 01

    Go to your project root

    The file goes at .cursor/rules/systematic-debugging.mdc, relative to the root.

  2. 02

    Download the file

    Run the command on the right. It downloads this preset and writes the file.

  3. 03

    Make sure it gets used

    Cursor picks up rules in .cursor/rules/ automatically. This one attaches when files matching its globs are in the request, or when you @-mention it.

$ mkdir -p ".cursor/rules" && curl -fsSL "https://www.devscratchpad.tech/api/raw/cursor-rules/systematic-debugging" -o ".cursor/rules/systematic-debugging.mdc"

writes .cursor/rules/systematic-debugging.mdc

path

.cursor/rules/systematic-debugging.mdc

To write the file from your own code instead, use Read your code or Convert Legacy Rules in the editor above.

Questions

Where should this Root-Cause Debugging rule be placed?
Save it as .cursor/rules/systematic-debugging.mdc in your project. Cursor finds it automatically and attaches it when files matching its globs are in play.
Does this rule work in Cursor's Agent and inline edit?
Yes. Project rules in .cursor/rules/ are used by Cursor's Agent, chat and inline edit (Ctrl+K) when the rule's globs match the files involved, or when you @-mention the rule.