runtime-gate
Skill5 starsChanged 8 days agoMITView on GitHub
On an app-dev-team project, use before advancing a wave past QA and before any release — builds and launches the app (iOS, Android or web), then drives the P0 journey where UI automation exists. Run by /app-build and /app-ship; used by qa-engineer and verification-engineer.
In this repository25 other files it gives its agents.
- accessibility-gateSkill
- agent-isolationSkill
- architecture-builderSkill
- board-doctorSkill
- brownfield-onboardingSkill
- business-modelSkill
- content-designSkill
- context-preflightSkill
- database-migrationSkill
- defect-huntingSkill
- dependency-policySkill
- design-systemSkill
- house-conventionsSkill
- ic-workflowSkill
- intent-traceSkill
- localisationSkill
- mutation-testingSkill
- parallel-orchestratorSkill
- performance-reviewSkill
- prd-builderSkill
- requirements-intakeSkill
- role-activationSkill
- spec-criticSkill
- sprint-plannerSkill
- team-protocolSkill
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
- Very specific: line 8
Every other gate in this plugin verifies that the process was followed.
- Very specific: line 58
All three are external and optional — another plugin or a user-level skill, not this one's skills/.
- Distinctive: line 96
Never report a pass for a platform the gate could not evaluate.
- Distinctive: line 97
Never treat "it compiles" as "it works".
- Distinctive: line 98
Never paraphrase a failure.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 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.
Files
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" --project-root . --record \
[--platform ios|android|web|auto] [--scheme <name>]Always pass --record. It writes the verdict to docs/team/runtime-result.json, the file the
readiness reducer (orchestrator ship) reads; a run without it leaves readiness CANNOT EVALUATE no
matter what the gate found. It is opt-in in the script only so the plugin's own fixture runs do not
grow a docs/team/. --scheme names the shipping Xcode scheme when the project has more than one
shared scheme — without it an ambiguous project is CANNOT EVALUATE, never a guess.
| Exit | Meaning | What to do |
0 | PASS — built and launched (web: built, test script green, then the e2e suite or the served build answering GET / with a body) | Record the evidence path. Continue. |
1 | FAIL — does not build, or does not launch | Blocks the row. Re-spawn the developer with the compiler output the gate printed, verbatim. |
2 | CANNOT EVALUATE — the toolchain is not on this machine | Not 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.
A wave that ends CANNOT EVALUATE is never recorded as launched, and /app-ship re-runs the gate on
the release candidate. backend-service, cli and library are outside its detection: record
N/A and run the type's equivalent, as /app-ship step 1b describes.
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.xcresultfor real failure detail.- XcodeBuildMCP (a user-level
xcodebuildmcpskill, if installed) — build, install, launch and UI automation as tools.
All three are external and optional — another plugin or a user-level skill, not this one's
skills/. Their absence
is normal; it is never a defect to file. They give diagnosis, not a verdict: only
journey-gate.mjs with the plugin's drivers/ios.sh (AXe on a booted simulator) records a
journey PASS, so declare the journey and run the gate.
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:
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.- The ticket's acceptance criteria — the
Given / When / Thenrows are already the script. Drive them literally: theWhenis the interaction, theThenis what the screenshot must show. 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/54-evidence/runtime/runtime-<date>-<platform>.png on a successful launch. Anything
you drive beyond that writes its own artifact to docs/54-evidence/runtime/ 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.
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
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.

