From be7bce505bba90065756f85c6688d15edb6baf3f Mon Sep 17 00:00:00 2001 From: Andy Li Date: Sat, 30 May 2026 08:08:01 -0700 Subject: [PATCH] Add CLAUDE.md guidance: investigate where pointed + self-log repeat mistakes Two new work-habit rules: - When a bug report names a feature/area, grep that exact code path first instead of exploring the whole codebase. - After making the same mistake 3+ times, append it to the Hard-won gotchas section so it stops recurring. Co-Authored-By: Claude Opus 4.7 --- CLAUDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index c431348..a2ad2d0 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -59,6 +59,8 @@ Multiplayer browser FPS. Three.js + Socket.IO + Express. Hosted on Railway, repo - **Commit + push after essentially every change.** Detailed commit messages, end with `Co-Authored-By: Claude Opus 4.7 `. Push to `main` (PR #1 already merged). Report briefly after. - **Bias to action.** He often answers tersely ("y", "k", "do it", "go") or dismisses question prompts. Make the reasonable call and keep building rather than over-asking. Ask only when genuinely blocked or a decision is irreversible. - Requests arrive as a stream of small features; he frequently **playtests and reports bugs** in casual language ("the enemy walked through the wall", "shuriken doesn't work"). Treat those as real bug reports — investigate, don't hand-wave. +- **If he points at a place, look THERE first.** When a report names a feature, system, button, or area ("mobile shooting", "the kill log", "bot AI", "the shop"), grep/read that exact code path before anything else. Start the investigation where he pointed — don't go exploring the whole codebase first. +- **Self-correct: after making the SAME mistake 3+ times, write it into this file.** If you catch yourself repeating an error (wrong cwd, off-by-one parallel array, stale build confusion, etc.) three or more times, immediately add a new entry to the "⚠️ Hard-won gotchas" section above so it stops happening. The gotchas list exists precisely because past mistakes got logged — keep feeding it. - Likes **balance**: P2W weapons should be *ridiculously expensive*, not cheap. Fragments/credits should require grind for top-tier items. - Enjoys **humor + casual banter**; sometimes writes in Chinese/English mix. Match the energy but stay focused on shipping. - He can't run `claude` CLI (not in PATH) and sets up Railway via dashboard manually — give click-by-click guidance, can't do dashboard steps for him.