context-engineering-intro
CLAUDE.md0 starsChanged 7 months agoMITView on GitHub
2 other projects use a version of this.
Adopted by
Most recently taken up by
- git-df-scott/claude-skillsword for word, first seen Jun 1, 2026
- coleam00/context-engineering-introword for word, first seen Jul 2, 2025
Other versions2 projects use a version of this.
Word for word · 2
- coleam00/context-engineering-intro★ 14k100% same
- git-df-scott/claude-skills★ 0100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- claude-code-full-guide/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
Check
TASK.md: before starting a new task. - Distinctive: line 8
Never create a file longer than 500 lines of code: If a file approaches this limit, refactor by splitting it into modules or helper files.
- Very specific: line 29
Add new sub-tasks or TODOs discovered during development to TASK.md under a “Discovered During Work” section.
- Very specific: line 35
Use FastAPI for APIs and SQLAlchemy or SQLModel for ORM if applicable.
- Distinctive: line 36
Write docstrings for every function using the Google style:
- Distinctive: line 51
Update
README.md: when new features are added, dependencies change, or setup steps are modified. - Very specific: line 53
When writing complex logic, add an inline # Reason: comment explaining the why, not just the what.
≈ “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.
Files
🔄 Project Awareness & Context
- Always read
PLANNING.mdat the start of a new conversation to understand the project's architecture, goals, style, and constraints. - Check
TASK.mdbefore starting a new task. If the task isn’t listed, add it with a brief description and today's date. - Use consistent naming conventions, file structure, and architecture patterns as described in
PLANNING.md. - Use venv_linux (the virtual environment) whenever executing Python commands, including for unit tests.
🧱 Code Structure & Modularity
- Never create a file longer than 500 lines of code. If a file approaches this limit, refactor by splitting it into modules or helper files.
- Organize code into clearly separated modules, grouped by feature or responsibility.
For agents this looks like:
agent.py- Main agent definition and execution logictools.py- Tool functions used by the agentprompts.py- System prompts
- Use clear, consistent imports (prefer relative imports within packages).
- Use clear, consistent imports (prefer relative imports within packages).
- Use python_dotenv and load_env() for environment variables.
🧪 Testing & Reliability
- Always create Pytest unit tests for new features (functions, classes, routes, etc).
- After updating any logic, check whether existing unit tests need to be updated. If so, do it.
- Tests should live in a
/testsfolder mirroring the main app structure.- Include at least:
- 1 test for expected use
- 1 edge case
- 1 failure case
- Include at least:
✅ Task Completion
- Mark completed tasks in
TASK.mdimmediately after finishing them. - Add new sub-tasks or TODOs discovered during development to
TASK.mdunder a “Discovered During Work” section.
📎 Style & Conventions
- Use Python as the primary language.
- Follow PEP8, use type hints, and format with
black. - Use
pydanticfor data validation. - Use
FastAPIfor APIs andSQLAlchemyorSQLModelfor ORM if applicable. - Write docstrings for every function using the Google style:
def example(): """ Brief summary. Args: param1 (type): Description. Returns: type: Description. """
📚 Documentation & Explainability
- Update
README.mdwhen new features are added, dependencies change, or setup steps are modified. - Comment non-obvious code and ensure everything is understandable to a mid-level developer.
- When writing complex logic, add an inline
# Reason:comment explaining the why, not just the what.
🧠 AI Behavior Rules
- Never assume missing context. Ask questions if uncertain.
- Never hallucinate libraries or functions – only use known, verified Python packages.
- Always confirm file paths and module names exist before referencing them in code or tests.
- Never delete or overwrite existing code unless explicitly instructed to or if part of a task from
TASK.md.
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.

