Skip to content
Agentmart
Submit a tool

AGENTS.md · huggingface/upskill

AGENTS.md from huggingface/upskill: 62 lines covering Code quality baseline, Required local checks, Ruff rules, Type checking and more.

Template by huggingface

IndexedApache-2.0★ 761
Write a review

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/huggingface/upskill/main/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that huggingface/upskill (761 stars) keeps for coding agents. It has 62 lines in 6 sections: Code quality baseline; Required local checks; Ruff rules; Type checking; Tests; Practical authoring guidance. Use it as a model for your own project's instructions.

Use cases: prompt-engineering

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
62 lines
File
AGENTS.md

Sections

  1. Code quality baseline
  2. Required local checks
  3. Ruff rules
  4. Type checking
  5. Tests
  6. Practical authoring guidance

First lines (shown under the repo's Apache-2.0 license)

# 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:

```bash
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.

Signals

Stars
761
Forks
92
Open issues
3
Last commit (this folder)
Mar 20, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from huggingface

Cite this page

AGENTS.md · huggingface/upskill. Agent Mart. https://agentmart.dev/templates/huggingface-upskill-agents-md (last updated 2026-10-24)