agentleFS
yaron4uyaron4u/pi-android-re/skills/python-scripting/SKILL.md

python-scripting

Skill12 starsChanged 7 months agoApache-2.0View on GitHub

Build production-quality Python scripts with strict standards for typing, testing, tooling, architecture, and review hygiene.

3 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

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create high-quality Python scripts and small Python utilities with strict engineering discipline.

    line 8
  2. Distinctive:

    Always load these before implementation:

    line 12
  3. Distinctive:

    If templates are needed, load:

    line 20
  4. Very specific:

    Add tests using pytest patterns and fixtures.

    line 32
  5. Distinctive:

    Run quality gates mentally (ruff, mypy, tests, coverage).

    line 34
  6. Distinctive:

    Use Context7 MCP to verify third-party library APIs before coding.

    line 48
  7. Distinctive:

    Use web search/scrape if behavior is uncertain or version-sensitive.

    line 49
  8. Distinctive:

    When asked to create scripts/projects, produce:

    line 54
  9. Very specific:

    Run commands (ruff, mypy, pytest, coverage)

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Scripting Skill

Create high-quality Python scripts and small Python utilities with strict engineering discipline.

Required Reference Loading

Always load these before implementation:

  1. references/coding-standards.md
  2. references/testing-standards.md
  3. references/tooling.md
  4. references/architecture-patterns.md
  5. references/code-review-checklist.md

If templates are needed, load:

  • templates/module-template.py
  • templates/cli-template.py
  • templates/pyproject-template.toml

Execution Workflow

  1. Clarify intent: module, CLI, automation script, or mini package.
  2. Pick layout from architecture-patterns.md.
  3. Generate code from the matching template.
  4. Enforce coding rules (typing, docstrings, error handling, logging).
  5. Add tests using pytest patterns and fixtures.
  6. Configure tooling from tooling.md in pyproject.toml and hooks.
  7. Run quality gates mentally (ruff, mypy, tests, coverage).
  8. Output only ready-to-run files/commands.

Quality Bar (Non-Negotiable)

  • Full type hints.
  • No bare except.
  • Structured logging, no stray prints in libraries.
  • Deterministic tests with fixtures.
  • Coverage gate enabled.
  • Lint + type-check clean.

Tooling & Accuracy

  • Use Context7 MCP to verify third-party library APIs before coding.
  • Use web search/scrape if behavior is uncertain or version-sensitive.
  • Never guess signatures.

Output Contract

When asked to create scripts/projects, produce:

  1. File tree
  2. Complete file contents
  3. Test files
  4. Tooling config (pyproject.toml, hooks when relevant)
  5. Run commands (ruff, mypy, pytest, coverage)

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.