implement-py

Plan and implement Python code changes with ruff, pyright, and pytest validation.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/tachiiri-org/agent-ops --skill implement-py
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-py
Source: https://github.com/tachiiri-org/agent-ops/tree/main/.codex/skills/implement-py
Command: npx skills add https://github.com/tachiiri-org/agent-ops --skill implement-py

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of implementing Python code changes by integrating automated validation steps, ensuring code quality and correctness before committing.

Core Features & Use Cases

  • Automated Planning: Helps define the minimal change set and expected behavior before coding.
  • Test-Driven Development: Encourages writing or updating tests first for behavioral changes.
  • Integrated Validation: Automatically formats, lints, typechecks, and unit tests Python code.
  • Use Case: When fixing a bug in a Python application, this Skill will guide you to write a test for the bug, implement the fix, and then run all checks to ensure the fix works and doesn't break anything else.

Quick Start

Use the implement-py skill to refactor the utils.py file.

Frequently Asked Questions about implement-py

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Python code validation before committing changes?

Automate Python code validation by integrating formatting, linting, type checking, and unit testing directly into your development workflow. This ensures code correctness and quality before commit.

What is the best way to refactor Python code safely?

The best way to refactor Python code safely is to define the minimal change set, update tests first, and run integrated validation tools like ruff and pyright. This ensures the refactoring maintains expected behavior.

How do I implement test-driven development for Python bug fixes?

Implement test-driven development by writing or updating a test for the bug first, then modifying the Python code to fix the issue. Run unit tests with pytest to verify the fix works without breaking existing functionality.

Can I use ruff and pyright together for Python type checking and linting?

Yes, you can use ruff and pyright together to format, lint, and type check Python code simultaneously. Running both tools ensures adherence to quality standards and catches static errors before execution.

How do I plan minimal code changes for a Python application feature?

Plan minimal code changes by defining the expected behavior and identifying the smallest modification set required. This automated planning step streamlines the implementation process and reduces unnecessary code alterations.

Why should I run pytest before committing Python code?

Running pytest before committing Python code ensures that all unit tests pass and new changes do not break existing functionality. Integrated validation prevents behavioral regressions and maintains application stability.