python-conventions

A set of Python coding conventions based on PEP 8, the standard guide for making Python code readable and consistent. It covers naming, formatting, imports, and project structure.

In plain words
What is it for?
Load it before implementing or reviewing features in Python projects that use pyproject.toml or requirements.txt.
Why use it?
It removes uncertainty about how Python code and project files should be organized. Consistent rules make code easier to review and maintain.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/nicogenti/opencode-orchestrator-kit/python-conventions
Any agent
npx skills add NicoGenti/opencode-orchestrator-kit --skill python-conventions
Clone the repo
git clone --depth 1 https://github.com/NicoGenti/opencode-orchestrator-kit

Made for: Claude Code, Codex.

Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 433 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.00433
Opus 5 $0.00016 $0.00217
Sonnet 5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00043

Measured 2d ago against content hash 42768a99ba81, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-conventions 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.

skills/python-conventions/SKILL.md · 41 lines

What it actually says

Python Conventions

Based on PEP 8, the official Python style guide [web:74].

Naming

  • lower_case_with_underscores for functions and variables [web:87].
  • CapitalizedWords (PascalCase) for classes [web:87].
  • UPPERCASE_WITH_UNDERSCORES for constants [web:87].
  • Always use self as the first argument of instance methods [web:84].

Formatting

  • 4 spaces per indentation level; never mix tabs and spaces [web:74][web:84].
  • Limit lines to 79 characters for code, 72 for docstrings/comments — relax this ceiling only if the project's linter config already does (e.g., Black's 88-char default) [web:74].
  • Two blank lines around top-level functions and classes; one blank line between methods inside a class [web:74].
  • One space around operators; no space immediately inside parentheses/brackets [web:87].
  • Pick one quote style (single or double) and use it consistently across the codebase [web:87].

Imports

  • Order: standard library, then third-party, then local application imports, each group separated by a blank line [web:87][web:84].
  • Prefer one import per line; use explicit from module import name only when it improves clarity.

Structure

  • Use type hints on public function signatures.
  • Use docstrings for modules, classes, and public functions describing purpose, not implementation.
  • Keep functions focused; if a function mixes multiple responsibilities, split it.

When Reviewing

Flag mixed tabs/spaces, inconsistent quote style, and missing type hints on public APIs ahead of line-length nits if the project has its own formatter (Black/Ruff) already configured — defer to that tool's config over strict PEP 8 line length.

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 · 41 lines · 32 tokens per session scan A 42768a99ba81

Subscribe to this mod's changes

python-conventions is a skill published in the GitHub repository NicoGenti/opencode-orchestrator-kit (5 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 433 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

cao-workflow

Author and run CAO Python workflow scripts — multi-step, parameterized, fan-out orchestrations executed by cao workflow run. Use when the user wants a repeatable multi-step job (e.g. data analysis over many files, a review pipeline, a parameterized batch). Authoring ends at a validated script file; running it is a…

awslabs/cli-agent-orchestrator · 79 tokens

aidlc-portfolio

Coordinate multiple AI-DLC workflows across repositories and Git worktrees using an evidence-backed portfolio catalog and deterministic workspace tooling. Use when initializing an AI-DLC portfolio workspace, discovering organization or business context, registering projects and dependencies, creating child intents and…

awslabs/cli-agent-orchestrator · 74 tokens

cao-plugin

Create a new CAO (CLI Agent Orchestrator) plugin. Use this skill whenever the user wants to add a plugin that reacts to CAO lifecycle or messaging events, scaffold a plugin package, understand plugin requirements, or integrate an external system (Discord, Slack, dashboards, logging, metrics) with CAO. Also use when…

awslabs/cli-agent-orchestrator · 96 tokens

agui-author

Author live dashboard UI from an agent via the emitui MCP tool. Emit one of six allow-listed components (approvalcard, choiceprompt, diffsummary, progress, metric, agentcard) with JSON props and it renders in any AG-UI client watching the fleet. Use when you want the operator to see a decision, a diff, or a status…

awslabs/cli-agent-orchestrator · 93 tokens

cao-mcp-apps

Enable, operate, and extend CAO's MCP Apps surface — the host-rendered fleet dashboard visible inside MCP App hosts (Claude Desktop, ChatGPT, VS Code Copilot, Goose, Postman). Use when the user says "enable MCP Apps in CAO", "the ui://cao views aren't rendering", "rebuild MCP Apps bundles", "add a new ui://cao/ view"…

awslabs/cli-agent-orchestrator · 137 tokens

cao-provider

Create a new CLI agent provider for CAO (CLI Agent Orchestrator). Use this skill whenever the user wants to add support for a new CLI-based AI agent (e.g., a new coding assistant CLI), integrate a new provider, or scaffold a provider implementation. Also use when the user asks about the provider architecture, what…

awslabs/cli-agent-orchestrator · 81 tokens