/aiobotocore-bot:check-override-drift (--pr=<number> | --diff=<path>) [--botocore-path=<path>]from aiobotocore-bot
Reviews aiobotocore PRs for drift from botocore by comparing added lines against matching botocore functions. Flags behavioral, cosmetic, and silent-bug drift while accepting legitimate async gaps.
Ships in aiobotocore-bot. 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.
None: SKILL.md is the whole skill.
aiobotocore exists to mirror botocore as closely as possible, with async sprinkled on
top. The principle is:
Unmatched behavioral changes to overridden code should be avoided. Legitimate async gaps (e.g. a
threading.Lock→asyncio.Lockbecause async needs it) are acceptable — those are the whole reason aiobotocore exists. Everything else that widens the diff from botocore without an async justification is drift.
Every line of divergence makes future syncs harder and hides subtle behavioral differences. This skill evaluates changes to aiobotocore files that have a botocore mirror and flags:
inspect.isawaitable for hasattr(obj, "__await__") — not equivalent for
all awaitable types).Changes that are OK and should not be flagged — the "async-gap exceptions":
await, asyncio.Lock
replacing threading.Lock, async with / async for, Aio* class use,
resolve_awaitable on something that may be awaitable in aiobotocore but isn't
in botocore.httpxsession.py, functions in _helpers.py that have no botocore counterpart).await, or broken cancellation and the fix has no counterpart in
botocore because botocore simply can't have the bug. State this explicitly in the
PR description.Not OK, even if the change looks like an improvement:
--pr=<number> (required unless --diff=<path>): PR to analyze via gh pr diff.--diff=<path> (optional): local diff file (e.g. git diff > /tmp/d); overrides --pr.--botocore-path=<path> (optional): location of installed botocore source. If omitted,
discover via python3 -c "import botocore; print(botocore.__file__)".Parse the diff for modified aiobotocore/*.py paths. For each, check whether a
botocore mirror exists at $BOTOCORE_PATH/<same-name>.py. Files without a mirror
(e.g. httpxsession.py) are out of scope — aiobotocore-only code can diverge freely.
Identify the function name (by scanning the hunk for enclosing def/async def).
Read the matching function in botocore. If the function does not exist in botocore —
skip it (new aiobotocore-only helper; unusual but not in scope for drift checking).
Authoritative override registry: tests/test_patches.py enumerates every
botocore symbol aiobotocore overrides. If the changed function's dotted name
(ClassName.method) or bare name is NOT in that file, it is not a tracked
override — either it's new code aiobotocore is adding without a counterpart
(which should be flagged separately in Step 3) or it's a passthrough not under
drift-check scope. Use the registry to distinguish "tracked override we expect
to mirror botocore" from "something else".
For every + line in the hunk (inside a function that has a botocore counterpart):
OK — do not flag:
async def / await X / async with X / async for X — async-required
syntax.resolve_awaitable(, AsyncExitStack,
asyncio.Lock, asyncio.Event, asyncio.sleep, etc.Aio<Name> class that subclasses a botocore
class (the Aio prefix is the async marker).cosmetic-drift — flag at medium confidence:
"""...""") that aren't in botocore's version of the
function. Exception: docstrings that specifically describe async-only behavior
(mention of awaiting, event loop, coroutines) are acceptable.behavioral-drift — flag at high confidence:
inspect.isawaitable(x) vs hasattr(x, "__await__") — these have
different semantics for some objects).if x is None: ...), added logging, added error handling that
aren't in botocore. May be legitimate bug fixes but must be called out.Emit a structured report.
OVERRIDE_DRIFT: clean | cosmetic-drift | behavioral-drift
## Per-function verdicts
### aiobotocore/hooks.py :: AioHierarchicalEmitter._emit
- verdict: behavioral-drift
- changes not in matching botocore:
- line 12: added `if response is None: continue` — botocore's `_emit` appends every
handler response; the guard changes what callers receive and has no async reason.
- async-explained: no
### aiobotocore/configprovider.py :: AioSmartDefaultsConfigStoreFactory.merge_smart_defaults
- verdict: cosmetic-drift
- changes not in matching botocore:
- added docstring (lines 8-14): describes behavior that matches botocore; no
async-specific content.
- added return type annotation `-> None`.
- async-explained: no
The top-line OVERRIDE_DRIFT rolls up:
clean — every change is either mirrored in botocore or async-explained.cosmetic-drift — only cosmetic drift present; no behavioral changes.behavioral-drift — at least one function has a behavioral change not in botocore.The review-pr skill runs this in Step 3 for every non-sync PR that touches
aiobotocore/*.py files with botocore mirrors. Verdicts map to comment severity:
behavioral-drift → post as a high-confidence inline comment at the offending line,
quoting the specific line pair (aiobotocore vs botocore).cosmetic-drift → post as a single top-level soft comment listing the drift, with
a note that cosmetic changes to overrides widen sync diffs and should be justified.clean → no comment.The reviewer does NOT block a PR on cosmetic drift — maintainers may choose to accept it. But every cosmetic/behavioral drift must be visible in review; silent acceptance is how divergence accumulates.
Never claim clean without having read the matching botocore function. If the
botocore source is unreachable (no local install, no path override provided), return
error: could not locate botocore source and exit — the reviewer will fall back to
visual inspection and flag the run as needing human review.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/analyze-pr-feedbackArgumentsUse when addressing reviewer feedback on an aiobotocore PR — fetches every thread and top-level comment (including resolved), synthesizes into three buckets (asked / done / outstanding), then produces a per-thread action plan with one commit per group. Accepts `--focus=<databaseId>` to rank the triggering comment first and `--resolve` to mark threads resolved after a fix./check-async-needArgumentsUse when classifying a botocore version bump as no-port, port-required, or ambiguous. Diffs `$FROM..$TO` in a bare botocore clone, inspects every added/changed function in overridden files, and emits `CLASSIFICATION:` plus per-function reasons. Shared by the sync bot (to pick no-port vs port path) and the PR reviewer (to sanity-check sync-bot PRs)./complete-runArgumentsUse at the end of every aiobotocore-bot workflow run to post the summary reply and swap the 👀 reaction for 👍. Handles the event-dependent target (inline-thread reply vs top-level PR/issue comment) and scopes reaction deletion to claude[bot] so human 👀 reactions aren't lost.npx claudepluginhub aio-libs/aiobotocore --plugin aiobotocore-botOther plugins' skills for the same job