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

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

    0 points·13 hours ago·Usage & Limits·easy·discuss
  11. 11.

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

    0 points·13 hours ago·Context Management·easy·discuss
  12. 12.

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

    0 points·13 hours ago·Claude Code / CLAUDE.md·easy·discuss