/osprey:facility-reviewfrom osprey
Resolves OSPREY facility build stops and warnings by investigating each finding, grouping by cause, asking the maintainer one evidence-backed question per group, and recording answers in fixes.yaml or policy.yaml.
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.
The facility build is deterministic and never decides who is right. It loads every source, computes what follows from them, and prints what it could not settle: a stop when it cannot produce a facility file, a warning when it produced one the maintainer should read. This skill is the other half. You investigate each finding, the maintainer rules, and you write the ruling into a file the build already reads. The next build is still deterministic: it reads one more decision a person made.
Never settle a finding on your own judgement, and never treat two records as the same
thing because their names match. SR/S01/BPM1 and BR/S01/BPM1 are different devices.
RACK-12 under two parents may be two racks. A cable schedule and a rack layout that
disagree are two documents written by people who each had a reason. A name match, a
plausible guess, or "obviously a typo" is evidence to show, never a ruling.
Why this matters: the facility file feeds the channel finder, the simulator and the agent's picture of the machine. A wrong merge is silent. It looks clean in every later build, and the person who could have caught it never saw the question.
So for every finding: gather evidence, propose an answer, ask. What you write afterwards is the person's answer and their reason, in their words.
osprey facility validate and
osprey build print. Do not audit the facility for problems the build did not flag;
if you notice one while investigating, mention it in the wrap-up and leave it.imported/<layer>/. Those directories are regenerated whole from their
source tables by osprey facility import; a hand edit vanishes on the next import
and, until then, makes the layer lie about its source. A wrong imported value is
corrected by a fix, or in the source table followed by a re-import the person runs or
asks for.osprey facility --help, the build wins.validate ──▶ read findings ──▶ investigate ──▶ group by cause ──▶ ask
▲ │
└──────── show the finding gone ◀── rebuild ◀── write ruling ◀─┘
From the facility repository (the directory holding profile.yml, or pass --repo):
osprey facility validate
It writes nothing. Keep stderr whole. Exit code 1 means the build stopped; 0 means a facility file was produced, possibly with warnings.
If the person pasted lines instead, run it anyway: their paste may be stale, and the build prints only part of the story at a time (see step 2).
Every finding is one line:
facility: <kind>: <record kind> <id> — <detail>; fix: <remedy>
Parse the lines by this shape and take the kinds as they come. Do not match them against a list you remember: kinds are added, removed and moved between stop and warning from release to release. Whether a line is a stop or a warning is decided by the exit code, not by its kind.
Three facts about the report shape what you do next:
facility: shape, such as the closing
relations: N claims (...) summary, response check <model>: ... lines and
settle-tolerance warnings. The summary is your scoreboard (quote it before and after).
Treat any other line that flags something as a finding with no guidance (step 3).Tell the person what you found before investigating: a count per kind, stops first, in two or three lines.
A question the person has to research is a question you asked too early. For each finding, collect what a maintainer would want on the table:
osprey facility show --json <id> prints the
record, how the text matched, which layer and file states each field (provenance),
the fixes already applied, and for a place or device the claims it is an end of with
each claim's standing. It accepts a record id, a claim id, or a name. While the
build is stopped, show prints the same stop instead; read the source files then.imported/<layer>/, including
the byte copies of the imported tables kept there (read them, never edit them), the
authored files under records/, and documents.yaml for what each cited document is.fixes.yaml and policy.yaml. A finding may be the
consequence of an old ruling meeting a new import.Per-kind guidance for the kinds OSPREY reports today is in references/kinds.md: what
each detail means, where to look, what the usual causes are, and where its ruling is
written. Read the section for each kind you see.
A kind with no section gets the generic procedure, which is always enough to ask a good question:
show --json, or search the tree for the
id) and note which layer and document each one is.Findings that share a cause get one question. Nine supplies whose rack unit differs by one between two documents are one disagreement about how rack units are counted, not nine. Group on evidence: same pair of layers or documents, same field, same kind of difference, same table or importer run.
Before asking, test the group against its own members. Any finding that does not fit the pattern (a different offset, a third source, a device the rule would get wrong) comes out and is asked singly. Offer the person the same exit: an answer for the group, with any member pulled out to be ruled on its own.
Do not group across causes to save questions. A grouped ruling is written once per record, and a record ruled under the wrong pattern is a wrong fix with a confident reason attached.
One question per group, stops before warnings, the group with the most findings first. Each question has four parts, in this order, in the chat message:
Then the question itself in one line. Use the runtime's question tool when it has one (AskUserQuestion in Claude Code), otherwise ask in plain text. Always leave room for an answer you did not list, and for "leave it": a warning the person chooses to live with is a valid ruling that writes nothing.
Rack layout and cable schedule disagree on where 9 quadrupole supplies sit.
Always the same rack, always one unit apart.
RACK-07 rack layout (drawing D-114) cable schedule (spec S-22)
┌──────────┐
│ U12 │ ◀── QF1-PS .
│ U11 │ ◀── . QF1-PS
└──────────┘
9 of 9 differ by exactly one unit; the layout counts from 1, the schedule from 0.
Examples: QF1-PS (U12 / U11), QF2-PS (U14 / U13), QD1-PS (U20 / U19).
1. Rack layout wins (recommended): rank `drawing` above `spec` for located_in
in policy.yaml. The 9 schedule claims become superseded.
2. Cable schedule wins: the reverse ranking.
3. Rule on some of them one by one.
4. Leave contested.
More templates, one per common situation, are in references/questions.md.
A recommendation needs a reason the person can check ("the layout was revised after the schedule", "the schedule's row has no unit at all"). If the evidence does not favour an answer, say so and recommend nothing. An unranked question is better than a confident guess.
Write only after the answer, and only what was answered. Where a ruling goes:
| The person ruled | Write |
|---|---|
| One kind of document outranks another, for a relation type or for all | policy.yaml: relations.precedence |
| Inferred claims rank equal to stated ones (stated wins by default once a policy exists) | policy.yaml: relations.stated_over_inferred: false |
| An imported record or claim has a wrong value | fixes.yaml: a set fix |
| An imported record or claim should not exist | fixes.yaml: a drop fix |
| A record or claim is missing and no source will supply it | fixes.yaml: an add fix |
A hand-written record is wrong (anything under records/, documents.yaml, classes.yaml, ...) | A diff to that file, approved first |
| The source table itself is wrong and the person wants it corrected there | Nothing in the tree. They correct the table; re-import with osprey facility import |
| Leave it | Nothing |
Formats, required fields and the stops a malformed decision raises are in
references/decision-files.md. Read it before the first write. The points that matter
most:
why. Write the person's reason, not a paraphrase of the finding.
Someone reading fixes.yaml in a year needs to know who was believed and on what
ground.set fix carries was: the value each layer states today. That is what makes the
build stop with fix-stale when a later import changes the source, which is the
moment the ruling needs a person again. Take was from the layer files, never invent
it.fix-authored. Edit the authored file by diff instead.documents.yaml
declares. If the deciding document is not declared or has no kind, that is an
authored-file diff to propose first.Run osprey facility validate again after each ruling and report three things: the
findings that cleared, the findings that remain, and anything new. New findings are
expected (a later stage now runs, or warnings now print) and go back into step 3. A
finding that did not clear means the write did not express the ruling: fix the write,
do not re-ask the person.
For relation rulings, also quote the relations: summary line before and after.
Checking after each ruling, not at the end, keeps a bad write next to the answer that caused it, and the result independent of the order fixes were written in.
When the report is clean, or the person stops:
git status --short on the facility tree). Nothing is committed;
say so.references/kinds.md: per-kind investigation notes for the kinds reported today.
Read the sections for the kinds in front of you.references/decision-files.md: fixes.yaml, policy.yaml, documents.yaml, how
claim standing is computed, and the stops a decision file can raise. Read before the
first write.references/questions.md: question templates with pictures. Read before the first
question.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub als-apg/osprey --plugin osprey12 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.
/design-philosophyOSPREY's design and architecture principles — the rules that define how OSPREY code should be structured, and the anti-pattern each one prevents. Consult before designing, adding, or reviewing any feature (connectors, MCP servers, providers, capabilities, CLI, registry, runtime, config), and when redirecting work that is drifting from these principles. Trigger when the user says "is this the right direction", "does this fit OSPREY", "this feels wrong", "check the design philosophy", or points an agent at how OSPREY code should look. Apply before adding a config knob, a new abstraction, a new subsystem, or anything touching hardware-write safety./doc-syncUse when a maintainer wants to know where a page under docs/source says something the code no longer does — before cutting a release, after a long stretch of merges, or when one page is suspected of describing a flag, key, default, or procedure that has moved on. Triggers: "run doc-sync", "sync the docs", "do the docs match the code", "is this page still right", "check the how-to guides", "validate the docs", "doc drift", "audit the docs", "which pages went stale". Prefer it over reading a page and forming an opinion whenever the question is "is what this page says still true". Config comments, shipped prompts, runtime messages, and pinned versions are not doc pages; those are osprey:housekeeping.
/housekeepingUse when a maintainer wants to know where OSPREY tells its users something that is no longer true — before cutting a release, after a long stretch of merges without one, or when the generated project, a shipped skill, a runtime message, or a pinned version is suspected of having fallen behind the code — or when the shipped presets, which are supposed to agree (hello-world and demo), may have drifted apart. Triggers: "run housekeeping", "check for drift", "what has rotted", "is anything stale", "housekeeping report", "sweep the repo", "preset parity", "do the presets still agree", "what maintainer chores are outstanding", "pre-release drift check". Prefer it over ad-hoc grepping whenever the question is "has anything drifted" rather than "fix this one thing". Doc-page prose is not this skill's job; that is osprey:doc-sync.
/panelAuthor a new OSPREY web-terminal panel — a self-contained, themed HTML mini-app the terminal mounts beside the chat. Use whenever someone wants to create, author, add, scaffold, or build an OSPREY panel, a design-system panel, or a standalone themed surface for the web terminal. Produces a token-only panel that passes the panel validator.
Other plugins' skills for the same job