agentleFS
erikhowarderikhoward/agent-tools/skills/python/SKILL.md

python

Skill0 starsChanged 3 months agoMITView on GitHub

Apply repository-aware Python conventions for typing, exceptions, resources, async work, tests, packaging, and verification. Use for Python code and pyproject.toml changes.

26 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use cicd, fastapi and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ffsshhttiikkSkill

    cicd

    Continuous integration and delivery pipelines

    Also in 3 projects that use this

  • martinholovskySkill

    fastapi

    REST API and WebSocket development with FastAPI emphasizing security, performance, and async patterns

    Also in 3 projects that use this

  • 0xSeroSkill

    security

    Also in 7 projects that use this

  • akornmeierSkill

    docker

    Guide for using Docker - a containerization platform for building, running, and deploying applications in isolated containers. Use when containerizing applications, creating Dockerfiles, working with Docker Compose, managing images/containers, configuring networking and storage, optimizing builds, deploying to production, or implementing CI/CD pipelines with Docker.

    Also in 4 projects that use this

  • MicrosoftSkill

    code-quality

    Statically check changed C# against the same deterministic rules github-code-quality[bot] runs on pull requests, so a contributor can fix likely findings before opening the PR and keep the bot's inline comments to a minimum. Activate when a contributor asks to "check code quality", "run code quality on my changes", "will the code quality bot complain", "pre-check before I open the PR", "code quality check", or similar. Scoped to C#. Reads the diff and compares it against the enumerated csharp-code-quality rule set below — no CodeQL download or build required. This is a fast approximation of a dataflow engine, not a reproduction; report accordingly. Does NOT apply fixes unless explicitly asked.

    Also in 3 projects that use this

  • shanggqmSkill

    data-analysis

    数据分析技能,提供结构化的数据查询、统计分析和报告生成工作流。当用户需要查询数据库、进行数据统计分析、生成分析报告时使用。按规范输出原始数据、计算结果、Markdown报告和HTML可视化报告。

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the repository's supported Python versions, dependency manager, formatter, type checker, test framework, and established design.

    line 14
  2. Very specific:

    Use clear snake_case names, CapWords types, and predicate names for booleans.

    line 18
  3. Very specific:

    Use context managers or explicit try/finally cleanup for files, locks, sessions, clients, and transactions.

    line 21
  4. Distinctive:

    Prefer the standard library and existing dependencies.

    line 22
  5. Distinctive:

    Keep async operations non-blocking.

    line 23
  6. Distinctive:

    Keep transaction and session ownership explicit.

    line 24
  7. Distinctive:

    Use narrow suppressions only when the issue cannot be expressed safely.

    line 25
  8. Very specific:

    Read references/async-and-concurrency.md only for async lifecycle or retry work.

    line 27

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “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
SKILL.md

Python

Follow the repository's supported Python versions, dependency manager, formatter, type checker, test framework, and established design. Do not introduce a framework, exception hierarchy, repository abstraction, or dependency unless the task requires it.

Contracts

  • Use clear snake_case names, CapWords types, and predicate names for booleans.
  • Annotate public APIs and non-obvious boundaries. Prefer inferred local types. Use syntax supported by the project's minimum Python version.
  • Catch specific exceptions. Preserve causes with raise ... from error when translating failures. Never swallow exceptions. Do not expose secrets or large payloads in error text.
  • Use context managers or explicit try/finally cleanup for files, locks, sessions, clients, and transactions.
  • Prefer the standard library and existing dependencies. Follow existing protocols and data models rather than importing patterns from another language.
  • Keep async operations non-blocking. Reuse long-lived HTTP clients where ownership permits it. Bound concurrency, set intentional timeouts, and retry only operations safe to repeat.
  • Keep transaction and session ownership explicit. Avoid hidden commits and lazy I/O outside the intended lifetime.
  • Use narrow suppressions only when the issue cannot be expressed safely. Include the rule and reason.

Read references/async-and-concurrency.md only for async lifecycle or retry work. Read references/sqlalchemy.md only for SQLAlchemy session, loading, or transaction decisions.

Verification

Use repository scripts and configuration first. Typical checks are a focused pytest invocation, then configured Ruff formatting/linting and the configured type checker. Do not require Ruff, isort, Black, mypy, and pytest simultaneously when the project does not use them. Format changed files only. Report checks that are unavailable or not run.

Adapted from affaan-m/ECC and manikosto/claude-code-python-stack.

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.