programming-python

programming-python is a skill for Claude Code from wahidyankf/ose-public. It costs 49 tokens per session (939 once invoked), scanned A, original, MIT.

A Python development guide for applying a project's Python rules while changing code. It covers strict type checking, path values, test boundaries, data shapes, failures, and asynchronous code.

In plain words
What is it for?
Use it when adding or changing Python functions, filesystem work, validation, or asynchronous code. It helps run the type checker, linter, formatter, and unit tests with coverage.
Why use it?
It reduces errors hidden by missing type annotations, unchecked paths, weak input handling, or tests that cover the wrong boundary. It also makes existing checks run before changes are trusted.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding or changing Python functions, filesystem work, validation, or asynchronous code. It helps run the type checker, linter, formatter, and unit tests with coverage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wahidyankf/ose-public/programming-python
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wahidyankf/ose-public --skill programming-python
Clone the repo
git clone --depth 1 https://github.com/wahidyankf/ose-public

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for programming-python

README.md
[![agentmods](https://agentmods.dev/badge/skills/wahidyankf/ose-public/programming-python/github.svg)](https://agentmods.dev/skills/wahidyankf/ose-public/programming-python)
Your own site
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/programming-python"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/programming-python/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for programming-python

Your own site · 80×15
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/programming-python"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/programming-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00049 $0.00939
Opus 5.5 $0.00020 $0.00376
Sonnet 5.5 $0.00010 $0.00188
Haiku 4.5 $0.00005 $0.00094

Measured 2d ago against content hash e68bb3fd8c8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

programming-python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/programming-python/SKILL.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Python Programming

Every Python rule is owned by Python Standards. Test-Driven Development and Test Boundaries and Gates govern tests and gates, Red, Green, Refactor runs each cycle, and Developing Applications carries the judgement on layers, errors, logs, and input that holds in every language. This skill adds only the procedure and judgement of applying them in Python. Where a sentence here seems to state a rule, the standard decides.

Start From What the Project Records

Read the Pyright configuration, the linter's rule selection, and the recorded choices for boundary validation and expected failures. Run Pyright, the linter, the formatter check, and the unit tests with coverage on the untouched tree. A gate already failing is handled under Preexisting Error Resolution. A path left outside strict mode without a stated reason is a finding to raise, not a place to add code.

Make the Type Checker Mean Something

Annotate a function's signature before writing its body. When Pyright rejects a change, fix the code; the standard lists what counts as a waiver, and reaching for one means the design needs attention.

While writing, you meet Ask
a value whose shape is not known yet can it be object, narrowed, or a Protocol?
a library returning unknown types does a stub exist, or should one be written?
parsed input with an annotation on it where is the check that makes the annotation true?
a string that names a file should it have become a pathlib.Path where it came in?
a function returning one of two unrelated types should it be two functions, or return one shape?

Read the full file on GitHub · 73 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 73 lines · 49 tokens per session scan A e68bb3fd8c8c

Subscribe to this mod's changes

programming-python is a skill published in the GitHub repository wahidyankf/ose-public (12 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 939 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.

Related

Other skills, from other repositories

typescript

TypeScript strict mode with eslint and jest.

alinaqi/maggy · 10 tokens

extending-personhog-test-harness

When and how to add scenarios, chaos events, and invariants to the personhog e2e test harness (rust/personhog-test-harness). Use after fixing a bug or regression in the personhog leader path (leader, router, writer, replica, coordination protocol) so the fix gets a permanent regression scenario; when adding a new…

PostHog/posthog · 134 tokens

setup-web-tests

Set up Python test environment in Claude Code for web where flox is unavailable. Use when you need to run backend tests and uv sync fails due to Python version mismatch.

PostHog/posthog · 40 tokens

swarmauri-add-community-standalone

Add a second-class standalone Swarmauri package under pkgs/community. Use when Codex needs community package scaffolding, workspace membership, pyproject metadata, README branding, entry points, second-class citizenship rows, exports, tests, and validation.

swarmauri/swarmauri-sdk · 59 tokens

modern-tooling

Opinionated tooling and conventions for modern JavaScript/TypeScript projects. Use when setting up new projects, configuring ESLint/Prettier, monorepos, library publishing, or establishing coding standards.

XSpoonAi/spoon-awesome-skill · 45 tokens

V3 Core Implementation

Core module implementation for claude-flow v3. Implements DDD domains, clean architecture patterns, dependency injection, and modular TypeScript codebase with comprehensive testing.

ruvnet/RuView · 37 tokens