agentleFS
MasriyanMasriyan/gemini-security-skills/python-programming/SKILL.md

python-programming

Skill4 starsChanged 5 months agoMITView on GitHub

Python engineering skill for implementing, debugging, testing, packaging, typing, reviewing, and refactoring Python applications, scripts, APIs, automation, data processing, CLIs, and libraries. Use for .py files, pyproject.toml, requirements files, pytest, async Python, type hints, packaging, dependency management, and Python performance or reliability work.

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    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:

    Prefer clear data flow, explicit exceptions, typed public boundaries, and narrow dependencies.

    line 11
  2. Distinctive:

    Do not rewrite large modules when a targeted patch will solve the issue.

    line 12
  3. Distinctive:

    Add or update focused tests with deterministic fixtures and no hidden network dependency.

    line 20
  4. Very specific:

    Run formatting/type/test commands that exist in the repo and report any skipped verification.

    line 21
  5. Very specific:

    Use pathlib, context managers, and structured logging where they improve clarity.

    line 25
  6. Distinctive:

    Prefer dependency injection for external services and filesystem access in testable code.

    line 26
  7. Very specific:

    Use asyncio deliberately; avoid mixing blocking I/O into async flows without an executor.

    line 27
  8. Distinctive:

    Keep exception handling specific.

    line 28
  9. Distinctive:

    Treat security-sensitive parsing, subprocess, deserialization, and templating as high-risk code.

    line 29

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “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 Programming

Operating Rules

  • Inspect project metadata, dependency manager, test framework, and style before editing.
  • Prefer clear data flow, explicit exceptions, typed public boundaries, and narrow dependencies.
  • Do not rewrite large modules when a targeted patch will solve the issue.
  • Preserve user-visible behavior unless the task explicitly asks for a behavior change.

Workflow

  1. Identify runtime version, package layout, entry points, and tests.
  2. Reproduce or reason about the issue with the smallest relevant command.
  3. Implement the change using idiomatic Python and existing project conventions.
  4. Add or update focused tests with deterministic fixtures and no hidden network dependency.
  5. Run formatting/type/test commands that exist in the repo and report any skipped verification.

Python Standards

  • Use pathlib, context managers, and structured logging where they improve clarity.
  • Prefer dependency injection for external services and filesystem access in testable code.
  • Use asyncio deliberately; avoid mixing blocking I/O into async flows without an executor.
  • Keep exception handling specific; do not swallow errors unless the fallback is intentional.
  • Treat security-sensitive parsing, subprocess, deserialization, and templating as high-risk code.

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.