/repo-platform-skills:repo-platform-add-modulefrom Repo Platform Skills
Add or remove a Vivswan/repo-platform module in a managed repository - edit the modules list in .repo-platform.yml, bring the module files onto the PR with a branch sync (or dispatch add_modules), merge it, and finish the companion steps. Use when someone says "add a module", "enable the fuzzer", "add nightly CI to this repo", "publish a site", "add the bun toolchain", "add Python support to this repo", "add Rust support", "start cutting releases here", "publish the docs site", "check PR titles on this repo", "remove a module", "drop the fuzzer", "disable nightly", asks "what modules does this repo have", or asks how to change a module setting like the nightly label, the fuzzer label, or the docs mount path.
Ships in Repo Platform Skills. 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.
Read when SKILL.md points to them.
Module selection is the top-level modules: list in the repository's own .repo-platform.yml. The sync reads it and writes the files each selected module brings; ci.yml is the same file in every repository and never changes with the selection. No edit in the platform repository is needed.
Work in this order, always:
modules: (and the module's keys) in .repo-platform.yml on a branch and open the PR; it stays red until a branch sync writes the module's files onto it. Or dispatch the sync with add_modules, which opens a sync PR carrying the edit and the files..repo-platform.yml.repo-platform.yml)For enrolling a repo that is not managed yet, use the repo-platform-new-project skill instead. Inside the platform repository itself, "add a module" means adding a files/<module>/ folder and its files.yml entries; this skill is for managed repos.
One line each, the description of each module in the platform's files.yml.
| Module | What it gives the repo |
|---|---|
bun | TypeScript/bun toolchain (gitignore, dependabot, CodeQL JS, the biome lint floor and the member-shape rules) |
uv | Python/uv toolchain (gitignore, dependabot, CodeQL Python, the ruff floor) |
rust | Rust/cargo toolchain (cargo dependabot, Rust gitignore, the clippy readability floor; no CodeQL) |
site | one GitHub Pages site per repository (the repo-owned site-build hook's website at the root, docs/ rendered under the central fleet theme) |
release-please | release-please releases through the fleet's release pipeline, plus autorelease labels |
npm | publishes one npm package through trusted publishing: latest at a release, next when the release PR refreshes |
pr-title | Conventional Commit PR title check, its own required workflow |
autofix | commits a pull request's automated fixes: the fix-lint label, or a declared push, runs the repo-owned autofix hook |
fuzzer | nightly fuzz starter with issue filing, replay inputs, auto-close |
nightly | nightly CI starter with failure issue filing and auto-close |
custom-license | repo carries its own license in LICENSE.md; the fleet license is not written |
From the platform's files.yml. Managed files are rewritten on every sync; starters are written once and then repo-owned; split files get the module's block inside their managed region.
| Module | Files | Class |
|---|---|---|
bun | .bun-version, biome.json (the TypeScript lint floor; it extends the local layer) | managed |
bun | biome.local.jsonc (the repo's own biome layer under the floor) | starter |
uv | ruff.toml, the Python lint floor the repository's pyproject.toml builds on | managed |
rust | Cargo.toml (the workspace root with the lint floor); clippy.toml (the floor's thresholds) | starter; managed |
| every toolchain | blocks in .gitignore and AGENTS.md; a block in .github/dependabot.yml | split; managed |
site | no file of its own: the .github/actions/site-build/action.yml hook is a base starter every repository carries | - |
release-please | release-please-config.json, .release-please-manifest.json; the release variant of .typography-allow | starter; managed |
npm | .github/actions/npm-build/action.yml (the build hook the npm legs run; it fails until filled in) | starter |
pr-title | .github/workflows/pr-title.yml | managed |
autofix | .github/workflows/auto-fix.yml; .github/actions/autofix/action.yml (the fix hook; it fails until filled in) | managed; starter |
fuzzer | .github/workflows/nightly-fuzz.yml | starter |
nightly | .github/workflows/nightly.yml | starter |
custom-license | LICENSE.md is no longer written; the fleet copy is retired on that sync | - |
The release, npm, and site legs of ci.yml exist in every repository and run only when their module is selected. Per-module keys, companion steps, and removal notes are in references/modules.md.
git checkout -b add-nightly
# .repo-platform.yml: add the name to the top-level list
# modules: [release-please, pr-title, nightly]
# and the module's keys only when the defaults are wrong:
# labels:
# nightly: slow-suite-failure
git commit -am "chore: select the nightly module"
gh pr create
The plan step of fleet CI parses .repo-platform.yml on the PR: an unknown key, a wrong shape, a duplicate module name, a module name the platform does not offer, or a labels.* key whose module is not selected fails there.
The PR then stays red on validate-managed-files until a sync writes the module's files onto its branch: the check runs the writer over the tree with the edited registration and names each missing file with its bytes. Three ways bring them:
| Way | How | What it does |
|---|---|---|
the add_modules dispatch | gh workflow run sync-repos.yml -R Vivswan/repo-platform -f repo=Vivswan/<repo> -f add_modules=<a>,<b> | no PR of your own: the sync PR carries the registration edit and the files, and waits for review |
| the branch dispatch | gh workflow run sync-repos.yml -R Vivswan/repo-platform -f repo=Vivswan/<repo> -f branch=<pr-branch> | one commit onto your PR branch; the row prints branch pushed |
the repo-platform:sync label | add the label to the PR | the repository's own token syncs the branch and comments the report, for a hold-free report only: it refuses, pushing nothing, when the sync touches .github/workflows/ (so a module that brings a workflow, fuzzer, nightly, pr-title, takes the branch dispatch) or when the writer holds (a replaced local edit, a registration note) |
After a label sync, approve the pushed head's held run from the merge box (or push a commit): GitHub holds the run a repository-token push creates. The branch dispatch pushes with the fleet PAT, so its run starts on its own. Merge when green.
One exception to "registration first" is site on a repo with a docs/ directory: a gate job the selection turns on reads a file of yours on that same PR. The docs-check job builds docs/ strictly and needs docs/README.md (the landing page). Add it in the same PR, or the PR is red.
A repo whose own website renders docs/ sets site.path: null instead: the website publishes alone and docs-check stands down.
For a dispatch, the run's job log (gh run view <id> --log; gh run list -R Vivswan/repo-platform --workflow sync-repos.yml --limit 1 finds the id) reads plan: 1 rows and then one row line, rows numbered from 0:
| Line | Meaning |
|---|---|
row 0: PR opened | the sync PR is there (PR refreshed when one was already open); an add_modules run never arms it |
row 0: branch pushed | the branch dispatch's clean row: one commit on your PR branch |
row 0: unchanged, no PR | the repo already holds every file of the new selection |
failed, report filed in the target repository | the [repo-platform] sync failed issue in the repo has the error |
The report (the sync PR's body, the branch sync's label comment, or a public repository's job summary on a branch dispatch) should be explained by the module diff:
created; a starter the repo already had reads unchanged; .github/settings.yml as managed, updated when the module changes the render (a label or ruleset no other selected module already declares, a tracking label); every other row unchanged or updated.BEGIN/END REPO-PLATFORM MANAGED markers.custom-license, which retires the fleet LICENSE.md (below).Hold for review: no on a clean add; an add_modules sync PR waits for you anyway.Anything the module diff does not explain is reviewed with the repo-platform-sync-pr skill before merging.
The full checklist per module is in references/modules.md. The ones that bite when skipped:
fuzzer, nightly, and site from the registration's labels.* keys (the module's default when the key is unset) into the managed .github/settings.yml, and the settings apply declares them; a labels.* key for an unselected module fails the plan (step 1) and also holds the sync PR.fuzzer / nightly: replace the starter's placeholder step with real work; a custom label also goes into the starter's label: inputs.npm: fill in the repo-owned .github/actions/npm-build/action.yml hook, seeded to fail so an unbuilt package never publishes; publish the package once by hand, then add its trusted publisher on npmjs.com (workflow ci.yml, "npm publish" and "Allow npm dist-tag" ticked); have release-please write the version into its package.json from the root package in release-please-config.json (release-type: node, or an extra-files entry for a nested one; references/modules.md).autofix: declare the autofix block (label.paths, and push only for a repository that regenerates files on a push); fill in the repo-owned .github/actions/autofix/action.yml hook, seeded to fail; delete the repository's own auto-format.yml or fix workflow (references/modules.md).site: the module's settings layer enables Pages on the next settings apply (before it: gh api -X POST repos/Vivswan/<repo>/pages -f build_type=workflow); the repo's own website goes into the repo-owned .github/actions/site-build/action.yml hook, seeded as a no-op, so fill it in or the site is the docs alone (docs/README.md was step 1's business).A module's settings live next to the selection, in .repo-platform.yml, and are changed by an ordinary PR:
| Module | Keys | Default |
|---|---|---|
site | site.path, site.include, site.vars, labels.site | docs, none, none, docs-link-rot |
npm | npm.path | the repository root |
autofix | autofix.label, autofix.push | required, none |
fuzzer | labels.fuzzer | fuzz-nightly |
nightly | labels.nightly | nightly-failure |
Two keys belong to no module. project is required, with name, slug, and description together; copyright_holder is optional and defaults to the owner's handle and GitHub page. mirrors defaults to none.
site.path, site.include, site.vars, npm.path, or autofix change; the site, npm, and autofix jobs read the registration at run time.mirrors, labels.*, and project.*. The repo-platform:sync label pushes a hold-free report; a held one (a replaced local edit, or a mirror change that leaves a registration note, such as a dropped declaration whose recorded copy stays) takes the branch dispatch (-f branch=). project.* values are substituted into every managed file and split region (AGENTS.md, LICENSE.md); a labels.* value re-renders .github/settings.yml (step 3, Labels)..github/settings.local.yml) is not rewritten, so edit it yourself.fuzzer, nightly, site) must pairwise differ, case-insensitively: every stream dedups and auto-closes by label.label: inputs in the same PR.Remove the name from modules: and the module's own keys (labels.<key>, site) on a branch, bring the retirement onto the PR with a branch sync (step 1's branch dispatch; the label only when the report holds nothing and retires no workflow file, which dropping pr-title does; add_modules only adds), and merge. What the report shows:
deleted with the detail no longer selected when the file still held the platform's own content; region removed when a split file's region was untouched but the repo had written around it (the region and its markers go, your content stays as a plain file); held with the reason when someone edited the content (decide, then delete or keep it yourself).fuzzer or nightly leaves its workflow running; delete it yourself or keep its label declared in .github/settings.local.yml..github/settings.yml on that sync (managed, updated) and the next apply removes them from the repo, unless another selected module still declares them or your .github/settings.local.yml does: a label still declared stays rendered and applied.custom-license: adding it retires the fleet LICENSE.md on that sync, and removing it writes the fleet region back above your text; references/modules.md has each report outcome.row 0: PR opened or row 0: branch pushed, and every Written row is explained by the module diff.release for release-please, site; the npm legs wait for a release PR refresh or a cut). Many modules add no job at all.gh label list -R Vivswan/<repo>.An end-to-end walkthrough, adding nightly to a repo that already has fuzzer, is in references/worked-examples.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
3 skills in this plugin
/repo-platform-new-projectCreate or adopt a repository managed by Vivswan/repo-platform - create the repo, write .repo-platform.yml, grant the fleet token, run the first sync, review its report, and watch the first CI run. Use when someone wants a new repo on the platform, says "new project on the platform", "create a repo-platform repo", "set this repo up with repo-platform", "set it up like my other repos", "with my standard CI setup", "scaffold a repo with my usual standards", "bring this repo into the fleet", or asks how to bring a project under fleet management./repo-platform-sync-prHandle an automated sync PR from Vivswan/repo-platform - read its report, clear every row, keep local content in its owned place, and follow the failure path. Use when a PR arrives on branch automation/repo-platform, for "the repo-platform bot PR", "the sync PR", "the automation branch PR", when a sync PR says "Hold for review: yes", reports "replaced local edits", a held retirement, or a replaced mirror, when "the sync PR deleted my local section", or when a "[repo-platform] sync failed" issue appears in the repository.npx claudepluginhub vivswan/repo-platform --plugin repo-platform-skills