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
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- mcp-teaching-kit-main/CLAUDE.mdCLAUDE.md
- segment_1_quickstart/CLAUDE.mdCLAUDE.md
- segment_2_context/CLAUDE.mdCLAUDE.md
- segment_3_agents/CLAUDE.mdCLAUDE.md
- segment_4_hero/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- azure-ai-deploySkill
- azure-bicep-skillSkill
- claude-md-auditSkill
- genai-prompt-evalSkill
- kubernetes-patternsSkill
- mcp-scaffoldSkill
- review-changesSkill
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
- Distinctive: line 18
Only edit a fixture when a demo script or Tim explicitly requests a change to that fixture.
- Distinctive: line 24
Never treat them as a live-secret incident: do not rotate, do not report, do not open a security finding against them.
- Very specific: line 26
Never copy these strings into published output (an Artifact, a gist, a slide, anything that leaves the repo).
- Distinctive: line 33
Do not git add it. If it shows up dirty, that is the server doing its job, not a change to stage.
≈ “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.
Files
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.pyships MD5 password hashing, predictable session tokens, no rate limiting, and anADMIN_BACKDOOR_PASSWORD. All intentional. TheSEC-441/442/443ticket references and the "sorry about the mess" header are part of the demo narrative.legacy_payment_processor.pycarries acalculate_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.jsare the same shape: staged legacy code for review and refactor demos.sample_pr_diff.jsonis a canned diff the PR-review demo reads.mcp_memory_sample.jsonis 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 addit. 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/notesas empty arrays,contextas an empty object) rather than deleting the file.
Related
segment_4_hero/memory_server/- the FastMCP server that ownsmemory.json.- The repo-root
CLAUDE.md- project-wide conventions and the demo command list.
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
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.

