Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/martybonacci/specswarm/shipgit clone --depth 1 https://github.com/MartyBonacci/specswarmWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00016 | $0.04822 |
| Opus 5 | $0.00008 | $0.02411 |
| Sonnet 5 | $0.00003 | $0.00964 |
| Haiku 4.5 | $0.00002 | $0.00482 |
Grade A, and why
ship scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 494 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Goal
Execute final quality gate validation and merge to parent branch.
Purpose: Enforce quality standards before merging features/bugfixes, preventing low-quality code from entering the codebase.
Workflow: Quality Analysis → Threshold Check → Merge (if passing)
Quality Gates:
- Default threshold: 80% quality score
- Configurable via
--force-qualityflag - Reads
.specswarm/quality-standards.mdfor project-specific thresholds
Pre-Flight Checks
# Ensure we're in a git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "❌ Error: Not in a git repository"
echo ""
echo "This command must be run from within a git repository."
exit 1
fi
# Get repository root
REPO_ROOT=$(git rev-parse --show-toplevel)
cd "$REPO_ROOT"
# Parse arguments
FORCE_QUALITY=""
SKIP_TESTS=false
RUN_SECURITY_AUDIT=false
for arg in $ARGUMENTS; do
case "$arg" in
--force-quality)
shift
FORCE_QUALITY="$1"
;;
--skip-tests)
SKIP_TESTS=true
;;
--security-audit)
RUN_SECURITY_AUDIT=true
;;
esac
done
# Initialize audit logging
PLUGIN_DIR="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")"
if [ -f "${PLUGIN_DIR}/lib/audit-logger.sh" ]; then
source "${PLUGIN_DIR}/lib/audit-logger.sh"
fi
Execution Steps
Step 1: Display Banner
echo "🚢 SpecSwarm Ship - Quality-Gated Merge"
echo "══════════════════════════════════════════"
echo ""
echo "This command enforces quality standards before merge:"
if [ "$RUN_SECURITY_AUDIT" = true ]; then
echo " 1. Runs comprehensive security audit"
echo " 2. Runs comprehensive quality analysis"
echo " 3. Checks quality score meets threshold"
echo " 4. If passing: merges to parent branch"
echo " 5. If failing: reports issues and blocks merge"
else
echo " 1. Runs comprehensive quality analysis"
echo " 2. Checks quality score meets threshold"
echo " 3. If passing: merges to parent branch"
echo " 4. If failing: reports issues and blocks merge"
fi
echo ""
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo "📍 Current branch: $CURRENT_BRANCH"
echo ""
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 494 lines · 16 tokens per session scan A 2061944dd0c5
ship is a command published in the GitHub repository MartyBonacci/specswarm (65 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 4,822 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.