Python typing exclusion worker: remove assigned mypy exclusion modules in small scoped batches, fix typing issues, run validation, and produce a structured completion summary. Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.
Written by Sentry and published in getsentry/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
Execute one assigned typing batch safely and predictably:
Before starting, confirm these inputs exist in the task prompt:
If any are missing, ask for them before editing.
pyproject.toml.# type: ignore; if unavoidable, use narrow ignore[code] with a short reason.Apply exclusion change
pyproject.toml.Run mypy on assigned scope
isinstance narrowing, accurate return types, typed class attrs, relation-safe model access).Run tests for touched area
Run pre-commit on changed files
pre-commit run --files <changed files>.Final verification
Any.obj.related) when stubs do not expose raw *_id attributes.Return this exact structure at the end of each batch:
## Batch Summary
- Branch/worktree: `<name>`
- Ownership/domain: `<team-or-domain>`
### Modules Removed From Exclusion
- `<module.path.one>`
- `<module.path.two>`
### Files Changed
- `<path>`
- `<path>`
### Key Typing Fixes
- `<short rationale + fix>`
- `<short rationale + fix>`
### Validation
- `mypy`: `<pass/fail + scope>`
- `pre-commit --files`: `<pass/fail>`
- `pytest`: `<pass/fail + scope>`
### Notes
- Remaining blockers: `<none or details>`
- Any new ignore entries: `<none or file + ignore code + reason>`
Stop and report instead of widening scope when:
pyproject.toml cannot be resolved safely,Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /typing-exclusion-worker in Claude Code or $typing-exclusion-worker in Codex.
The description says when to use it:
Use when running parallel typing-debt workers or when asked to remove modules from pyproject mypy exclusion overrides.
Copy the typing-exclusion-worker folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/getsentry/skills.git /tmp/getsentry-skills
mkdir -p .claude/skills
cp -r /tmp/getsentry-skills/skills/typing-exclusion-worker .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if typing-exclusion-worker does not appear.
git clone --depth 1 https://github.com/getsentry/skills.git /tmp/getsentry-skills
mkdir -p .agents/skills
cp -r /tmp/getsentry-skills/skills/typing-exclusion-worker .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for typing-exclusion-worker and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
typing-exclusion-worker ships one file, SKILL.md, shown above.