ClaudeHack

Claude Code / CLAUDE.md

13 hacks

  1. 1.

    When Claude repeats a project gotcha, end your prompt with an instruction to write a CLAUDE.md rule so it never happens again.

    0.00 points·1 month ago·easy·discuss
  2. 2.

    Spelling out do-this-then-that is now the common failure mode. Describe the goal, the constraints and how Claude knows it is done, then leave the method alone.

    0.00 points·1 month ago·easy·discuss
  3. 3.

    Keep the root CLAUDE.md short and drop domain-specific CLAUDE.md files under paths like src/db/ so Claude loads them only when it works in that area.

    1.00 points·1 month ago·easy·discuss
  4. 4.

    Write the plan in one session, then open a fresh Claude with no context and ask it to review the plan like a staff engineer.

    0.00 points·1 month ago·easy·discuss
  5. 5.

    Use /init to generate a starter CLAUDE.md, then delete anything inaccurate or obvious before committing.

    0.00 points·1 month ago·easy·discuss
  6. 6.

    Put a single `@AGENTS.md` import in CLAUDE.md so Claude Code and other agent tools share the same project instructions without symlink confusion.

    0.00 points·1 month ago·easy·discuss
  7. 7.

    Put domain-specific instructions in path-scoped `.claude/rules/` so they load only when Claude touches matching files.

    0.00 points·1 month ago·medium·discuss
  8. 8.

    Trim project memory to under ~200 lines so Claude follows critical rules instead of drowning them in noise.

    0.00 points·1 month ago·easy·discuss
  9. 9.

    Enable /memory auto-memory so Claude writes durable notes about build commands, corrections, and patterns that reload on every new session.

    0.00 points·1 month ago·easy·discuss
  10. 10.

    Check in project settings so every teammate gets the same allow/deny rules, hooks, and env defaults without redoing /permissions.

    0.00 points·1 month ago·intermediate·discuss
  11. 11.

    Keep personal shortcuts and machine-specific notes in CLAUDE.local.md (gitignored) instead of polluting the shared CLAUDE.md.

    0.00 points·1 month ago·easy·discuss
  12. 12.

    "Never add comments" in CLAUDE.md plus "make this readable" in your prompt is a contradiction Claude has to resolve before it writes a line. Find those pairs and pick one.

    0.00 points·1 month ago·easy·discuss
  13. 13.

    Most CLAUDE.md lines exist to correct a model that no longer makes that mistake. Delete them after an upgrade and re-add only the ones a failure proves you need.

    0.00 points·1 month ago·easy·discuss