Install the skills
Run the following command once in your repository to install all three skills into your coding agent:These skills work with any AI coding agent that supports the skills protocol. You do not need to configure them separately for each tool.
Available skills
/finalrun-generate-test
Reads your app’s source code, infers the app identity, and generates complete YAML test specs with setup, steps, and expected state — organized by feature folder.
/finalrun-use-cli
Validates and runs tests once they are generated. Handles flag selection, env binding, and post-run artifact inspection.
/finalrun-test-and-fix
Orchestrates the full generate → run → diagnose → fix loop. Keeps iterating until the run is green or a genuine blocker is hit.
/finalrun-generate-test
The/finalrun-generate-test skill reads your app’s source code, infers the app identity (package name or bundle ID), and generates complete test specs organized by feature folder under .finalrun/tests/.
Example usage
Read source code
Reads relevant application source code to understand the UI, user flows, and infer the app’s package name or bundle ID.
Set up configuration
Creates or updates
.finalrun/config.yaml with the app identity and scaffolds environment bindings under .finalrun/env/.Propose a test plan
Presents the proposed test files, feature folder structure, and environment binding strategy for your approval before writing any files.
Generate YAML specs
After you approve, writes YAML specs under
.finalrun/tests/<feature>/ and a matching suite manifest under .finalrun/suites/./finalrun-use-cli
The/finalrun-use-cli skill validates and runs your tests once they are generated. It handles CLI flag selection, env binding, and post-run artifact inspection — including reading result.json, screenshots, and device logs on failure.
Example usage
finalrun check before executing, explains the exact command it will run, and summarizes the outcome with artifact links when done.
/finalrun-test-and-fix
The/finalrun-test-and-fix skill orchestrates the full generate → run → diagnose → fix loop. It calls /finalrun-generate-test to author tests, runs them via /finalrun-use-cli, reads the CLI artifacts on failure, classifies whether the bug is in the app code or the test spec, applies the narrowest possible fix, and re-runs until the run is green.
Example usage
Auto-triggering FinalRun after feature work
You can configure your AI agent to automatically generate and run FinalRun tests whenever it finishes a UI feature — without you having to ask explicitly. Add the autotrigger content to yourAGENTS.md file:
With the autotrigger in place, your agent treats a passing FinalRun run as a hard requirement for every UI task — no separate prompt needed.
