agentleFS
nuwansamaranayakenuwansamaranayake/AiGNITEClaudeAssets/three-tier-test/SKILL.md

three-tier-test

Skill0 starsChanged 7 months agoMITView on GitHub

Enforces the AiGNITE Chrome to mirror to phone testing sequence with hard checkpoints. Tier one runs Playwright over the Expo web build. Tier two runs a recorded walkthrough on iPhone Mirroring or Android emulator. Tier three runs a manual checklist on a physical device. Each tier must pass before the next starts. Use this skill whenever the user mentions testing a mobile app, verifying a build, QA, asking if a build is ready to ship, or running a three-tier test, even if they do not name the skill by name.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Run the three tiers in order.

    line 26
  2. Very specific:

    Start the Expo web build (npx expo start --web).

    line 30
  3. Distinctive:

    Wait for the bundler to settle.

    line 31
  4. Very specific:

    Run scripts/run-tier-one.ps1.

    line 32
  5. Very specific:

    Write pass or fail to TEST_RESULTS.md.

    line 36
  6. Very specific:

    Run scripts/run-tier-two.ps1.

    line 44
  7. Very specific:

    Run scripts/run-tier-three.ps1.

    line 52
  8. Distinctive:

    All three passes are within the last seventy-two hours.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

three-tier-test

Purpose

Catch bugs at the layer that surfaces them cheapest. Chrome catches console errors and broken API calls. Mirror catches gesture and layout bugs. Physical device catches sensor, push, and battery bugs.

When to trigger

Trigger on these user phrases. Match loosely.

  • "test my app"
  • "verify the build"
  • "is this ready to ship"
  • "run the test suite"
  • "QA the mobile app"
  • "three-tier test"
  • "pre-flight test"

Behavior

Run the three tiers in order. Refuse to mark the build "ready" unless all three pass. Each tier writes a pass or fail line to TEST_RESULTS.md with a timestamp.

Tier one: Chrome (Playwright)

  1. Start the Expo web build (npx expo start --web).
  2. Wait for the bundler to settle.
  3. Run scripts/run-tier-one.ps1. It drives Playwright through every screen.
  4. Assert every screen renders without a console error.
  5. Assert every API call returns a 2xx status.
  6. Hit the same endpoints listed in scripts/smoke-test.sh. Reuse the probe list.
  7. Write pass or fail to TEST_RESULTS.md.

Fails this tier produces an immediate stop. Fix and re-run.

Tier two: Mirror (iPhone Mirroring or Android emulator)

  1. Build a development client (eas build --profile development --platform <ios|android>).
  2. Install to iPhone Mirroring (Mac) or to the Android emulator.
  3. Run scripts/run-tier-two.ps1. It loads a Maestro flow or a Detox flow against the running app.
  4. Capture screen video for review.
  5. Write pass or fail to TEST_RESULTS.md.

Tier three: physical device

  1. Generate a QR code for the development build.
  2. The user scans with their phone.
  3. Run scripts/run-tier-three.ps1. It prints a manual checklist.
  4. The user ticks items off. The script captures their pass or fail and writes to TEST_RESULTS.md.

The physical-device checklist covers the items only real hardware surfaces: push notifications, camera, location, deep links, biometric auth, performance at battery saver, screenshot blocking, app icon installation, and orientation lock.

See references/physical-device-checklist.md for the full list.

Integration with mobile-app-scaffold

The skill reads the endpoint list from scripts/smoke-test.sh produced by mobile-app-scaffold. Both must reference the same list. If the smoke test list changes, tier one detects the change at the next run.

Refusal

The skill refuses to write "READY" to TEST_RESULTS.md unless:

  • Tier one is a pass.
  • Tier two is a pass.
  • Tier three is a pass.
  • All three passes are within the last seventy-two hours.

Composes with

  • Runs after security-audit.
  • Runs before app-store-submission. The submission skill rejects builds without a recent three-tier pass.

References

  • references/why-three-tiers.md - what each tier catches that the others miss.
  • references/playwright-setup.md - wiring Playwright into an Expo web build.
  • references/physical-device-checklist.md - the manual checklist for tier three.

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.