Mono Ship
Invoke as $mono-ship.
Use this skill to ship completed work in a pnpm workspace monorepo only after package-scoped and transitive-dependent validation has passed. mono-ship does not replace $ship; it injects monorepo-aware validation before standard shipping and lane-spec status updates after standard shipping.
Augmentation Injection Pattern
mono-ship adds these stages around normal ship execution:
- Pre-ship: run
mono-detect when needed, read .agents/lane-specs.json and .agents/monorepo.json, confirm branch-backed lane work has passed consolidation/PR review, identify modified packages, run package-scoped test/lint/build, and run transitive-dependent validation from the dependency graph.
- Ship: delegate to the standard
$ship contract after validation passes.
- Post-ship: update
tasks/lane-specs.md with shipping status, lifecycle notes, and the next routed command.
The base $ship skill remains the source of truth for final validation policy, task docs, history updates, commit/push, deploy handling, and next-step routing.
Inputs
.agents/monorepo.json: generated by mono-detect; contains workspace packages, package paths, build orchestrator, scripts, and dependency_graph.
.agents/lane-specs.json: generated by mono-exec; contains lane lifecycle and package ownership for modified work.
tasks/lane-specs.md: committed human-readable mirror of lane status and shipping status.
- Git diff: used to identify changed package paths when lane specs are absent, stale, or incomplete.
If .agents/monorepo.json is missing or stale, run mono-detect first. If the project is not a detected pnpm workspace monorepo, delegate directly to $ship.
Pre-Ship Workflow
- Run
mono-detect.
- If
turbo.json is present, prefer turbo run for package validation.
- If Turborepo is absent, fall back to
pnpm --filter.
- If detection fails because this is not a pnpm workspace monorepo, delegate directly to
$ship.
- Read
.agents/monorepo.json.
- Use
packages to map changed paths to package names.
- Use
.agents/monorepo.json.dependency_graph to find internal package dependents.
- Read
.agents/lane-specs.json when present.
- Treat lanes with lifecycle
integrated as the preferred source for modified packages.
- If lane specs are missing or do not identify all changed package paths, supplement with
git diff --name-only.
- If lane specs contain branch-backed
agent-team lanes, confirm consolidation/PR review evidence exists before shipping; otherwise stop and rerun $mono-guard --post-integration.
- Determine the package validation set.
- Include every package modified by the current shipping boundary.
- Include every transitive dependent of each modified package by walking reverse edges from
dependency_graph.
- Include directly changed shared packages even if no lane owns them.
- Run package-scoped validation for each modified package:
- Test:
turbo run test --filter=<package> when Turborepo is available; otherwise pnpm --filter <package> run test.
- Lint:
turbo run lint --filter=<package> when Turborepo is available; otherwise pnpm --filter <package> run lint.
- Build:
turbo run build --filter=<package> when Turborepo is available; otherwise pnpm --filter <package> run build.
- Skip a task only when the package lacks that script or the repo's validation contract explicitly says it is not applicable; record the skip with rationale.
- Run transitive-dependent validation.
- For packages that depend on modified packages, run their available test, lint, and build scripts using the same Turbo-first preference.
- With Turborepo, prefer
turbo run <task> --filter=<dependent> to let Turbo include relevant dependency ordering and cache behavior.
- Without Turborepo, order dependent validation from nearest dependent outward using the dependency graph.
- Stop and report on any validation failure before shipping.
- Do not delegate to
$ship.
- Do not update lifecycle to shipped.
- Report failed command, package, task, and the smallest recommended fix path.
Ship Workflow
After pre-ship validation passes, delegate to $ship.
mono-ship must not bypass or duplicate standard $ship responsibilities. $ship owns commit grouping, push target, deploy contract handling, final task/history updates, quality manifest requirements, and final next-step routing.
Post-Ship Workflow
After $ship completes successfully:
- Update
tasks/lane-specs.md if it exists.
- Record shipping status as shipped.
- Record validation packages and transitive dependents that were checked.
- Record the final commit or push summary when available.
- Preserve lane history instead of rewriting prior failure or integration notes.
- If
.agents/lane-specs.json is still part of the project workflow, update its lifecycle only through the same lane-spec artifact contract used by mono-exec.
- If
--pipeline was used, plan the next phase or next step using the command reported by $ship.
Validation Command Preference
- With
turbo.json: prefer turbo run <task> --filter=<package> for test, lint, build, and dependent validation.
- Without
turbo.json: prefer pnpm --filter <package> run <task>.
- Use
.agents/monorepo.json.dependency_graph to compute transitive dependents and validation order when Turborepo is absent.
Output
- Detection: monorepo detected or delegated to
$ship.
- Modified packages: package names and source used to identify them.
- Transitive dependents: dependent packages selected from
dependency_graph.
- Validation: commands run, skipped scripts with rationale, failures or warnings.
- Ship result: delegated
$ship status.
- Lane specs: lane-spec mirror status update, when applicable.
- Next work: concrete follow-up.
- Recommended next command: one command.
Constraints
- Do not run package manager install/add commands.
- Do not modify lockfiles as part of shipping validation.
- Do not proceed to
$ship if package-scoped or transitive-dependent validation fails.
- Do not hide package warnings; fix them, accept them with rationale, or report them as unresolved blockers.
- Do not bypass standard
$ship task docs, history, commit/push, deploy, quality gate, or next-step routing responsibilities.
- Do not use GitHub Actions.
Next-Step Routing
- Non-monorepo project:
$ship.
- Missing or stale
.agents/monorepo.json: $mono-detect.
- Validation failure before shipping: fix the package failure, then rerun
$mono-ship.
- Successful pre-ship validation: delegate to
$ship.
- Successful pipeline ship: follow the next command reported by
$ship, usually $exec.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
1---2name: mono-ship3description: Augment the standard ship lifecycle with monorepo package-scoped and transitive-dependent validation4type: shipping5version: v0.06argument-hint: "[--pipeline]"7invocation: orchestrator8metadata:9 source: https://skillmd.com/skills/georgeqle/mono-ship10---1112# Mono Ship1314Invoke as `$mono-ship`.1516Use this skill to ship completed work in a pnpm workspace monorepo only after package-scoped and transitive-dependent validation has passed. `mono-ship` does not replace `$ship`; it injects monorepo-aware validation before standard shipping and lane-spec status updates after standard shipping.1718## Augmentation Injection Pattern1920`mono-ship` adds these stages around normal ship execution:21221. **Pre-ship:** run `mono-detect` when needed, read `.agents/lane-specs.json` and `.agents/monorepo.json`, confirm branch-backed lane work has passed consolidation/PR review, identify modified packages, run package-scoped test/lint/build, and run transitive-dependent validation from the dependency graph.232. **Ship:** delegate to the standard `$ship` contract after validation passes.243. **Post-ship:** update `tasks/lane-specs.md` with shipping status, lifecycle notes, and the next routed command.2526The base `$ship` skill remains the source of truth for final validation policy, task docs, history updates, commit/push, deploy handling, and next-step routing.2728## Inputs2930- `.agents/monorepo.json`: generated by `mono-detect`; contains workspace packages, package paths, build orchestrator, scripts, and `dependency_graph`.31- `.agents/lane-specs.json`: generated by `mono-exec`; contains lane lifecycle and package ownership for modified work.32- `tasks/lane-specs.md`: committed human-readable mirror of lane status and shipping status.33- Git diff: used to identify changed package paths when lane specs are absent, stale, or incomplete.3435If `.agents/monorepo.json` is missing or stale, run `mono-detect` first. If the project is not a detected pnpm workspace monorepo, delegate directly to `$ship`.3637## Pre-Ship Workflow38391. Run `mono-detect`.40 - If `turbo.json` is present, prefer `turbo run` for package validation.41 - If Turborepo is absent, fall back to `pnpm --filter`.42 - If detection fails because this is not a pnpm workspace monorepo, delegate directly to `$ship`.432. Read `.agents/monorepo.json`.44 - Use `packages` to map changed paths to package names.45 - Use `.agents/monorepo.json.dependency_graph` to find internal package dependents.463. Read `.agents/lane-specs.json` when present.47 - Treat lanes with lifecycle `integrated` as the preferred source for modified packages.48 - If lane specs are missing or do not identify all changed package paths, supplement with `git diff --name-only`.49 - If lane specs contain branch-backed `agent-team` lanes, confirm consolidation/PR review evidence exists before shipping; otherwise stop and rerun `$mono-guard --post-integration`.504. Determine the package validation set.51 - Include every package modified by the current shipping boundary.52 - Include every transitive dependent of each modified package by walking reverse edges from `dependency_graph`.53 - Include directly changed shared packages even if no lane owns them.545. Run package-scoped validation for each modified package:55 - Test: `turbo run test --filter=<package>` when Turborepo is available; otherwise `pnpm --filter <package> run test`.56 - Lint: `turbo run lint --filter=<package>` when Turborepo is available; otherwise `pnpm --filter <package> run lint`.57 - Build: `turbo run build --filter=<package>` when Turborepo is available; otherwise `pnpm --filter <package> run build`.58 - Skip a task only when the package lacks that script or the repo's validation contract explicitly says it is not applicable; record the skip with rationale.596. Run transitive-dependent validation.60 - For packages that depend on modified packages, run their available test, lint, and build scripts using the same Turbo-first preference.61 - With Turborepo, prefer `turbo run <task> --filter=<dependent>` to let Turbo include relevant dependency ordering and cache behavior.62 - Without Turborepo, order dependent validation from nearest dependent outward using the dependency graph.637. Stop and report on any validation failure before shipping.64 - Do not delegate to `$ship`.65 - Do not update lifecycle to shipped.66 - Report failed command, package, task, and the smallest recommended fix path.6768## Ship Workflow6970After pre-ship validation passes, delegate to `$ship`.7172`mono-ship` must not bypass or duplicate standard `$ship` responsibilities. `$ship` owns commit grouping, push target, deploy contract handling, final task/history updates, quality manifest requirements, and final next-step routing.7374## Post-Ship Workflow7576After `$ship` completes successfully:77781. Update `tasks/lane-specs.md` if it exists.79 - Record shipping status as shipped.80 - Record validation packages and transitive dependents that were checked.81 - Record the final commit or push summary when available.82 - Preserve lane history instead of rewriting prior failure or integration notes.832. If `.agents/lane-specs.json` is still part of the project workflow, update its lifecycle only through the same lane-spec artifact contract used by `mono-exec`.843. If `--pipeline` was used, plan the next phase or next step using the command reported by `$ship`.8586## Validation Command Preference8788- With `turbo.json`: prefer `turbo run <task> --filter=<package>` for test, lint, build, and dependent validation.89- Without `turbo.json`: prefer `pnpm --filter <package> run <task>`.90- Use `.agents/monorepo.json.dependency_graph` to compute transitive dependents and validation order when Turborepo is absent.9192## Output9394- **Detection:** monorepo detected or delegated to `$ship`.95- **Modified packages:** package names and source used to identify them.96- **Transitive dependents:** dependent packages selected from `dependency_graph`.97- **Validation:** commands run, skipped scripts with rationale, failures or warnings.98- **Ship result:** delegated `$ship` status.99- **Lane specs:** lane-spec mirror status update, when applicable.100- **Next work:** concrete follow-up.101- **Recommended next command:** one command.102103## Constraints104105- Do not run package manager install/add commands.106- Do not modify lockfiles as part of shipping validation.107- Do not proceed to `$ship` if package-scoped or transitive-dependent validation fails.108- Do not hide package warnings; fix them, accept them with rationale, or report them as unresolved blockers.109- Do not bypass standard `$ship` task docs, history, commit/push, deploy, quality gate, or next-step routing responsibilities.110- Do not use GitHub Actions.111112## Next-Step Routing113114- Non-monorepo project: `$ship`.115- Missing or stale `.agents/monorepo.json`: `$mono-detect`.116- Validation failure before shipping: fix the package failure, then rerun `$mono-ship`.117- Successful pre-ship validation: delegate to `$ship`.118- Successful pipeline ship: follow the next command reported by `$ship`, usually `$exec`.119120121## Default Shipping Contract122123Follow the shared shipping contract convention in CLAUDE.md.