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
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.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo 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
- Code quality baseline
- Required local checks
- Ruff rules
- Type checking
- Tests
- 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
- Repository
- github.com/huggingface/upskill
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from huggingface
- 0.856score
hf-cli
huggingfaceOfficial
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and more on the Hugging Face Hub.
SkillAFreshness: A★ 11.2KClaude Code +9 - 0.856score
trl-training
huggingfaceOfficial
Post-train LLMs with TRL (Transformers Reinforcement Learning) — SFT, DPO, GRPO, KTO, and reward-model training.
SkillAFreshness: A★ 11.2KClaude Code +9 - 0.815score
hf-cloud-serving-image-selection
huggingfaceOfficial
Pick the right serving container for a SageMaker model deployment and find its current image URI.
SkillBFreshness: B★ 11.2KClaude Code +9 - 0.815score
huggingface-spaces
huggingfaceOfficial
Build, deploy, and maintain applications on Hugging Face Spaces — Gradio / Docker / Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging…
SkillBFreshness: B★ 11.2KClaude Code +9 - 0.815score
train-sentence-transformers
huggingfaceOfficial
Train or fine-tune sentence-transformers models across `SentenceTransformer` (bi-encoder, dense or static embedding model for retrieval, similarity…
SkillBFreshness: B★ 11.2KClaude Code +9 - 0.815score
hf-cloud-sagemaker-production-defaults
huggingfaceOfficial
Create a SageMaker endpoint (real-time, real-time scale-to-zero, or async) with autoscaling, CloudWatch alarms, and tagging enabled by default.
SkillBFreshness: B★ 11.2KClaude Code +9
Cite this page
AGENTS.md · huggingface/upskill. Agent Mart. https://agentmart.dev/templates/huggingface-upskill-agents-md (last updated 2026-10-24)