Skip to content
Back to skills

Doctor

ASecurity

Checks that this machine, the repository and GitHub are ready for Relevo and reports what needs action first (failures, then warnings, then notes, with the fix next to each failure and warning) and counts the checks that passed; --all lists them too. It covers the required tools (OpenSpec, git, the GitHub CLI, the toolchain and the targets of each platform's stack profile), the skills that /relevo:think invokes, the extra skills of each role, the optional skills that a stack works better with...

  • 7 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 27, 2026
ai-agentsgonodegitapidatabase

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add elalfner/relevo --skill doctor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doctor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doctor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/elalfner-doctor/badge)](https://www.skillsdirectory.com/skills/elalfner-doctor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doctor
description: Checks that this machine, the repository and GitHub are ready for Relevo and reports what needs action first (failures, then warnings, then notes, with the fix next to each failure and warning) and counts the checks that passed; --all lists them too. It covers the required tools (OpenSpec, git, the GitHub CLI, the toolchain and the targets of each platform's stack profile), the skills that /relevo:think invokes, the extra skills of each role, the optional skills that a stack works better with, relevo.yml, labels and branches, branch protection and approvals, the automation secret and workflows, what the ship workflow needs, in a web session whether it can reach GitHub (a read of the repository over REST, not the sign-in status of gh) and whether the repository installs OpenSpec and the Relevo plugin at its start, and a CI check. Read-only: it never changes anything. Use when asked to check, diagnose or verify the Relevo setup.
argument-hint: "[--all]"
---

# Relevo doctor

Report whether Relevo can run here. This command only reads; it never changes anything.

Scripts live in `${CLAUDE_PLUGIN_ROOT}/scripts/`. Run them with `node`. They hold the checks; use them instead of judging the setup yourself.

## What you must never do

- Never run a command that writes: no `gh` call except the reads inside the script, no `git add`, no install, no file edit. If something is wrong, tell the person the fix; do not apply it. `/relevo:init` is what applies fixes.
- Never read, print or ask for the value of a secret. The script lists secret names only. Never open a restricted file (`.env`, a private key, a credential file): the script compares their names with the settings and says which have no read denial, and that is all you need.
- Never hide a failure or turn it into a pass.

## Steps

1. Run `node ${CLAUDE_PLUGIN_ROOT}/scripts/doctor.mjs` from the repository root. It finds the repository itself; pass `--repo owner/name` only when it cannot. Add `--all` when the person asked for it, to list the checks that passed.
2. Show its output as it is. The first line says what was judged. Then come the `FAILURES`, the `WARNINGS` and the `NOTES`, each with its count; every `[FAIL]` and `[warn]` line has its fix on the next line. A `[note]` asks for nothing: do not present it as a problem. A `recommended.` note says that a stack works better with optional skills (the default Dart and Flutter ones, say) that are not committed to the repository, and carries the install commands; it judges what is committed because the cloud runner reads only that, so a plugin installed on a machine does not clear it; skills under `.claude/skills` or `.agents/skills` both count for Claude Code, because `go` gives the agents the path from either. It is not a requirement, and `/relevo:init` offers the installs. A `skills.default.` note says that a skill the plugin's profile gives to a role is not on the base branch and is left out of the run; it carries the command, or `skills.disable` in `.relevo/stacks/<stack>.md` switches the skill off. A `recommended.laravel` note says that Laravel Boost, which installs skills for the packages the project uses, is not in `composer.json` or that none of its skills is committed; it carries the commands and is optional. A `skills.ignored.` warning says that a skill folder exists and git ignores it, so the cloud runner, which reads only what is committed, will not see the skills in it; its fix is to remove the ignore rule and commit the folder. A skill that a profile uses only when installed and that is absent gets no line at all. A `review.` line is about how the review of a platform runs (an api review of Laravel needs `vendor/` and a known test database; one of Supabase needs `supabase/config.toml` and, as a note, a running local stack; a replaced `review` key of the profile is a note, and a `review.test` aimed at a remote database makes the profile invalid); a warning there carries its fix. The checks that passed are only counted, and `--all` lists them as `[pass]`.
Four findings come from the environment, not the files: a linked repository that cannot be read (`links.`: the fix names `RELEVO_LINKS_TOKEN` or copying the file; for a private one a note says the token's scope cannot be verified because the secret is never read); a `runs-on` that reads a repository variable (`automation.runner.variable.`: both runners are printed and the variable wins over `runner.labels`; if the variable cannot be read it is a note, never a pass); a pinned `RELEVO_VERSION` older than the published one (`automation.plugin-latest`: a warning naming what the newer versions changed, or a note that the comparison was skipped when the registry cannot be reached); and a base branch that requires no status checks (`repo.protection.checks`: `ship` relies on them; when the rules cannot be read the existing `repo.protection` warning says so). Say what each asks for; do not apply any of it. The runner check compares each job with its own setting: the build job of the go workflow with `runner.build_labels` (or `runner.labels` when it is absent) and every other job with `runner.labels`, and the report gives both runners when they differ. Two notes about builds that share runners (`automation.runner.build-shared`, when `runner.build_labels` is absent and the runners are self-hosted, and `automation.runner.build-project`, naming the workflows of the project that run on the labels of the build job) are advice only: they never fail the check and change no file. Say that `limits.concurrent_agents` limits one repository and that a machine is limited by its build runners, and that the project's own workflows are the project's to move.

3. If there are failures, say which command fixes most of them: `/relevo:init` for labels, branches, protection, workflows and the ignore line; the install commands shown for tools and skills; adding the model credential to the repository secrets by hand; and `relevo init --tools antigravity --scope <scope>` (or `npx @elalfner/relevo init --tools antigravity --scope <scope>`) when `adapters.antigravity.raw.` fails because Relevo was installed raw via `agy plugin install <url>`. A failure that the repository still has the label `relevo:qa-failed` (`repo.labels.former`), or that a workflow still applies it (`automation.workflow-label`), is also fixed by `/relevo:init`: it renames the label, keeping its issues, and updates the workflow. So is a go workflow that still starts on the `ready` label, or on a name that is not the `go` label of `relevo.yml` (`automation.workflow-trigger`): such a workflow builds every issue that is approved, so say that, until the new workflow is merged to the default branch, nobody should approve issues, or the cloud should be paused with `RELEVO_CLOUD_GO`. A warning that an open issue carries the `local` label without `building` (`repo.local-label`) means that someone applied the mark by hand: it does not keep the cloud from building, and it is removed by hand. The line about the execution mode (`execution.cloud`) says what the `go` label does in the repository: it starts a cloud build, it waits until the cloud resumes, it only leaves the comment of a local run, or it has no effect. A warning that the only secret does not match the credential line of `relevo-go.yml` (`execution.credential-line`) is fixed by running `/relevo:init`, which switches that line and shows the diff before writing, or by editing the line by hand as the warning says.
4. If a `ship.app` check fails, say that the `relevo:ship` label cannot ship in this repository until a GitHub App and its two secrets exist, because the base branch requires checks, and that `/relevo:ship` still works meanwhile.
5. If the output says branch protection is not available, say plainly that approving and merging are then enforced only by the written confirmation `ship` asks for, not by the platform.
6. When what you say names a Relevo command to run as the fix, add after it, once, the line that `node ${CLAUDE_PLUGIN_ROOT}/scripts/next-step.mjs --note` prints, as it is. Otherwise add nothing.

## A local project

When `tracker` in `relevo.yml` is `files`, `doctor.mjs` judges a project of one person with no GitHub: git, the repository and its base branch with a commit, OpenSpec, the toolchain of the platform, the skills that `think` invokes, `relevo.yml` and `.relevo/issues/`. It does not check, and so never reports, GitHub, labels, rulesets, secrets, workflows or a remote. Do not mention them or suggest `gh auth login` for such a project; the first line of the output says that it is a local project. `/relevo:init --local` fixes most of what it finds.

## Exit status

`doctor.mjs` exits 0 when no check failed (warnings allowed) and 1 when at least one failed. Report the result in one line after the output.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.