Run the shotgun handoff system in this project, so any agent can resume work another one stopped. Use for setting up the handoff files in a new project, taking over queue work from another agent or another session, saving progress before a new chat, archiving a finished round of work, reporting queue status, or updating shotgun. Triggers on "shotgun", "set up handoff", "continue the queue", "save before a new chat", "finish this round", "what is next in the plan", "take over this project".
2 stars
0 votes
0 copies
6 views
Added October 26, 2026
ai-agentsgoshellbashgit
Works with
claude code
cursor
cli
Security analysis
D42/100
criticalPipes output to a shell interpreter
mediumUses curl or wget to download content
criticalDownloads and executes remote scripts — classic supply chain attack
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Shotgun?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adamalshoomary-shotgun)
---
name: shotgun
description: Run the shotgun handoff system in this project, so any agent can resume work another one stopped. Use for setting up the handoff files in a new project, taking over queue work from another agent or another session, saving progress before a new chat, archiving a finished round of work, reporting queue status, or updating shotgun. Triggers on "shotgun", "set up handoff", "continue the queue", "save before a new chat", "finish this round", "what is next in the plan", "take over this project".
argument-hint: setup | continue | save | finish | status | update
arguments: [command, value]
allowed-tools: Read, Write, Edit, Glob, Grep, Bash, Agent, WebFetch, WebSearch
---
# Shotgun
The command is the first word the user typed after the skill name, and any second word
is its value. Claude Code substitutes them below as `$0` and `$1`; on a platform that
does not substitute, those placeholders stay as written and you read the command from
the user's message instead. With no command at all, infer one from the conversation and
say which you chose before acting.
## Two places, and never confuse them
**The kit** is the directory holding this file. `VERSION`, `MIGRATIONS.md`, `SETUP.md`,
`WORKFLOW.md` and `templates/` all sit beside it. Claude Code gives you that path as
`${CLAUDE_SKILL_DIR}`. Elsewhere, take the directory of this file. Every filename below
written as `<kit>/something` means a file in there.
**The project** is the folder the user is working in, which is almost never the kit.
`AGENTS.md`, `current-state.md`, `project-purpose.md`, `improvement-plan.md`,
and the project's own `project-context/` all sit there. Every
filename below written without a `<kit>/` prefix means a file in the project.
Resolve `<kit>` once, at the start of any command that needs it. Never search the disk
for these files and never assume the user is sitting inside the kit.
If `<kit>` has only this file in it and nothing else, the install was incomplete. Say so
and tell the user to reinstall with the install command under `update` below, which
brings the whole directory. Do not try to carry on without the supporting files.
The `.md` files in the project are the source of truth. This skill routes to them
and adds nothing of its own. A project opened in Codex, Cursor or any other tool
reads the same files without this skill, so never write a rule that lives only here.
## Before every command
Run this check once per chat, on the first `/shotgun` command. Skip it if you already
ran it in this chat, and skip it for `update`, which does the same work itself.
1. Run one shell command that prints three things: the kit's version, the latest
release's version and the project's version line. On macOS or Linux:
cat "<kit>/VERSION"; curl -fsSL --max-time 4 "${SHOTGUN_FROM:-https://github.com/adamalshoomary/shotgun/releases/latest/download}/VERSION" 2>/dev/null || echo OFFLINE; grep -m1 -E "^(Shotgun|Handoff system) version:" AGENTS.md
On Windows, in PowerShell:
Get-Content "<kit>\VERSION"; $f = if ($env:SHOTGUN_FROM) { $env:SHOTGUN_FROM } else { 'https://github.com/adamalshoomary/shotgun/releases/latest/download' }; try { irm -TimeoutSec 4 "$f/VERSION" } catch { 'OFFLINE' }; Select-String -Path AGENTS.md -Pattern '^(Shotgun|Handoff system) version:' | Select-Object -First 1
2. Compare the first word of each version as numbers.
3. The release is newer than the kit when it prints a higher number. The project is
behind when its version line is lower than the kit's. A project with no AGENTS.md,
or one that holds `shotgun/skills/shotgun/SKILL.md`, is never behind.
4. If neither is out of date, or the release check printed `OFFLINE`, say nothing and
run the command.
5. Otherwise, ask one question before the command runs. Name the versions, for
example: "Shotgun 5.1.0 is out, and you're on 5.0.0. Update before I continue?" If
only the project is behind, say: "This project uses shotgun 4.0.0, and you have
5.1.0 installed. Update its files before I continue?" Offer three options:
- "Update now (Recommended)": run `update`, then run the command the owner typed.
- "After this": run the command, then run `update`.
- "Not now": run the command. Write nothing. The next chat asks again.
## setup
Read `<kit>/SETUP.md` and apply it to the current project root.
## continue
Follow the reading order in the project's AGENTS.md. Then follow Work in
`project-context/WORKFLOW.md`, or in `<kit>/WORKFLOW.md` if the project has no copy.
## save
Follow Handoff in `project-context/WORKFLOW.md`, or in `<kit>/WORKFLOW.md` if the
project has no copy.
## finish
Follow Finish in `project-context/WORKFLOW.md`, or in `<kit>/WORKFLOW.md` if the
project has no copy.
## status
Follow Status in `project-context/WORKFLOW.md`, or in `<kit>/WORKFLOW.md` if the
project has no copy.
## learn, explain
Learning mode was removed in 5.0.0. If someone types `learn` or `explain`, say so in
one line and do nothing else.
## update
Bring a project set up under an older version of this system up to the current one.
Two things can be out of date, and this command handles both in order: the kit
installed on this machine, then the project.
### First, the kit
1. Read `<kit>/VERSION`, then fetch the version of the latest release:
curl -fsSL https://github.com/adamalshoomary/shotgun/releases/latest/download/VERSION
When the owner typed `update`, say one of three things and nothing else. "Checking
for updates." Then either "You're up to date." or "There's a newer version, 5.1.0.
You're on 5.0.0." If the fetch fails: "Couldn't check for updates, carrying on with
what you have." A failed check is never proof the kit is current. When the check
before a command started this update, the owner has already said yes. Say nothing
here and continue.
2. When the published version is newer and the owner typed `update`, show the install
command for this computer and wait for a yes. When the check before a command
started this update, run it at once. On macOS or Linux:
curl -fsSL https://github.com/adamalshoomary/shotgun/releases/latest/download/install.sh | sh
On Windows:
powershell -NoProfile -Command "irm https://github.com/adamalshoomary/shotgun/releases/latest/download/install.ps1 | iex"
Do not repeat the installer's line about restarting. If `SHOTGUN_FROM` is set, a test
is running: fetch `install.sh` or `install.ps1` from that address in place of the
GitHub address, and keep the variable set.
After the install, read `<kit>/SKILL.md` and `<kit>/MIGRATIONS.md` again from disk.
The copies in your context are the old version. Follow the new files for the rest of
this update and for the command the owner typed. No restart is needed.
The owner can decline. Continue with the kit they have and say which version you
used.
### Then, the project
3. Read `Shotgun version:` from the project's AGENTS.md and compare it to
`<kit>/VERSION`. A project set up before 4.0.0 records it as
`Handoff system version:` instead. Read that line the same way.
Equal: say so and stop. When the check before a command started this update, say
nothing and go back to the command.
Project older: continue below. This is the normal case.
Project newer: stop, and do not apply anything. Downgrading a project is never what
the owner asked for. Before you report it, check whether the project folder itself
holds `shotgun/skills/shotgun/SKILL.md`. If it does, this project is the kit's own
source, it is meant to run ahead of any install, and there is nothing to update; say
that and stop. Otherwise name the likely cause, which is a stale kit, and point at
the install command above.
4. Compare structure, never content. For each file in `<kit>/templates/`, list the section
headings and marker lines the template carries, and check the project's
corresponding file for each one. Check file presence too:
`project-context/WORKFLOW.md`. Ignore
everything written underneath a heading; that is the owner's project, and none of
it is yours to reconcile.
5. Match on meaning, and never on characters. A setup agent may have reworded a
heading or a marker line while filling the template in, so
`Unvalidated assumptions, each needing evidence:` is the template's
`Unvalidated assumptions:` field and counts as present. Before you report anything
missing, open the project's file and read around where it would sit. Report it only
when nothing there serves the same purpose. A field the owner deliberately answered
"none" is present. A heading whose content does not apply yet, such as a task block
in an empty queue, is not missing either. In a project without git, the git
sections are absent by design.
6. Read `<kit>/MIGRATIONS.md`, and only the blocks above the project's recorded version.
Those carry the changes structure cannot show.
7. Write one summary of every change, in plain words, one line each. Do not name
headings or marker lines the owner never wrote. Put every change that deletes or
rewrites the owner's text in a separate list at the end, with the text it removes.
Name anything you judged present under different wording.
If your own memory holds rules for this project, offer to move each one into
AGENTS.md and to delete the memory copy. Run the CLAUDE.md check in
`<kit>/SETUP.md`, and add any fix it finds to the summary.
8. Ask once. Options: "Apply all (Recommended)",
"Go through each change", "Not now". Ask for any value a migration block needs in
the same round.
9. On "Apply all", apply every change. On "Go through each change", ask once for each
change in the separate list, then apply the rest. A migration block that says to ask
for each change is satisfied by this summary.
10. Set the version line to the version in `<kit>/VERSION`. Report the result in one
sentence.
Never delete owner text that the summary did not show. Never reorder a queue. A `learning/` directory left
by an older version is the owner's history: leave it exactly as it is.
One file is the exception. `project-context/WORKFLOW.md` is kit text. Replace it whole
with `<kit>/WORKFLOW.md` on every update, and tell the owner in one line.