python-core

Enforce Python coding standards for typing, docstrings, modules, and exceptions.

Updated May 17, 2026
One-click install
npx skills add https://github.com/cheetah-alo/NegritaOS --skill python-core-cheetah-alo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-core
Source: https://github.com/cheetah-alo/NegritaOS/tree/main/.codex/skills/python-core
Command: npx skills add https://github.com/cheetah-alo/NegritaOS --skill python-core-cheetah-alo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents inconsistent, fragile Python code by enforcing clear standards for structure, documentation, typing, and error handling.

Core Features & Use Cases

  • Type-safe public APIs: Ensures public functions use type hints and promotes predictable interfaces.
  • Documented behavior: Requires docstrings for public classes and functions to improve maintainability and onboarding.
  • Robust module design: Encourages single-responsibility modules and discourages hidden global state for reliability.
  • Clear error handling: Promotes typed exceptions with clear messages and contextual re-raises.

Quick Start

When you are refactoring a Python module, ask the AI to review it against the python-core standards and propose concrete fixes for typing, docstrings, module boundaries, and exception handling.

Frequently Asked Questions about python-core

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

FAQPage Schema
How do I enforce Python coding standards for type hints and docstrings during module refactoring?

Python coding standards are enforced by requiring type hints and docstrings for public APIs. Refactoring modules with these standards ensures predictable interfaces, improves code maintainability, and accelerates team onboarding.

What is the best way to structure Python modules to avoid hidden global state?

The best way to structure Python modules is to apply single-responsibility principles. Avoiding implicit global state during module design prevents fragile code, ensuring reliable execution and clear dependency tracking across backend codebases.

How do I handle Python exceptions with typed errors and contextual re-raises?

Python exception handling should use typed exceptions with clear messages and contextual re-raises. This robust error handling approach clarifies failure origins and preserves stack traces when refactoring scripts or libraries.

Can I apply these type-safe Python module patterns to data analytics codebases?

Yes, these type-safe Python module patterns apply across root, backend, and data analytics codebases. Enforcing typed public APIs and documented behavior ensures consistent code quality regardless of the specific Python project context.

Why does my Python library code lack maintainability and clear module boundaries?

Python library code lacks maintainability when missing clear module boundaries and documentation. Enforcing single-responsibility module structure and requiring docstrings for public classes resolves this fragility by standardizing code design.

When do I need type hints and docstrings for public APIs in Python scripts?

Type hints and docstrings for public APIs in Python scripts are needed when writing or refactoring code for long-term maintainability. Documenting public functions and classes ensures predictable interfaces and robust module design.