/builder:python-code-profrom builder
Write, edit, update, or review Python code to a consistent professional standard: ruff-clean (curated rule set), ruff-formatted, mypy-strict for project code, stdlib-first for one-off scripts. Use whenever creating, editing, updating, or linting .py files.
Ships in builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Produce Python that is correct, readable, and consistently styled: ruff-clean
under the curated rule set in assets/pyproject.toml, ruff-formatted,
mypy-strict for project code, stdlib-first for one-off scripts, with explicit
error handling and no dead weight. Guiding philosophy is the Zen of Python
(PEP 20): clarity and maintainability over cleverness.
pyproject.toml): install the shared
config with scripts/init-config (substitutes __PROJECT_NAME__ /
__SOURCE_DIR__; never overwrites without --force). Conventional
layout is src/<package>/ + tests/ (--src-dir overrides). Full
standard: mypy strict, docstrings, annotations, tests. Lock dependencies
(uv lock) and commit the lockfile for reproducible builds; refresh it
periodically to pick up security fixes.scripts/new-script, which also writes a script-profile pyproject.toml
next to the script (same curated ruff rules with D/ANN/T201 relaxed;
mypy strict except the annotation requirements, mirroring the ANN
relaxation) unless a ruff config is already discoverable in that
directory or its parents, or --no-config is given. Plain
scripts/check then enforces the standard with no flags; --script
remains for ad-hoc checks with no config file. Stdlib is preferred but
not mandatory — if the stdlib can't do the job without reinventing the
wheel, ask the user whether a third-party dependency (e.g. requests,
httpx) is acceptable before adding one.shell-script-pro).from __future__ import annotations;
pathlib.Path over os.path (banned); type hints on all public
functions (project); Google-style docstrings on public modules, classes,
functions (project); logging, not print — libraries never print,
CLIs may (**/cli.py); no f-strings or .format() in log calls (G);
no bare or blind except (BLE) — catch specific exceptions; raise with
intention (EM, TRY — no string-literal messages, no
raise X from None abuse); timezone-aware datetimes (DTZ); modern
syntax for 3.12+ (UP); complexity ≤ 12; no commented-out code (ERA).
Docstrings document parameters, return values, and raised exceptions, with
examples for complex functions. Comments explain why, never what — no
tautological comments, and never leak the prompt or a file overview into
comments. Follow references/naming.md (naming conventions),
references/design.md (function/class design, error handling), and
references/frameworks.md when working inside a framework (its idioms
layer on top of PEP 8).
argparse CLIs with --help; main() -> int + sys.exit(main());
stdout is the script's real output, diagnostics go to stderr via logging.scripts/check (ruff check; --script relaxes
D,ANN,T201). Fix every finding. A noqa is allowed only as
# noqa: RULE # <reason> with a real reason; blanket noqa is banned
(PGH). Never invent a rule code — look it up in the ruff docs.scripts/fmt (ruff check --fix + ruff format),
honoring the project's pyproject.toml. Never hand-format around its
output.scripts/check runs it when
[tool.mypy] is configured and mypy is installed. Fix every error; a
type: ignore needs the specific error code (warn_unused_configs will
flag stale ones).--help and
failure cases (missing args, bad paths).When asked to review (not change) code: run scripts/check on it, walk the
Output Contract as a checklist against the untouched files, and report
findings ordered by severity (correctness/safety first, then typing, then
style), each with a file:line reference and the concrete fix. Do not edit
the files. If the code is vendored third-party, say so and don't apply the
standard to it.
ruff check — lint under the curated rule set (pyproject.toml).ruff format — the formatter; never fight it.ruff rule <CODE> — look up what a rule means before suppressing it.mypy --strict — typecheck for project code.ty — Astral's type checker, in dev deps as a second opinion.pytest (+ pytest-cov, --cov-fail-under=90) — tests.uv — dependency and tool management (uv tool install ruff).uv lock — reproducible builds; commit uv.lock, refresh it to pick up
security fixes.pre-commit — the deterministic gate: assets/pre-commit-config.yaml
runs the same ruff check the skill runs (pre-commit install).assets/pyproject-script.toml — slim config for one-off scripts, written
by scripts/new-script; same ruff select as the project template, D/ANN/T201
relaxed, mypy strict minus annotation requirements.assets/.editorconfig — editor whitespace/indent defaults, installed by
scripts/init-config.assets/pyrightconfig.json — editor-only Pylance/pyright config in strict
mode mirroring mypy strict, installed by scripts/init-config. Not a gate:
if pyright and mypy disagree, mypy wins.scripts/check is clean or every remaining finding
carries an inline, reasoned suppression.scripts/fmt last; never commit hand formatting that
contradicts it.ruff rule / the docs..env out of git. Never log secrets,
tokens, PII, or URLs containing keys. Validate and sanitize external
inputs.with for
resource management. Prefer exceptions over error codes.references/.assets/pre-commit-config.yaml (opens in a new tab)assets/pyproject-script.toml (opens in a new tab)assets/pyproject.toml (opens in a new tab)assets/pyrightconfig.json (opens in a new tab)references/design.md (opens in a new tab)references/frameworks.md (opens in a new tab)references/naming.md (opens in a new tab)references/profiles.md (opens in a new tab)scripts/check (opens in a new tab)scripts/fmt (opens in a new tab)scripts/init-config (opens in a new tab)scripts/new-script (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub thimslugga/agent-plugins --plugin builder43 skills in this plugin
/adrCreate and maintain Architecture Decision Records (ADRs). Use when the user proposes a significant architectural change, records a refactoring decision, resolves a technical debate, or asks to write, update, deprecate, or supersede an ADR./asd-ste100Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy./ast-grepGuide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics./ast-grep-outlineUse when exploring or modifying a codebase and you need a cheap structural map of files, directories, imports, exports, or direct members before reading full source./autoresearch'Autonomous iterative experimentation loop for any programming task. Guides the user through defining goals, measurable metrics, and scope constraints, then runs an autonomous loop of code changes, testing, measuring, and keeping/discarding results. Inspired by Karpathy''s autoresearch. USE FOR: autonomous improvement, iterative optimization, experiment loop, auto research, performance tuning, automated experimentation, hill climbing, try things automatically, optimize code, run experiments, autonomous coding loop. DO NOT USE FOR: one-shot tasks, simple bug fixes, code review, or tasks without a measurable metric.'/browser39Use this skill whenever you need to search the web using browser39's MCP tools. Handles CAPTCHA avoidance via automatic search engine rotation and optimises browsing speed using browser39's content preselection system. Triggers when using browser39_search, browser39_fetch, or any browser39 tool to retrieve web content. Replaces naive single-engine searches with a resilient, token-efficient strategy.