agentleFS
young1linyoung1lin/cc-tutorial/AGENTS.md

cc-tutorial

AGENTS.md38 starsChanged 4 months agoMITView on GitHub

This repository is a Claude Code tutorial, not a single application. Keep changes scoped to the content area you are editing: There is no repo-wide build. Use the command that matches the area you changed: Use concise Markdown, short sections, and concrete examples. For Python, follow PEP 8 with 4-space indentation. Match existing naming patterns: When adding tutorial analysis or opinionated guidance, clearly label it as author interpretation rather than fact. If it is a fact, prove it. If it…

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository4 other files it gives its agents.

The file

Show its rules and text

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

30 rules. About 0 are common, 19 are distinctive, and 11 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 11

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Use concise Markdown, short sections, and concrete examples.

    line 26
  2. Distinctive:

    When adding tutorial analysis or opinionated guidance, clearly label it as author interpretation rather than fact.

    line 32
  3. Distinctive:

    If it is a fact, prove it.

    line 38
  4. Distinctive:

    Use these evidence tiers:

    line 40
  5. Very specific:

    Prefer T1 for feature existence, official behavior, and product capability claims.

    line 46
  6. Very specific:

    Use T1 or T2 for performance claims and any superlative or absolute wording such as best, fastest, only, always, or never.

    line 47
  7. Very specific:

    If strong proof does not exist, downgrade the claim to T4, mark it explicitly, and narrow the wording.

    line 48
  8. Very specific:

    Treat all predictive claims as T4 and include the reasoning behind the prediction.

    line 52
  9. Distinctive:

    When experts disagree, surface the disagreement with citations before stating the tutorial's preferred view.

    line 54
  10. Distinctive:

    When adding or expanding source-backed material:

    line 58
  11. Very specific:

    Search existing files in research/ first before creating a new note.

    line 60
  12. Very specific:

    If a new source is needed, create research/NN-descriptive-name.md.

    line 61
  13. Very specific:

    Update research/00-research-summary.md whenever a new research note is added.

    line 69
  14. Distinctive:

    Write like a ruthless analyst, not an assistant trying to sound helpful.

    line 74
  15. Distinctive:

    Do not warm up. Do not ease in.

    line 78
  16. Distinctive:

    Prefer blunt judgments over polite vagueness.

    line 80
  17. Distinctive:

    Use sharp, concrete words.

    line 81
  18. Distinctive:

    Use metaphors as weapons, not decorations.

    line 82
  19. Distinctive:

    Use rhetorical questions to puncture bad assumptions.

    line 83
  20. Distinctive:

    Do not hand out emotional reassurance.

    line 84
  21. Distinctive:

    Do not perform neutrality.

    line 85
  22. Distinctive:

    Keep the tone cold, controlled, unsentimental, and precise.

    line 86
  23. Very specific:

    When the content is factual, keep it evidence-backed.

    line 88
  24. Distinctive:

    No root test suite exists today.

    line 92
  25. Very specific:

    If you add automated tests for new Python behavior, prefer pytest with test_*.py naming and keep tests close to the example they cover.

    line 98
  26. Very specific:

    Follow the conventional commit style already used in history, for example feat(examples): add real-time ASR subtitle example or …

    line 102
  27. Distinctive:

    When generating commit message trailers for AI-assisted commits:

    line 104
  28. Distinctive:

    Do not use an Anthropic email outside Claude Code.

    line 108
  29. Distinctive:

    Do not invent an OpenAI email unless the repository explicitly defines one.

    line 109
  30. Very specific:

    Do not commit secrets, local API keys, or .env files.

    line 115

≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.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
AGENTS.md

Repository Guidelines

Project Structure & Module Organization

This repository is a Claude Code tutorial, not a single application. Keep changes scoped to the content area you are editing:

  • video-scripts/: the main 9-layer course scripts, named with zero-padded prefixes such as layer-01-theory.md.
  • docs/: published articles and images.
  • research/: source-backed research notes. Add new entries as NN-descriptive-name.md and update research/00-research-summary.md.
  • examples/http/: runnable .http API examples for REST Client or JetBrains HTTP Client.
  • examples/python/ and examples/asr/: Python example projects managed with uv.
  • .claude/commands/: project-specific Claude Code workflows such as /commit-push.

Build, Test, and Development Commands

There is no repo-wide build. Use the command that matches the area you changed:

  • cd examples/python && uv sync: install the Python example dependencies.
  • cd examples/python && uv run python 00_basic_function_calling.py 1: run a sample Python demo.
  • cd examples/asr && uv sync: install the ASR example dependencies.
  • cd examples/asr && uv run python main.py: start the ASR demo locally.
  • Open examples/http/*.http in VS Code REST Client or a JetBrains IDE and send requests interactively.

Coding Style & Naming Conventions

Use concise Markdown, short sections, and concrete examples. For Python, follow PEP 8 with 4-space indentation. Match existing naming patterns:

  • ordered tutorial files: layer-02-setup.md, 01-main.http
  • documentation and research files: kebab-case
  • helper scripts: descriptive snake_case or existing local convention

When adding tutorial analysis or opinionated guidance, clearly label it as author interpretation rather than fact.

Project Writing Rules

Evidence Rules

If it is a fact, prove it. If it cannot be proved, do not present it as fact.

  • Use these evidence tiers:
    • T1: official vendor or platform documentation, changelogs, or engineering posts
    • T2: recognized expert practitioner material such as books, talks, blogs, or courses
    • T3: community consensus supported by at least two independent sources
    • T4: author interpretation, tutorial framing, opinion, or prediction
  • Any statement about feature existence, product behavior, pricing, limits, benchmarks, statistics, chronology, or technical capability must be traceable to a source.
  • Prefer T1 for feature existence, official behavior, and product capability claims.
  • Use T1 or T2 for performance claims and any superlative or absolute wording such as best, fastest, only, always, or never.
  • If strong proof does not exist, downgrade the claim to T4, mark it explicitly, and narrow the wording.
  • Mark subjective guidance, predictions, teaching choices, and personal conclusions with one of:
    • **[Tutorial perspective]**
    • **[Author's analysis]**
  • Treat all predictive claims as T4 and include the reasoning behind the prediction.
  • For T3 claims, cite at least two independent sources.
  • When experts disagree, surface the disagreement with citations before stating the tutorial's preferred view.

Research Workflow

When adding or expanding source-backed material:

  • Search existing files in research/ first before creating a new note.
  • If a new source is needed, create research/NN-descriptive-name.md.
  • New research files must include YAML front matter with:
    • title
    • author
    • date
    • url
    • tier
    • topics
  • Update research/00-research-summary.md whenever a new research note is added.
  • Distinguish clearly between cited facts and tutorial interpretation.

Voice And Tone

Write like a ruthless analyst, not an assistant trying to sound helpful.

  • Cut without mercy. If a sentence exists only to transition, soften, summarize, or sound "natural", delete it.
  • Ban stock AI filler and stage-setting phrases such as imagine, needless to say, all in all, it is undeniable, it is worth noting, in terms of, from this we can see, or any similar verbal padding.
  • Do not warm up. Do not ease in. Open with the point, the breakage, the mechanism, or the verdict.
  • Favor short sentences. Hard stops. Clean cuts. Use long sentences only when they carry real technical weight.
  • Prefer blunt judgments over polite vagueness. If something is weak, say it is weak. If it fails, say where it fails.
  • Use sharp, concrete words. Avoid bloodless abstractions and consultant language.
  • Use metaphors as weapons, not decorations. They must tighten the logic, raise the image, and land the consequence. Never explain them after the fact.
  • Use rhetorical questions to puncture bad assumptions. Do not linger on the question. Answer it with the underlying logic.
  • Do not hand out emotional reassurance. No cheerleading. No fake empathy. No empty balance.
  • Do not perform neutrality. If one path is better, say so. Then justify it.
  • Keep the tone cold, controlled, unsentimental, and precise.
  • Final pass rule: if the piece still sounds like a polished model response, rewrite it until the edges show.
  • When the content is factual, keep it evidence-backed. When it is interpretation, prediction, or judgment, mark it as T4.

Testing Guidelines

No root test suite exists today. Verify contributions in the smallest relevant way:

  • for Python examples, run the touched script with uv run
  • for .http examples, replay the edited request(s)
  • for Markdown changes, check links, headings, and code fences manually

If you add automated tests for new Python behavior, prefer pytest with test_*.py naming and keep tests close to the example they cover.

Commit & Pull Request Guidelines

Follow the conventional commit style already used in history, for example feat(examples): add real-time ASR subtitle example or docs(setup): simplify permissions config example.

When generating commit message trailers for AI-assisted commits:

  • In Claude Code, use Co-Authored-By: <Model Name> <noreply@anthropic.com>.
  • In Codex or other OpenAI terminals, use Co-Authored-By: <Model Name> (Codex).
  • Do not use an Anthropic email outside Claude Code.
  • Do not invent an OpenAI email unless the repository explicitly defines one.

PRs should include a short summary, the folders affected, verification commands or manual checks performed, and screenshots when updating image-backed docs or UI-like outputs.

Security & Configuration Tips

Do not commit secrets, local API keys, or .env files. Keep machine-specific settings in ignored local files, and avoid checking in generated binaries, logs, or temporary artifacts.

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.