/meta:meta-workspacefrom meta
Provides guidance for operating in meta repository workspaces using .meta.yaml configuration. Covers cross-repo git commands, worktree management, and session startup.
Ships in meta. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This project is a meta repository - a parent repo that manages a graph of child repositories, each with its own git history. Understanding this structure is essential for effective operation.
In the commands below, <repo> is a repo's .meta.yaml name or its path from the nearest .meta.yaml (with -r or -A, from the workspace root: a repo of a nested meta repo needs one of them), and <tag> one of its tags. The .meta.yaml shown is an example.
meta -r git pull --ff-only, then meta -r git update to clone what is missing): every change goes in a worktree set (the meta-worktree skill).meta git for cross-repo git, not raw git: meta git status shows every repo at once; meta git commit -m "msg" commits what is staged, in each repo that has staged changes.meta exec for cross-repo commands, not cd <repo> && <command>: meta exec -- npm install runs in every repo; meta --include <repo>,<repo> exec -- <command> in the ones named.meta git status shows which repos have changes; commit only where you mean to.--include <repo>,<repo> only these repos, --exclude <repo> all but this one, --tag <tag> the repos with this tag.When you begin working in a meta repo, discover its structure:
meta -A --json project list
This returns repos, paths, and tags. Use this to:
For what depends on what, read depends_on and provides in .meta.yaml, or ask meta -r project dependents <repo>.
Run meta git status to see the current state of every repo at this level (meta -r git status: the meta repos nested below it too; meta -A git status: the whole workspace, from anywhere).
Keep .meta/skills, .agents and .claude committed in the root repo (meta init skills writes them, untracked), or a worktree set made from origin/main won't have this guidance.
In a meta repo, changes often span multiple repositories. Using meta commands instead of plain git lets you:
One config file in the workspace root, .meta.yaml, defines the child
repositories.
projects:
api: [email protected]:org/api.git
web:
repo: [email protected]:org/web.git
path: frontend/web
tags: [frontend, typescript]
Simple format: name: git-url - clones to ./name
Extended format: a mapping; every key is optional (repo, path, branch, tags, provides, depends_on, meta: true for a nested meta repo). branch is the branch the project starts from: clones check it out and worktree sets start new branches from it; without it, the remote's default branch. It never moves a repo that is already cloned.
# List all projects in this workspace
meta project list
# See git status across every repo at once
meta git status
When projects have tags, filter operations:
# The tagged repos (not the root: it has no tags; add it with --include .;
# -r: the tags of nested meta repos' projects too)
meta -r --tag <tag> git status
# Any of several tags (comma-separated)
meta -r --tag <tag>,<tag> exec -- make test
# Exclude specific repos
meta --exclude <repo> git pull
Meta repos can contain other meta repos. meta reaches them at three levels, chosen before the command: no option, the nearest .meta.yaml; -r, that one and the meta repos nested under it; -A, the whole workspace from its outermost .meta.yaml, wherever you are (at the root, -r and -A are the same). With -r or -A, repos are named by their path from the workspace root.
# Clone a meta repo and ALL nested meta repos
meta -r git clone <url>
# Status across the meta repos nested below here
meta -r git status
# Status across the whole workspace, from anywhere
meta -A git status
meta's --depth N, before the command, limits how deep into nested meta repos it goes (meta -r --depth 1 git clone <url>); after git clone, --depth N is git's history depth.
The meta MCP server gives structured JSON. Start it with meta-mcp, which speaks MCP over stdio for the workspace or set it starts in, or install the Claude Code plugin, which registers it. To register it yourself, in .mcp.json:
{"mcpServers": {"meta": {"command": "meta-mcp", "args": []}}}
The tools below, meta_git_status and meta_git_branch see what meta -r sees: the root and nested repos, and inside a set that set's members only. The exceptions: meta_git_diff and meta_execution_order see this level's repos only, and in a set meta_analyze_impact names only the set's members as dependents, so a dependent the set doesn't hold is not there: run it from the workspace root for the whole impact.
| Tool | Purpose | Without MCP |
|---|---|---|
meta_workspace_state | Counts: repos, dirty, clean, ahead, behind, and repos per branch, tag and build system | meta -r git status |
meta_query_repos | Filter repos by state (query: dirty:true, tag:<tag>, branch:main) | meta -r --json context (no row for the root's git state: add meta -r git status) |
meta_analyze_impact | Direct and transitive dependents of a repo (project: name, or nested path) | meta -r project dependents <repo> (direct only) |
meta_execution_order | Build/deploy order of this level's repos, from their depends_on | none: read depends_on in .meta.yaml |
meta git status replaces N individual cd && git status callsmeta --include <repo>,<repo> exec -- <command> operates on only the named reposmeta -r --tag <tag> exec -- cargo test scopes to tagged reposmeta -r project dependents <repo> (or the MCP tool meta_analyze_impact) shows who depends on a repo before you modify it — prevents cascading fix-up commitsmeta -A --json project list first to get the workspace mapWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
meta@gitkb is listed by gitkb/claude-plugins — review the source before installing
npx claudepluginhub gitkb/claude-plugins --plugin meta6 skills in this plugin
/meta-safetyMulti-repo safety discipline — precision operations, dependency checking, and efficiency tips.Other plugins' skills for the same job