execute-ui-spec

execute-ui-spec is a command for Claude Code from bladeofgod/flutter-ai-harness. It costs 22 tokens per session (516 once invoked), scanned A, original, MIT.

A manually started command for auditing and running a ready UI behaviour specification on a specified Android or iOS app. It checks the implementation against the specification without changing production code.

In plain words
What is it for?
Use it when you have a real ready specification, a supported mobile platform, and the required build, device, permissions, account, and test data available.
Why use it?
It provides a controlled way to find missing or incorrect interface behaviour while keeping audit and runtime results separate from implementation work.

Command for Claude Code

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 commands/bladeofgod/flutter-ai-harness/execute-ui-spec
Clone the repo
git clone --depth 1 https://github.com/bladeofgod/flutter-ai-harness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for execute-ui-spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/bladeofgod/flutter-ai-harness/execute-ui-spec.svg)](https://agentmods.dev/commands/bladeofgod/flutter-ai-harness/execute-ui-spec)
Your own site
<a href="https://agentmods.dev/commands/bladeofgod/flutter-ai-harness/execute-ui-spec"><img src="https://agentmods.dev/badge/commands/bladeofgod/flutter-ai-harness/execute-ui-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 516 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.00022 $0.00516
Opus 5 $0.00011 $0.00258
Sonnet 5 $0.00004 $0.00103
Haiku 4.5 $0.00002 $0.00052

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

Security

Grade A, and why

execute-ui-spec 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 5d 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.

.claude/commands/execute-ui-spec.md · 26 lines

What it actually says

本命令是独立 UI 自动化入口,不属于任务实现、Review、归档或发版默认门禁。只有用户明确调用本命令并提供真实 Spec 路径与至少一个平台时才执行;不得从任务类型、Figma 输入或 ready 状态自动触发。

前置条件

  1. Spec 必须位于 docs/app-operator/specs/<spec-id>.spec.yaml,状态为 ready,且 make spec-check 通过。
  2. 平台必须由用户显式指定,只允许 androidios;不得因为 Spec 声明了多个平台就自动扩大本次范围。
  3. 读取 CLAUDE.md,加载 ui-behavior-specflutter-debug-runtimemarionette-debug Skill。
  4. 本流程只验证当前实现,不授权修改生产代码、测试、任务卡或 Spec。发现实现缺失时报告结果并停止,修复需用户另行安排。

执行

  1. 调用 spec-auditor 对照当前实现写入同目录 <spec-id>.audit.yaml,再运行 make spec-check
  2. Audit 不是 passed、任一条目不是 covered 或实现摘要无效时,停止,不启动 App Operator。
  3. 对用户明确指定的每个平台分别加载 flutter-debug-runtime,构建、安装并保持 Debug App 运行;设备、签名、系统权限、账号或测试数据缺失时请求人工介入。
  4. 每个平台取得 VM Service URI 后只在当前调用中交给 app-operator。Operator 严格执行 Spec,并覆盖写入 docs/app-operator/runs/<spec-id>/<platform>.run.yaml
  5. 每个平台结束后确认断开 Marionette,最后运行 make spec-check

交付

汇报 Spec、Audit、用户指定平台的 Run 报告、失败证据、运行环境缺口和精确命令结果。不得修改或归档普通任务,不得自动修复审计/运行发现,也不得因本次未选择其他声明平台而把已有任务判定为失败。

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. 5d ago First seen · 26 lines · 22 tokens per session scan A 3c6185d8af1f

Subscribe to this mod's changes

execute-ui-spec is a command published in the GitHub repository bladeofgod/flutter-ai-harness (113 stars, last pushed 24d ago), licensed MIT. It adds 22 tokens to every session and 516 once invoked, about $0.0001 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.