Sets up a repository for Relevo. It asks for the team, the review mode and the language, shows the full plan of what it will create (relevo.yml, lifecycle labels, the base branch, branch protection, the workflows, the ignore line for evidence/), applies it only after confirmation, offers to install missing dependencies one by one, and finishes by running doctor. Running it again only lists what differs. It never touches the model API key. Use when asked to set up, install or configure Relevo ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Init?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/elalfner-init)
---
name: init
description: Sets up a repository for Relevo. It asks for the team, the review mode and the language, shows the full plan of what it will create (relevo.yml, lifecycle labels, the base branch, branch protection, the workflows, the ignore line for evidence/), applies it only after confirmation, offers to install missing dependencies one by one, and finishes by running doctor. Running it again only lists what differs. It never touches the model API key. Use when asked to set up, install or configure Relevo in a repository.
argument-hint: "[--local]"
disable-model-invocation: true
---
# Relevo init
Set this repository up for Relevo. Show the plan first, change nothing until the person confirms, and make a second run harmless.
Scripts live in `${CLAUDE_PLUGIN_ROOT}/scripts/`. Run them with `node`. They hold the plan and the changes; use them instead of editing labels, rulesets or workflow files yourself.
## Local project (`--local`)
When `$ARGUMENTS` has `--local`, set up a project of one person on this machine, with **no GitHub**: no `gh`, no remote, no labels, no workflows, no rulesets and no secrets. Do not run the preflight of step 1 or any other step below; this is the whole flow.
1. Ask only what the setup cannot answer, one group at a time: the **tool(s)** you use (`claude`, `antigravity`, or both), the **platform** (its `stack`, its `path` and its `targets`, as `docs/stacks.md` lists them), the limit(s) of an unattended run — the **cost limit** in US dollars when `claude` is chosen (suggest 5) and/or the **token limit** when `antigravity` is chosen (suggest 2000000) — and the **language** of the messages (`en` or `es`). The base branch is the current branch of an existing repository, or `main` for a new one: do not ask it. Write the answers to a file outside the working tree as `{ "platforms": { "<name>": { "stack": "...", "path": ".", "targets": [...] } }, "tools": ["claude" | "antigravity" ...], "cost": 5, "tokens": 2000000, "language": "en" }` (omit `cost` when `claude` is not chosen, and omit `tokens` when `antigravity` is not chosen).
2. Show the plan: `node ${CLAUDE_PLUGIN_ROOT}/scripts/init-local.mjs plan --answers <file>`. It lists the repository (when there is none), `relevo.yml`, `.relevo/issues/`, the ignore line for `evidence/`, the installs and, for a repository with no commit, the first commit. It writes nothing. If it exits 1 and says `Needs answers`, ask for them and run it again; if it says that `relevo.yml` is not a local project, stop and show that.
3. Ask for a yes to the plan. Without it, change nothing.
4. Apply: `node ${CLAUDE_PLUGIN_ROOT}/scripts/init-local.mjs apply --answers <file>`. It carries out the "will do" changes that are not installs and stops at the first failure. The only commit it makes is the first one of a repository that had none, which the plan you confirmed lists: it is the one exception to "Never commit or push" below. In a repository that already has commits it commits nothing: tell the person to commit `relevo.yml` and `.relevo/` now, because a build runs in a worktree made from the base branch and `doctor` fails until `relevo.yml` is committed there.
5. Offer each install of the plan, one at a time, with its exact command, as step 4 below does (OpenSpec and its `openspec init`, then the skills that `think` needs; say next to `openspec init` where the `openspec-explore` skill goes: OpenSpec 1.x writes it into the project's `.claude/skills`, OpenSpec 2.x into `~/.agents/skills` for every project on this machine, and `--scope project` keeps it in the repository). Run none without a yes to that command alone, and commit `openspec/` afterwards if the person agrees.
6. Check: `node ${CLAUDE_PLUGIN_ROOT}/scripts/doctor.mjs`, which judges a local project by what it needs. Then end with the next step, from the same table the comments use, printed as it is: `node ${CLAUDE_PLUGIN_ROOT}/scripts/next-step.mjs --after init --conversation`.
Running it again lists only what differs. Never read, write or ask for the model credential.
## What you must never do
- Never read, write, print or ask for the model API key or any token. Tell the person to add it to the repository secrets themselves.
- Never apply a change before the person says yes to the plan, and never install anything before they confirm that exact command.
- Never overwrite `relevo.yml` that already exists and differs; report it. A `relevo.yml` with the older `platform: flutter-android` line stays as it is.
- The plan creates the `relevo:go` label (the build request) and the `relevo:local` label (the mark of a local build) with the others, and an installed `relevo-go.yml` of an earlier version, which starts on `ready`, is updated to start on `go`: until that update is merged to the default branch, approving an issue still starts a build, so say so and suggest pausing the cloud with `RELEVO_CLOUD_GO` meanwhile.
- A repository that still has the label `relevo:qa-failed` (the former name of `relevo:build-failed`) gets one plan line, `Rename the label relevo:qa-failed to relevo:build-failed`: the label is renamed, not replaced, so the issues that carry it keep it. When both labels exist, `init` renames and deletes nothing and names the issues that still carry the former one; moving them is up to the person.
- A repository whose labels carry an older description, or one changed by hand, gets one plan item, `labels.describe`, that lists each label with its old and new text. It changes only the description, never the name or the color, and covers the state labels, the exit labels and `needs-reviewer`, not `ship`, `urgent`, `go` or `local`. The person may refuse this item alone, for example to keep a text of their own: apply with `--skip labels.describe`. It cannot be refused for one label only.
- A workflow that already exists and differs is reported, unless the plan offers to update it: that line (`Update .github/workflows/<file> from A to B, keeping your own changes`) means a three-way merge with the published templates came out clean, and it is written only with the person's yes to the plan. A workflow whose merge conflicts or has no close published version is left as it is; never edit it to resolve the conflict yourself.
- Never create files under `openspec/` by hand. If there is no OpenSpec root, tell the person to run `openspec init`.
- Never commit or push. The new files are left for the person to commit.
- Never put credentials in `relevo.yml` or in the answers file.
## Steps
### 1. Preflight
Stop with a clear message, changing nothing, if `node ${CLAUDE_PLUGIN_ROOT}/scripts/gh-web.mjs --access` fails (on a terminal it is `gh auth status`: ask the person to run `gh auth login`; in a session on the web it reads the repository over REST, so show its message, which names the cause) or the folder is not a git repository with a GitHub remote.
### 2. Ask what is missing
If `relevo.yml` already exists and is valid, skip this step. Otherwise ask, in small groups and without inventing answers:
- who builds and reviews (GitHub usernames) and who writes the specs;
- the review mode: `none` (a solo project), `peer` or `roles`;
- the language of the hand-off messages (`en` or `es`);
- the platforms: for each one a name, its stack (look at the project to propose one: the profiles in `${CLAUDE_PLUGIN_ROOT}/stacks/` are the stacks Relevo ships with: `flutter`, `vue`, `laravel` and `supabase`), the folder where it lives (`.` for a repository with one platform, `apps/web` in a monorepo) and, for a stack that has targets, which ones (for Flutter: `android`, `ios`, `web`; for Vue: `web`; Laravel and Supabase have none). Several platforms in one repository are supported: each issue names the platform it is for with a `Platform:` line, and `go` builds that one;
- where `go` builds: in the cloud (a person approves an issue with `ready` and asks the cloud to build it with the `go` label), on each person's machine (`/relevo:go <n>` on an approved issue, with no label), or both (the default), and, for the cloud, with an API key from the Anthropic Console (the default) or with a subscription token. If the person leaves this unanswered, `init` takes the credential from the model secret that exists (only `CLAUDE_CODE_OAUTH_TOKEN` means a subscription) or from the credential line of an installed `relevo-go.yml`, and assumes an API key, saying so, only when neither decides it; an answer that contradicts the only secret that exists is shown in the plan as a step for the person. A subscription's quota is shared by every run and by the interactive use of the account, so `init` sets `limits.concurrent_agents` to 1 for it. Nothing about this goes in `relevo.yml` apart from that number: the installed workflows, the secret that exists and the repository variable `RELEVO_CLOUD_GO` (`off` pauses the cloud at once, with no pull request) decide it. Whatever the answer, the ship workflow (`relevo-ship.yml`) is added: it ships an approved issue when a person applies the `relevo:ship` label, runs no model and needs no model credential, and the repository variable `RELEVO_CLOUD_SHIP` (`off`) pauses it;
- whether the repository runs its GitHub Actions on a self-hosted runner. Ask nothing more when the answer is no: the workflows run on `ubuntu-latest` and `relevo.yml` gets no `runner` key. On a yes, ask for the runner's labels (for example `self-hosted` and `linux-build`): they become `runner.labels` in `relevo.yml` and the `runs-on` of every workflow `init` adds. Then, and only then, ask whether the builds have runners of their own (a runner that only takes the build job of `go`, which installs a toolchain, runs the agents and can last an hour); on a yes, ask for their labels (for example `self-hosted` and `relevo-build`): they become `runner.build_labels` and the `runs-on` of the build job alone, and every other job keeps `runner.labels`. On a no, write no `runner.build_labels`. Say that how many runners carry those labels is how many cloud builds a machine runs at once, across every repository that uses them. Say that Relevo assumes a self-hosted runner keeps its files between jobs, whatever the person says about it, and that the agent's code runs with the permissions of the runner's user; do not ask whether the runner is ephemeral;
- the repositories this one depends on, if any (`owner/repo`, for example the back end of a front end): they are written to `links`, the closed list that `Depends-on: owner/repo#N` is checked against;
- whether to create a commented `.relevo/stacks/<stack>.md` for each stack, where the project can add its own hygiene to the plugin's profile (optional; `init` creates it but does not commit it: it is left for the person to commit, because the cloud and teammates read it from git);
- for a stack that is not one of the four profiles Relevo ships (Go, Python, Rust and so on), `init` proposes `.relevo/stacks/<stack>.md` on its own, because there that file is the whole profile: say so, and that its commands `analyze` and `test` are left commented for the person to write (a repository-only profile without them draws a warning from `doctor`, and so does a cloud build with no toolchain step for the stack in `relevo-go.yml`). If the person declines, name the stack in `declinedStackProfiles`;
- which agent builds in the cloud, only when the person says they use Antigravity: `claude` (the default) or `antigravity`. With `antigravity` the model key is `GEMINI_API_KEY`, a key made only for Relevo in its own Google Cloud project with a quota, and the limit asked below is a number of tokens (`limits.run_max_tokens`) because that agent has no cost limit; `docs/security.md` says what else it cannot enforce;
- the cost limit per unattended run in US dollars: the template's 5 is a placeholder the person must accept or change (with `antigravity`, the token limit instead).
Write the answers as JSON to a temporary file **outside the repository**, with the keys `members`, `specWriter`, `reviewMode`, `language`, `platforms` (a map of name to `{ stack, path, targets }`), `links` (a list of `owner/repo`, possibly none), `runs` (`cloud`, `local` or `both`), `credential` (`api_key` or `subscription`), `runnerLabels` (a list of runner labels, only for a self-hosted runner), `runnerBuildLabels` (a list of labels, only when the builds have runners of their own), `stackProfiles` (the stacks that get a profile file, possibly none), `declinedStackProfiles` (stacks of your own whose proposed profile the person declined, possibly none) and, if given, `runMaxCost`. Never put a secret in it.
### 3. Show the plan
```bash
node ${CLAUDE_PLUGIN_ROOT}/scripts/init.mjs plan --answers <answers file>
```
Show it as it is. Each line says whether it is already `ok`, will be done, `differs` (exists, left alone) or must be done `by hand`. A workflow update shows its difference under the line, and a conflict shows both versions. When a line says that no published version is close to a workflow, ask which version of Relevo it was copied from and run the plan again with `--from <version>`. Then ask one direct yes/no question: apply the changes marked "will do"? Wait for the answer.
### 4. Offer the installs, one at a time
For each line in the plan that is an install, show its exact command and its `detail`, and ask for a yes to that command alone. For `openspec-explore` the detail says where the skill is written: OpenSpec 1.x writes it into the project's `.claude/skills`, OpenSpec 2.x into `~/.agents/skills` for every project on this machine, and `--scope project` keeps it in the repository, so the person says yes knowing that the command may write outside the repository. Run it only on a yes. If the person declines, continue, say that dependency is still missing, and that `go` and `ship` will not run until the OpenSpec tool is installed.
An install marked `optional` (the default skills of a stack, `install.recommended.*`: for Flutter, the official Dart and Flutter skills the profile gives to `dev` and `qa`) is a recommendation, not a dependency. There is one per platform folder, and its command starts with `cd <folder> &&` because the installer writes in the folder it runs from: run it exactly as shown, only on a yes to that command alone. It writes real files under `.claude/skills/` (and `.agents/skills/` for Antigravity) and a `skills-lock.json` in that folder: say that they are left for the person to commit, because the cloud runner reads only what is committed. If the person declines, say only that the recommendation stays open and that `/relevo:doctor` keeps a note about it; never say that `go` or `ship` will not run. Its `manual.recommended.*` steps are for the person: tell them, and write nothing for them. For Laravel (`install.recommended.laravel.*`) the two installs are Laravel Boost: `composer require laravel/boost --dev`, then `php artisan boost:install --skills --no-interaction`, both from the folder of the platform; run each only on a yes to it alone, and say that Boost may also write the folders of the other agents it finds, which the person commits only if they use them. An `install.offered.*` install (the Vue skills of a community project) is offered and not recommended: show its description as it is, with the words that the skills are not official and an early experiment, and never present it as a recommendation.
One install is not a dependency: `install.plugin-project` declares the Relevo plugin in the project, so that a teammate who clones the repository is offered it, even when the plugin is already installed for the machine. (`install.plugin-project`, `install.web-hook`, `install.web-plugin-hook` and the Claude `install.restricted-deny` item appear only when the repository uses Claude Code; they are omitted in an Antigravity-only repository.) Show its exact command (the two `claude plugin` commands at the project scope) and run it only on a yes. If it ran, `.claude/settings.json` is new or changed: say that it is left for the person to commit. If the person declines, nothing else changes, and `/relevo:doctor` keeps warning about it. When the plan says that file is not valid JSON, do not touch it: tell the person to fix it.
`install.web-hook` adds a `SessionStart` hook to `.claude/settings.json` that installs OpenSpec at the start of a session of Claude Code on the web, where every new container lacks it. Show the hook the plan names (it runs nothing outside a remote session and nothing when `openspec` already runs) and ask for a yes to it alone. On a yes, run `node ${CLAUDE_PLUGIN_ROOT}/scripts/web-hook.mjs` from the repository root: it adds the hook next to the other settings and hooks of the file and changes nothing else, and it writes nothing when the file is not valid JSON. Say that `.claude/settings.json` is left for the person to commit. If the person declines, write nothing for it: `/relevo:doctor` keeps warning about it in a web session. When the plan says the file is not valid JSON, do not touch it.
`install.web-plugin-hook` adds a second `SessionStart` hook that installs the Relevo plugin at the start of a session of Claude Code on the web. A cloud session does not load the plugins a repository declares in `.claude/settings.json` (`install.plugin-project` serves a terminal), so without this hook a person who opens the repository on the web finds no `/relevo:` commands. Show the hook the plan names (it runs nothing outside a remote session, its output goes to a log, and it installs at the local scope, so no file the repository tracks changes) and ask for a yes to it alone. When the plan says that the hook is already there but installs at the project scope (that older hook rewrites `.claude/settings.json` and a web session may open a pull request for it), the line is an update: show the command that is there and the command that replaces it, and ask for a yes to it alone. On a yes, run `node ${CLAUDE_PLUGIN_ROOT}/scripts/web-hook.mjs --hook plugin` from the repository root, with the same guarantees as the OpenSpec hook (an update replaces only that command and keeps every other setting and hook), and say that `.claude/settings.json` is left for the person to commit. If the person declines, write nothing for it: `/relevo:doctor` keeps warning about it in a web session. When the plan says the file is not valid JSON, do not touch it.
`install.restricted-deny` adds the read denials of the restricted files (the list in `docs/security.md`: environment files, private keys, credential files, `secrets/` and `restricted_paths` of `relevo.yml`) to `.claude/settings.json`, as `Read` rules in `permissions.deny` and as `sandbox.filesystem.denyRead` entries. Show the exact entries the plan names (`entries`) and ask for a yes to this item alone. On a yes, run `node ${CLAUDE_PLUGIN_ROOT}/scripts/restricted-settings.mjs` from the repository root: it adds the missing entries after the ones the file has, keeps every other key, switches the sandbox on for nobody and writes nothing when the file is not valid JSON. Say that `.claude/settings.json` is left for the person to commit, and that a command which reads without naming the file (`grep -r`) is not covered. When the plan also has `install.restricted-deny.antigravity` (the repository builds with Antigravity), it is its own yes: its entries are one `read_file` rule for each restricted file that exists now, by exact path, written to `~/.gemini/antigravity-cli/settings.json` with `restricted-settings.mjs --agent antigravity`; say that the rule stops its file tool and does not reach a command such as `cat`. If the person declines, write nothing for it and go on: `/relevo:doctor` keeps warning. Never open a restricted file to decide any of this.
For a Vue platform reviewed in a browser, the plan has two installs, in this order: `install.playwright.<platform>` adds Playwright to the platform's development dependencies, and `install.chromium.<platform>` downloads its Chromium. Run each from the repository root exactly as shown (the command enters the platform folder itself). If Playwright was added, `package.json` and the lock file of that platform changed: say that they are left for the person to commit with the other new files, on the base branch, so that every review finds Playwright. If the person declines either one, continue and say that a browser review of that platform stops until it is installed, and that `/relevo:doctor` keeps warning about it. A `review.autopilot` line among the manual steps means the existing `relevo.yml` keeps the autopilot `off`: say that a browser review needs `precheck` or `verify`, and leave the file as it is.
### 5. Apply
```bash
node ${CLAUDE_PLUGIN_ROOT}/scripts/init.mjs apply --answers <answers file>
```
The branch rules (`protection` and `push-scope`) stop anyone, the person included, from pushing straight to the base and release branches. A workflow only runs once it is on the default branch, so when the plan also adds workflow files, apply with `--skip protection,push-scope`, ask the person to commit and push the new files first, and run `apply` again afterwards to add the rules.
It carries out only the "will do" changes that are not installs. When GitHub refuses one (no administrator permission, or the feature needs a paid plan) it prints the exact settings to change by hand; show them to the person.
### 6. Check
Plan items that start with `manual.` and come from what `doctor` found (`manual.links-unreadable`, `manual.runner-variable.<NAME>`, `manual.branch-checks`, `manual.plugin-update`) are steps for the person: show them in the plan and say so, apply nothing, and never change a secret, a repository variable or the rules of a branch for them. A stale pin of a workflow is already handled by the workflow update, which merges the new template and asks first; `manual.plugin-update` says to update the installed plugin before that, because the pins follow the installed version.
Run `node ${CLAUDE_PLUGIN_ROOT}/scripts/doctor.mjs` and show its output.
## Report
Finish with: what was created, what was left alone, what the person must still do by hand (always the model credential in the repository secrets, with all whitespace removed from a subscription token: `pbpaste | tr -d '[:space:]' | gh secret set CLAUDE_CODE_OAUTH_TOKEN`, and committing and pushing the new files to the default branch, because a workflow only runs from there; name each `.relevo/stacks/<stack>.md` it created among them), and the doctor result.
After the steps by hand, end with the next step, from the same table the comments use, printed as it is:
```bash
node ${CLAUDE_PLUGIN_ROOT}/scripts/next-step.mjs --after init --conversation
```