/aiobotocore-bot:pyright-delta [--path=<path>] [--base=<ref>] [--touched-files=<file1,file2,...>]from aiobotocore-bot
Runs pyright against HEAD and origin/main in an isolated git worktree, then reports new errors restricted to files the PR modified. Useful for measuring whether a PR introduces new pyright errors in touched files as opposed to the repo's long-standing baseline.
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 has a long-standing baseline of pyright errors (intentional async-overriding-sync patterns plus legacy type gaps). Absolute counts are not a gate — what we care about is drift introduced by the current changes, especially in files the changes touched.
This skill captures the delta using a throwaway git worktree at origin/main, not git stash:
a failed git stash pop would leave the primary tree half-applied just before the commit step.
--path=<path> (optional, default aiobotocore/): path to run pyright against--base=<ref> (optional, default origin/main): git ref to use as the baseline--touched-files=<file1,file2,...> (optional): restrict the delta report to these files. If
omitted, derived from git diff --name-only <base>.Bind the args (or their defaults) into shell variables used by later steps:
PYRIGHT_PATH="${PATH_ARG:-aiobotocore/}" # --path value
BASE="${BASE_ARG:-origin/main}" # --base value
Then resolve touched files:
git diff --name-only "$BASE"
Call this TOUCHED. If --touched-files is set, use it instead. If the result is empty, return
delta: no changes to compare and exit — there is nothing to measure.
git fetch origin main --quiet
WORKTREE=$(mktemp -d -t pyright-baseline-XXXXXX)
git worktree add --detach "$WORKTREE" "$BASE"
Use --detach so the worktree is not tied to a branch (the caller may already have origin/main
checked out as a branch somewhere). mktemp -d gives a unique path that can't collide under
concurrent invocations — /tmp/pyright-baseline-$$ (PID) would collide for two shells with the
same PID on different hosts or in edge cases.
uv run --with pyright pyright "$WORKTREE/$PYRIGHT_PATH" > /tmp/pyright-before.txt 2>&1
tail -1 /tmp/pyright-before.txt
The baseline runs against the baseline worktree's files. uv run resolves Python dependencies
from the caller's venv, which is fine — pyright typechecks files by path, and the baseline's
dependencies are the same ones pinned at $BASE.
git worktree remove --force "$WORKTREE"
--force ensures removal even if pyright left __pycache__ dirs behind. Because the worktree
lives under /tmp and was never branch-tracking, there is nothing to lose.
uv run --with pyright pyright "$PYRIGHT_PATH" > /tmp/pyright-after.txt 2>&1
tail -1 /tmp/pyright-after.txt
Compare the two outputs. A new error counts toward the delta only if its filename (after stripping
the $WORKTREE/ prefix from baseline paths) matches a file in TOUCHED. Errors in untouched
files are pre-existing baseline noise — ignore them.
Output:
Baseline: <N> errors, <W> warnings
With changes: <N'> errors, <W'> warnings
Touched files: <list>
New errors in touched files:
<path>:<line>: <message>
...
No new errors: <true|false>
git fetch fails (network): retry once, then return error: could not fetch $BASE. The
caller should treat this like any other transient failure.git worktree add fails (e.g. $BASE not resolvable): return error: could not create baseline worktree at $BASE — never fall back to running only the "after" pyright, since a
one-sided run cannot produce a delta.no new errors. A crashed run is not a passing run.git worktree remove --force "$WORKTREE" in a final cleanup to avoid orphaned worktree
entries. Safe to call even if the worktree is already gone.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-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)./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./draft-releaseArgumentsUse when drafting a new release. Reads merged PRs since the last release tag, categorizes them by Conventional-Commit-style title prefix and labels, computes the next version (major/minor/patch), updates ``CHANGES.rst`` and ``aiobotocore/__init__.py`` in the existing repo style, and opens a release PR. The PR's merge is what triggers the actual tag + GitHub Release + PyPI publish (see `.github/workflows/auto-release-on-merge.yml`)./open-prArgumentsUse when opening or updating an aiobotocore PR against main. Re-reads `.github/pull_request_template.md` each run (authoritative), fills placeholders, verifies each ticked checklist box against the diff, and appends mode-specific sections for `generic`, `sync-no-port`, or `sync-port` PRs.Other plugins' skills for the same job