ClaudeHack

#CLAUDE.md

5 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·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  2. 2.

    Install the GitHub app and mention @claude in review comments so corrections become durable CLAUDE.md rules for every future session.

    0.00 points·14 hours ago·Git & GitHub / Pull Requests·intermediate·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.

    0.00 points·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  4. 4.

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

    0.00 points·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  5. 5.

    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·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  6. 6.

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

    0.00 points·14 hours ago·Claude Code / CLAUDE.md·medium·discuss
  7. 7.

    Shift specialized playbooks into on-demand skills so every session does not pay for instructions you rarely need.

    0.00 points·14 hours ago·Terminal / Productivity / Cost Optimization·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·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  9. 9.

    When a skill hits an edge case, append it to a gotchas section in that skill rather than to CLAUDE.md. The lesson then loads only when the skill runs.

    0.00 points·14 hours ago·MCP / Agents·easy·discuss
  10. 10.

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

    0.00 points·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  11. 11.

    Use the bundled /doctor skill to find duplicate local memory, unused MCP/plugins, and slow hooks eating budget.

    0.00 points·14 hours ago·Usage & Limits·easy·discuss
  12. 12.

    Declare a Compact Instructions section in CLAUDE.md so both manual /compact and autocompact preserve the project’s critical decisions by default.

    0.00 points·14 hours ago·Context Management·easy·discuss
  13. 13.

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

    0.00 points·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  14. 14.

    "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·14 hours ago·Claude Code / CLAUDE.md·easy·discuss
  15. 15.

    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·14 hours ago·Claude Code / CLAUDE.md·easy·discuss