/odin-python:modern-pythonfrom ODIN Python
Creates or migrates Python projects to uv, Ruff, ty, and pytest with per-type setup (script, multi-file, package, or migration).
Ships in ODIN Python. 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.
| Field | Bound contract |
|---|---|
| Trigger | User wants to create or migrate a Python project or script to uv, Ruff, ty, pytest, and current packaging conventions. |
| Authority | Reversible local: writes only local project files through init, add, remove, and sync; rollback is version control, and it commits or aborts but never pushes. No remote mutation. |
| Side effect | Local write to Python project metadata, dependency lock, tooling config, and source layout appropriate to the project type. |
| Done | The project uses one coherent modern toolchain and its lint, type, and test checks pass for the detected project type. |
Required: the project root (cwd or explicit path) and the project type (single-file script, multi-file project, reusable package, or migration from existing tooling).
Optional: existing pyproject.toml, requirements.txt, setup.py, setup.cfg, legacy config files, or a request to use the Trail of Bits cookiecutter template.
If the project type is not stated, ask before proceeding. Do not guess.
Detect project type. From user input, classify as: (a) single-file script with dependencies, (b) new multi-file project not for distribution, (c) new reusable package or library, or (d) migration from existing project. Confirm the classification with the user. Done when: exactly one project type is selected and confirmed.
Apply per-type setup. Follow references/project-types.md for the branch matching the detected type. Each branch produces the toolchain files appropriate to that type:
pyproject.toml, no uv.lock, no src/ layout.pyproject.toml, uv.lock, tooling config.pyproject.toml, uv.lock, src/<name>/ layout, Makefile, tooling config.pyproject.toml, uv.lock, tooling config; legacy files removed.
Done when: the branch's setup steps complete and the type-appropriate files exist.Configure toolchain and dependencies. Add dependencies with uv add and dev tools with uv add --group dev. For single-file scripts, dependencies are declared in the PEP 723 inline metadata header and resolved by uv run. Run uv sync for project and package types. Done when: dependencies are configured and the lock or inline metadata is current.
Validate the done predicate with checks appropriate to the project type:
uv run python <script> exits 0; uv run ruff check <script> exits 0.uv run ruff check . exits 0; uv run ty check src/ exits 0; uv run pytest exits 0.make lint exits 0; make test exits 0.Report configured project state. State the project type, the toolchain files produced, the dependency groups, and the validation results. Done when: the report lists every artifact and every validation result.
| Failure class | Partial-result rule | Recovery |
|---|---|---|
| Project type cannot be determined | Stop before any mutation. | Ask the user to specify: single-file script, multi-file project, package, or migration. |
uv init or uv sync fails | Leave pyproject.toml and uv.lock as-is; do not commit. | Inspect stderr. Fix the user-supplied input or dependencies. Re-run. If unrecoverable, stop. |
| Dependency import fails | The uv.lock may be stale. | Run uv sync. Re-run the failing command. |
| Tooling verification fails (lint, type, test) | Leave config and source files mutated; do not mark done. | Fix the reported issue; do not suppress it. |
| Migration leaves legacy files | Leave the project in a partially migrated state; do not mark done. | Remove identified legacy files manually; confirm the user approves before deletion. |
Rollback: git checkout -- . restores pre-mutation state. Do not push partial migrations.
A configured Python project with the toolchain files appropriate to its type, ordered by the procedure steps that produced them. The done predicate holds only when the type-appropriate lint, type, and test checks all exit 0.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/django-perf-reviewUse when reviewing Django performance, N+1 queries, or queryset behavior. Not for authorization or IDOR review: use django-access-review. No source or remote-system changes./typing-exclusion-workerUse when removing modules from pyproject mypy exclusions or running a typing-debt worker batch. Not for cross-team or out-of-scope typing work.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-pythonOther plugins' skills for the same job