1---2name: getsentry-skills-skills3description: Typing Exclusion Worker4---56# Typing Exclusion Worker78## Purpose910Execute one assigned typing batch safely and predictably:1112- remove only assigned modules from mypy exclusions,13- fix surfaced typing issues in scope,14- run required checks,15- return a consistent summary for the manager/orchestrator.1617## Inputs Required1819Before starting, confirm these inputs exist in the task prompt:2021- worktree/branch name,22- exact module list to remove from exclusion,23- ownership/domain boundary,24- expected validation commands (if customized).2526If any are missing, ask for them before editing.2728## Scope Rules (Hard Constraints)29301. Only remove assigned module entries from the mypy exclusion list in `pyproject.toml`.312. Keep code changes in assigned scope unless a direct dependency is required to pass typing/tests.323. Do not expand to cross-team modules unless explicitly approved by the manager.334. Avoid blanket `# type: ignore`; if unavoidable, use narrow `ignore[code]` with a short reason.3435## Execution Workflow36371. **Apply exclusion change**3839 - Remove assigned modules from the exclusion override in `pyproject.toml`.40412. **Run mypy on assigned scope**4243 - Prefer targeted paths first for fast feedback.44 - Fix errors using explicit typing patterns (`isinstance` narrowing, accurate return types, typed class attrs, relation-safe model access).45463. **Run tests for touched area**4748 - Execute targeted pytest for modified modules/tests.49 - Fix regressions before continuing.50514. **Run pre-commit on changed files**5253 - Run `pre-commit run --files <changed files>`.54 - If hooks auto-fix files, rerun until clean.55565. **Final verification**57 - Re-run targeted mypy and tests after final edits.58 - Ensure no unrelated files were changed.5960## Python Typing Best Practices6162- Prefer precise types over `Any`.63- Use type narrowing on unions before attribute access.64- Keep method overrides signature-compatible with base classes.65- Annotate class attributes in tests/helpers when inference is weak.66- Use relation objects (`obj.related`) when stubs do not expose raw `*_id` attributes.6768## Required Output Template6970Return this exact structure at the end of each batch:7172```markdown73## Batch Summary7475- Branch/worktree: `<name>`76- Ownership/domain: `<team-or-domain>`7778### Modules Removed From Exclusion7980- `<module.path.one>`81- `<module.path.two>`8283### Files Changed8485- `<path>`86- `<path>`8788### Key Typing Fixes8990- `<short rationale + fix>`91- `<short rationale + fix>`9293### Validation9495- `mypy`: `<pass/fail + scope>`96- `pre-commit --files`: `<pass/fail>`97- `pytest`: `<pass/fail + scope>`9899### Notes100101- Remaining blockers: `<none or details>`102- Any new ignore entries: `<none or file + ignore code + reason>`103```104105## Stop Conditions (Escalate to Manager)106107Stop and report instead of widening scope when:108109- fixes require touching another team/domain,110- exclusion conflicts in `pyproject.toml` cannot be resolved safely,111- error volume indicates batch is too large and should be split.112113---114> Source: [getsentry/skills](https://github.com/getsentry/skills) — distributed by [TomeVault](https://tomevault.io).115<!-- tomevault:4.0:skill_md:2026-06-30 -->
Run npx skillmds@latest add tomevault-io/getsentry-skills-skills in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Typing Exclusion Worker It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.