Install gstack's shipping skill as /gstack-ship so Claude Code's own /ship stops hiding it (#4775) (#4819)

gstack's shipping skill now installs as `/gstack-ship`, because Claude
Code keeps the name `/ship` for its own built-in and silently drops
gstack's.

Upgrading removes gstack's old `ship` entry and leaves your own `ship`
skill alone. The resume command and most recovery messages now say
`/gstack-ship`; nothing to do but upgrade.

This replaces #4813, which ran out of budget before its last fixes.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p2/adversarial-native#1 reader=adversarial-native
Review-Finding: p2/outside-voice#3 reader=outside-voice
Review-Finding: p2/outside-voice#4 reader=outside-voice
Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/outside-voice#2 reader=outside-voice
Review-Finding: p2/red-team#1 reader=red-team
Review-Finding: p3/outside-voice#1 reader=outside-voice
Review-Finding: p3/outside-voice#3 reader=outside-voice
Review-Finding: p7/outside-voice#1 reader=outside-voice
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-25 03:53:15 +00:00
1 parent 9a550bca9c
commit 719b1f59f0
310 files changed
+1618 -1301

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ if (pBase && cmp(pPR, pBase) <= 0) {
const collision = claimed.find((c) => c.version.trim() === prVersion);
if (collision) {
console.log(`::error::VERSION collision: ${tag} claims v${prVersion} but #${collision.pr} (${collision.branch}) already claims the same slot.`);
console.log(`::error::Rerun /ship to pick a different slot, or coordinate with #${collision.pr} on landing order.`);
console.log(`::error::Rerun /gstack-ship to pick a different slot, or coordinate with #${collision.pr} on landing order.`);
process.exit(1);
}
+8
View File
@@ -27,6 +27,14 @@ export const RETIRED_SKILLS = ['investigate', 'verify'];
*/
export const RENAMED_SKILLS: Readonly<Record<string, string>> = { verify: 'build-check' };
/**
* Skills that install as gstack-<folder> in both prefix modes, because a host
* keeps the plain name for a built-in: Claude Code's own /ship hides a user
* skill named ship (#4775). The folder and the internal id stay ship. Same
* list as GSTACK_PREFIXED_SKILLS in bin/gstack-install-registry.sh.
*/
export const PREFIXED_SKILLS = ['ship'];
/**
* Review skills /autoplan reads as a phase methodology from its own directory
* on external hosts: each renders a second time beside gstack-autoplan/SKILL.md
+1 -1
View File
@@ -168,7 +168,7 @@ export async function generateLlmsTxt(opts: GenerateOptions = {}): Promise<Gener
lines.push("> gstack is Garry's Stack: AI coding skills + a fast headless browser binary + a design CLI. This file indexes every capability so agents can discover and invoke them without crawling individual SKILL.md files.");
lines.push('');
lines.push('Conventions:');
lines.push('- Skills are invoked by name (e.g. `/ship`, `/plan-ceo-review`).');
lines.push('- Skills are invoked by name (e.g. `/gstack-ship`, `/plan-ceo-review`).');
lines.push('- Browse commands run as `browse <command> [args]` (or `$B` shorthand).');
lines.push('- Design commands run as `design <command> [args]` (or `$D`).');
lines.push('- Project-specific config lives in `CLAUDE.md`. Always read it first.');
+3 -2
View File
@@ -9,7 +9,7 @@
* Used by skill:check and CI freshness checks.
*/
import { discoverTemplates, discoverSectionTemplates, includesSkill, AUTOPLAN_SIBLING_METHODOLOGIES } from './discover-skills';
import { discoverTemplates, discoverSectionTemplates, includesSkill, AUTOPLAN_SIBLING_METHODOLOGIES, PREFIXED_SKILLS } from './discover-skills';
import { externalSkillName, extractNameAndDescription } from './external-skill-names';
export { extractNameAndDescription } from './external-skill-names';
import { generateLlmsTxt } from './gen-llms-txt';
@@ -732,7 +732,8 @@ function buildContext(
skillNameOverride?: string,
): TemplateContext {
const { name: extractedName } = extractNameAndDescription(tmplContent);
const skillName = skillNameOverride || extractedName || path.basename(path.dirname(tmplPath));
const dirName = path.basename(path.dirname(tmplPath));
const skillName = PREFIXED_SKILLS.includes(dirName) ? dirName : skillNameOverride || extractedName || dirName;
const benefitsMatch = tmplContent.match(/^benefits-from:\s*\[([^\]]*)\]/m);
const benefitsFrom = benefitsMatch
? benefitsMatch[1].split(',').map(s => s.trim()).filter(Boolean)
+1 -1
View File
@@ -226,7 +226,7 @@ Plan-review readiness probes the [policy](https://github.com/garrytan/gstack/blo
/**
* Canonical foreground-dispatch guidance (#497 → #2440 → a third recurrence at
* a /ship documentation dispatch). Claude Code v2.1.198 made Agent-tool subagents run in the
* a /gstack-ship documentation dispatch). Claude Code v2.1.198 made Agent-tool subagents run in the
* BACKGROUND by default; a synchronous dispatch site must pass the flag
* explicitly or the parent waits on output that never arrives. Rendered via
* {{FOREGROUND_DISPATCH_NOTE}} in section templates; resolver sites may
+2 -2
View File
@@ -56,11 +56,11 @@ They govern ambiguous completeness words such as \`complete\`, \`full\`, \`every
\`exhaustive\`, \`100%\`, and \`Boil the Ocean\`, and when to stop iterating on
work the user did not ask for. Concrete skill workflow steps, STOP points,
AskUserQuestion gates, plan-mode safety, required tests, skill-mandated
re-verification and re-review loops, and /ship review gates still win.
re-verification and re-review loops, and /gstack-ship review gates still win.
Never use this patch to skip a concrete requirement.`
: `The following nudges are tuned for the ${ctx.model} model family. They are
**subordinate** to skill workflow, STOP points, AskUserQuestion gates, plan-mode
safety, and /ship review gates. If a nudge below conflicts with skill instructions,
safety, and /gstack-ship review gates. If a nudge below conflicts with skill instructions,
the skill wins. Treat these as preferences, not rules.`;
return `## Model-Specific Behavioral Patch (${ctx.model})
@@ -90,5 +90,5 @@ claude_haiku/claude_other/gpt/gemini/other. CHECKS: passed/failed/not_run. No co
## Plan Status Footer
Skills that run plan reviews (\`/plan-*-review\`, \`/codex review\`) include the EXIT PLAN MODE GATE blocking checklist at the end of the skill, which verifies the plan file ends with \`## GSTACK REVIEW REPORT\` before ExitPlanMode is called. Skills that don't run plan reviews (operational skills like \`/ship\`, \`/qa\`, \`/review\`) typically don't operate in plan mode and have no review report to verify; this footer is a no-op for them. ${ctx.skillName === 'plan-eng-review' ? 'Use the selected report file and honor the Review record and write policy for every artifact.' : 'Writing the plan file is the one edit allowed in plan mode.'}`;
Skills that run plan reviews (\`/plan-*-review\`, \`/codex review\`) include the EXIT PLAN MODE GATE blocking checklist at the end of the skill, which verifies the plan file ends with \`## GSTACK REVIEW REPORT\` before ExitPlanMode is called. Skills that don't run plan reviews (operational skills like \`/gstack-ship\`, \`/qa\`, \`/review\`) typically don't operate in plan mode and have no review report to verify; this footer is a no-op for them. ${ctx.skillName === 'plan-eng-review' ? 'Use the selected report file and honor the Review record and write policy for every artifact.' : 'Writing the plan file is the one edit allowed in plan mode.'}`;
}
@@ -85,7 +85,7 @@ Failing on <current branch>; pre-existing.
~~~
**Last modified by:** <author>
**Noticed by:** gstack /ship on <date>
**Noticed by:** gstack /gstack-ship on <date>
\`\`\`
Then post with your platform from Step 0 (\`github\` or \`gitlab\`). Substitute the two printed names, and an assignee only when it is a valid login for that platform (GitHub: letters, digits and single hyphens, at most 39 characters); otherwise drop the assignee flag and name the person in the body.
@@ -8,7 +8,7 @@ import type { TemplateContext } from '../types';
* the fence prose scopes and the model follows.
*/
export function generateUpgradeCheck(ctx: TemplateContext): string {
return `If \`PROACTIVE\` is \`off\`: suggest no skills unasked, nor ask. \`core\`: only /office-hours, /review, /qa, /ship. \`all\`: any. Skills the user names or this one invokes run.
return `If \`PROACTIVE\` is \`off\`: suggest no skills unasked, nor ask. \`core\`: only /office-hours, /review, /qa, /gstack-ship. \`all\`: any. Skills the user names or this one invokes run.
If \`SKILL_PREFIX\` is \`true\` use \`/gstack-*\` names; paths stay \`${ctx.paths.skillRoot}/[skill-name]/SKILL.md\`.`;
}
+6 -6
View File
@@ -14,7 +14,7 @@ ${ctx.host === 'claude' ? `- If the caller directory is \`review\`, Read \`../qa
- If neither layout applies, report an unresolved QA installation as a setup blocker; do not guess another path.` : `- Read \`../gstack-qa/sections/${id}.md\` in full.`}
Use this host's installation, never the product tree. ${QA_ASSET_BLOCKER}`;
}
return `From the installed /${ctx.skillName} SKILL.md's directory, Read \`../${sibling}/sections/${id}.md\` in full.${ctx.host === 'claude' ? ` If the caller directory is prefixed \`gstack-${ctx.skillName}\`, use \`../gstack-qa/sections/${id}.md\` instead.` : ''} Use this host's installation, never the product tree. ${QA_ASSET_BLOCKER}`;
return `From the installed /${ctx.skillName} SKILL.md's directory, Read \`../${sibling}/sections/${id}.md\` in full.${ctx.host === 'claude' ? ` If the caller directory is prefixed \`gstack-${ctx.skillName}\`, use \`../gstack-qa/sections/${id}.md\` instead when that file exists.` : ''} Use this host's installation, never the product tree. ${QA_ASSET_BLOCKER}`;
}
return `Read ${sectionPath(ctx, 'qa', id)} in full. Find qa/gstack-qa beside this host's installed caller skill. ${QA_ASSET_BLOCKER} No product-directory or cross-host substitutes.`;
};
@@ -47,7 +47,7 @@ export function generateQAExploratory(ctx: TemplateContext): string {
const reportOnly = ctx.skillName === 'qa-only';
return `# Shared exploratory QA
The **caller** (/qa, /qa-only, /review or /ship) owns decisions, tests, fixes and publication. Discovery writes only reports/evidence
The **caller** (/qa, /qa-only, /review or /gstack-ship) owns decisions, tests, fixes and publication. Discovery writes only reports/evidence
and owned fixture state; no workflows, framework installs or publication.
${reportOnly ? `## 0. Preparation gate
@@ -69,7 +69,7 @@ full contents. If either required Read is missing, complete it now before Charte
${reportOnly ? 'Reuse resolved REPORT_DIR; otherwise own a fresh \`.gstack/qa-reports\` subdirectory.' : 'Reuse resolved REPORT_DIR; otherwise use the \`reportDir\` \`EVIDENCE_TOOL report-dir\` prints.'}
Write a **charter** per behavior: contract, risk, entrypoint, isolation, exit condition, source, commands and inputs. Save charters as Markdown in the report.
${reportOnly ? '' : `For /review and /ship, no plan/server is required.
${reportOnly ? '' : `For /review and /gstack-ship, no plan/server is required.
Stop after 5 minutes or 12 probes, whichever comes first (SECONDS=300 across surfaces).
Explicit plan checks and revalidation remain required beyond this smoke budget.`}
For /qa and /qa-only:
@@ -148,10 +148,10 @@ Never freeze buggy output, weaken tests or delete valid red tests.`}
Use the surface report template; link each checkpoint. Separate browser scores, functional outcomes and proposed/executed tests.
Write PROBE_DIR/annotations.json {evidence: [{capture, command, contract, expected, classification}], limits: ["checkpoint 001"]} (limits: non-empty string array, not an object; browser-only: evidence []); before Markdown \`bun EVIDENCE_TOOL materialize PROBE_DIR annotations.json\` (fills observed/metadata; prints reportLinks; runs once per PROBE_DIR); you classify. Annotate every safe capture, including failures/replays: an omitted capture is withheld and keeps the verdict inconclusive. Classify a capture taken before an input change \`superseded\`; it closes when the same command reran on current inputs.${reportOnly ? '' : ' After a fix, every earlier capture is superseded, even from a client that prints no snapshot: rerun each one your verdict relies on, or report it as an open remainder.'} Disclose withheld/incomplete evidence.
Evidence is invocation-local${reportOnly ? '.' : '; /ship reruns once per invocation.'}
Evidence is invocation-local${reportOnly ? '.' : '; /gstack-ship reruns once per invocation.'}
Missing prerequisites/expectations/observations, timeouts and refusal never pass.
Pass requires all required current-input contracts to pass with no required remainder.
${reportOnly ? 'Report blocked, inconclusive and not-run coverage without claiming success.' : `Required failure leaves /review incomplete and /ship blocked unless the user explicitly accepts that named risk; noninteractive runs return blocked. Only nonbehavioral diffs may be not applicable (give a reason); prompts/templates are behavioral.`}`;
${reportOnly ? 'Report blocked, inconclusive and not-run coverage without claiming success.' : `Required failure leaves /review incomplete and /gstack-ship blocked unless the user explicitly accepts that named risk; noninteractive runs return blocked. Only nonbehavioral diffs may be not applicable (give a reason); prompts/templates are behavioral.`}`;
}
export function generateQAFunctional(_ctx: TemplateContext): string {
@@ -174,7 +174,7 @@ For /qa and /qa-only, within the selected scope:
Preserve the prior report; report fixed, still failing and new findings separately.
Missing safe replay inputs block affected probes, never count as passes.
Mixed runs apply each surface's mode separately. /review and /ship retain their caller's
Mixed runs apply each surface's mode separately. /review and /gstack-ship retain their caller's
bounded smoke and explicit plan checks, not Full exploration.
## Contract map
+1 -1
View File
@@ -1,6 +1,6 @@
/**
* ship/DRIVER.md resolvers (GSTA-167 PR 5): the compact entry a parent agent
* reads to run an unattended /ship, instead of ship/SKILL.md plus its sections.
* reads to run an unattended /gstack-ship, instead of ship/SKILL.md plus its sections.
* The phases live in ship/DRIVER.md.tmpl; this file owns the one list a reader
* must trust most: which heading each STOP sends the parent to. test/ship-driver.test.ts
* resolves every anchor against the generated files.
+1 -1
View File
@@ -168,7 +168,7 @@ export function generateTestValueBar(ctx: TemplateContext, args?: string[]): str
cardRules(mode, ctx.skillName),
];
if (mode !== 'qa') parts.splice(2, 0, 'A test that breaks under a behavior-preserving refactor asserts implementation: rewrite it at the owning boundary, unless exact output is the declared contract (goldens, prompt bytes, wire formats).');
if (mode === 'plan') parts.push(`${STAR_RULE} /ship computes them; here every proposed test needs a card.`, RETENTION_ONE_LINER);
if (mode === 'plan') parts.push(`${STAR_RULE} /gstack-ship computes them; here every proposed test needs a card.`, RETENTION_ONE_LINER);
if (mode === 'ship') parts.push(`${STAR_RULE} ${WEAK_PATH_RULE}`, RETENTION_ONE_LINER);
if (mode === 'ship' || mode === 'audit') parts.push(RED_PROOF);
if (mode === 'audit') parts.push(auditSections());
+3 -3
View File
@@ -217,10 +217,10 @@ Only commit if there are changes. Stage the bootstrap's own files by name (confi
export type CoverageAuditMode = Extract<TestValueBarMode, 'plan' | 'ship'>;
function generateBaseControl(ctx: TemplateContext): string {
return `**Red-first proof.** Apply the value bar's Regression proof to every regression test: the diff at HEAD is the pre-fix code, so run the new test at HEAD before any repair. Then, unless the parent says \`Base control: off\`, run this base control once per regression test in diff order, within a 3-minute total per /ship run (\`Base control budget:\` seconds per test, default 90). Past the total, record "base control unavailable: budget" and report "N of M regression tests got base control". The block is one shell invocation; it installs nothing and runs no build or postinstall.
return `**Red-first proof.** Apply the value bar's Regression proof to every regression test: the diff at HEAD is the pre-fix code, so run the new test at HEAD before any repair. Then, unless the parent says \`Base control: off\`, run this base control once per regression test in diff order, within a 3-minute total per /gstack-ship run (\`Base control budget:\` seconds per test, default 90). Past the total, record "base control unavailable: budget" and report "N of M regression tests got base control". The block is one shell invocation; it installs nothing and runs no build or postinstall.
\`\`\`bash
# Set: BASE = the base branch this /ship run resolved; TEST = the test file; FIXTURES = new
# Set: BASE = the base branch this /gstack-ship run resolved; TEST = the test file; FIXTURES = new
# test-only fixtures it imports (repo-relative, may be empty); RUN = the detected
# runner for one file (e.g. "bun test $TEST"); BUDGET = seconds for this run (default 90).
ROOT=$(git rev-parse --show-toplevel)
@@ -636,7 +636,7 @@ Write to \`<PROJECT_DIR>/{user}-{branch}-ship-test-plan-{datetime}.md\` (\`PROJE
\`\`\`markdown
# Test Plan
Generated by /ship on {date}
Generated by /gstack-ship on {date}
Branch: {branch}
Repo: {owner/repo}
+1 -1
View File
@@ -131,7 +131,7 @@ exact replay and additional evidence. Never batch across checkpoints.
## Modes
For /qa and /qa-only, choose Full, Quick or Regression. Resolve conflicting depth flags
by asking before probes. /review and /ship keep their caller's smoke and plan bounds.
by asking before probes. /review and /gstack-ship keep their caller's smoke and plan bounds.
Diff-aware selects scope, not another pass. Time caps include checkpoints and evidence.
At exhaustion, stop probing and report unfinished coverage, never skip checkpoints.