agentleFS
Hugging FaceKnown publisherhuggingface/upskill/AGENTS.md

upskill

AGENTS.md758 starsChanged 8 months agoApache-2.0View on GitHub

Before finishing a change, run: CI enforces the same flow in .github/workflows/ci.yml. Formatting and linting are enforced with Ruff.

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

14 rules. About 0 are common, 10 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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:

    Keep changes compatible with the repo's pyproject.toml settings.

    line 6
  2. Distinctive:

    Prefer small, typed, composable functions over large command-style blocks.

    line 7
  3. Distinctive:

    Avoid introducing new complexity suppressions unless there is a strong reason.

    line 8
  4. Distinctive:

    Before finishing a change, run:

    line 12
  5. Distinctive:

    Add or improve annotations when touching code that is ambiguous to the type checker.

    line 46
  6. Very specific:

    Prefer explicit protocols / typed helper structures over object when wiring dynamic APIs.

    line 47
  7. Very specific:

    Keep type-only imports behind TYPE_CHECKING when appropriate.

    line 48
  8. Distinctive:

    Add or update tests for behavior changes.

    line 52
  9. Very specific:

    Keep the test suite passing with pytest.

    line 53
  10. Distinctive:

    Use focused unit-style tests for logic changes when possible.

    line 54
  11. Distinctive:

    Prefer refactoring over adding broad ignores.

    line 58
  12. Distinctive:

    If a function is nearing the complexity limit, split it before adding more branches.

    line 59
  13. Distinctive:

    Keep CLI orchestration, model resolution, and persistence logic separated when possible.

    line 60
  14. Distinctive:

    When adding developer tooling, update the README and CI together.

    line 61

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

Agent guidance

Code quality baseline

  • Target Python 3.13.
  • Keep changes compatible with the repo's pyproject.toml settings.
  • Prefer small, typed, composable functions over large command-style blocks.
  • Avoid introducing new complexity suppressions unless there is a strong reason.

Required local checks

Before finishing a change, run:

uv sync --extra dev
uv run scripts/format.py
uv run scripts/lint.py
uv run scripts/typecheck.py
uv run --extra dev pytest -v

CI enforces the same flow in .github/workflows/ci.yml.

Ruff rules

Formatting and linting are enforced with Ruff.

  • Line length: 100
  • Target version: py313
  • Enabled lint families:
    • B - bugbear
    • C90 - cyclomatic complexity
    • E - pycodestyle errors
    • F - pyflakes
    • I - import sorting
    • RUF - Ruff-specific rules
    • SIM - simplifications
    • TCH - type-checking import hygiene
    • UP - pyupgrade
  • E501 is ignored; let ruff format own line wrapping.
  • Cyclomatic complexity limit: 15

Type checking

  • ty is required for src, tests, and scripts.
  • Add or improve annotations when touching code that is ambiguous to the type checker.
  • Prefer explicit protocols / typed helper structures over object when wiring dynamic APIs.
  • Keep type-only imports behind TYPE_CHECKING when appropriate.

Tests

  • Add or update tests for behavior changes.
  • Keep the test suite passing with pytest.
  • Use focused unit-style tests for logic changes when possible.

Practical authoring guidance

  • Prefer refactoring over adding broad ignores.
  • If a function is nearing the complexity limit, split it before adding more branches.
  • Keep CLI orchestration, model resolution, and persistence logic separated when possible.
  • When adding developer tooling, update the README and CI together.

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.