python-development

python-development is a skill for Claude Code, Codex from jxoesneon/Ciel. It costs 17 tokens per session (519 once invoked), scanned A, original, Apache-2.0.

A guide to writing modern, readable Python with type hints, structured resource handling, runtime validation, and pytest-based tests.

In plain words
What is it for?
It is for implementing typed Python functions, managing files and other resources safely, validating data with Pydantic, and writing pytest tests with fixtures and mocks.
Why use it?
It gives Python projects consistent patterns for error handling, data modeling, input validation, and testing code before it is relied on.

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/jxoesneon/ciel/python-development
Any agent
npx skills add jxoesneon/Ciel --skill python-development
Clone the repo
git clone --depth 1 https://github.com/jxoesneon/Ciel

Made for: Claude Code, Codex.

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-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/jxoesneon/ciel/python-development.svg)](https://agentmods.dev/skills/jxoesneon/ciel/python-development)
Your own site
<a href="https://agentmods.dev/skills/jxoesneon/ciel/python-development"><img src="https://agentmods.dev/badge/skills/jxoesneon/ciel/python-development.svg" alt="Measured on agentmods" 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 519 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.00017 $0.00519
Opus 5 $0.00009 $0.00260
Sonnet 5 $0.00003 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured yesterday against content hash 9e55fccb2003, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

python-development 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 yesterday.

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-development/SKILL.md · 51 lines

What it actually says

CIEL ADAPTATION: Python Development (Idiomatic & Typed)

This skill formalizes the "Modern Python" layer. it prioritizes readability (Zen of Python), explicit type hints, and EAFP error handling.

Idiomatic Standards

  1. Zen Compliance: Readability over cleverness. Explicit over implicit.
  2. Type Hints (3.9+): Annotate all public functions using built-in generics (e.g., list[str]).
  3. Error Handling: Follow EAFP (Easier to Ask Forgiveness). Use try/except for expected errors.
  4. Resource Management: ALWAYS use with statements (Context Managers) for I/O.

Modern Patterns

  • Data Containers: Use @dataclass for mutable state and NamedTuple for immutable state.
  • Lazy Eval: Prefer Generator Expressions over large List Comprehensions for memory efficiency.
  • Validation: Use Pydantic (v2) for strict runtime data validation and parsing.

Testing (pytest)

  • TDD: Write failing tests first. 80% coverage target.
  • Fixtures: Use yield fixtures for setup/teardown. Avoid manual cleanup logic in tests.
  • Mocking: Use @patch for external I/O. Prefer autospec=True to catch API misuse.

Anti-Patterns

  • Mutable Defaults: Using def foo(x=[]). Use None and initialize inside the function.
  • Bare Except: Catching all exceptions (except:) instead of specific classes.
  • Clever Comprehensions: Writing 3-line list comprehensions that are unreadable.
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. yesterday First seen · 51 lines · 17 tokens per session scan A 9e55fccb2003

Subscribe to this mod's changes

python-development is a skill published in the GitHub repository jxoesneon/Ciel (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 17 tokens to every session and 519 once invoked, about $0.0001 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-09-03.