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

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 · Claude Code

Behavior-Preserving Refactoring CLAUDE.md

A CLAUDE.md for Behavior-Preserving Refactoring projects: build and test commands, conventions and the boundaries Claude Code should keep.

Path
CLAUDE.md
Loads
Every session
Format
Project memory (.md)
Used by
Claude Code
All CLAUDE.md presets and how CLAUDE.md works

What this file tells the agent

Claude Code reads CLAUDE.md at the start of every session. Writing down the Behavior-Preserving Refactoring build and test commands, conventions and architectural boundaries there means it does not have to guess them.

  • Add characterization tests before touching uncovered code.
  • One refactoring step at a time, tests after each; revert a step that breaks.
  • Keep exported names, signatures, import paths, and formats stable.
  • Never mix behaviour changes or formatting into a refactor diff.
  • Add an abstraction only when three real call sites need it.

Install it in one command

  1. 01

    Go to your project root

    The file goes at CLAUDE.md, 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

    Claude Code reads CLAUDE.md at the start of every session. Run /memory to see which files it loaded.

$ curl -fsSL "https://www.devscratchpad.tech/api/raw/claude-md/safe-refactor" -o "CLAUDE.md"

writes CLAUDE.md

path

CLAUDE.md

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

Questions

Where does CLAUDE.md belong?
At your repository root. Claude Code reads it at the start of each session.
Can I combine CLAUDE.md with Cursor rules?
Yes. CLAUDE.md is read by Claude Code; Cursor reads .cursor/rules/*.mdc, scoped by globs. Keep the shared conventions the same in both.