/aiobotocore-bot:check-async-need --from=<version> --to=<version> [--aiobotocore-root=<path>] [--botocore-clone=<path>]from aiobotocore-bot
Classifies botocore version bumps for aiobotocore as no-port, port-required, or ambiguous by diffing botocore tags and inspecting overridden files.
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.
Classify a botocore version bump for aiobotocore. Given a botocore tag range, decide whether aiobotocore needs code changes (port-required), just a version-bounds update (no-port), or the diff is non-trivial enough to escalate (ambiguous).
The classifier answers: "do aiobotocore overrides need to change to stay correct?" — where "correct" means aiobotocore's async flow continues to work without runtime errors and without silently diverging from botocore's behavior.
--from=<version> (required): old botocore version tag, e.g. 1.42.84--to=<version> (required): new botocore version tag, e.g. 1.42.89--aiobotocore-root=<path> (optional, default aiobotocore): where to look for mirror files--botocore-clone=<path> (optional, default /tmp/botocore): path to the bare/working clone to diff inAssume the clone already exists and has both tags fetched. If it does not, return error: botocore clone missing or tag unavailable and stop — the caller is responsible for provisioning it.
Run the shared registry-emit script and parse its JSON output:
uv run python plugins/aiobotocore-bot/scripts/registries.py
The payload has three fields:
overrides — every botocore symbol aiobotocore has explicitly
overridden (from tests/test_patches.py). Entries are either
ClassName.method_name or bare function names or bare class names.
Authoritative for "did we already override this exact symbol?".async_methods — every method name that aiobotocore/**/*.py
defines as async def, plus a small curated set of sync-signature
methods that delegate to async internals (e.g. emit delegating to
_emit). Use for duck-typed contamination: a call x.<name>(...)
on an unknown x is suspect if <name> is in this set.aio_classes — every class AioX(...) defined in aiobotocore. A new
botocore call that instantiates or subclasses the non-Aio parent
(e.g. ClientCreator(...) when AioClientCreator exists) needs to
be routed through the Aio subclass.Keep all three in working memory for Steps 3–4.
For each file in $FROM..$TO under botocore/ that also has a mirror
in aiobotocore/:
git -C $BOTOCORE_CLONE diff $FROM..$TO -- botocore/<path>
Scan each file's diff for changed/added/removed functions. For every function identified, collect: name, change type (added / removed / changed / renamed), and the relevant body lines.
botocore/data/**/*.json and non-Python files are out of scope —
schema/endpoint data is never ported.
For each function F, execute:
If botocore/<F's file> has no aiobotocore/<same path> mirror → skip
(inherited as-is by virtue of not being subclassed).
F anywhere. If yes → port-required
(caller has to retarget). If no → pure-sync with reason
"botocore deletion; aiobotocore does not reference".-def X + +def Y with matching signature/body):
port-required — any aiobotocore caller of X must update to Y.Inspect the NEW body (for added/changed) or OLD body (for deleted):
Network I/O: does the body call network I/O primitives —
requests.*, urllib.*, http.client.*, socket.*, anything
that hits a remote endpoint? → contaminated. Note: file I/O
(open, os.fsync, tempfile) is NOT a contamination signal —
aiobotocore doesn't do async file I/O.
Registry contamination: does the body call a name in
async_methods, or instantiate a class whose Aio-prefixed version
is in aio_classes? → contaminated. Be strict about the match:
x.read(...) on an unknown receiver is ambiguous; self._emit(...)
or self._client_creator(...) where _client_creator is a known
async factory is port-required.
Registered override, substantive change: this rule has a hard prerequisite — apply it ONLY after the following gate passes:
GATE — is F an aiobotocore-tracked override?
Scan the overrides list for an exact string match of:
F's full dotted name (e.g. ClientArgsCreator.get_client_args), ORF's bare name when F is a module-level function (e.g.
_apply_request_trailer_checksum).A bare class name in overrides (e.g. URLLib3Session with no
dot) does NOT match any of that class's methods. Class-level
tracking in test_patches.py only means the class's full source
is hashed for detecting upstream edits; it says NOTHING about
whether aiobotocore overrides any specific method. The only
thing that makes URLLib3Session._get_pool_manager_kwargs a
tracked override is URLLib3Session._get_pool_manager_kwargs
appearing verbatim in overrides.
If the gate fails — i.e. you cannot point to the exact string in
overrides — rule #3 does NOT apply. Do not substitute reasoning
about "parity", "divergence", "silent behavior drift", or "keeping
in sync". Those concerns are about the broader project philosophy,
not about this verdict. Proceed to the other Step-C rules; the
function may still be flagged via rule #1 (network I/O) or rule #2
(calls something in async_methods / aio_classes). Absent any
of those, it's pure-sync — aiobotocore inherits it unchanged.
If the gate PASSES, then: the body change is port-required if
it's anything other than pure-cosmetic (see #4) — including a line
removal, a call swap, a rename, a control-flow tweak, or a new
guard. aiobotocore's override file has to be updated to match the
new upstream body. "Cosmetic/minor refactor" is NOT a pass here —
if a code line was removed, added, or substituted inside a tracked
override, it's substantive.
STOP-RULE: if your draft rationale contains phrases like
"ClassName is in overrides, method is a method of ClassName,
therefore..." or "even though the method isn't overridden, we
should flag for parity/divergence" — ABORT that reasoning. Return
to the gate. If the exact name isn't in overrides, rule #3 is
not applicable regardless of how philosophically appealing a
port-required verdict feels.
Cosmetic only: docstring edits, pure whitespace/formatting, pure
type-hint additions, import reorder — pure-sync with reason
cosmetic. These need no async port, but when the function is in
overrides the sync still mirrors the change into aiobotocore's copy
and bumps its hash in tests/test_patches.py, so name the function
exactly. If you're writing
"removed a line / added a line but it's just cosmetic" that's a
contradiction — removed/added code lines are substantive, not
cosmetic.
Nothing else matches: pure-sync.
If F in Step C newly becomes port-required (i.e. it's now an async
function in aiobotocore's world), check the diff for callers:
overrides that now contains a new call to
F (visible as an added line in the caller's body) → that caller is
also port-required (needs to await F or the equivalent).When invoked via the eval harness: the response is constrained to a
JSON object with verdict and rationale. Put the per-function
breakdown in rationale (quote the exact overrides / async_methods
/ aio_classes match for every port-required verdict), followed by a
roll-up summary. The JSON is the authoritative output.
When invoked directly (human via slash command or agent without tool schema): emit the following plain text at the END of your response, after reasoning:
## Per-function verdicts
### botocore/<file> → aiobotocore/<file>
- `<name>` (added|changed|removed|renamed): <verdict>
Reason: <one-line justification naming the specific signal or absence thereof>
Summary: <N> functions inspected across <M> overridden files. <P> pure-sync, <Q> needs-async, <R> ambiguous.
CLASSIFICATION: no-port | port-required | ambiguous
Either way, the roll-up rule: any function port-required → top-line port-required; any ambiguous and none port-required → ambiguous; every function pure-sync → no-port.
When an upstream change will cause a tests/test_patches.py hash to
change, that alone does not make it port-required.
tests/test_patches.py hashes get bumped mechanically as part of every
sync (port or no-port). A hash change is a build consequence, not a
classification signal. If the only reason you can articulate for
port-required is "the hash will break" or "the test will fail", the
correct verdict is NOT port-required — it's whatever the async-need
rules say (typically pure-sync, with a hash bump done by the caller
mechanically during sync).
Never claim pure-sync without inspecting the new body. If you could
not read a file (diff command failed, file missing), return
error: <reason> instead of guessing. Prefer ambiguous over a wrong
confident verdict — a false pure-sync on a function with async
contamination is how missed ports (#1126 class) slip through.
These patterns are hard for a static classifier to catch; emit
ambiguous and flag for human review when encountered:
with_current_context).EPRBuiltins.ACCOUNT_ID = credentials.get_account_id pattern).__aenter__ /
__aexit__ contracts).Sync bot: the classify job (botocore-classify-prompt.md) runs
this and hands the verdict to the sync job, which takes the no-port
path on no-port, the port path on port-required, and escalates via a
feedback issue on ambiguous.
Reviewer (review-pr skill): runs this in Step 3e on sync-bot PRs,
extracting $FROM / $TO from the PR body. If the PR claims no-port
but this skill returns port-required or ambiguous, flag the
mismatch as high-confidence.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aio-libs/aiobotocore --plugin aiobotocore-bot10 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-override-driftArgumentsUse when reviewing an aiobotocore PR that touches `aiobotocore/*.py` files with a botocore mirror. Compares each added line against the matching botocore function and emits `OVERRIDE_DRIFT:` (`clean` | `cosmetic-drift` | `behavioral-drift`) plus per-function detail. Distinguishes legitimate async gaps from unmatched additions that widen the sync diff./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.Other plugins' skills for the same job