agentleFS
adryanmoldokkr32-pixeladryanmoldokkr32-pixel/context-engineering-intro/CLAUDE.md

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

  • Other versions2 projects use a version of this.

    Word for word · 2

    1. coleam00/context-engineering-intro★ 14k100% same
    2. 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.

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
  1. Very specific:

    Check TASK.md: before starting a new task.

    line 3
  2. Distinctive:

    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.

    line 8
  3. Very specific:

    Add new sub-tasks or TODOs discovered during development to TASK.md under a “Discovered During Work” section.

    line 29
  4. Very specific:

    Use FastAPI for APIs and SQLAlchemy or SQLModel for ORM if applicable.

    line 35
  5. Distinctive:

    Write docstrings for every function using the Google style:

    line 36
  6. Distinctive:

    Update README.md: when new features are added, dependencies change, or setup steps are modified.

    line 51
  7. Very specific:

    When writing complex logic, add an inline # Reason: comment explaining the why, not just the what.

    line 53

≈ “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

🔄 Project Awareness & Context

  • Always read PLANNING.md at the start of a new conversation to understand the project's architecture, goals, style, and constraints.
  • Check TASK.md before 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 logic
    • tools.py - Tool functions used by the agent
    • prompts.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 /tests folder mirroring the main app structure.
    • Include at least:
      • 1 test for expected use
      • 1 edge case
      • 1 failure case

✅ Task Completion

  • Mark completed tasks in TASK.md immediately after finishing them.
  • Add new sub-tasks or TODOs discovered during development to TASK.md under a “Discovered During Work” section.

📎 Style & Conventions

  • Use Python as the primary language.
  • Follow PEP8, use type hints, and format with black.
  • Use pydantic for data validation.
  • Use FastAPI for APIs and SQLAlchemy or SQLModel for 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.md when 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.

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.