/osprey:pre-commitfrom osprey
Runs OSPREY's check command with tiered validation (quick/full/scoped) before commits, pushes, and PRs. Catches issues early with linting, formatting, and tests.
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.
None: SKILL.md is the whole skill.
This skill runs OSPREY's check command at the right moment in the journey. It
is a focused validation tool — not a full contribution workflow. For the
end-to-end journey (branching, committing, pushing, opening a PR, merging) use
the /osprey:contribute skill, which invokes these checks at each gate.
Every check is declared once, by the code that owns it, in a repo_checks.py
module beside that code: scripts/repo_checks.py for the framework and the
repository as a whole, and one in each package that brings checks of its own
(packages/osprey-connectors/repo_checks.py). scripts/check.py collects every
such module, and a laptop, an automated gate and each CI step run a check
through it.
| Tier | Command | Use Before |
|---|---|---|
| Quick | uv run python scripts/check.py quick | every commit |
| Full | uv run python scripts/check.py full | every push |
| Quick, scoped | uv run python scripts/check.py quick --changed origin/main | every PR |
Each tier expands the surface area of what is verified. Running them in order saves time: catch the cheap things cheaply, escalate only when the cheap checks pass.
To see what a tier runs:
uv run python scripts/check.py list --tier quick
Runs the checks a commit needs, with the fast unit tests. Catches most
accidents that would clutter git log.
uv run python scripts/check.py quick
Add --fix to apply ruff first: it runs uv run ruff check . --fix and
uv run ruff format ., then the checks.
Adds the slow tests, the serial suites and the builds. Pushing only what
would have passed CI respects shared CI minutes and keeps PR dashboards clean.
Needs uv sync --extra dev --extra docs.
uv run python scripts/check.py full
Compares the branch against the PR target (origin/main). It runs the checks the
diff touches and the tests it maps to, adds the checks that judge a range (the
changelog fragment, the plugin version and the secret scan), and
names the CI lanes the diff touched.
uv run python scripts/check.py quick --changed origin/main
Add --worktree to judge uncommitted and untracked files as well.
The last line is the verdict: clean, or not clean with the checks that
failed. It also names what did not run here. Exit status 2 is a refusal: the
command could not judge, and the message says what to install or fetch.
Read the output, fix the smallest thing that would make it pass, and re-run the same command. Don't escalate to a higher tier until the lower tier is green — escalating early just hides the cheaper failure under a slower one.
If the failure is in ruff, quick --fix usually resolves it.
If the failure is in tests, the most useful next step is to run that single
test verbosely:
pytest tests/path/to/test_file.py::test_function_name -v
/osprey:contribute — the full journey. Calls these checks at each
gate (commit, push, PR). If you find yourself running these checks while
also juggling branching, committing, and PR creation, switch to
/osprey:contribute instead.commit-organize (optional, external) — when a working tree spans
unrelated concerns, split it into atomic commits before running the checks./osprey:release — release-cutting flow that includes a clean-venv
pre-release test pass on top of these tiers.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.
/facility-reviewResolves what the OSPREY facility build flags, with the person who maintains the facility repository: runs `osprey facility validate`, investigates every stop and warning it prints, groups the ones that share a cause, asks one evidence-backed question per group, writes each confirmed answer into `fixes.yaml` or `policy.yaml` (or proposes a diff to an authored facility file), rebuilds, and shows the finding gone. Use whenever a facility build stops or warns, whenever someone pastes a `facility: <kind>: ...` line, after `osprey facility import` brings in a cable schedule, rack layout, MML export or channel list, and when someone says "review my facility", "clean up the facility warnings", "two sources disagree", "contested relations", "layer-conflict", "which source wins", or asks why a relation is contested or superseded, even if they do not name this skill.
/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.
Other plugins' skills for the same job