/odin-python:typing-exclusion-workerfrom ODIN Python
Removes modules from pyproject.toml mypy exclusions and fixes surfaced typing issues. Runs a typing-debt worker batch within an ownership boundary.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | User asks to remove modules from pyproject.toml mypy exclusions or to run one typing-debt worker batch. |
| Authority | Reversible local: write only the pyproject.toml mypy exclusion entries for assigned modules and source or test files inside the assigned ownership boundary. Rollback restores file contents from a content-complete baseline recorded before the first edit. |
| Side effect | Removes assigned module entries from the mypy exclusion override and fixes the typing issues those exclusions surface. No cross-team modules, no unrelated files, no dependency or config changes beyond the exclusion list. |
| Done | Every assigned module is removed from the exclusion list and a batch summary reports removed modules, changed files, key fixes, and passing targeted mypy, targeted tests, and pre-commit on changed files. |
Required before any edit:
Optional: customized validation commands; when absent, use the defaults in Procedure.
If any required input is missing or ambiguous, ask before editing.
Record a content-complete baseline before editing. Save the full contents of every file the batch may touch: pyproject.toml plus every source and test file inside the ownership boundary. Use a temporary commit, a stash, or an in-memory content snapshot. Then confirm prerequisites: mypy, pre-commit, and pytest run in this repo, and every assigned module name appears in the mypy exclusion override in pyproject.toml. Done when: the content baseline is recorded and every assigned module is confirmed excluded.
Remove only the assigned module entries from the mypy exclusion override in pyproject.toml; leave every other entry byte-identical. Done when: only the assigned entries are removed and all other entries are unchanged.
Run mypy on the assigned scope, targeted paths first. Fix each surfaced error with explicit typing in scope: isinstance narrowing before attribute access on unions, accurate return types, typed class attributes, signature-compatible method overrides, and relation-aware attribute access where stubs omit raw id fields. Never add a blanket # type: ignore; when a narrow ignore is unavoidable, write # type: ignore[code] with a one-line reason and record it for the summary. Done when: targeted mypy passes on the assigned scope.
Run targeted pytest over the modules touched in step 3 and fix regressions in scope. Then run pre-commit run --files <changed files>; if hooks auto-fix files, rerun until clean. Done when: targeted pytest passes on the touched modules and pre-commit passes clean on changed files.
Prove isolation by diffing file contents against the content baseline: for every file in the baseline, compare its current contents to the saved baseline contents. A file that changed must be either pyproject.toml or a source or test file inside the ownership boundary. A file whose pre-batch contents differed from the baseline (a pre-existing user edit) must still differ by exactly the same lines plus the batch's changes. Then emit the batch summary in the exact structure under Output. Done when: isolation is proven by content diff and the summary is emitted with every field filled from measured results.
Stop and report rather than widening scope if a fix requires changes in another team or domain, the exclusion entries conflict irreconcilably in pyproject.toml, or the error volume makes the batch too large and calls for a split.
pyproject.toml: revert only the exclusion edit and return blocked with the conflicting entries.Partial-result rule: the batch is either complete per the Done contract or fully reverted to the content baseline. Never report a worktree as done when some assigned modules remain excluded or checks fail. A smaller batch for the remainder may appear in the blocked reason, but must not run without a new assigned module list.
A batch summary with sections in order: branch or worktree and ownership, modules removed from exclusion, files changed, key typing fixes, validation (mypy, pre-commit, pytest pass or fail with scope), and notes (remaining blockers, new ignore entries).
Terminal classification: complete when the Done contract holds; otherwise blocked with the named failure class and the recovery taken. Both carry the batch summary; a blocked result never claims passing checks.
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./modern-pythonUse when creating or migrating a Python project or script to uv, Ruff, ty, and pytest. Not for pushing to a remote or publishing: use new-branch-and-pr for that.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-pythonOther plugins' skills for the same job