agentleFS
ruokeeruokee/ruokee-agent-kit/skills/python-engineering/SKILL.md

python-engineering

Skill4 starsChanged 12 days agoMITView on GitHub

Use when evaluating or improving Python engineering practices, including project structure, dependencies and version policy, typing, testing, language features, standard-library mechanisms, and tooling.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use rust-engineering, go-engineering and 2 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.
  • pirafrankSkill

    rust-engineering

    Apply pragmatic Rust engineering conventions when implementing, modifying, reviewing, or refactoring Rust code. Use for Rust CLI tools, system utilities, daemons, filesystem operations, network integrations, and security-sensitive code. Based on the official Rust guidelines and selected Google Rust Style Guide practices.

    Also in 4 projects that use this

  • caseyngSkill

    go-engineering

    Senior Go engineering standards for production code. Module structure, error handling, interface design, concurrency, context propagation, testing, security, observability. Includes gomobile-specific constraints for cross-language bindings. Compose with code-integrity-guardrail go for verification. Trigger on: any Go implementation task, any gomobile binding, any Go component in pipeline.

    Also in 4 projects that use this

  • harrissohail6Skill

    clean-architecture

    Clean architecture and SOLID principles. Auto-activates when designing systems or refactoring code structure.

    Also in 3 projects that use this

  • SentrySkill

    security-review

    Finds exploitable application security vulnerabilities in code changes. Use for Warden security scans, appsec review, OWASP-style checks, authentication or authorization bugs, injection, XSS, SSRF, path traversal, secrets, unsafe crypto, webhook verification, open redirects, or sensitive data exposure.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this Skill for Python-specific engineering review, convention design, and analysis.

    line 10
  2. Very specific:

    Read-only constraint: when the user says "do not modify", "read-only", "just analyze", or "survey", do not run any command that writes …

    line 24
  3. Distinctive:

    When terminology is unclear or inconsistent, read the glossary.

    line 57
  4. Distinctive:

    Write output in the language required by global, project, or user instructions.

    line 65
  5. Distinctive:

    Do not automatically run full review mode.

    line 69
  6. Distinctive:

    Do not modify code unless the user asks for fixes.

    line 70
  7. Distinctive:

    Do not run unsafe fixes, bulk suppressions, cross-file refactors, dependency changes, or lockfile-altering commands without explicit …

    line 71
  8. Distinctive:

    Read-only and analysis tasks leave reviewed files unchanged.

    line 72
  9. Distinctive:

    Do not report issues that Ruff, ty, or pre-commit can catch mechanically.

    line 73

“Common” is measured: kept by at least 6 in 10 of the 7 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 Engineering

Use this Skill for Python-specific engineering review, convention design, and analysis.

Entry Conditions

Activate this Skill when the task is Python-specific engineering: project shape or package layout, Python version policy, dependency management, type hints and checking strategy, testing, docstrings, custom lint, grammar choices, standard-library mechanisms, or toolchain setup.

Mode Selection

Three modes are available. Default to fast review.

  • Fast review is the default for daily self-checks, small diffs, and PR review; read ./workflow/fast-review.md.
  • Full review applies when the user explicitly says "full review", "complete review", "systematic review", or "architecture review"; read ./workflow/full-review.md.
  • Analysis applies when the user asks for discussion, brainstorming, design comparison, mechanism analysis, or a refactoring plan; read ./workflow/analysis.md.

Read-only constraint: when the user says "do not modify", "read-only", "just analyze", or "survey", do not run any command that writes files. Prefer rg, git ls-files, git show, find, wc, nl. Avoid uv run, pytest, ruff check --fix, pre-commit run, or any command that creates .venv, cache, or modifies source.

Judgment Order

Route to leaf documents by signal. Read only what the task requires.

  • For Python version, runtime target, and compatibility, read python-version, often alongside type-hint and structure.
  • For project shape (script, flat, src, packaged app, or workspace), read structure, often alongside dependency-management and uv.
  • For runtime, development, and optional dependencies, locks, and groups, read dependency-management, often alongside uv and structure.
  • For code style and the boundary between PEP 8 and formatters or review, read style, often alongside ruff and custom-lint.
  • For Python-specific applications of design principles, paradigms, and refactoring, read Python design guidance, often alongside style and type-hint.
  • For type hints, annotations, Any, cast, Protocol, generics, type aliases, and type parameters, read type-hint, often alongside python-version and ty.
  • For test organization, fixtures, parametrize, exceptions and warnings, log and output capture, mocking boundaries, and async tests, read testing, often alongside pytest.
  • For docstrings, API docs, schema metadata, and information placement, read docstrings-api-docs, often alongside type-hint.
  • For project-specific mechanical rules and custom lint, read custom-lint, often alongside flake8-plugin and pre-commit.
  • For match/case and structural pattern matching, read match-case, often alongside type-hint.
  • For with, async with, and resource-lifetime syntax, read context-manager, often alongside contextlib and exception-groups.
  • For ExceptionGroup, except*, and multiple errors, read exception-groups, often alongside context-manager.
  • For decorators, higher-order functions, parameterized decorators, and decorator classes, read decorator, often alongside functools and common.
  • For common stdlib modules such as pathlib, enum, dataclasses, and logging, read common, often alongside functools and itertools.
  • For singledispatch, partial, closures, and decorator helpers, read functools, often alongside decorator and common.
  • For itertools, lazy pipelines, grouping, and batching, read itertools, often alongside common and functools.
  • For contextlib, ExitStack, and AsyncExitStack, read contextlib, often alongside context-manager and common.
  • For uv dependency, lock, script, and workspace commands, read uv, often alongside dependency-management and structure.
  • For Ruff's formatter and linter responsibilities, read ruff, often alongside style and custom-lint.
  • For ty as a fast type checker and for LSP feedback, read ty, often alongside type-hint, mypy, and basedpyright.
  • For mypy strict mode and legacy gates, read mypy, often alongside type-hint, ty, and basedpyright.
  • For basedpyright strict mode and its comparison with Pyright, read basedpyright, often alongside type-hint, ty, and mypy.
  • For pytest runner configuration, discovery, import mode, markers, strict mode, and plugins, read pytest, often alongside testing.
  • For coverage.py, branch coverage, and thresholds, read coverage, often alongside testing and pytest.
  • For pre-commit hooks, local gates, and CI integration, read pre-commit, often alongside custom-lint and ruff.
  • For Flake8 plugin mechanics used by custom lint, read flake8-plugin, often alongside custom-lint and pre-commit.

When terminology is unclear or inconsistent, read the glossary.

Output Contract

Report findings first. Separate facts, inferences, judgments, and recommendations. Do not repeat issues that a formatter, linter, or type checker can determine mechanically.

Output format is mode-specific. Follow the matching workflow document (./workflow/fast-review.md, ./workflow/full-review.md, or ./workflow/analysis.md). Analysis mode gives options and tradeoffs, not a findings list.

Write output in the language required by global, project, or user instructions; when none is specified, use the current conversation's language.

Stop Rules

  • Do not automatically run full review mode.
  • Do not modify code unless the user asks for fixes.
  • Do not run unsafe fixes, bulk suppressions, cross-file refactors, dependency changes, or lockfile-altering commands without explicit confirmation.
  • Read-only and analysis tasks leave reviewed files unchanged. Existing authorization to maintain reports or Task materials still applies.
  • Do not report issues that Ruff, ty, or pre-commit can catch mechanically. Note them once in Notes if relevant, then move on.

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.