agentleFS
vmobifystudiovmobifystudio/app-dev-team/skills/runtime-gate/SKILL.md

runtime-gate

Skill4 starsChanged 4 months agoMITView on GitHub

Use before advancing a ticket past QA and before any release — builds the app and launches it, then drives the P0 journey where UI automation exists. Triggers from /app-build's QA wave, /app-ship, qa-engineer and verification-engineer, and any moment someone is about to certify that an app works without having run it.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every other gate in this plugin verifies that the process was followed.

    line 8
  2. Very specific:

    All three are external and optional — separate plugins, not this one's skills/.

    line 47
  3. Distinctive:

    Never report a pass for a platform the gate could not evaluate.

    line 82
  4. Distinctive:

    Never treat "it compiles" as "it works".

    line 83
  5. Distinctive:

    Never paraphrase a failure.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Runtime gate

Every other gate in this plugin verifies that the process was followed. verify-done.sh checks the branch exists and the test command exited zero. board-doctor checks the board is coherent. ship-gate.sh checks nothing is in flight and no S1/S2 is open. code-reviewer checks the diff reads correctly. A sprint can run green through all four on an app that does not compile in Xcode, does not launch, or launches to a blank screen — because nothing ever ran it.

This is defect-hunting §2 — never certify by reading, execute it — pointed at the app itself.

Run it

sh "${CLAUDE_PLUGIN_ROOT}/scripts/runtime-gate.sh" [--platform ios|android|auto] [--project-root .]
ExitMeaningWhat to do
0PASS — built and launchedRecord the evidence path. Continue.
1FAIL — does not build, or does not launchBlocks the row. Re-spawn the developer with the compiler output the gate printed, verbatim.
2CANNOT EVALUATE — the toolchain is not on this machineNot a pass. Report it as CANNOT EVALUATE in the standup and in the verdict block.

Exit 2 is the point of the script. A machine without Xcode is a normal state — a CI runner, a Linux box, an Android-only project. It is not an error and it is not a pass. The gate prints what was missing and what would make it evaluable; surface those lines rather than paraphrasing them.

Two traps it already closes, so do not re-open them by hand: command -v xcodebuild succeeds on a Command-Line-Tools-only Mac where every invocation fails, and a build that compiles is not a pass — "BUILDS, but launch UNKNOWN" is exit 2. Timeouts are stated and enforced; a hung simulator produces CANNOT EVALUATE, never an infinite wait.

Escalate past the script when the toolchain allows

The script is the floor — it proves the app starts. On iOS the Axiom toolchain, when installed, gives far more, and you should route to it:

  • axiom:simulator-tester — drives the running app, captures screenshots, reads the log for crashes and errors. This is what turns "it launched" into "the journey works".
  • axiom:test-runner — runs XCUITests and parses the .xcresult for real failure detail.
  • XcodeBuildMCP (the xcodebuildmcp skill) — build, install, launch and UI automation as tools.

All three are external and optional — separate plugins, not this one's skills/. Their absence is normal; it is never a defect to file.

Absent toolchain → degrade to the plain script and say so. Never silently skip a step: an unavailable capability produces a stated CANNOT EVALUATE for that step, never a quiet pass. An unstated gap reads as a cleared one.

Drive the P0 flow, not just the launch

Building and launching is the floor. Where UI automation is available, exercise the primary user journey and capture evidence at each step.

Pick the flow this way:

  1. docs/10-prd.md — take the P0 features in priority order. The first P0 journey is the one that, if broken, makes the release pointless.
  2. The ticket's acceptance criteria — the Given / When / Then rows are already the script. Drive them literally: the When is the interaction, the Then is what the screenshot must show.
  3. docs/50-test-plan.md — qa-engineer's rows for those tickets, if the plan exists.

A journey that cannot be driven is stated as not driven, with the reason.

Evidence discipline

The script writes docs/evidence/runtime-<date>-<platform>.png on a successful launch. Anything you drive beyond that writes its own artifact to docs/evidence/ too — a screenshot, or a log excerpt for a step with nothing visual to show.

Reference the artifact by path in the DONE report, the QA verdict, or the ship summary. A claim with no artifact behind it is exactly the class of self-report this whole system exists to distrust — and per defect-hunting §4, a finding with no evidence and no owner is one that gets silently skipped.

Never

  • Never report a pass for a platform the gate could not evaluate.
  • Never treat "it compiles" as "it works". They are different exit codes for a reason.
  • Never paraphrase a failure. The compiler already said exactly what is wrong; pass it through.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.