agentleFS
timothywarner-orgtimothywarner-org/claude-code/data/CLAUDE.md

claude-code / data

CLAUDE.md224 starsChanged 4 months agoMITView on GitHub

This is the course's demo fixture library. Every source file here is a teaching prop, not production code and not a bug to fix. The demos in Segments 3 and 4 point Claude at these files to show security review, refactoring, PR review, and MCP memory in action. The files are staged to be found, not corrected. The messes are the lesson. When you touch anything in data/, treat the defects as fixtures to demonstrate against, not defects to remove.

  • Reads credentials

The file

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

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Only edit a fixture when a demo script or Tim explicitly requests a change to that fixture.

    line 18
  2. Distinctive:

    Never treat them as a live-secret incident: do not rotate, do not report, do not open a security finding against them.

    line 24
  3. Very specific:

    Never copy these strings into published output (an Artifact, a gist, a slide, anything that leaves the repo).

    line 26
  4. Distinctive:

    Do not git add it. If it shows up dirty, that is the server doing its job, not a change to stage.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What data/ is

This is the course's demo fixture library. Every source file here is a teaching prop, not production code and not a bug to fix. The demos in Segments 3 and 4 point Claude at these files to show security review, refactoring, PR review, and MCP memory in action. The files are staged to be found, not corrected.

The one rule: do not "helpfully" clean these files

The messes are the lesson. When you touch anything in data/, treat the defects as fixtures to demonstrate against, not defects to remove.

  • auth_module_messy.py ships MD5 password hashing, predictable session tokens, no rate limiting, and an ADMIN_BACKDOOR_PASSWORD. All intentional. The SEC-441/442/443 ticket references and the "sorry about the mess" header are part of the demo narrative.
  • legacy_payment_processor.py carries a calculate_fees() nobody understands and Python-2-era patterns. Leave the tech debt in place; it is the refactoring target.
  • data_pipeline_legacy.py, api_handlers_legacy.js, context_analysis_sample.js are the same shape: staged legacy code for review and refactor demos.
  • sample_pr_diff.json is a canned diff the PR-review demo reads. mcp_memory_sample.json is a sample memory graph for the MCP memory demo.

Only edit a fixture when a demo script or Tim explicitly requests a change to that fixture. A drive-by "improvement" breaks the demo that depends on the file being broken.

The secrets here are fake demo strings

Files like legacy_payment_processor.py contain strings shaped like live keys (pk_live_..., sk_live_..., SECRET_KEY, JWT_SECRET, the admin backdoor). They are fabricated teaching props, not real credentials.

  • Never treat them as a live-secret incident: do not rotate, do not report, do not open a security finding against them.
  • They will still trip secret scanners and pre-commit guards. That is expected; it is often the point of the security-review demo. Do not disable the scanner to "fix" the warning.
  • Never copy these strings into published output (an Artifact, a gist, a slide, anything that leaves the repo). Fake or not, a pk_live_ string in a shared page reads as a real leak.

memory.json is live runtime state, not a fixture

data/memory.json is the default storage file the memory MCP server writes at runtime (MCP_MEMORY_PATH default in segment_4_hero/memory_server/server.py). It is gitignored (.gitignore line 159) and is the one file in this folder Claude should not hand-edit or commit.

  • Let the memory server tools (remember_decision, save_note, and the rest) mutate it. Do not edit the JSON by hand.
  • Do not git add it. If it shows up dirty, that is the server doing its job, not a change to stage.
  • To reset the demo to an empty store, restore it to the empty-collections shape (decisions/conventions/notes as empty arrays, context as an empty object) rather than deleting the file.

Related

  • segment_4_hero/memory_server/ - the FastMCP server that owns memory.json.
  • The repo-root CLAUDE.md - project-wide conventions and the demo command list.

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.