finalrun-use-cli

A guide for FinalRun, a command-line tool for running and checking mobile-app tests in a repository. It covers workspaces stored in a `.finalrun` folder and tests for Android or iOS.

In plain words
What is it for?
Use it to install and inspect FinalRun, run its checks, diagnose Android or iOS setup, execute tests and test suites, and review run reports.
Why use it?
It gives developers a known way to check configuration and computer readiness before running tests. This avoids relying on unsupported commands or overlooking settings in the test workspace.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/droid-ash/finalrun-agent/finalrun-use-cli
Any agent
npx skills add droid-ash/finalrun-agent --skill finalrun-use-cli
Clone the repo
git clone --depth 1 https://github.com/droid-ash/finalrun-agent

Made for: Claude Code, Codex.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,038 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.03038
Opus 5 $0.00028 $0.01519
Sonnet 5 $0.00011 $0.00608
Haiku 4.5 $0.00006 $0.00304

Measured 2d ago against content hash 7e47c9b96f0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

finalrun-use-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/finalrun-use-cli/SKILL.md · 301 lines

How it starts

The opening of the file, as written. The whole thing — 301 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FinalRun CLI Guide and Operator

You help repo users safely use the published finalrun CLI inside repositories that contain .finalrun/. Default to published CLI usage in app repositories, not monorepo contributor workflows, unless the user explicitly asks for contributor setup.

Prerequisites

Install the published package and confirm the CLI is available:

npm install -g @finalrun/finalrun-agent
finalrun --help

For local Android or iOS execution, use finalrun doctor as the first host-readiness diagnostic.

finalrun doctor

Source of Truth

  • Prefer local CLI help such as finalrun --help, finalrun test --help, and finalrun suite --help.
  • Inspect the actual workspace files under .finalrun/ before giving execution advice.
  • Check .finalrun/config.yaml, .finalrun/env/, .finalrun/tests/, and .finalrun/suites/ before asking questions that the repo can answer.
  • Do not invent unsupported commands such as finalrun init.

Core Workflow

  1. Inspect the workspace and confirm finalrun is available on PATH when command execution matters.
  2. Validate first with finalrun check so selectors, suites, config, env bindings, and app overrides are verified before the user relies on a run result.
  3. Explain the exact finalrun test or finalrun suite command you intend to use, including the selected --env, --platform, and --model when relevant.
  4. Treat validation failures as blockers. Explain the CLI error in plain language and do not pretend the test run happened.
  5. Use finalrun runs to inspect recent run artifacts after validation or execution.
  6. Ask before starting finalrun start-server, because those commands launch background UI behavior.
  7. If the user wants to create or edit YAML tests, suites, or env bindings, route that work to finalrun-generate-test.

Missing Workspace

If .finalrun/ is missing:

  • explain that FinalRun must run from a repository containing .finalrun/
  • clarify that only .finalrun/tests is always required; suites/ is only required for suite-based workflows
  • show the expected structure
  • offer a scaffold plan or route the user to finalrun-generate-test
  • do not claim that the CLI can bootstrap the workspace automatically

Read the full file on GitHub · 301 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 301 lines · 55 tokens per session scan A 7e47c9b96f0f

Subscribe to this mod's changes

finalrun-use-cli is a skill published in the GitHub repository droid-ash/finalrun-agent (303 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 55 tokens to every session and 3,038 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

playwright-for-android

End-to-end Android debug loop on an emulator. Builds the APK with a Gradle task, boots a named AVD, installs and launches the target package, then drives a single feature via adb-injected UI actions while capturing a unified logcat-and-actions timeline plus a developer-facing test report. Use when the user wants to…

fclab-skku/playwright_for_android · 97 tokens

find-release

A skill to find the lowest Dart and Flutter release containing a given commit. Use this skill whenever users ask about when a commit landed in Flutter or Dart releases, inquire about release versions for specific SHAs, or want to know if a commit is included in stable, beta, or dev channels for Flutter/Dart projects.

flutter/flutter · 67 tokens

speckit-specify

Create or update the feature specification from a natural language feature description.

unoplatform/uno · 19 tokens

speckit-analyze

Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.

unoplatform/uno · 32 tokens

docs-build

Build, preview, and validate the Uno documentation website (DocFX) locally — surface real content errors vs expected noise, drive rendered pages with Playwright, and validate external-doc commit bumps in importexternaldocs.ps1 before a PR. Use when working under doc/, editing articles/ markdown, bumping an external…

unoplatform/uno · 97 tokens

speckit-taskstoissues

Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.

unoplatform/uno · 28 tokens