From ctx
Use when ready to take a feature from plan through to draft PR with gated human approval at each phase. Does NOT merge autonomously. Triggers: "ship this", "full pipeline", "/ship".
How this skill is triggered — by the user, by Claude, or both
Slash command
/ctx:ctx-shipThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Delegates git mechanics to `${CLAUDE_PLUGIN_ROOT}/scripts/ship-preflight.sh` and `${CLAUDE_PLUGIN_ROOT}/scripts/ship-pr.sh`. This skill handles gating and judgment.
Delegates git mechanics to ${CLAUDE_PLUGIN_ROOT}/scripts/ship-preflight.sh and ${CLAUDE_PLUGIN_ROOT}/scripts/ship-pr.sh. This skill handles gating and judgment.
Pipeline: Preflight → Architect → Implement → Verify → PR Readiness → Ship
Each phase ends with a gate. Do not advance without explicit user confirmation.
The scripts are at ${CLAUDE_PLUGIN_ROOT}/scripts/.
bash ${CLAUDE_PLUGIN_ROOT}/scripts/ship-preflight.sh --base main
Parse the output. Classify risk from prod_files, prod_lines, and ---risk-signals---:
| Risk | Signals |
|---|---|
| LOW | Config, docs, copy. No logic. |
| MEDIUM | New feature in existing patterns. 1-3 prod files. |
| HIGH | New system, auth/data model changes, 4+ prod files, or scope-over-500-lines signal. |
If scope-warning-400-plus or scope-over-500-lines: warn or block before proceeding.
Gate 0: User confirms branch, feature description, and risk level.
Goal: written plan before any code. Invoke /ctx-brainstorm if design exploration needed, then /ctx-plan.
Gate A: User approves the plan.
Execute via /ctx-execute or inline for small plans. Follow project conventions.
Gate B: Static checks pass (discover lint/type commands from project config).
Cheap checks first (type-check + lint + unit tests), then acceptance tests only after commit stage passes.
Scope check uses prod_lines from preflight. Re-run preflight if implementation changed the diff:
Gate C: Commit + acceptance pass, diff within scope.
Review the diff (use ---files--- from preflight) for:
| Check | Flag when |
|---|---|
| Tests for logic changes | New logic with no test file touched |
| No leaked internals | Error details, stack traces in API responses |
| No hardcoded secrets | API keys, tokens, passwords in code |
| No TODO debris | TODO/FIXME/HACK without tracking issue |
Risk-adjusted enforcement: LOW = advisory, MEDIUM = user acknowledges, HIGH = hard block.
Gate D: Risk-appropriate findings cleared.
Prepare commit message and PR body (judgment), then delegate mechanics:
bash ${CLAUDE_PLUGIN_ROOT}/scripts/ship-pr.sh \
--files file1.ts file2.ts \
--message "feat: description" \
--title "PR title under 70 chars" \
--body "PR body with ## What changed, ## Why, ## Risk, ## Validation" \
--draft
PR body template:
## What changed
- <bullet points>
## Why
<one sentence>
## Risk
<low/medium/high> — <one sentence>
## Validation
<commands run and their results>
## Rollback plan
<revert PR, or specific rollback steps if migrations/data changes involved>
Gate E: PR is open, CI is green.
/ctx-ship
└─ Phase 0: ship-preflight.sh
└─ Phase 1: /ctx-brainstorm → /ctx-plan
└─ Phase 2: /ctx-execute (or inline)
└─ Phase 3: Verify (re-run preflight if needed)
└─ Phase 4: PR Readiness (judgment)
└─ Phase 5: ship-pr.sh
git add -A. The script stages specific files only — always pass explicit --files.npx claudepluginhub garabed96/ctx-plugin --plugin ctxOrchestrates a fully autonomous shipping pipeline: plan, implement, review, fix, commit, push, open PR, and watch CI to green. Use when the user asks to ship something autonomously to an open PR.
Enforces GRFP-style iterative approval, code integrity validation, and human-gated merges when running claudikins-kernel:ship, preparing PRs, writing changelogs, deciding merge strategy, or handling CI failures.
Orchestrates the full shipping workflow: code review via candid-loop, install/build/tests, GitHub PR creation, optional issue tracker update and auto-merge. Aborts on failure before PR creation.