cross-repo-plan
Creates and tracks implementation plans that span multiple repositories. Extends the single-repo plan model with a coordinator document that tracks per-repo progress, cross-repo dependencies, and execution order.
Best use case
cross-repo-plan is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Creates and tracks implementation plans that span multiple repositories. Extends the single-repo plan model with a coordinator document that tracks per-repo progress, cross-repo dependencies, and execution order.
Teams using cross-repo-plan should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/cross-repo-plan/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How cross-repo-plan Compares
| Feature / Agent | cross-repo-plan | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Creates and tracks implementation plans that span multiple repositories. Extends the single-repo plan model with a coordinator document that tracks per-repo progress, cross-repo dependencies, and execution order.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Skill: Cross-Repo Plan > **Note**: This skill extends the plan model beyond single repositories. The execution is inherently serial (one repo at a time in OpenCode). Use this for planning and tracking, not for simultaneous multi-repo execution. ## What This Skill Does Creates an **implementation plan that spans multiple repositories**. While the standard `create-plan` skill works within a single repo, many real-world features require coordinated changes across several repos (e.g., updating a shared library and then adapting all consumers). Produces: - **Coordinator plan** in the current repo with cross-repo phase dependencies - **Per-repo phase documents** that reference the coordinator plan - **Execution order** that respects inter-repo dependencies - **Global progress tracking** across all involved repos ## When to Use - When a feature requires changes in 2+ repositories - When a shared library update needs coordinated consumer updates - When a migration spans multiple services - When the user says "this affects repo X and repo Y" Do NOT use this for changes that fit within a single repository — use `create-plan` instead. ## Execution Model - **Always**: the primary agent runs this skill directly. - **Rationale**: cross-repo planning requires conversation context to understand repository relationships and user priorities. The plan structure is fundamentally a coordination document, not a deep codebase analysis. - **Limitation**: OpenCode operates in one repo at a time. The coordinator plan lives in the "hub" repo; per-repo phases are executed when the user opens each respective repo. ## Workflow ### Step 1: Identify Repositories Use the `question` tool to determine: 1. Which repositories are involved? 2. What is the relationship between them? (shared library → consumers, microservices, monorepo packages) 3. Which repo is the "hub" (where the coordinator plan will live)? 4. What is the execution order? (which repo must be changed first?) ### Step 2: Map Cross-Repo Dependencies For each repository, understand: - What it provides to other repos (shared types, API contracts, libraries) - What it consumes from other repos (imported packages, API calls) - What the planned change affects in each repo Build a dependency graph: ```markdown ## Dependency Graph repo-a (shared-lib) ↓ provides types + utilities repo-b (api-service) ↓ provides API endpoints repo-c (web-frontend) ↓ consumes API repo-d (mobile-app) ``` ### Step 3: Design Phase Structure Create phases that respect the dependency order: - **Phase 1**: Changes in the upstream/provider repo (e.g., shared library) - **Phase 2**: Changes in direct consumers - **Phase 3**: Changes in downstream consumers - **Phase N**: Integration testing across repos Each phase is tagged with its target repository: ```markdown | Phase | Repo | Title | Depends On | |-------|------|-------|------------| | 1 | shared-lib | Update auth types | – | | 2 | api-service | Adapt API to new types | Phase 1 | | 3 | web-frontend | Update API client | Phase 2 | | 4 | mobile-app | Update API client | Phase 2 | | 5 | – (all) | Cross-repo integration test | Phases 2-4 | ``` ### Step 4: Create Coordinator Plan Write the coordinator plan to `plans/<name>/plan.md` in the hub repo, using the **coordinator-plan template** (`tpl-coordinator-plan.md`). The template provides: 1. **Repositories section**: list all involved repos with their roles 2. **Dependency graph**: visual representation of repo relationships 3. **Per-repo phases**: each phase tagged with its target repo 4. **Cross-repo acceptance criteria**: conditions that span repositories 5. **Execution order**: step-by-step checklist per phase/repo ### Step 5: Create Per-Repo Phase Documents For each phase, create the standard phase and implementation plan documents. Add a header noting: ```markdown --- type: phase plan: <plan-name> repo: <target-repo> coordinator: <hub-repo> --- ``` This allows `resume-plan` in any repo to find and reference the coordinator plan. ### Step 6: Create Execution Checklist Add a section to the coordinator plan's `todo.md` that tracks cross-repo execution: ```markdown ## Cross-Repo Execution ### Phase 1: shared-lib - [ ] Open shared-lib repo - [ ] Run resume-plan (references this coordinator plan) - [ ] Implement Phase 1 - [ ] Publish / push changes - [ ] Verify consumers can access new version ### Phase 2: api-service - [ ] Verify Phase 1 artifact is available (new package version / merged PR) - [ ] Open api-service repo - [ ] Run resume-plan - [ ] Implement Phase 2 ``` ### Step 7: Present and Confirm Present the cross-repo plan to the user. Confirm: - Are the repo dependencies correct? - Is the execution order feasible? - Are there deployment/release gates between phases? - Who needs to be notified for each repo change? ## Limitations 1. **Serial execution**: OpenCode works in one repo at a time. Cross-repo phases must be executed sequentially by switching repos. 2. **No live status sync**: the coordinator plan is a planning document, not a live dashboard. Status updates happen when the user runs `update-plan` in each repo. 3. **Manual verification**: cross-repo acceptance criteria must be verified manually (e.g., "API contract matches between service and client"). 4. **Hub repo responsibility**: the coordinator plan lives in one repo. If the hub repo is not the one currently open, the user must remember to update it. ## Rules 1. **One coordinator, many targets**: the coordinator plan lives in a single hub repo. Per-repo phases reference back to it. 2. **Respect dependency order**: never create a phase that runs before its upstream dependency is completed and available. 3. **Each phase = one repo**: a single phase should not span multiple repos. Split cross-repo work into repo-specific phases. 4. **Standard templates**: use the existing plan, phase, and implementation plan templates. The cross-repo additions are metadata (repo tag, dependency graph), not a new template. 5. **Track availability, not just completion**: a phase in repo-a is not just "completed" — its output must be "available" to repo-b (published package, merged PR, deployed service). 6. **No built-in explore agent**: do NOT use the built-in `explore` subagent type.
Related Skills
enhance-cross-file
Use when checking cross-file consistency: tools vs frontmatter, agent references, duplicate rules, contradictions.
crossing-the-chasm
Navigate the technology adoption lifecycle from early adopters to mainstream market. Use when the user mentions "crossing the chasm", "beachhead segment", "whole product", "early adopters vs. mainstream", or "tech go-to-market". Covers D-Day analogy, bowling-pin strategy, and positioning against incumbents. For product positioning, see obviously-awesome. For new market creation, see blue-ocean-strategy.
repo-story-time
Generate a comprehensive repository summary and narrative story from commit history
create-github-issues-feature-from-implementation-plan
Create GitHub Issues from implementation plan phases using feature_request.yml or chore_request.yml templates.
update-plan
Update an existing plan's status, todo list, and phase progress. Tracks what was done, updates completion status, and maintains the changelog. Use this skill during or after working on a plan phase to keep planning artifacts current.
research-report
Summarize deep research results into markdown report, cover all fields, skip uncertain values.
sdd:plan
Refine, parallelize, and verify a draft task specification into a fully planned implementation-ready task
monorepo-architect
Expert in monorepo architecture, build systems, and dependency management at scale. Masters Nx, Turborepo, Bazel, and Lerna for efficient multi-project development. Use PROACTIVELY for monorepo setup,
market-research-reports
Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.
executing-plans
Use when you have a written implementation plan to execute in a separate session with review checkpoints
concise-planning
Use when a user asks for a plan for a coding task, to generate a clear, actionable, and atomic checklist.
devops-rollout-plan
Generate comprehensive rollout plans with preflight checks, step-by-step deployment, verification signals, rollback procedures, and communication plans for infrastructure and application changes