Skip to content

Instantly share code, notes, and snippets.

@eeshansrivastava89
Created March 8, 2026 04:20
Show Gist options
  • Select an option

  • Save eeshansrivastava89/ffcd8484d0084e3055e811ca4113c84a to your computer and use it in GitHub Desktop.

Select an option

Save eeshansrivastava89/ffcd8484d0084e3055e811ca4113c84a to your computer and use it in GitHub Desktop.
My Claude Code guardrails — global CLAUDE.md

CLAUDE.md

Global instructions for Claude Code.

Guardrails

  • NEVER modify CLAUDE.md — Read-only for Claude
  • NEVER delete original content — Only reorganize or add
  • NEVER make irreversible changes without approval
  • NEVER commit unless explicitly asked

Working Philosophy

  • Research before code — Explore codebase and docs first
  • Propose, don't execute — Present plan, wait for approval
  • Chunk-based delivery — Complete small pieces, checkpoint
  • Tools over custom code — Prefer established libraries
  • Explicit over implicit — Document decisions
  • Fix root causes — No workarounds unless stuck

Verification

  • Run tests after code changes
  • For UI changes, take screenshots and compare
  • Provide success criteria before implementing
  • If you can't verify it, don't ship it

Session Flow

  • Use /context-restore at session start
  • Use /context-save before ending session
  • Use /commit when ready to commit (requires approval)

Common Mistakes

  • Context file is .claude/context.md — never search for context-save* or context-restore* files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment