omk-python-typing

Enforce Python type hints and generate a typing and testing fix plan.

130|14|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/dmae97/oh-my-kimi --skill omk-python-typing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: omk-python-typing
Source: https://github.com/dmae97/oh-my-kimi/tree/main/templates/skills/agents/omk-python-typing
Command: npx skills add https://github.com/dmae97/oh-my-kimi --skill omk-python-typing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you reduce runtime surprises in Python by enforcing consistent type hints and alignment between static analysis and your test coverage.

Core Features & Use Cases

It standardizes Python typed development with rules for public APIs, safer filesystem path handling, and structured data modeling via dataclasses or Pydantic. It also guides a consistent tooling workflow using ruff, format, pyright, pytest, and uv to catch issues early and keep codebases maintainable. Use it when refactoring a module, reviewing a pull request, or bootstrapping a new repository so that type correctness, style, and tests reinforce each other.

Quick Start

Use the Skill to produce a typing and testing fix plan for your repository with ruff, pyright, and pytest based on the current code state.

Frequently Asked Questions about omk-python-typing

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

FAQPage Schema
How do I enforce Python type hints across a project using pyright and ruff?

Enforce Python type hints by applying static analysis with pyright and ruff to standardize public APIs, prefer pathlib Path, and avoid mutable defaults. This generates a fix plan for typing issues, runtime risks, and test gaps.

What is the best way to align static analysis with pytest coverage for Python type checking?

Align static analysis with pytest by enforcing typed development standards that separate IO from business logic. This identifies test gaps and runtime risks, producing a comprehensive typing and testing fix plan for your repository.

How do I set up a new Python repository with type hints and structured data models?

Set up a new Python repository by applying standards for type hints and structured modeling via dataclasses or Pydantic. This workflow uses ruff, pyright, pytest, and uv to catch issues early and maintain codebase quality.

Can I use this to review pull requests for Python typing issues and runtime risks?

You can review pull requests by checking for type hints on public functions and proper pathlib Path usage. The review separates IO from business logic and generates a fix plan for typing issues and runtime risks.

Why avoid mutable defaults and separate IO from business logic in Python type checking?

Avoid mutable defaults and separate IO from business logic to prevent type-related defects and maintainability drift. This practice ensures runtime safety and aligns your code with strict static analysis standards.