/hubsweep:hubsweepfrom hubsweep
Check whether your GitHub repos (and optionally this computer) show signs of a supply-chain campaign such as wfx-loot or GhostAction, read-only, and explain the result. Use when someone asks "have I been hit by…", "check my repos for compromise", "scan for the GitHub Actions secret stealer", or pastes an advisory and asks if they're affected.
Ships in hubsweep. 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.
hubsweep reads every GitHub repo the person's gh login can reach and looks for the traces a campaign leaves: probe
pull requests, throwaway branches, payload commits (even ones reverted or on branches deleted since), workflow files,
deleted Actions runs and forged status checks. With --local it also checks the computer: cron, launch agents,
systemd user units, Windows scheduled tasks, and git checkouts. Campaigns are described by rule packs (JSON).
It is read-only. It never closes, deletes, rotates, comments or installs anything, except installing the GitHub CLI after the person says yes. Never take any of those actions yourself on the strength of a finding; describe them and let the person decide.
People run this because they are worried. Keep them calm and in control: say what you are about to do before each step, ask before anything that installs, and never surprise them.
node "${CLAUDE_PLUGIN_ROOT}/bin/hubsweep.mjs"; otherwise npx --yes github:pacphi/hubsweep. Check
node --version first: hubsweep needs Node 22 or newer. If Node is missing or older, stop and point them to
https://nodejs.org (offer the command for their system, such as brew install node, winget install OpenJS.NodeJS.LTS
or their Linux package manager, and run it only on a yes).hubsweep --doctor (add --local <folder> if they want the computer checked).
It checks, without reading any repo:
gh) is installed;gh is signed in, and as whom;repo (private repos) and read:org (organisation repos). hubsweep never writes, even
though these scopes would allow it;git (needed for --local), and crontab or Windows scheduled tasks;gh missing: ask whether to install it, naming the command (brew install gh on macOS,
winget install --id GitHub.cli -e on Windows, sudo apt-get install gh, sudo dnf install gh, sudo zypper install gh
or sudo pacman -S github-cli on Linux); run it only on a yes. Or run hubsweep without --doctor and answer its own prompt.gh auth login themselves (it opens a browser and is interactive).gh auth refresh -s repo,read:org themselves, or accept that some repos are skipped.--doctor until there is no ✗.--owner, repeatable) or repos (--repo owner/name); and whether to check this computer too
(--local <folder with their git checkouts>, repeatable).--plan. It prints, step by step, what will be read and what will
not happen. Relay it in your own words, mention a large account can take 20 to 60 minutes, and ask whether to start.--local ~/code --out ./hubsweep-$(date +%F). Give a short progress note now and then. --list-packs shows the
campaigns it knows; --pack <id> limits to some; --rules <dir> adds their own.hubsweep-report.md and explain it in plain words:
rules/SCHEMA.md
(anchored regular expressions, source and credits set), show it, and on a yes save it to a folder of theirs and
run with --rules <that folder> --pack <id>.Claude chat can't run gh or read their files, so:
rules/ folder:
prTitles (for wfx-loot:
"docs: dependency audit notes"), opened since the pack's active.from;branches; list recent commits and match
commitSubjects; list .github/workflows and match workflowFiles.
Say plainly which repos you checked and that deleted runs, reverted commits and deleted branches need the full
tool.hubsweep-report.md.action:workflows.delete_workflow_run.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pacphi/hubsweep --plugin hubsweep