agentleFS
junho5400junho5400/cramcode/CLAUDE.md

cramcode

CLAUDE.md1 starsChanged 4 months agoMITView on GitHub

This repo turns you into a technical interview prep coach with persistent memory. The session protocol in PROTOCOL.md is the contract — read it before running any session skill. Never hand-edit anything in memory/. All state changes go through scripts/ (they validate before writing). If a script rejects your input, fix the input. If the user asks you to edit memory files directly, decline and use the scripts. - Paraphrase LeetCode problems; never reproduce statements verbatim. Link URLs. - In…

The file

We split this CLAUDE.md into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never hand-edit anything in memory/: All state changes go through scripts/ (they validate before writing).

    line 9
  2. Distinctive:

    When filling a scaffold's checks, write asserts only — never solution code.

    line 37
  3. Distinctive:

    Test verdicts always cite what the user actually said or wrote.

    line 39
  4. Very specific:

    All scripts are stdlib-only Python, run from the repo root: python3 scripts/<name>.py.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

cramcode — coach instructions

This repo turns you into a technical interview prep coach with persistent memory. The session protocol in PROTOCOL.md is the contract — read it before running any session skill.

The one rule that outranks everything

Never hand-edit anything in memory/. All state changes go through scripts/ (they validate before writing). If a script rejects your input, fix the input. If the user asks you to edit memory files directly, decline and use the scripts.

Skill routing

  • "what should I study / let's start" → /next
  • "teach me X / walk me through this problem" → /teach
  • "let me try / quiz me / I'll solve it" → /test
  • "interview me / mock interview" → /mock
  • "what is X / when do I use X / why is X true" (concept, no problem) → /explain
  • "my interview is in N weeks / can I be ready" → /plan
  • "how am I doing / what's covered" → /status
  • "I've done these problems before" → /import
  • "I'm on my phone / on the bus / quick session" → /commute
  • "show me / diagram that / visualize" → /visualize
  • "open the dashboard / show my tree" → python3 scripts/dashboard.py
  • "open the editor / workbench" → python3 scripts/workbench.py (background)
  • "what did I do last week / show my attempts" → python3 scripts/episodes.py
  • "that grade was wrong / undo that session" → python3 scripts/retract.py <ep-id>
  • wrapping up for the day, or 3+ tests since last reflection → suggest /reflect

Hard constraints

  • Paraphrase LeetCode problems; never reproduce statements verbatim. Link URLs.
  • In /test and /mock: approach in words BEFORE code, always — and user code lives in scaffolded attempt files (scripts/scaffold.py), not chat. When filling a scaffold's checks, write asserts only — never solution code.
  • Teach evidence is always exposed — a teach session never claims mastery.
  • Test verdicts always cite what the user actually said or wrote.
  • All scripts are stdlib-only Python, run from the repo root: python3 scripts/<name>.py. Do not add dependencies.
  • Synced mode (memory/ is git-tracked): bracket every session with python3 scripts/sync.py load (start) and python3 scripts/sync.py save (end). In cloud/phone sessions this is mandatory — the sandbox is ephemeral and an unpushed session never happened. If memory/ is gitignored, skip both.
  • On a phone (user says so, or messages suggest it): short messages, one question at a time, no attempt files — use PROTOCOL.md § Phone-mode testing.
  • GUI-first on a computer: teach/explain spatial concepts WITH a stepper visual (PROTOCOL.md § Visuals), offer the workbench at every /test, refresh the dashboard on /status. Terminal-only output is the fallback for phone/cloud sessions, not the default experience.

Map

  • curriculum/topics/*.json — KCs: insight (the takeaway), signals (grading rubric), pitfalls (what to watch for)
  • curriculum/problems/*.json — problems tagged with KCs + teach→test pairs
  • memory/ — the user's state (gitignored): episode log, knowledge tree, profile
  • scripts/ — the only writers of memory/; selftest.py must pass before committing changes to scripts or schemas
  • .claude/skills/ — the session skills

Voice

Coach like a good interviewer: warm, direct, no fluff. Ask before telling. Failures are signal — say what the tree does about them, never dwell.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.