agentleFS
cmdr-characmdr-chara/codex-toolkit/skills/python-engineering/SKILL.md

python-engineering

Skill2 starsChanged 11 days agoMITView on GitHub

Implement bounded Python modules, services, scripts, or ports under their interpreter, API, packaging, and runtime contracts. Use for Python implementation after the language is chosen. Not for general review, unexplained failures, interpreter migrations, or release decisions.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill for Python feature work, an already-explained correction, a CLI/module implementation, or a local port into an …

    line 12
  2. Distinctive:

    Do not trigger for a findings-only review, an unknown causal failure, a Python-version or framework transition, language selection, or …

    line 14
  3. Distinctive:

    Avoid global installs, new frameworks, unrequested lockfile updates, and whole-project lint or annotation campaigns.

    line 26
  4. Distinctive:

    Select the actual interpreter and checks: Read environment-and-verification.md for environment, packaging, imports, and supported-version …

    line 32
  5. Distinctive:

    Challenge observable behavior: Test deciding inputs and failure paths using controlled dependencies, temporary data, and deterministic …

    line 35
  6. Distinctive:

    Check the final artifact and report: Run the scoped available tests and existing lint/type tasks, inspect changed packaging/import behavior …

    line 36

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

Implement the requested Python behavior while retaining the call, data, and execution contracts on which its users depend. Select idioms and checks from the actual application and supported interpreter.

Trigger boundary

Use this skill for Python feature work, an already-explained correction, a CLI/module implementation, or a local port into an already-selected Python package. Libraries, services, bots, and automation are valid contexts; a framework is not required.

Do not trigger for a findings-only review, an unknown causal failure, a Python-version or framework transition, language selection, or final release approval. Those decisions retain their existing specialist owners. A Python helper inside another stack does not automatically make that entire task Python implementation.

Required inputs

Resolve the requested behavior and execution entry point, repository state and protected edits, callers, source-domain constraints for a port, supported interpreters/platforms, dependencies, and documented test commands. Inspect applicable pyproject.toml, requirements/lock files, build configuration, task runners and CI. Establish the intended environment and import path; an available python executable need not be the project's interpreter.

Identify public call signatures, keyword arguments, exception behavior, synchronous/asynchronous boundaries, iterator behavior, and import-time effects relevant to the change. Framework/application hooks, file formats, CLI streams and exit codes can be public interfaces too.

Safety baseline

  • Preserve current user work, dependency policy, interpreter support, and externally observed behavior except for the requested change.
  • Importing modules, collecting tests, loading plugins, and running package build hooks can execute code. Review the affected entry points and isolate real services and user data; a virtual environment controls dependencies, not execution authority.
  • Avoid global installs, new frameworks, unrequested lockfile updates, and whole-project lint or annotation campaigns. Use the established environment without silently upgrading it.
  • Type annotations describe contracts to tools; they do not validate untrusted runtime values. Successful imports or static checks are also not proof of correct state transitions.

Workflow

  1. Fix the boundary to implement. Establish expected inputs, outputs, mutation, errors, and effects. Read data-and-api.md for callable, data-model, compatibility, or source-language-port changes. Characterize material existing behavior before replacing it.
  2. Select the actual interpreter and checks. Read environment-and-verification.md for environment, packaging, imports, and supported-version evidence. Use repository tasks and distinguish pre-existing failures from the candidate's effects.
  3. Implement the smallest useful change. Reuse the project's types, libraries, and error model. Add explicit validation at real input boundaries when required; preserve accepted values, exception categories, laziness, and object identity where callers rely on them.
  4. Close resource and task lifetimes. For asynchronous work, bots, workers, blocking integrations, or acquired resources, read async-and-resources.md. Connect cancellation, failure, retries, and shutdown to the state they must leave behind.
  5. Challenge observable behavior. Test deciding inputs and failure paths using controlled dependencies, temporary data, and deterministic synchronization. For ports, compare both implementations on the accepted domain and keep unsupported or unobserved cases explicit.
  6. Check the final artifact and report. Run the scoped available tests and existing lint/type tasks, inspect changed packaging/import behavior and the final diff, and distinguish source-tree success from installed-artifact or service execution. State missing interpreter/platform/service evidence plainly.

Handoffs and interaction boundaries

review-and-refactor-code owns review findings and behavior-preserving structural refactors. debugging-investigator establishes unexplained causes; codebase-evolution-controller owns interpreter/framework upgrades and staged service replacement; security-review owns security-first trust-boundary assessment; optimize-codebase-performance owns measured bottlenecks. A broader product builder may hand over a bounded Python backend/helper stage. verification-and-release retains the integrated release decision. These are handoffs when needed, not a required chain for a small module change.

Failure handling

If the intended interpreter or dependencies are unavailable, separate static inspection and executable evidence; do not alter project requirements to fit the host. If callers disagree about an exception, input domain, or async boundary, resolve the contract before dependent changes. Keep raw evidence of failed imports or tests and change the hypothesis before retrying an identical failure.

Stop conditions

Finish when the scoped Python behavior is present, affected consumer contracts are preserved or deliberately changed within scope, and the final checks have observed outcomes and named gaps. Stop before unsupported environment mutation, an unapproved public behavior change, external side effects, or service rollout. A local pass does not establish every supported interpreter or deployed environment.

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.