/agent-resources:shipfrom agent-resources
Validates a branch, runs quality gates (lint, typecheck, test, build), updates documentation and changelog, and opens a pull request. Supports GitHub and Azure DevOps. Designed for JavaScript/TypeScript projects.
Ships in agent-resources. 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.
Read when SKILL.md points to them; scripts run unread.
Pre-flight checklist that validates the branch, runs quality gates, updates documentation and changelog, and opens a pull request.
GitHub is the primary host; Azure DevOps is secondary. The scripts detect the provider from the git remote (github.com vs dev.azure.com). If origin is not a GitHub remote, do not use gh — even when the remote is ambiguous or a script falls back to GitHub.
- [ ] Step 0: Defer to the repository (repo ship skill; skip gh if origin is not GitHub)
- [ ] Step 1: Verify CLI tools and host auth (GitHub or Azure DevOps)
- [ ] Step 2: Preflight (rebase, branch, existing PR, provider)
- [ ] Step 3: Quality gates (lint → typecheck → test → build)
- [ ] Step 4: Documentation (README.md, AGENTS.md)
- [ ] Step 5: Changelog bump
- [ ] Step 6: Push and open or update PR
- [ ] Step 7: Post-flight report
$SCRIPTS is a placeholder for the absolute path to the scripts/ directory next to this file — not a predefined shell or PowerShell variable. Resolve it before running any command:
SCRIPTS=/abs/path/to/scripts$SCRIPTS = 'C:\abs\path\to\scripts'The helper scripts (preflight.sh, detect-gates.sh, changelog-bump.sh, backfill-pr.sh) are bash and require bash, jq, node, and git on PATH. PR operations also need gh (GitHub) and/or az (Azure DevOps), depending on the repo remote. If origin is not a GitHub remote, do not use gh.
bash "$SCRIPTS/preflight.sh".bash.exe (which cannot see Windows-installed tools). Discover Git Bash from the git install, then invoke each script through it:$gitRoot = Split-Path (Split-Path (Get-Command git).Source) # e.g. C:\Program Files\Git
$bash = Join-Path $gitRoot 'bin\bash.exe'
& $bash "$SCRIPTS/preflight.sh" # repeat per script + args
If bin\bash.exe does not exist under the git root, stop and tell the user to install Git for Windows (bundles Git Bash).
Throughout the steps below, every $SCRIPTS/<name>.sh reference means run that script using the OS-appropriate invocation above.
If the repository has its own ship skill at the repository root (.agents/skills/ship/SKILL.md or .cursor/skills/ship/SKILL.md), follow that skill instead and stop here.
If origin is not a GitHub remote, do not use gh.
Verify that all required CLI tools are installed and authenticated before proceeding.
Always required:
| Tool | Purpose |
|---|---|
git | Branch ops, commits, push |
jq | JSON parsing in shell scripts |
node | Inline JS for changelog and gates |
Check core tools:
command -v git && command -v jq && command -v node'git','jq','node' | ForEach-Object { if (-not (Get-Command $_ -ErrorAction SilentlyContinue)) { "MISSING: $_" } }If any core tool is missing, stop and tell the user which tool(s) need to be installed.
Host-specific tools — check only the provider that matches the repo (see Provider detection). If origin is not a GitHub remote, do not install, auth-check, or invoke gh.
| Provider | Tool | Install hint |
|---|---|---|
| GitHub | gh | macOS: brew install gh · cli.github.com |
| Azure DevOps | az | macOS: brew install azure-cli · aka.ms/azcli |
Confirm auth for the detected provider:
gh auth status — if no active account, instruct the user to run gh auth login. Skip this when origin is not a GitHub remote.az account show (run az login if it errors) and az extension show --name azure-devops (run az extension add --name azure-devops if missing).If the remote is ambiguous and both hosts are plausible, verify auth for whichever provider you will use in Step 6. Prefer GitHub when both are available and origin is a GitHub remote. If origin is not a GitHub remote, do not use gh.
The preflight script sets a top-level provider field ("github" or "azure") by inspecting git remote get-url origin:
| Remote pattern | Provider |
|---|---|
github.com, git@github: | GitHub |
dev.azure.com, visualstudio.com, ssh.dev.azure.com | Azure DevOps |
| Other / unknown | Do not use gh. Try Azure DevOps if plausible; otherwise stop — unsupported host |
Use the provider field (and pr.provider when a PR exists) in Step 6 to pick the correct create/update commands. If origin is not a GitHub remote, do not treat provider as GitHub and do not use gh.
The pr object is normalized across hosts: provider, id, number, title, url. For GitHub, id and number are the same PR number. For Azure DevOps, both are the pull request ID.
Run $SCRIPTS/preflight.sh and parse the JSON output. This fetches the default branch, rebases, checks for uncommitted changes, counts commits ahead, detects the provider, and checks for an existing PR — all in one call.
uncommittedChanges is true, stop and ask the user to commit or stash.onDefaultBranch is true, create a new branch:
feature/add-team-cadence-grid).git checkout -b <prefix>/<slug>.rebaseStatus is "conflicts", stop and report the conflicting files from conflictFiles. Do not attempt to resolve merge conflicts automatically.rebaseStatus is "clean" or "skipped", proceed.commitsAhead is 0, stop — there is nothing to ship.Branch prefixes:
| Prefix | Use when |
|---|---|
feature/ | New functionality or capabilities |
fix/ | Bug fixes |
chore/ | Maintenance, dependency updates, config changes |
refactor/ | Code restructuring with no behavior change |
docs/ | Documentation-only changes |
test/ | Adding or updating tests with no production code changes |
perf/ | Performance improvements |
Run $SCRIPTS/detect-gates.sh and parse the JSON output. The gates array contains each detected gate's name and command.
noPackageJson is true, warn the user that no quality gates were detected because this does not appear to be a JavaScript/TypeScript project. Ask if they want to proceed without gates or provide manual commands to run.Execution rules:
command in order (the array is already sorted: lint → typecheck → test → build).gates is empty, skip this step and note it in the final report.Review the changes on the branch (git diff <default-branch>..HEAD) and update project documentation to reflect anything new, changed, or removed.
Files to check:
| File | Update when |
|---|---|
README.md | New features, changed setup steps, new scripts, new environment variables, updated project structure, or modified user-facing behavior |
AGENTS.md | New or changed conventions, module exports, component APIs, architectural patterns, data flows, or anything an AI agent needs to know when working in the codebase |
Rules:
code formatting for commands, variables, and filenames. Use bold for UI elements.Run $SCRIPTS/changelog-bump.sh info to get the current version and changelog format.
The script auto-detects the changelog format: it uses CHANGELOG.json if one exists, otherwise defaults to CHANGELOG.md. The format field in the output indicates which format is active.
Decide the bump level based on the changes:
patch — fixes onlyminor — features or improvementsmajor — breaking changesBuild a changes JSON object by analyzing git log <default-branch>..HEAD. Categorize each commit into: features, improvements, fixes, breaking, internal. Only include categories that have entries.
Writing changelog descriptions:
Transform raw commit messages into user-friendly language. The goal is descriptions that a non-technical stakeholder can understand.
fix:, feat:, chore:) — they are for categorization, not display.internal.| Commit message | Changelog description |
|---|---|
fix: off-by-one in weekly rollup calc | Fixed off-by-one error in weekly rollup |
feat(dashboard): add cadence heatmap grid | Added team cadence heatmap grid to the dashboard |
refactor: extract date utils to shared module | (internal) Refactored date utilities into a shared module |
perf: memoize contributor sort | Improved contributor table rendering performance |
fix: tooltip flickers on hover in Safari | Fixed tooltip flickering on hover in Safari |
Then run (using the OS-appropriate script invocation from Running helper scripts):
$SCRIPTS/changelog-bump.sh bump <level> '<changes-json>'
The <changes-json> argument contains double quotes and spaces, which need care:
... bump minor '{"features":["Added X"]}'.# $bash is the Git Bash path from discovery above; re-derive it if not set in this session.
$env:SHIP_CHANGES = $changesJson
$env:SHIP_SCRIPT = "$SCRIPTS/changelog-bump.sh"
$tmp = Join-Path $env:TEMP 'ship-bump.sh'
Set-Content $tmp 'bash "$(cygpath -u "$SHIP_SCRIPT")" bump "$1" "$SHIP_CHANGES"' -Encoding ascii -NoNewline
& $bash $tmp patch # use patch, minor, or major
Remove-Item $tmp; Remove-Item Env:\SHIP_CHANGES, Env:\SHIP_SCRIPT
This delivers the JSON intact even with spaces, commas, and apostrophes. cygpath -u (shipped with Git Bash) normalizes the Windows path for bash, and -NoNewline avoids a trailing CRLF that some Git Bash builds would append to the last argument.
If the script output has "updated": true, it patched an existing draft entry (from a previous interrupted run) instead of creating a new one.
Amend the changelog into the last work commit so it does not create extra commits. The stderr redirect is shell-specific:
git add CHANGELOG.json CHANGELOG.md 2>/dev/null; git commit --amend --no-editgit add CHANGELOG.json CHANGELOG.md 2>$null; git commit --amend --no-editThe redirect suppresses the "pathspec did not match" warning when only one changelog file exists; the amend still succeeds either way.
Use the provider, prExists, and pr fields from the Step 2 preflight output. If origin is not a GitHub remote, do not use gh.
git push -u origin HEAD.provider: "github")Use this section only when origin is a GitHub remote (github.com or git@github:). If it is not, do not use gh — skip to Azure DevOps when that matches, or stop and report that the host is unsupported.
gh pr create with a title and body derived from the commit log.gh pr edit <pr.number> (or gh pr edit on the current branch) to update the title and body.## Summary section with 1–3 bullet points, and a ## Test plan section with a verification checklist.gh pr create \
--title "Add team cadence heatmap grid" \
--body "$(cat <<'EOF'
## Summary
- Added heatmap grid to the dashboard
- Updated README with setup notes
## Test plan
- [ ] Verify grid renders with sample data
- [ ] Confirm mobile layout
EOF
)"
provider: "azure")az repos pr create with a title and description derived from the commit log.az repos pr update --id <pr.id> to update the title and description.--description flag accepts multiple arguments — each becomes a separate line:az repos pr create \
--source-branch feature/my-change \
--target-branch main \
--title "Add team cadence heatmap grid" \
--description "## Summary" \
--description "- Added heatmap grid to the dashboard" \
--description "- Updated README with setup notes" \
--description "" \
--description "## Test plan" \
--description "- [ ] Verify grid renders with sample data" \
--description "- [ ] Confirm mobile layout"
Optional: Run
$SCRIPTS/backfill-pr.shafter creating the PR to add a PR link to the changelog entry. This is not run by default — use it if your team wants PR traceability in the changelog. The script uses the same provider detection as preflight. Iforiginis not a GitHub remote, do not usegh.
Print a short summary:
0.1.0 → 0.2.0)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/advisorActivate rigorous, no-nonsense advisory mode for deep analysis, research, critical review, or honest assessment. Use when the user says "advise", "advise me", "give me your honest take", "don't sugarcoat", "be brutally honest", "rigorous mode", "devil's advocate", "second opinion", "challenge this", "stress-test this", "poke holes", "what am I missing", or any variation of wanting unfiltered expert analysis. Also use when the user asks a complex research question, requests a critical review of a plan or architecture, or wants a decision evaluated with full intellectual honesty rather than encouragement./babysit-prBabysit review comments on the current branch's pull request. Bugbot comes first: wait for its review, fix each valid finding, commit, and push. Handle every other open comment too, from human reviewers and other bots. Repeat for up to three rounds, or until nothing new is open. Use when the user says "babysit PR", "babysit this PR", "wait for Bugbot", "address review comments", "address Bugbot comments", "loop until Bugbot is clean", or wants open PR feedback fixed without merging./cleanup-hardenRuns a cleanup and hardening pass on an application or website covering security fixes, DRY consolidation, orphan and dead-code removal, doc drift, dependency audit, error handling, config validation, performance, and repo hygiene, without changing user-facing behavior. Use when the user asks to clean up, prune, harden, audit, tidy, or de-cruft a codebase, remove dead code, fix doc drift, or do a security pass./content-wireframeDraft a content wireframe for a website or page before any design or code. Produces a structured markdown document with real copy, section intent, and open decisions — approved by the user before implementation begins. Use when the user says "content first", "wireframe the copy", "words before design", "start with the content", "what should the page say", or when a website project lacks finalized copy and is jumping straight to visuals./hostUpload files to Cloudflare R2 and return a shareable public URL. Supports any file type (HTML, images, PDFs, etc.) with automatic slug generation, clipboard copy, and hosting history tracking. Use when the user says "host", "host this", "host file", "publish", "publish this", "share this file", "upload to R2", "make this public", "get a shareable link", "deploy this file", "put this online", or any variation of wanting to make a file publicly accessible via URL./new-projectKickstart a new project by interviewing for context, choosing Astro or Next.js and extras, then scaffolding a barebones app on Vercel with Tailwind, base shadcn/ui, pnpm, Vitest, a `pnpm check` gate, AGENTS.md, a plain-language README, a CHANGELOG, and a GitHub repo under `jcottam`. Use when the user says "new project", "start a project", "scaffold", "bootstrap", "init a repo", or "spin up an app".Generated from the plugin's indexed repository (jcottam/agent-resources) — no native marketplace selected
npx claudepluginhub p/jcottam-agent-resourcesOther plugins' skills for the same job