python-foundational

python-foundational is a skill for Claude Code from Peter-N91/hve-squad-mcp. It costs 17 tokens per session (1,236 once invoked), scanned A, a copy of python-foundational, MIT.

A set of foundational coding standards for Python, a programming language. It covers naming, imports, common Python patterns, resource handling, data holders, paths, and time values.

In plain words
What is it for?
Use it when writing or reviewing Python files, especially naming, imports, context managers, data structures, and filesystem code.
Why use it?
It gives Python changes a consistent baseline for readability, correctness, and safe handling of files, connections, and dates.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when writing or reviewing Python files, especially naming, imports, context managers, data structures, and filesystem code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peter-n91/hve-squad-mcp/python-foundational
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 Peter-N91/hve-squad-mcp --skill python-foundational
Clone the repo
git clone --depth 1 https://github.com/Peter-N91/hve-squad-mcp

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 python-foundational

README.md
[![agentmods](https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/python-foundational/github.svg)](https://agentmods.dev/skills/peter-n91/hve-squad-mcp/python-foundational)
Your own site
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/python-foundational"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/python-foundational/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 python-foundational

Your own site · 80×15
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/python-foundational"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/python-foundational.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,236 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 89% copy Near-identical to another mod 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.00017 $0.01236
Opus 5.5 $0.00007 $0.00494
Sonnet 5.5 $0.00003 $0.00247
Haiku 4.5 $0.00002 $0.00124

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

Security

Grade A, and why

python-foundational 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 5d 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.

Origin

This is a copy

89% identical to python-foundational — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

host/upstream-runtime/.github/skills/coding-standards/python-foundational/SKILL.md · 111 lines

How it starts

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

Python Foundational Coding Standards Skill

Overview

Foundational Python excellence that every diff must satisfy. This skill is loaded first for any .py change. All higher-order skills build on it.

This content is a skill rather than an instructions file for three reasons: skills are distributed through the CLI plugin and VS Code extension without requiring consumers to copy files into their repo; new language skills can be added without modifying the review agent itself; and skills are loaded on demand, keeping the context window small when the diff contains no Python.

Core Checklist

1. Readability & Style
  • Use Python naming: PascalCase classes, snake_case functions/variables, UPPER_SNAKE_CASE constants, _ private members.
  • Group imports: stdlib → third-party → local (blank line between groups, no trailing whitespace).
2. Pythonic Idioms
  • Prefer comprehensions for simple transforms; use explicit loops for complex logic/side-effects.
  • Always use with for files, locks, DB connections.
  • Prefer dataclass / NamedTuple / Enum for data holders.
  • Use pathlib over os.path; timezone-aware datetime when relevant.
  • Use * keyword-only arguments for multi-optional functions.
  • Never use mutable defaults or global/nonlocal unless strictly required.
3. Function & Class Design
  • Keep functions small and single-responsibility.
  • Add docstrings to all public APIs (follow repo style).
  • Document unavoidable side-effects.
  • Follow codebase’s class-member ordering (if defined).
4. Type Safety Foundations
  • Add type hints to all public APIs, module vars, and class attributes.
  • Use PEP 695 (3.12+) or TypeVar for generics.
  • Avoid Any except in thin wrappers.
5. Error Handling
  • Raise specific exceptions; never bare except: (broad except Exception: only at app boundaries with logging).
  • No silent failures or generic error messages.
  • Provide context, expected state, and guidance in every exception.

Read the full file on GitHub · 111 lines

Files

What ships with it

2 files 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. 5d ago First seen · 111 lines · 17 tokens per session scan A 9b032b9365b5

Subscribe to this mod's changes

python-foundational is a skill published in the GitHub repository Peter-N91/hve-squad-mcp (3 stars, last pushed 2d ago), licensed MIT. It adds 17 tokens to every session and 1,236 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to python-foundational, differing in 0 lines, and is treated as a copy.

Related

python-foundational compared with skills from other repositories

python-foundational next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
python-foundationalPeter-N91/hve-squad-mcpSkill32d agoMITA17Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill59kyesterdayMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill4.2ktodayApache-2.0A34Claude Code, Codex
python-engineering-guidelinesanywhere-labs/Agents-AnywhereSkill3.9kyesterdayApache-2.0A75Codex
future-self-liteTHU-MAIC/OpenMAICSkill45ktodayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill796todayApache-2.0A93Claude Code