Skip to content
Agentmart
Submit a tool

python-standard

Python implementation rules for module layout, typing posture, validation boundaries, errors, and logging.

Skill by iamthenop

IndexedMIT
Write a review

Chalk Labs

Need help deploying python-standard?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/iamthenop-python-standard

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Python implementation rules for module layout, typing posture, validation boundaries, errors, and logging. Use when changing Python source, tests, packaging, runtime behaviour, scripts, or daemons. Companion skills govern value types (type-discipline), build and dependencies (bazel-discipline), and docstrings (doc-comment-tags).

Use cases: documents

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/python-standard

What's inside

Skill name
python-standard
Description
Python implementation rules for module layout, typing posture, validation boundaries, errors, and logging. Use when changing Python source, tests, packaging, runtime behaviour, scripts, or daemons. Companion skills govern value types (type-discipline), build and dependencies (bazel-discipline), and docstrings (doc-comment-tags).
License
MIT
Compatibility
Requires Python 3, Bazel build system, and Pydantic.
Metadata
skill-type: standard · infurnet-compat: python,bazel,pydantic · skill-dependency: type-discipline,doc-comment-tags,bazel-discipline,deploy-standard
Instructions
119 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Python standard

Python-specific implementation rules. Universal rules live in their own
skills: load-bearing value types in `type-discipline`; dependencies,
visibility, heavy-dependency isolation, and test targets in
`bazel-discipline`; documentation comments in `doc-comment-tags`.

## Module layout

* Runtime logic lives in a flattened module structure mapped directly to
  build targets. Do not invent nested folder configurations that recreate
  arbitrary directory depth.
* The module operates as an independent processing engine communicating via
  strict data contracts only.

## Imports

* Use absolute imports relative to the workspace roots.
* Do not hide boundary violations behind local imports.

## Typing

* Annotate new and touched code completely; static typing is fully explicit.
* Value-class rules (UUID, enums, UTC datetimes, fixed-width bytes,
  `pathlib.Path`, `decimal.Decimal`, parse-once boundaries) are in
  `type-discipline`.

## Validation and serialization

* Use Pydantic at validation and serialization boundaries only — parsing
  incoming contracts, structuring outgoing artifacts.
* After validation, prefer dataclasses, frozen value objects, enums, and plain
  deterministic functions for internal execution logic.

## Errors

See `error-handling`. Python-specific addition: do not use `assert` outside
test targets.

## Logging

Use lazy logging interpolation to preserve performance and prevent evaluation
leaks.

Good:

```python
logger.info("executed classification model for artifact %s", artifact_id)
```

Bad:

```python
logger.info(f"executed classification model for artifact {artifact_id}")
```

Do not log raw private data, sensitive identification features, or unredacted
payloads under any logging level.

## Tests

* Run tests through the build system with unit and integration tiers as
  separate targets (see `bazel-discipline`).
* Use focused tests for changed behaviour. Do not weaken tests to force a
  green CI build.
* Do not import from code located within `tests/` directories outside actual
  test execution paths.
* Container-backed tests consume canonical deployment fixtures (see
  `deploy-standard`).

## Documentation comments

Docstrings with Javadoc-style structure and the project tag system; `@raises`
for errors. See `doc-comment-tags` for the tag vocabulary and examples.

## Naming

The shortest unambiguous name wins. A longer name must justify its length
against a specific collision in scope; no justification available means the
name is wrong.

Exhaust common words before coining compounds: `write`, `run`, `load`,
`save`, `check`, `send`. A compound earns its second word only when a
common word collides with something else already in scope.

Private method names over 20 characters require justification. If no
shorter unambiguous name exists, record the rationale in the pull-request
body. If none can be written, the name is wrong.

Do not encode prose, causal clauses, or contrast phrases in identifiers.
The linter declared in the repository's build bindings enforces this; it
runs locally before commits reach review.

## Module creation

Extend an existing module before creating a new one. A new module
requires an explicit grant in the workorder naming:

* the new module;
* its owning package per the repository's bindings;
* its boundary — what it owns and what it does not.

Creating a module to house a function that belongs in an existing module
is unauthorized scope expansion regardless of any other implementation
grant. If the correct module is unclear from the repository's package
ownership bindings, stop and report — do not create, do not guess.

## Linter

A linter enforcing naming, import, and typing rules runs locally before
commits reach review. The specific tool is declared in the repository's
build bindings. Running it is not optional at push time.

## Final rule

Make Python boring. Boring code can be reviewed, and hermetic targets enforce
the architecture.

From iamthenop/infurnet-skills, MIT.

More from iamthenop/infurnet-skills

Signals

Stars
0
Forks
0
Open issues
5
Last commit (this folder)
Aug 30, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from iamthenop

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get python-standard running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying python-standard?

CallGet help
Cite this page

python-standard skill. Agent Mart. https://agentmart.dev/skills/iamthenop-python-standard (last updated 2026-10-24)