sdk-review
Installation
SKILL.md
Review only the changed code. Report a finding only if you can point to the exact line and show how it breaks a user's app, build or data. Most hunks break no SDK contract, so no findings is the normal result. Generic logic bugs belong to code-review; this skill only covers SDK contracts.
Core SDK rules (same in every SDK repo)
- Never break the host app (high). SDK code that can raise, block, or change the user's behavior: exceptions, return values, signatures, job or request flow.
- Data collected without its gate (high). Bodies, headers, cookies, user info,
gen_aiinputs/outputs or DB results recorded without their data-collection option. Header and cookie names match case-insensitively. Gate on thedata_collectionoption keys; don't ask forsend_default_piiorshould_send_default_pii()as the gate. Automatically collected header, cookie, query or body values must go through the denylist filter insentry_sdk/data_collection.py; a new path that sends them raw is a finding. Data the user set explicitly (scope, span,before_send) is never gated or scrubbed: don't flag reading it back from the scope, but do flag new code that gates or rewrites it. - Supported versions (high). Language, runtime, target or dependency APIs newer than the repo's declared minimum, used without a guard. Minimums come from
python_requiresand_MIN_VERSIONSinsentry_sdk/integrations/__init__.py. - Public API (medium). Breaking public changes without a deprecation path, or internals exposed as public API.
Do not report (same in every SDK repo)
- Style, naming, refactors, or anything the repo's linters, type checkers or analyzers catch.
- Pre-existing code the diff does not change.
- Behavior that matches the spec, Relay or other SDKs, or a trade-off the PR or its threads explain.
- Follow-ups the PR says are handled in a stacked PR or the major branch.
- Tests, samples and examples, unless they can't fail or they teach wrong SDK usage.
- Edge cases that need misuse or very unlikely timing.