/osprey:setupfrom osprey
Guides users through setting up an OSPREY deployment for accelerators, beamlines, or detectors via a structured conversation. Handles installation, inventory, repo creation, and migration from existing projects.
Ships in osprey. 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.
You are helping someone who may not know OSPREY install it and set up a deployment for
their facility. Two questions, then four gated phases — DISCOVER, MAP, BUILD, CLOSE —
produce a buildable repo plus INTERVIEW.md.
Never assert anything about OSPREY that you did not just read from the live repo or
from CLI output. Config keys, artifacts, defaults, valid values and directory layout
come from the materialized profile.yml (its comments explain every key), from
osprey <command> --help, and from osprey profile artifacts. The discovery commands
and the repo-zone map are in references/osprey-map.md; read it before generating
anything. If this skill contradicts the repo or the CLI, the repo wins — that is a bug.
osprey set key=value for scalar edits, Edit calls for structure. Never a full rewrite.?, never a guess.osprey build, osprey up -d.references/cards.md,
in the chat message, before its question. The question that follows is one line.OSPREY is facility-agnostic by intent but grew up with one reference facility, so a new facility is the first real test of an abstraction somewhere. The misfit surfaces here first — as a workaround, an "Other", or "OSPREY can't do that yet, so for now we'll…". That is signal the OSPREY team wants: capture it rather than let it dissolve into the repo. Watch through the whole run.
A candidate is any point where the facility's reality cannot be expressed by the live
repo: a control system or archiver the connector set doesn't cover, or two protocols at
once (one deployment, one connector); a safety model beyond per-channel limits plus
single-human approval (relational limits, two-person sign-off, per-user or per-shift write
scopes, readback on a different channel); a provider or auth scheme the provider list can't
name; a logbook whose adapter does not ship; a metadata source with no config surface; a
migration EVALUATE module that exists because "OSPREY had no X" (ask why). Not a
candidate: facility data the deployment owns (channel names, limits, URLs, timezone), or
a placeholder for information the user doesn't have yet. Ground every gap in the live repo
first — profile.yml's comments, osprey config --defaults, osprey profile artifacts:
the commonest "gap" is an option you hadn't read.
Record candidates in INTERVIEW.md under ## Upstream candidates, one entry each:
- <short-id>: <what the facility needs> [blocking|worked-around]
offered: <what OSPREY offers instead>
workaround: <what this deployment does about it>
status: open
status may only be open, scouting, filed <url>, branch <name>,
dropped, profile-local, or already-supported (<key>) — and only the scout moves an
entry beyond open/dropped.
Severity is one question: with the workaround in place, does the deployment still serve
the purpose the user stated? No → blocking. Yes, degraded but working →
worked-around. A facility safety rule OSPREY cannot enforce is always blocking, and
writes stay off while it is open — never let "the operators will follow the rule
themselves" replace enforcement.
Offer the scout once per candidate, on the spot, in one line: "This looks like an
OSPREY gap rather than an LCLS one — investigate in the background while we continue?"
On yes, set status: scouting and launch /osprey:upstream-scout as a background
agent with the entry, the facility context and the deployment path; then continue the
run. On "not now" it stays open and the devil's advocate round offers it again. On
"drop" it is dropped, never raised again.
Surfacing. A scout that finishes is not shown mid-question. Its write-up is shown at
the next phase card, as the SCOUT panel in references/cards.md, followed by the scout's
disposition question. INTERVIEW.md has one writer, this skill: when the panel is
surfaced, write scouted: <date> under the entry, and on an ALREADY SUPPORTED: <key>
result apply the key (osprey set, then validate) and set
status: already-supported (<key>) yourself. CLOSE waits for every scout still running
before wrap-up.
Every phase ends in one card and one AskUserQuestion: confirm, or modify. A
confirmed card is copied verbatim into INTERVIEW.md under a (locked) heading. From
then on it is reference for the later phases and for the devil's advocate, and it is
never re-derived. On modify, take the correction, note which line changed, re-render.
If the current directory, or a path the user gives, holds an INTERVIEW.md, this is a
resume. Read it. Its phase: decides where to re-enter and its locked sections are
reference. Summarize the state in two or three sentences ("Decided: …; still open: …"),
re-show the last locked card, and continue from the next unconfirmed step. Mention any
upstream candidate still at status: open or scouting. Never re-ask a decided question.
First: what already exists. AskUserQuestion with exactly three options: (1) an OSPREY deployment already exists, any generation; (2) a facility exists, but no OSPREY; (3) nothing yet.
Second: is OSPREY installed here. Run osprey --version first and say what it
printed. Then AskUserQuestion with these options; the recommended one is whichever the
version output supports:
| Option | What it does |
|---|---|
| Already installed | Keep the version osprey --version printed. Record it. |
| Install the latest release | uv tool install osprey-framework. Upgrade later with uv tool upgrade osprey-framework. |
| Install a pre-release | uv tool install --prerelease allow osprey-framework (newest, pre-releases included), or uv tool install --prerelease allow "osprey-framework==<version>" for one. The flag is what admits the matching osprey-connectors pre-release; a version pin alone fails. Upgrade later with uv tool upgrade --prerelease allow osprey-framework. |
| Install the development version | uv tool install git+https://github.com/als-apg/osprey.git@main. Newest fixes, no checkout to manage; uv tool upgrade refreshes it. |
Every install puts osprey on the PATH, so every command in this skill runs the same
way afterwards. The dev form also takes a branch: @<branch> instead of @main is how
a deployment is built against an upstream fix branch (see /osprey:upstream-scout).
If uv is missing, say so and point at the installation page rather than improvising an
installer. Re-run osprey --version after an install and record the result under
Decided as osprey <version> (<release|dev @main|already installed>).
An era repo (generation: early or overlay) needs no OSPREY verb to inventory, so the
install may be deferred to BUILD there; say so instead of blocking on it.
Read references/discover.md on all three answers. It carries the generation
fingerprints, the inventory recipe per generation, the exploration protocol for a facility
with no OSPREY, and the status-quo card. On "nothing yet" every value is ?.
references/migration-legacy.md loads
from references/discover.md on the early fingerprint, never from here.osprey profile card --json,
osprey validate, osprey profile artifacts, and osprey scaffold list
only once build/.osprey-manifest.json exists (else ?). Era repos run no verb.build/.osprey-manifest.json creation.osprey_version, or ? when
the repo was never built. requires_osprey_version is a schema floor, shown as one.claude_code.agent_models.<agent> key in profile.yml's
config: block and in each tiers/*.yml, plus the model: line of each
agents/<name>.md. osprey profile card --json does not carry them. They are the
AGENT box's models line.(reference facility). MAP gives such rows the placeholder
verdict. The recognition list is references/knowledge-starter.md §7.The card is the STATUS QUO panels in references/cards.md: one box per group, counts in
the title bar, a group with nothing to say omitted, at most two sentences of prose around
it. The confirmed card lands under ## Status quo (locked), generation:/phase: in
the header.
Read references/map.md. It carries the closed verdict vocabulary (port, native,
placeholder, obsolete, gap, unknown), the porting-map card, and the rule that ?
rows render first. Every element of the locked status quo gets exactly one verdict, read
live from that card, osprey profile artifacts, the emitted profile.yml, and the
demo preset. A gap verdict becomes an upstream candidate under the rules
above. A placeholder verdict is answered refresh or localize on the card itself.
Each agent model pin is one element: port when the models list of the provider the
deployment will run carries its id, landing as
osprey set config.claude_code.agent_models.<agent>=<id>; obsolete when that list does
not carry it (reason <provider> does not serve <id>) or when the agent is not in the new
deployment. An obsolete pin's agent runs the main model.
The confirmed card lands under ## Porting map (locked). An empty status quo
(generation: none) maps nothing: no porting-map card, locked as none, and the three
facts below become this phase's card instead — MAP FACTS in references/map.md.
MAP ends with three facts. Ask only for the ones the inventory did not yield, and say
where the others came from: facility name; the IANA timezone for system.timezone; the
project name, which the web container names are built from. The project name is the
osprey init argument, the timezone is the osprey set key applied after it, and the
facility name goes into data/facility/identity.yaml as its name: — hello-world's
ships code: only.
osprey init <name> --preset hello-world, hello-world by rule, not by choice.
demo is the reference example this phase reads from. It is never
initialized and never pulled with --with-content: its data bundle is the reference
facility's, and a deployment half adapted and half demo is the failure this rule
prevents.profile.yml top to bottom. It is your knowledge base from here on.INTERVIEW.md (format below) with every card locked so far, and start the
## Ledger. Every path that lands from now on gets a ledger row in the same step.adopt / later / never under the stance, reason in plain words, the components
each area brings listed beneath it as facts. The card and the area list are in
references/map.md. It is this phase's card. later goes to Deferred, never to
Decided with the reason.adopt on the checklist, each through the feature
port in references/map.md: copy the area's dotted-key group from the reference
preset with its comments, replace every facility-specific value with osprey set,
add its service block and panel, land its data path as skeleton or facility file,
validate. Multi-user web terminals are one instance of the port with extra steps;
follow that recipe in full. Nothing enters the profile any other way.
osprey set config.<dotted key>=<value>.osprey scaffold pull demo:<path>,
or, on a port verdict, the facility's own file copied unchanged.port on a data path, and an adopted area's data path, is complete
only when the config keys binding that path are set. Files nothing points at are
invisible to the build. data/facility/ is the exception: the build reads the tree
under the profile's data root with no key naming it.derived provenance and the commands are in
references/knowledge-starter.md. Harvested material is curation owed, under Deferred.
osprey facility import mml --print-exporter > mml_export.m; the user runs
mml_export once per sub-machine;
osprey facility import mml <machine>.<sub>.ao.json, whose first run writes the
draft data/facility/imported/mml/mapping.yaml and stops; fill every null;
answer every slot of the judgments: block with the user; review every
derived description, direction, class, branch and devices answer with
the user and mark each slot stated; the same import again, which writes the
records; osprey facility validate, whose response check <model> lines are
read before building; osprey build; then the PARADIGM card binds the
channel-finder view the build writes.wiring block; its open slots are answered in a review
sized to the model, with the MODEL WIRING card in references/cards.md
(## MODEL WIRING) as its overview. The import refuses while one is open.osprey facility import mml replaces the bundled facility in one line
(import mml: replaced the bundled <name> facility (<n> files)) and refuses only
hand-written records of the kinds it writes, naming each file with the new-repo
remedy.osprey validate after every change. A difference from the preset is never refused.providers.yml beside the profile; osprey init always writes
.env.example and seeds .env only from what it already has — a key the shell
exports, the preset's env.defaults — so on a bare hello-world there is none: the
key goes into .env, created from the example when absent, and a
key deferred is an Open entry naming the variable. Once the ports in step 5 have made
the agent list final, draw the MODELS card in references/cards.md: every agent runs
the main model unless the user pins it, one
osprey set config.claude_code.agent_models.<agent>=<id> per pin, with ids from the
entry's models list. The confirmed card goes under Decided, one line per pin or one
line saying every agent runs the main model. Control system: "simulated" is a fork — virtual_accelerator with
serving: in_process serves the built facility file's channels in-process with no
containers and is what hello-world emits, serving: served is a
containerized soft-IOC — or a real one; osprey init --help lists every connector.
Write access and safety, where enabling writes forces the limits conversation.
The ceiling is control_system.writes: never (what hello-world emits), asked
or allowed. osprey set only lowers it, so raising it is a hand edit of
profile.yml or a tier file; the comment above the key says what each value arms.
Project identity.example_server MCP example (keep or remove) and three demo records in
data/facility/limits.yaml (keep only with the facility's own channels, else empty
or replace). Limits are authored in data/facility/limits.yaml; the build renders
them into build/data/channel_limits.json, a profile's own channel_limits.json
stops the build, and a channel with no record follows
control_system.limits_checking.mode (optional on this base). Both are ledger
rows from the first step; the rules are in references/map.md.No-invention rules, all detailed in references/knowledge-starter.md:
osprey facility import list or from its MML export by
osprey facility import mml, or authored under data/facility/records/ from what
the user states. Never from a guess.data/facility/imported/mml/mapping.yaml is reviewed to stated
and every judgments: slot is answered by the user before the import writes a
record from it, and every file osprey facility import mml writes under
data/facility/imported/mml/ is built.references/knowledge-starter.md §6, which the web-terminal recipe points at too.dispatch.triggers names a bundled set or a repo path.Ledger gate first, mechanical. Walk data/, tiers/, apps/, watchdogs/,
web-terminal-context/, mcp_servers/ and every services.* block in the profile against ## Ledger. Render
the LEDGER GATE panel from references/cards.md. Wrap-up is blocked while any path has
no row, or any row reads reference facility. Each blocking row is resolved with the
user as localize, refresh, remove, or keep — <reason>; nothing is resolved
silently. The gate passes when every row names this facility, a skeleton, or a reason.
Devil's advocate, mandatory after the gate. Spawn one read-only subagent — file read
and search only, no edit tools, no shell writes — with the full INTERVIEW.md, the current
profile.yml, the latest osprey validate output, and every locked card marked
reference, do not reopen. Its brief:
Find gaps and inconsistencies in this OSPREY deployment setup. Check at least: writes enabled without limits or with safety hooks/rules removed; writes enabled while an Upstream candidate records a facility approval rule OSPREY cannot enforce (CRITICAL); provider configured but no key in
.env; an agent pinned to an id the provider'smodelslist does not carry; a real control system without the connection details its comments require; declared feature blocks nothing reads (comments state the pairings); an adopted feature area whose components are not all present; decisions in INTERVIEW.md not reflected in profile.yml and vice versa; use cases the user described that the current selection cannot serve; a workaround, "for now", or deferred stub in INTERVIEW.md missing from its Upstream candidates section (facility data and missing-data placeholders are not gaps); a logged candidate an existing profile option plausibly covers — name the option, a lead to verify, not a verdict; demo artifacts left in a real deployment, walking the checklist inreferences/knowledge-starter.md§7 against the ledger. Classify each finding CRITICAL (unsafe or broken) / RECOMMENDED / OPTIONAL. Judge only against the provided artifacts, not assumptions.
Resolve every CRITICAL finding with the user, offer RECOMMENDED ones, mention OPTIONAL
ones. Then wait for every scout still running, show each finished write-up as its SCOUT
panel with the disposition question from /osprey:upstream-scout, and for candidates
still open, ask once whether to launch the scout now, all or some, or leave them for a
later resume. A candidate the reviewer thinks is already covered is verified against the
live repo first; its status moves on evidence.
Wrap-up: run a final osprey validate and osprey build, fixing what they raise, set status: complete, and move anything
unresolved to Open or Deferred. Close on a wrap-up card of next steps, read from the
repo's README and osprey <command> --help.
Create it at the repo root right after osprey init, write every card locked before then
into it in the same step, and keep it current.
# Interview record — <deployment name>
status: in-progress # in-progress | complete
generation: <current|overlay|early|none>
osprey: <version> (<release|dev @main|already installed>)
phase: <map|build|close|complete> # the phase now in progress; a locked card advances it
updated: <YYYY-MM-DD>
## Coverage
core: provider ✔ · models ✔ · control system ✔ · writes/safety ✖ · identity ✔
## Status quo (locked)
<the confirmed DISCOVER card, verbatim>
## Porting map (locked)
<the confirmed MAP card, verbatim>
## Features (locked)
<the confirmed feature checklist, verbatim>
## Ledger
| path or block | provenance | content | note |
| --- | --- | --- | --- |
| data/facility/knowledge/ | pulled | skeleton | indexes only |
| data/facility/knowledge/subsystems/rf.md | derived | LCLS | from lcls-ops-wiki/rf.md |
| data/facility/ariel/vocabulary.yml | stated | LCLS | localized stub, curation owed |
| services.postgresql | ported | LCLS | ARIEL store |
## Decided
- <decision> — <one-line rationale> (<date>)
- <feature area> — never — <reason> (<date>)
## Open
- <question still unresolved, and what unblocks it>
## Deferred / follow-up work
- <feature area> — later — <what unblocks it>
- <curation owed on harvested or pulled material, with pointers>
## Upstream candidates
- <one entry per the Upstream fit watch format above>
Ledger provenance is one of pulled, ported, stated, derived, built
(references/knowledge-starter.md); content is the facility's name, skeleton,
empty, or reference facility. The last value is what the CLOSE gate blocks on.
Resume state, decision record, devil's advocate input. Commit it whenever the user commits.
build/ (rendered output) or paste secrets into files other than .env.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/build-appBuild an OSPREY app: a panel in the web terminal's sidebar, the backend container behind it, and the agent tools that reach the same backend, all declared in one app.yml. Use whenever someone wants to create, scaffold, extend or fix an OSPREY app or application, runs or asks about `osprey app new` / `osprey app check`, edits an app.yml, adds a tool, a route, a write with an approval card, or a skill or subagent to an app, or wants an operator screen that the agent can also read and drive, even when they only say "panel with a backend" or "give the agent a tool for X". Works in a facility deployment repo with OSPREY installed and in an OSPREY checkout. Starts by checking itself against the installed OSPREY's app contract. For a static themed page with no backend and no tools, use the panel skill instead.
/contributeGuides a contributor through the OSPREY GitHub Flow contribution journey from a working-tree change to a merged PR on main. Use when someone says "I want to contribute X to osprey", "help me commit/push this", "prep this branch for a PR", "open a PR", "my CI is failing on this branch", "rebase onto main", or wants help following the contributing workflow. Auto-detects whether they have push access to als-apg/osprey or are contributing from a fork. Composes with /osprey:pre-commit and /osprey:release, and with the external commit-organize skill when it is installed — invoke this whenever someone is contributing code to OSPREY, even if they haven't named the workflow explicitly.
npx claudepluginhub als-apg/osprey --plugin ospreyOther plugins' skills for the same job