generate-meta-repo
Skill1 starsChanged 10 days agoMITView on GitHub
Generates, updates, and maintains a Manifest-based Multi-root Workspace (Meta-Repo) from user-provided repositories, files, architectural guidelines, or organizational context. Produces and synchronizes the declarative manifest (repos.json), zero-dependency Node.js orchestration scripts (bootstrap, service runner, CLI installer, manifest validator), Makefile, Docker Compose dev stack, multi-root IDE workspace (*.code-workspace), and layered AI governance files (AGENTS.md, CLAUDE.md, README.md). Use when the user asks to create, scaffold, update, evolve, or add/remove repositories and services in a meta-repo or multi-root workspace.
- Reads credentials
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- figma-extractorSkill
- figma-node-builderSkill
- figma-to-codeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 4 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Read the guide first: read meta-repo-architecture-guide.md (Sections 1–8) to load all architectural patterns, exact script source code, and …
- Very specific: line 34
If repositories are already cloned on the user's machine, inspect them (git -C <path> remote get-url origin, default branch, lockfiles, …
- Distinctive: line 35
Evaluate fit & map topology: check Sections 2, 3, 4, and 8.2 of meta-repo-architecture-guide.md.
- Very specific: line 42
Create or update repos.json following the Step 3 schema and constraints.
- Very specific: line 43
Create or update .gitignore following the Step 2 template, ensuring every top-level directory prefix from repos.json path entries is …
- Distinctive: line 47
Use the canonical implementations in Section 5 and Section 6 (Steps 4, 5, 6, and 9) of meta-repo-architecture-guide.md:
- Very specific: line 49
Write scripts/bootstrap.mjs (Step 4), scripts/run.mjs (Step 5), scripts/install-cli.mjs (Step 6), and scripts/check-manifest.mjs (Step 9) …
- Very specific: line 50
Write or update Makefile (Step 5) using literal TAB indentation, including all Essential Commands (Section 5.1: Setup, Service Execution, …
- Very specific: line 56
Create or sync docker-compose.dev.yml (Step 7) with healthchecked backing infrastructure and run: "docker" services named identically to …
- Very specific: line 57
Create .github/workflows/meta-repo.yml (Step 9) running check-manifest.mjs and bootstrap.mjs --all --dry-run.
- Very specific: line 61
Use the templates and rules in Section 7 (7.1–7.4) of meta-repo-architecture-guide.md and scaffold docs/, specs/, and .ai/:
- Very specific: line 63
README.md: follow the Section 7.1 template, syncing the directory list and services/ports table with repos.json. - Distinctive: line 64
AGENTS.md: follow the Section 7.2 layered global/subrepo templates (incorporating Sections 3.1, 4.1, and 4.2 rules plus any custom user … - Very specific: line 65
CLAUDE.md: follow the Section 7.3 template (@AGENTS.md import, slash commands, .ai/ governance, and <10-line stack snapshot). - Very specific: line 66
<workspace>.code-workspace: follow all 7 Workspace Guidelines and the JSONC template in Section 7.4 (and create … - Very specific: line 70
Validate: run node scripts/check-manifest.mjs && node scripts/bootstrap.mjs --all --dry-run, verify Makefile recipes use literal TAB …
- Very specific: line 72
Install global CLI: run node scripts/install-cli.mjs --name=<alias> (when approved) or instruct the user to run make setup-cli, and remind …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate Meta-Repo (Manifest-Based Multi-Root Workspace)
Scaffolds a production-ready Meta-Repo from scratch or evolves an existing Meta-Repo when repositories, stacks, infrastructure, or governance rules are added or modified.
MANDATORY PREREQUISITE: Before creating or updating any file, you MUST read meta-repo-architecture-guide.md. This
SKILL.mddefines only the execution workflow; all canonical script implementations,Makefiletargets, architectural patterns, and entry file templates live in meta-repo-architecture-guide.md. Never improvise scripts or templates from memory.
Workflow
Copy this checklist and track your progress:
Meta-Repo Progress:
- [ ] Phase 1: Read meta-repo-architecture-guide.md, ingest context, and map topology
- [ ] Phase 2: Generate or update single source of truth (repos.json & .gitignore)
- [ ] Phase 3: Generate or update scripts, global CLI, and Makefile from the guide
- [ ] Phase 4: Configure or sync Docker Compose dev stack and CI workflow
- [ ] Phase 5: Generate or sync entry files (README.md, AGENTS.md, CLAUDE.md, *.code-workspace)
- [ ] Phase 6: Validate, bootstrap/migrate repos, and install global CLIPhase 1: Read meta-repo-architecture-guide.md, ingest context, and map topology
- Read the guide first: read meta-repo-architecture-guide.md (Sections 1–8) to load all architectural patterns, exact script source code, and templates into context.
- Detect execution mode:
- New Meta-Repo (From Scratch): no
repos.jsonexists yet; scaffold the full structure across Phases 2–6. - Evolution Mode (Existing Meta-Repo):
repos.jsonalready exists; inspect existing workspace files and apply surgical updates so all files remain 100% synced withrepos.jsonwithout overwriting custom user rules.
- New Meta-Repo (From Scratch): no
- Inspect user context & local clones:
- Parse all repository URLs, local paths, config files (
package.json,go.mod,docker-compose*,Makefile,AGENTS.md), and guidelines provided by the user. - If repositories are already cloned on the user's machine, inspect them (
git -C <path> remote get-url origin, default branch, lockfiles,package.json,Dockerfile,.env.example) to auto-detectremote,stack,port,dev, andchecks.
- Parse all repository URLs, local paths, config files (
- Evaluate fit & map topology: check Sections 2, 3, 4, and 8.2 of meta-repo-architecture-guide.md. Map each repository's
name,path,remote,stack,category,product,port,run("docker"or"host"),dev,branch,ref, andchecks. Confirm the workspace slug (e.g.,acme-workspace) and CLI alias (e.g.,acme) if ambiguous.
Phase 2: Generate or update single source of truth (repos.json & .gitignore)
Apply Section 4.4 and Section 6 (Steps 1, 2, and 3) of meta-repo-architecture-guide.md:
- Initialize the workspace root directory (
git initif not yet a Git repo). - Create or update
repos.jsonfollowing the Step 3 schema and constraints. - Create or update
.gitignorefollowing the Step 2 template, ensuring every top-level directory prefix fromrepos.jsonpathentries is ignored alongside.specs/.
Phase 3: Generate or update scripts, global CLI, and Makefile
Use the canonical implementations in Section 5 and Section 6 (Steps 4, 5, 6, and 9) of meta-repo-architecture-guide.md:
- Write
scripts/bootstrap.mjs(Step 4),scripts/run.mjs(Step 5),scripts/install-cli.mjs(Step 6), andscripts/check-manifest.mjs(Step 9) directly from the guide's reference code. - Write or update
Makefile(Step 5) using literal TAB indentation, including all Essential Commands (Section 5.1: Setup, Service Execution, Batch Git) plus any Advanced Commands (Section 5.2) and Windows notes (Section 8.1) that match the user's stacks and requirements.
Phase 4: Configure or sync Docker Compose dev stack and CI workflow
Apply Section 6 (Steps 7 and 9) of meta-repo-architecture-guide.md:
- Create or sync
docker-compose.dev.yml(Step 7) with healthchecked backing infrastructure andrun: "docker"services named identically torepos.json. - Create
.github/workflows/meta-repo.yml(Step 9) runningcheck-manifest.mjsandbootstrap.mjs --all --dry-run.
Phase 5: Generate or sync entry files (README.md, AGENTS.md, CLAUDE.md, *.code-workspace)
Use the templates and rules in Section 7 (7.1–7.4) of meta-repo-architecture-guide.md and scaffold docs/, specs/, and .ai/:
README.md: follow the Section 7.1 template, syncing the directory list and services/ports table withrepos.json.AGENTS.md: follow the Section 7.2 layered global/subrepo templates (incorporating Sections 3.1, 4.1, and 4.2 rules plus any custom user guidelines).CLAUDE.md: follow the Section 7.3 template (@AGENTS.mdimport, slash commands,.ai/governance, and <10-line stack snapshot).<workspace>.code-workspace: follow all 7 Workspace Guidelines and the JSONC template in Section 7.4 (and create<workspace>-legacy.code-workspaceiflegacyrepos exist).
Phase 6: Validate, bootstrap/migrate repos, and install global CLI
- Validate: run
node scripts/check-manifest.mjs && node scripts/bootstrap.mjs --all --dry-run, verifyMakefilerecipes use literal TAB characters (\t), and fix any errors until validation passes. - Populate repositories: move (
mv) approved existing local clones into<path>(preserving.env,node_modules, and uncommitted changes), or runmake bootstrap(andmake installif requested) to clone from remotes / update existing<path>/.gitclones viagit fetch --all --prune. - Install global CLI: run
node scripts/install-cli.mjs --name=<alias>(when approved) or instruct the user to runmake setup-cli, and remind them to open<workspace>.code-workspace(nevercode .).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

