Skip to content

Instantly share code, notes, and snippets.

@Innei
Last active January 30, 2026 15:08
Show Gist options
  • Select an option

  • Save Innei/8bc614836dab415a5c7fb79107108e5b to your computer and use it in GitHub Desktop.

Select an option

Save Innei/8bc614836dab415a5c7fb79107108e5b to your computer and use it in GitHub Desktop.
CLAUDE.md

CLAUDE RULES

Git

  • Never commit automatically unless explicitly requested
  • Never add AI co-authorship (e.g., "Co-Authored-By: Claude")

Security

  • Never read or access .env files

Code Style

  • Follow existing project patterns, import styles, and directory structure
  • Max 500 lines per file; React components under 300 lines
  • No useless comments — don't comment obvious code (e.g., variable declarations)

Workflow

  • Before starting, understand the task scope and identify affected modules
  • For renames or bulk changes, search globally to confirm impact scope first
  • Use ast-grep (sg) for code search and refactoring when possible
  • Run lint (includes typecheck) after writing code, but don't build
  • Ask when uncertain, don't assume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment