Find implicit state machines, review state bugs, and check or visualize statecharts with Stately.
95%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Medium
Suggest reviewing before use
Use this workflow when someone asks what a user can do in an app, wants a first-time-user walkthrough, or wants documentation that shows where the app's behavior differs from its code, tests or docs. It extends app-understanding.md: build the feature inventory first, then model the user journey and gather evidence for each state and transition from four sources.
| Kind | Source | Evidence status | Typical cited paths |
|---|---|---|---|
| Code | Source files that implement the step | inferred | application source |
| Tests | End-to-end or integration tests that exercise the step | observed | *.e2e.*, *.test.*, *.spec.*, or files under e2e/, test/, tests/, __tests__/, scenarios/ |
| Docs | The app's user documentation | inferred | *.md, *.mdx |
| Running app | A browser crawl of an isolated install | capture run outcome | screenshots attached to the capture run |
Cite each test and doc by its own path so a reader can tell the kinds apart.
Each kind answers a different question. Code says what the app is built to do. Tests and docs say what the authors expect. The running app shows what a user gets. Record disagreements as findings. Do not change the model to hide them.
invoke whose src is
that flow's root key, so the project architecture diagram links them.path:start-end. Before saving, check that
each cited path exists and that each line range is within the file and shows
the behavior. Never cite a file you have not opened, and never cite your own
working notes or generated output.{ "source": "tests/onboarding.e2e.ts:12", "status": "observed", "description": "Test: ..." }
and { "source": "docs/user/setup.md:3-7", "status": "inferred", "description": "Docs: ..." }.
With edit_stately_model, set the entity's meta key @statelyai.evidence
to the full list and keep its other meta keys. Hosts that render MCP apps
can show the editor for an edit_stately_model result. For background
documentation in such a host, tell the user before editing, or save the
citations with save_stately_models.Run the app as a new user would meet it, on an install that cannot reach the user's own accounts or data.
env -i HOME="$TMP/home" PATH="<node>/bin:/usr/bin:/bin" .... Point the
app's own data directory at a temporary folder, and turn off any option that
adds the current folder as a project. A temporary home alone is not enough
when the app reads the login shell's environment; env -i prevents that. It
does not stop the app from reading other files the user can read.read_stately_model. For each state and transition you
can reach, do the real action in a browser, check the screen, and save a
screenshot. Record observed when the app behaves as modeled, mismatch
with what the app did when it differs, and skipped with the reason when the
step needs a sign-in, a provider or a remote. Upload each screenshot of an
observed step with upload_stately_capture_asset (PNG, JPEG or WebP up to
512 KiB) and pass the returned assetRef on that result. Screenshots of
mismatches stay in your report; capture results accept images only for
observed outcomes.save_stately_capture_run against the journey's current
revision and capture.behaviorRevision. Its sourceRevision must equal the
model's source revision. A new run replaces the previous one, so a second
pass must include every result you want to keep. Carry an earlier result
forward only when the app build, the source revision and that state or
transition are unchanged since it was recorded. Otherwise check it again or
record it as skipped.Return the journey link, the counts per kind (states and transitions with code, tests, docs and app results), every mismatch in one line, the steps no source covers, and documented capabilities the model lacks. State which steps the crawl could not reach and why.
.tessl-plugin
agents
references
scripts
engine