You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
/ship Step 5 hardcodes bin/test-lane + npm run test regardless of detected framework #1069
Ran /ship in a Django-only project. Step 4's {{TEST_BOOTSTRAP}} correctly detected the runtime:
Test framework detected: Python/Django with chores/tests.py. Skipping bootstrap.
But Step 5 then told the agent to run:
bin/test-lane 2>&1| tee /tmp/ship_tests.txt &
npm run test2>&1| tee /tmp/ship_vitest.txt &wait
Neither command exists in a Django project. Both are hardcoded — bin/test-lane is Rails-specific and npm run test is Node-specific. They appear to have leaked in from a Rails-with-Vitest project the skill was authored against.
Where
ship/SKILL.md.tmpl:148-160 — Step 5 runs both hardcoded commands unconditionally, without regard to what Step 4 just detected.
Why it's a bug
This directly violates the project's own rule in CLAUDE.md:
Platform-agnostic design
Skills must NEVER hardcode framework-specific commands, file patterns, or directory structures. Instead:
Read CLAUDE.md for project-specific config (test commands, eval commands, etc.)
If missing, AskUserQuestion — let the user tell you or let gstack search the repo
Persist the answer to CLAUDE.md so we never have to ask again
Step 4 already follows this pattern (detects runtime, bootstraps if needed). Step 5 doesn't — it just assumes Rails + Vitest.
Suggested fix shape
Read the test command from the project's CLAUDE.md (the ## Testing section that the bootstrap flow writes). If present, run it.
If missing, AskUserQuestion and persist the answer back to CLAUDE.md so the next /ship doesn't re-ask.
Drop the hardcoded bin/test-lane + npm run test pair.
Guardrail: add a test that renders ship/SKILL.md and fails if it contains hardcoded framework commands outside a detection block, so the regression can't quietly come back.
Repro
Run /ship in any non-Rails, non-Node project (Django, Go, Rust, etc). Step 5 will propose bin/test-lane + npm run test.
Out of scope
Step 6 ("Eval Suites") also has Rails-specific path patterns and bin/test-lane --eval commands, but it self-skips cleanly on non-matching diffs ("No prompt-related files changed — skipping."), so it's cosmetic for now. Leaving that for a separate issue if it ever actually fires incorrectly.
@time-attack Yup, still seeing those very specific commands in ship.
Do NOT run RAILS_ENV=test bin/rails db:migrate
~/.claude/skills/gstack/bin/gstack-evidence run --label tests -- 'bin/test-lane 2>&1' &
~/.claude/skills/gstack/bin/gstack-evidence run --label vitest -- 'npm run test 2>&1' &
Thanks @dgrant for the precise report. /ship now takes the test command from your CLAUDE.md/AGENTS.md or Step 4 detection and treats the bin/test-lane and npm commands as examples only (v1.84.1.0). Please reopen if you still see it run commands your project doesn't have.
Activity
time-attack commentedon Jul 15, 2026
@dgrant The active test instructions still hardcode Rails and Node commands, leaving other detected frameworks unsupported.
dgrant commentedon Sep 4, 2026
@time-attack Yup, still seeing those very specific commands in ship.
capy-ai commentedon Oct 11, 2026
Thanks @dgrant for the precise report. /ship now takes the test command from your CLAUDE.md/AGENTS.md or Step 4 detection and treats the bin/test-lane and npm commands as examples only (v1.84.1.0). Please reopen if you still see it run commands your project doesn't have.