Skip to content
Back to skills

Rota Init

ASecurity

Use only when the maintainer types "/rota-init" to have rota inspect the repo and suggest config values. Never starts on its own.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 10, 2026
developmentgoshellgitsecurity

Works with

  • claude code
  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 12, 2026

npx -y skills add l4ci/rota --skill rota-init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rota Init?

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

Security grade badge for Rota Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/l4ci-rota-init/badge)](https://www.skillsdirectory.com/skills/l4ci-rota-init)

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: rota-init
description: Use only when the maintainer types "/rota-init" to have rota inspect the repo and suggest config values. Never starts on its own.
disable-model-invocation: true
---

# rota-init: Suggest Config Values From the Project

`rota setup` suggests values it reads from the project, with the evidence for each, and `rota init` seeds the schema defaults. This skill takes the verb's suggestions, adds judgement and asks the maintainer to confirm them one at a time. It writes nothing the maintainer did not confirm.

## When NOT to use

- The maintainer did not invoke it. Never start it from another skill.
- Changing a default, or installing a harness or terminal host. Both are out of scope: the skill suggests values for what is already installed.
- Recording a hard boundary → `/rota-decide`.

Copy this checklist and track your progress:
```
- [ ] Step 1 — Read signals
- [ ] Step 2 — Compare with current config
- [ ] Step 3 — Ask one at a time
- [ ] Step 4 — Write confirmed answers
- [ ] Step 5 — Report
```

## Step 1 — Read signals

Run `rota setup --list --json` from the project root. `data.questions[]` carries, per question, `suggestion` and `evidence` when the repo gave a signal (`git.baseBranch`, `issues.source`, `test.fast`, `test.full`, `round.harnesses`, `round.dispatch`, `work.isolation`). A question without them has no signal: it keeps the schema default, and the report says so. The verb reads `go.mod`, `package.json`, `pyproject.toml`, `Cargo.toml`, the Makefile, CI files, the origin host, PATH and `git worktree list`; do not re-read them to second-guess it ([`references/authoring-conventions.md`](references/authoring-conventions.md), *Don't ask what the code can answer*).

Add only judgement the verb cannot make:

- `round.harnesses`: the verb takes the first harness CLI on `PATH`. When the evidence lists several, recommend the one running this session.
- `test.fast`: the verb proposes the manifest's whole-suite command. When a narrower command that takes changed files exists (a `package.json` `lint` or `test` script, a Makefile `check` target, `pytest` or `ruff` config), propose it with its evidence; `{files}` expands to the changed files, single-quoted, after `--`.
- `test.full`: when the verb proposes the manifest command and a CI file runs more, say so. A manifest or an inferred command is a candidate, not evidence that real tests exist or ran. Describe a build or lint command as build or lint coverage, never as automated behavior tests.
- `issues.source`: a `.jira` or `.linear` config is a hint, not a proof: say so.
- `forge.provider` is not a setup question; read `git remote get-url origin` (github.com → `github`, a GitLab host → `gitlab`, no remote → `local`) when you want to propose it.

- `review.lenses`: not a `rota setup` question. Propose a trigger per lens only from the project layout, with the matching paths as evidence: `security` for the packages or directories that shell out, call git, write files or handle tokens (grep for `exec.Command`, `subprocess`, `child_process`, `os.WriteFile`, `fs.writeFile`), `perf` for hot loops or bulk-I/O packages only when the layout makes them obvious, `ux` for the CLI verb or UI directory (`cmd/`, `internal/cli/`, `src/components/`). Also propose a label such as `risk:security` for `security` when the repo already uses it. Skip a lens with no matching path. Globs allow `*` within a segment and `**` as a whole segment for any number of directories; no leading `/`, no braces. Each lens is its own question; the value is JSON (`rota config set review.lenses '{"security": {"paths": ["internal/git/**"], "labels": ["risk:security"]}}'`, merging in lenses already set).

`work.*` keys affect `/rota-work` and other solo cycles. `round.*` keys affect parallel rounds (`rota round`, `rota worker`). Say which one each proposal affects when you ask.

Never run a test command to prove it works: the evidence is where the verb read it.

## Step 2 — Compare with current config

- **No `.rota/`:** every proposal stands. Nothing is written yet.
- **Initialized:** `rota config show <key>` for each proposal. Drop a key whose current value already equals the suggestion and keep only the ones that differ, showing current and suggested value side by side. Retain the test-setup question even without a suggestion when `test.fullWhere` is local and both `test.full` and `test.e2e` are empty. Established local checks or CI verification (`test.fullWhere ci` with required `test.ciChecks`) need no deferral question. With nothing left, print `config already matches the project` and stop.

## Step 3 — Ask one at a time

One question per call or message, the recommended value first, labelled with its evidence. For example: `test.fast: go test ./... (go.mod; Makefile target "test")`. Offer the schema default or "leave unset" as an alternative, and a free-text answer.

For test setup, offer **leave for later** when the project has no tests, including when a manifest still suggests a command. With no test signal, ask about deferral rather than inventing a command. If the maintainer chooses it, leave the unresolved test keys unset, finish the remaining initialization and say: **"Verification setup deferred. We will revisit it at the next /rota-orchestrate start and settle it before the first merge."** Do not scaffold a test framework during init, install an always-successful placeholder or treat this answer as permission for `--no-verify`. Existing local or CI verification can stay as configured; deferral is for unresolved setup, not a reason to clear working checks.

- **Claude Code:** `AskUserQuestion`, one question per call. The recommendation first, its label ending `(Recommended)`.
- **Any other harness (Codex, OpenCode, ...):** one plain message per question, lettered `A)` to `E)`. `A)` is the recommendation. The last letter is "Write your own answer". Ask the next question only after the reply.

Silence, an unavailable picker or an unclear reply is never a yes. Ask once more, then leave the key unchanged.

## Step 4 — Write confirmed answers

Only confirmed values, only through rota verbs; never edit `.rota/config.json`.

- **No `.rota/` yet:** one `rota setup --set key=value` per answer to a key `rota setup --list` offers (`issues.source`, `work.isolation`, `round.dispatch`, `round.harnesses`, `git.baseBranch`, ...). If no answer is one of those, `rota init` first.
- **Everything else, and every key on an initialized project:** `rota config set <key> <value>`. List values are JSON (`rota config set test.fast '["go test ./..."]'`).

Run `rota config check` after the writes. Fix what it flags, re-run, and continue only when it is clean.

## Step 5 — Report

One line per key: `<key>: <value> (<evidence>)` for a confirmed write, `<key>: unchanged` for a declined one, `<key>: schema default (no signal)` for one not inferred.

When test setup was deferred, repeat the next-round / before-first-merge commitment above. Explain that a new project can establish its test foundation alongside its first implementation; missing tests now do not prevent finishing init or starting that work.

## Thought → Reality

| Thought | Reality |
|---|---|
| "The evidence is obvious, I'll write it without asking" | Step 4 writes confirmed values only. |
| "I'll batch the questions" | One key per question; each answer is its own decision. |
| "I'll edit `.rota/config.json`, it's faster" | The write goes through `rota setup --set` or `rota config set`. |
| "No signal, so I'll guess a default" | Say the key keeps the schema default; do not propose. |

## Key Principles

- Evidence with every proposal, recommended value first.
- Nothing written unconfirmed, nothing written outside the rota verbs.
- Initialized project: show only the keys that differ.
- No signal table of its own: the signals live in `rota setup --list --json`; the skill composes `rota setup`, `rota config` and judgement.

Files in this skill

  • SKILL.md7.8 KB
  • agents/openai.yaml43 B

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 development →

Comments

Loading comments…

Newsletter

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