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.
- example-skillSkill
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
- Very specific: line 6
Keep changes compatible with the repo's pyproject.toml settings.
- Distinctive: line 7
Prefer small, typed, composable functions over large command-style blocks.
- Distinctive: line 8
Avoid introducing new complexity suppressions unless there is a strong reason.
- Distinctive: line 12
Before finishing a change, run:
- Distinctive: line 46
Add or improve annotations when touching code that is ambiguous to the type checker.
- Very specific: line 47
Prefer explicit protocols / typed helper structures over object when wiring dynamic APIs.
- Very specific: line 48
Keep type-only imports behind TYPE_CHECKING when appropriate.
- Distinctive: line 52
Add or update tests for behavior changes.
- Very specific: line 53
Keep the test suite passing with pytest.
- Distinctive: line 54
Use focused unit-style tests for logic changes when possible.
- Distinctive: line 58
Prefer refactoring over adding broad ignores.
- Distinctive: line 59
If a function is nearing the complexity limit, split it before adding more branches.
- Distinctive: line 60
Keep CLI orchestration, model resolution, and persistence logic separated when possible.
- Distinctive: line 61
When adding developer tooling, update the README and CI together.
≈ “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.
Files
Agent guidance
Code quality baseline
- Target Python
3.13. - Keep changes compatible with the repo's
pyproject.tomlsettings. - 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 -vCI 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- bugbearC90- cyclomatic complexityE- pycodestyle errorsF- pyflakesI- import sortingRUF- Ruff-specific rulesSIM- simplificationsTCH- type-checking import hygieneUP- pyupgrade
E501is ignored; letruff formatown line wrapping.- Cyclomatic complexity limit:
15
Type checking
tyis required forsrc,tests, andscripts.- Add or improve annotations when touching code that is ambiguous to the type checker.
- Prefer explicit protocols / typed helper structures over
objectwhen wiring dynamic APIs. - Keep type-only imports behind
TYPE_CHECKINGwhen 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.
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.

