Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
siviter-xyz avatar

Python

  • 329 installs
  • 20 repo stars
  • Updated March 21, 2026
  • siviter-xyz/dot-agent

python is a dot-agent skill that guides AI coding agents through Python development tasks for developers who need structured help writing scripts, modules, and backend code.

About

python is an agent skill published in the siviter-xyz/dot-agent repository that steers Claude Code, Cursor, and compatible assistants toward idiomatic Python development workflows. The skill activates when agents encounter Python-specific tasks such as writing modules, refactoring functions, debugging tracebacks, or scaffolding backend scripts without switching to generic language-agnostic prompts. Because dot-agent packages domain skills as installable SKILL.md instructions, python injects Python conventions, standard library usage patterns, and project-context awareness into agent turns during build work. Developers reach for python when an agent session needs explicit Python guidance—virtual environment assumptions, typing hints, package layout, or test-friendly module structure—rather than ad hoc generic coding advice. The skill complements other dot-agent language and framework skills and fits early-through-mid implementation phases where Python source files, requirements manifests, and CLI entry points are being created or modified.

  • python

Python by the numbers

  • 329 all-time installs (skills.sh)
  • +3 installs in the week ending Jul 27, 2026 (Skillselion tracking)
  • Ranked #1,231 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Jul 27, 2026 (Skillselion catalog sync)
npx skills add https://github.com/siviter-xyz/dot-agent --skill python

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs329
repo stars20
Last updatedMarch 21, 2026
Repositorysiviter-xyz/dot-agent

How do agents follow Python project conventions?

Use python for development tasks

Who is it for?

Developers using dot-agent who want agent sessions scoped to Python scripting, module design, and backend implementation instead of generic multi-language prompts.

Skip if: Teams needing deep framework-specific skills such as Django or FastAPI when those dedicated dot-agent skills exist, or non-Python language work.

When should I use this skill?

User asks the agent to write Python code, fix Python errors, refactor Python modules, or follow Python project conventions in a dot-agent workspace.

What you get

Python source files, refactored modules, and agent-guided fixes aligned with dot-agent Python development patterns.

  • Python source modules
  • Refactored Python functions
  • Agent-guided traceback fixes

Files

SKILL.mdMarkdownGitHub ↗

Python Guidelines

Standards and best practices for Python development. Follow these guidelines when writing or modifying Python code.

Design Principles

Apply DRY, KISS, and SOLID consistently. Prefer functional methods where relevant; use classes for stateful behavior. Use composition with Protocol classes for interfaces rather than inheritance. Each module should have a single responsibility. Use dependency injection for class dependencies.

Code Style

  • Naming: Descriptive yet concise names for variables, methods, and classes
  • Documentation: Docstrings for all classes, functions, enums, enum values
  • Type hints: Use consistently; avoid Any unless necessary
  • Imports: Avoid barrel exports in __init__.py; prefer blank files

Type Annotations

  • Use dict, list instead of typing.Dict, typing.List
  • Use str | None instead of Optional[str]
  • Include from __future__ import annotations at top of files with type hints
  • Prefer built-in types over typing module equivalents

Architecture

Dependency Injection

  • Always inject dependencies via constructors or methods when using classes
  • One service class per module (interface and class models allowed in addition)
  • Use Protocol classes to define interfaces for dependency injection and testing

Module Organization

  • Each module focuses on one concern with clear boundaries
  • Extract reusable methods to avoid duplication
  • Design for reusability across contexts

Environment Variables

  • Use an environment.py file with individual methods per variable (e.g., api_key() for API_KEY, database_url() for DATABASE_URL)
  • Co-locate all environment access in one place per package for easier mocking in tests

Data Models

  • Use Pydantic v2 for schemas, validation, and data models
  • Leverage Pydantic's type validation, serialization, and configuration management
  • Use Pydantic models for API request/response schemas, configuration objects, and data transfer objects

Testing

Structure

  • Tests mirror src/ directory structure
  • Test methods start with test_
  • Use test class suites: for def foo() create class TestFoo
  • Keep names concise, omit class suite name from method
  • Always check for appropriate unit tests when changing code

Quality

  • Use AAA (Arrange, Act, Assert) pattern
  • Tests should be useful, readable, concise, maintainable
  • Avoid tests that create massive diffs or become burdensome

Tools

  • Prefer pytest over unittest
  • Use pytest-mock for mocking
  • Use conftest.py for shared fixtures
  • Use tests/__test_<package_name>__ for shared testing code

Implementation

When implementing Python code:

  • Ensure code passes type checking and tests before committing
  • Group related changes with tests in atomic commits
  • Check for existing workflow patterns (spec-first, TDD, etc.) and follow them

References

  • For adhoc Python scripts in uv-managed projects, see references/uv-scripts.md.
  • For monorepo-specific patterns using uv and Hatch, see references/uv-monorepo.md.

Related skills

FAQ

What does the python dot-agent skill do?

The python skill from siviter-xyz/dot-agent instructs AI coding agents to handle Python development tasks including writing modules, refactoring functions, and resolving tracebacks using Python-specific conventions instead of generic coding guidance.

When should I enable the python skill?

Enable the python skill when your agent session focuses on Python source files, backend scripts, or package layout in a dot-agent workspace and you want turns constrained to Python idioms and project structure.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.