---
name: skeleton
description: Use Skeleton to find canonical repository context for questions or source changes, to prepare a code review before a pull request, or to perform setup, configuration, auditing, document dependencies, and skill ownership.
---

# Skeleton

<!-- source-of-truth: maintaining a skeleton-enabled repo -->

<!-- doc-meta: owner=eng -->

## Repository context

Make `npx --no-install skeleton context "<topic>"` the first repository command. A review bundle from `skeleton review prepare` replaces this step, so do not run `context` while following one. Use `--path` only for a known implementation path and `--staged` for staged-code questions. Returned document, source, and test excerpts are already read; do not read those files again unless an action requires a complete review. A `whole-file` excerpt is the entire file. `reference` lines list every tracked file and line naming an identifier from the request; for a rename or removal, change exactly those lines without searching again. Complete every `action` line and verify it against the final files. Preserve existing work. If a test is returned, edit and run only that test. Otherwise use one combined command to find and read the focused test. Stop when it passes. Do not run Skeleton audits or validation unless the user requested them, the focused test fails, or you are preparing a pull request (see below). Broader discovery or another context command is reserved for `no-context`, review gaps, omitted evidence, or a failing focused test.

A packet with review actions or omitted evidence is incomplete. Resolve the relevant gap before relying on active implementation claims. Preserve historical alternatives and future aspirations as qualified intent. A `current` status means the declared sources are unchanged, not that the document agrees with them; source changes need declared `review-deps` and source-triggered validation in the consumer.

## Source implementation work

For source work, use the returned source excerpt to identify the implementation seam, then locate the nearest focused test with a targeted search. Preserve existing work, make one consistent source/test/document change, then run the focused test after the final edit. Do not replace that final test with a broad audit or an intermediate completion claim.

Do not run Skeleton commands just because Skeleton is installed. They are not a substitute for the focused test.

## Before a pull request

When you are about to open a pull request, or the user asks for a review, run `npx --no-install skeleton review prepare --base <base branch>`. Then:

1. Re-read each listed document whose declared dependencies changed, and update it in the same branch. If it is still correct, say so in the pull request.
2. If the output names human-review paths, stop and tell the user which paths need a person. Do not approve them yourself.
3. Get independent reviews with fresh context. `review prepare` prints `<tier> review, <n> reviewer(s)` on stderr. Start exactly `<n>`; do not choose your own number. Use `--run` when `[review] command` is set, which starts them; otherwise give the printed bundle, as its prompt, to `<n>` new sessions or subagents in parallel. No reviewer sees another's report. Act on every finding from any review; a finding two report counts once. Fix every `important` finding. For a `decision` finding, keep the change and update the cited document only if the user's request explicitly asked for that behavior change; otherwise stop and ask the user, quoting the consequence. Without a user request to check, as in CI or `--run`, always ask. Resolve the others with a one-line reason.
4. Run at most three review cycles. After the first, run `review prepare --base <last reviewed commit>` and start the number it prints for that new diff; do not reuse the earlier number, and never start fewer because a change looks small. Fix a named bug class everywhere it occurs. Do not re-report resolved findings. After three cycles, stop and ask the user to re-evaluate the approach.

## Skeleton operations

For setup, configuration, auditing, document dependencies, CLI details, or skill ownership, read [references/operations.md](references/operations.md). For a change to Skeleton configuration, run `npx --no-install skeleton route <path>` and then its printed validation command.
