mono-plan
Detect monorepo structure, identify shared chokepoints, and generate safe parallel lane specs aligned to package boundaries
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- mono-plan
- type
- planning
- version
- v0.3
- description
- Detect monorepo structure, identify shared chokepoints, and generate safe parallel lane specs aligned to package boundaries
- required_conventions
- [ "alignment-page" ]
02 资源文件 3
- 参考文档agents/openai.yaml268 B
- 参考文档ALIGNMENT-PAGE.md51.5 KB
- 参考文档CHANGELOG.md673 B
03 SKILL.md 正文
Mono Plan
Invoke as $mono-plan.
Use this skill when the user needs to plan safe parallel work across a monorepo. Generates lane specs aligned to package boundaries with lockfile and root config safety built in.
Run after $roadmap sets agent-team or implementation-safe on a phase, before $plan-phase decomposes it.
Process
- Detect monorepo structure (
pnpm-workspace.yaml,turbo.json,lerna.json,package.jsonworkspaces). Stop if not a monorepo. - Enumerate packages, read each
package.json, build internal dependency graph. - Identify shared chokepoints: lockfiles (
pnpm-lock.yaml,package-lock.json,yarn.lock,bun.lockb), root configs (tsconfig.base.json,turbo.json, etc.), high-fan-out shared packages (3+ dependents). - Read the target phase from
tasks/roadmap.md, map scope to specific packages. - Classify packages: independent, dependent, or shared.
- Recommend strategy:
agent-team(independent packages with branch-backed lanes),serial(linear chain), or mixed with dependency edges. - Generate lane specs in execution profile format:
- Lane 0 (deps): serial lane owning lockfiles if any lane needs dependency installs. All write lanes depend on it.
- Package lanes: one per package,
Ownsscoped to package dir,Must not editincludes all lockfiles + root configs + other lanes' paths, andBranchusesagent-team/phase-N-<package-or-lane>. Scope text includes "Do NOT run pnpm install or any lockfile-modifying command." - Consolidation/PR review: add a final review lane or implementation step that reviews every package lane branch/PR before integration.
- Validate: disjoint Owns, all lockfiles excluded from write lanes, valid DAG, unique non-primary branches, and a consolidation/PR review gate.
Output
- Monorepo tool and package count
- Shared Chokepoints: lockfiles, root configs, high-fan-out packages
- Package Dependency Graph: in-scope packages with dependency edges
- Recommended Strategy: parallel mode and rationale
- Lane Specifications: in execution profile format (Agent, Role, Mode, Scope, Owns, Must not edit, Branch, Depends on, Deliverable)
- Consolidation/PR Review: required final gate for
agent-teampackage lanes, including branch/PR review and boundary checks before integration
Constraints
- Do not modify task files — output is advisory only.
- Do not run package manager install/add commands.
- Maximum 12 parallel write lanes — group if more packages are in scope.
- Do not recommend
agent-teamif the project cannot push lane branches to GitHub and review PRs; useimplementation-safe,research-only, orserialinstead.
Alignment Page
Follow the shared alignment-page convention via the packaged convention resolver; output path is alignment/mono-plan-{topic}.html. By default, report results inline and write only this skill's normal durable artifacts; create an alignment page only when explicitly requested or when a concrete clarification/review need cannot be handled cleanly inline.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.