Skip to content
Back to skills

Orchestrator Init

CSecurity

Adapt the installed plan-and-execute orchestrator setup to this project. Detects build, test, shell and layout, fills every {{PLACEHOLDER}} and ADAPT block in .claude/, merges the CLAUDE.md sections, creates a gate script if there is none, wires settings and installs the language server plugin and binary for the main languages with the owner's OK. Run once after installing, and again after upgrading the setup or changing .claude/orchestrator/profile.md.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 24, 2026
ai-agentspythonrustgoshellbashnodeazuregitapidatabase

Works with

  • claude code
  • cli
  • api

Security analysis

C67/100
  • criticalSends environment variables or credentials to an external URL
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 24, 2026

npx -y skills add scaretos/orchestrator-setup --skill orchestrator-init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orchestrator Init?

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

Security grade badge for Orchestrator Init
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/scaretos-orchestrator-init/badge)](https://www.skillsdirectory.com/skills/scaretos-orchestrator-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: orchestrator-init
description: Adapt the installed plan-and-execute orchestrator setup to this project. Detects build, test, shell and layout, fills every {{PLACEHOLDER}} and ADAPT block in .claude/, merges the CLAUDE.md sections, creates a gate script if there is none, wires settings and installs the language server plugin and binary for the main languages with the owner's OK. Run once after installing, and again after upgrading the setup or changing .claude/orchestrator/profile.md.
disable-model-invocation: true
---

Adapt the orchestrator setup in `.claude/` to this repository. The installed skills and agents are generic: they hold `{{KEY}}` placeholders and `<!-- ADAPT: name -->…<!-- /ADAPT -->` blocks that only fit once they name this project's real commands, layers and traps. The result must read as if it had been written for this project: agents follow it literally, and every vague line costs them searches on every run.

Spend little: this runs once. Detect from files, not from long explorations; ask the owner only what the files cannot answer.

## 1. Inventory

In one message: Grep `\{\{[A-Z_]+\}\}` and `ADAPT:` under `.claude/` (files with matches), read `.claude/orchestrator/profile.md`, and check for an existing root `CLAUDE.md`, `.claude/settings.json` and `.claude/rules/`. A profile that already has values means a re-run: reuse them, ask only about empty ones and a missing *Switches* entry (a profile from before 1.5.0 has none; until it is set, parallel stages count as off), and skip to step 4.

## 2. Detect

One parallel batch of Glob, Read (small files, or ranges) and short read-only commands:
- **Stack and commands:** build files at the root and one level down (`package.json`, `*.sln`/`*.csproj`, `Cargo.toml`, `go.mod`, `pyproject.toml`/`setup.cfg`, `pom.xml`, `build.gradle*`, `Makefile`, `CMakeLists.txt`), and CI workflows (`.github/workflows/*`, `.gitlab-ci.yml`, `azure-pipelines.yml`): CI usually holds the project's true build and test commands. Find the test framework and its filter syntax (`--filter`, `-k`, `-t`, `--grep`, `-run`).
- **Environment:** OS and shell (Windows PowerShell 5.1, PowerShell 7, bash, zsh), Python 3 command (`python3 --version`, `python --version`, `py -3 --version`), Node (`node --version`, for the optional hook), `git remote -v` and `git symbolic-ref refs/remotes/origin/HEAD` (default branch; with no remote, the current branch), the remote's host and whether `gh` (or `glab`) is installed, `git config core.autocrlf`. No remote is fine: `/execute-plan` then works on local branches and skips pushes and PRs; set `PR_CMD` to "none (no remote)" and say so in the report.
- **Layout:** the top-level folders and what each holds (one line each), build output folders, existing folder `CLAUDE.md` files.
- **Documentation:** the root `CLAUDE.md` and any other guides agents are told to read (`*-CLAUDE.md`, `*-GUIDE.md`, `docs/`), with their sizes, and whether the repository already has `.claude/rules/`. Step 10 uses this for the `/restructure-docs` hint; do not restructure anything here.
- **Language tooling:** the languages that hold most of the source (`git ls-files`, counted by extension), and for each of them:
  - *Served now?* An `LSP` tool in your own tool list means some language server is active; call its `documentSymbol` on one source file of that language.
  - *Its plugin:* in the official marketplace's clone, `~/.claude/plugins/marketplaces/claude-plugins-official/.claude-plugin/marketplace.json`, the entry whose `lspServers` lists the extension under `extensionToLanguage`. Its `command` is the server binary, and the plugin's `README.md` next to it has the binary's install commands. Take an entry that declares `lspServers`: a same-named plugin from another marketplace can install without any server. No clone means the marketplace is not added: step 8 asks about that.
  - *Installed?* `claude plugin list --json` holds the plugin id with `enabled: true`, at scope `user`, or at scope `project` or `local` with this repository as `projectPath`.
  - *Binary on PATH?* `command -v <command>` (bash) or `Get-Command <command>` (PowerShell), and which package managers from the README are installed (`npm`, `pipx`/`pip`, `dotnet`, `go`, `rustup`, `gem`, `brew`, `winget`).

In a large monorepo, one `Explore` call with concrete questions (packages, their test commands, shared libraries) is cheaper than many reads.

## 3. Decide the values

Fill every key of the profile table. Rules:
- **Commands are quiet and filtered.** `BUILD_CMD` builds one project or package and keeps the last lines (`2>&1 | tail -5` in bash, `2>&1 | Select-Object -Last 5` in PowerShell). `TEST_CMD` runs one filtered test set the same way, with `<project>` and `<filter>` left as literal placeholders for plans to fill. Agents pay for every output line on every later turn.
- **`TEST_FAIL_HINT`:** one sentence on how a failed run shows in that cut output (the summary word, the exit line), so an agent sees failure without reading the log. Language of the tool's output included (a localised SDK prints localised words).
- **`SHELL`:** the shell agents' commands run in. Windows: name `PowerShell 5.1` or `7` exactly; 5.1 has no `&&`, no ternary, and breaks quoted multi-line `git commit -m`. Set `EXTRA_TOOLS` to `, PowerShell` on Windows, else empty.
- **`WORKTREE_PREP`:** what makes a fresh checkout buildable before any agent opens a source file (dependency restore, first build, code index), as one line of commands.
- **`PLANS_DIR`:** default `~/.claude/plans`: outside the repo, because a worktree cannot see untracked files and plans are not committed.
- **`EXTERNAL_SYSTEMS`:** systems whose behaviour the code does not show and plans must measure (a third-party application, a database engine, a payment API, a browser engine). None: write "none so far" and simplify step 4 of `/write-plan` to the probe rule only.
- **`UI_CHECK`:** how a UI change is seen without a person (a screenshot or render command, a storybook, visual tests). None: "none: the owner check decides".
- **`LAYERS`:** the project's real layers and what each may and may not do, in one line.
- **`LSP_SETUP`:** per main language, the plugin, the binary it starts and the binary's install command for this OS, e.g. "`pyright-lsp` (project settings) starts `pyright-langserver`: `npm install -g pyright`, then `/reload-plugins`". It tells an agent whose `LSP` calls fail what to ask the owner for. No plugin for the language: "none: Grep only".
- **`MACHINE_TRAPS`:** known environment traps (locked files while the app runs, services that must be up, slow commands and their real duration, localised tool output). None known: one line "none known yet: `/retro` adds them as they turn up".
- **Parallel stages** (the *Switches* section of `profile.md`, read at run time, not a placeholder): `on` lets `/write-plan` group stages that provably do not touch each other's work and `/execute-plan` run them at the same time, one worktree per member. The risks: each extra member pays `WORKTREE_PREP` again, agents burn the usage limit faster, and an independence the plan missed stops the run at the merge. `off` runs every stage one after another. Recommend `on` when `WORKTREE_PREP` takes a minute or two, `off` when it is slow or needs services that one machine can run only once. Always ask: it is the owner's risk to take.

Show the owner the filled table in one message and ask with one `AskUserQuestion` (at most 4 questions) only about what detection could not settle (usually the gate's contents if there is no CI, the external systems, the UI check) and the parallel stages switch. Offer your detected or recommended value as the first option. On a re-run, keep a switch the profile already has.

## 4. Fill the files

- Replace every `{{KEY}}` in `.claude/` with its value, using Edit (not in this skill's own folder, which keeps them for re-runs).
- Rewrite each ADAPT block for this project, then remove its two marker comments: *architecture* (the plan template's Architecture checklist: keep the generic items that apply, name this project's layers, entry points and data stores, add the items its reviews will need), *layout* (`Explore`'s folder table), *machine* (the *This machine* lists), *external* and *ui-check* (`/write-plan`).
- Write the values into `profile.md` (keys stay without braces) and the owner's answer into *Switches* (`- **Parallel stages:** on` or `off`), with the setup version from `.claude/orchestrator/VERSION` and today's date.
- Verify: Grep `\{\{[A-Z_]+\}\}|ADAPT:` under `.claude/` finds nothing outside `orchestrator/claude-md-sections.md` and `orchestrator-init/`.

## 5. The gate

The workflow needs one command that proves a piece of work: build, the test suites that need no special environment, and a quick smoke check if the project has one. If the project has none, write `scripts/gate.sh` (or `scripts/gate.ps1` on Windows) from the CI steps: it runs each step, writes the full output to `GATE_LOG`, prints only a one-line result per step and the failing lines, and exits non-zero on failure. Add `GATE_LOG` to `.gitignore`. Run it once in the foreground with a long timeout and report the result; a failure that exists on the default branch is reported, not fixed.

## 6. CLAUDE.md

Merge the sections of `.claude/orchestrator/claude-md-sections.md` (placeholders filled) into the root `CLAUDE.md`:
- No `CLAUDE.md` yet: create one with a project overview of at most 15 lines (what it is, the folders, the main commands), then the sections.
- Existing one: add only the sections it lacks. Where it already has an equivalent rule, keep the owner's and tell them about the difference. Keep the root file to pointers, commands and traps: it is read on every turn of every agent.

## 7. Settings

Show the owner `.claude/orchestrator/settings.snippet.json` merged into their `.claude/settings.json` (without the `//` notes, deny list cut to the build folders this project has, the hook only if checkouts use CRLF and Node is installed) as a diff, with each part's reason from its note. Write only the parts they approve.

## 8. Language server

`findReferences` finds every caller of a member, including those a text search misses or mistakes (a call through an interface, an alias or re-export, an overload or a same-named member elsewhere). Without a server the agents fall back to Grep. So for each main language without a working server (on a re-run, check the parts `LSP_SETUP` names again first):

1. **Ask once.** One `AskUserQuestion`, one question per missing part, each option with the exact command:
   - *Marketplace* (no clone): add it (`claude plugin marketplace add anthropics/claude-plugins-official`), or skip.
   - *Plugin:* project scope, recommended (`claude plugin install <plugin>@claude-plugins-official --scope project`: it is recorded under `enabledPlugins` in `.claude/settings.json`, so everyone who opens the repository is offered it), user scope (`--scope user`: this machine, every project), or skip.
   - *Binary:* run the README's install command, the owner installs it, or skip. Prefer a user-level installer (`npm -g`, `pipx`, `dotnet tool --global`, `go install`, `rustup component add`) over a system one. A command that needs `sudo` or an elevated shell is the owner's to run, typed with `!`. A missing toolchain (no `npm`, no .NET SDK) is not installed here: name it in the report.
2. **Install** what was approved, in the foreground, then check the binary again. A tool installed just now may not be on this shell's PATH yet: find it in the installer's folder (`npm prefix -g`, `~/.dotnet/tools`, `$(go env GOPATH)/bin`) and say in the report that Claude Code needs a new shell to see it.
3. **Activate and check.** Plugins load when a session starts: ask the owner to type `/reload-plugins`, or to restart Claude Code in this folder if the binary only just reached PATH. The server must start on a buildable tree: one started before dependencies are restored reports missing packages for the whole session, so run `WORKTREE_PREP` first in a checkout that was never built. Then call `documentSymbol` on one source file, and `findReferences` on one member that Grep shows called from another file; the results must agree. The first calls after a start can fail with "server is starting": retry once after a few seconds. If the `LSP` tool only appears after a restart, leave this check to the owner and say so in the report.

## 9. Starter rules

Propose at most 3 `.claude/rules/<topic>.md` files for the areas where detection showed traps or the most complex code, each with `paths:` frontmatter and a few lines of facts that are not obvious from the code. Check every `paths:` glob hits files (`git ls-files`). Write only those the owner approves; `/retro` grows them from real work.

## 10. Report

The profile table, the files changed, the gate result, the language server per main language (working, installed but not yet checked, or skipped, with the command that remains), and what else was left for the owner (settings parts declined, a gate failure). Then how to start: a small change needs no workflow; for a larger one, `/write-plan <feature>`, read the plan, `/execute-plan <plan>` in a new session; after 2–3 executions, `/workflow-review`. Suggest committing `.claude/` and `CLAUDE.md` on a branch.

If detection found substantial documentation that agents must find and read by hand (per-project guides, a root `CLAUDE.md` much over ~10 KB, or a `docs/` folder the instructions point at), add one hint: `/restructure-docs` audits the Claude Code context against implementation, tests, build configuration, CI and explicit owner decisions. It corrects, consolidates and restructures the context into a lean root `CLAUDE.md`, folder `CLAUDE.md` files and path-scoped `.claude/rules/`. It moves procedures into skills, including checklists for recurring kinds of change, and proposes hooks or deny rules where an instruction should be enforced. It is owner-invoked only and changes nothing without the owner's approval; do not run it yourself. Say how many guides and bytes it would cover.

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.