AGENT SKILL

fixtures

Checks sample greetings for the validator self-test. Use when testing the Pocket Arcade skill validator.

License 许可
MIT
最近更新
2026-11-05
Stars
★ 0
Forks
0

01 前言 Front Matter

name
fixtures
description
Checks sample greetings for the validator self-test. Use when testing the Pocket Arcade skill validator.

02 资源文件 8

03 SKILL.md 正文

Sample greetings

A small, valid skill that the validator self-test changes one rule at a time.

Rules that must hold

  1. Greet first. Every greeting starts with "Hello", so the reader knows what it is.

Workflow

  1. Read references/guide.md.
  2. Copy templates/greeting.ts into the app and fill in the placeholder.
  3. Run node ${CLAUDE_SKILL_DIR}/scripts/check-greeting.mjs greetings and fix every FAIL line until it prints RESULT: PASS.

Definition of done

  • [ ] The greeting is copied and filled in.
  • [ ] node ${CLAUDE_SKILL_DIR}/scripts/check-greeting.mjs greetings prints RESULT: PASS.

Anti-patterns

  • Skipping the guide and guessing the wording.

Files in this skill

File What it is Read/run when
references/guide.md How greetings are written Workflow step 1
templates/greeting.ts Greeting function to copy Workflow step 2
scripts/check-greeting.mjs Checker for the greeting rule Workflow step 3
scripts/selftest.mjs Proves the checker After changing the checker
scripts/check-lib.mjs Shared script helper (synced) Never by hand
assets/shared.json Shared files this skill copies in When adding a shared file
tests/fixtures/ Good and planted-bad inputs When adding a rule

Related skills

  • skill-template - the model skill every new skill starts from.

04 同仓库更多 Skills

zakariaf
zakariaf/pocket-arcade

unit-and-component-tests

Sets up Jest and writes Pocket Arcade test code - three projects, RNTL 14 async via renderWithShell, root SDK mocks, fakes, fast-check, coverage, Stryker. Use when a test needs the Shell wrapper, a mock or a fake, or Jest fails. Not for the red-green loop (tdd-workflow) or goldens (golden-tests).

★ 0
zakariaf
zakariaf/pocket-arcade

typescript-and-lint-rules

Enforces Pocket Arcade's strict TypeScript 6 tsconfigs, ESLint 9 flat config, Prettier and size limits. Use when writing or splitting .ts/.tsx or fixing a tsc or lint error. Not for gate wiring (quality-gates), names (naming-conventions) or import zones (architecture-and-boundaries).

★ 0
zakariaf
zakariaf/pocket-arcade

demo-skill

Builds a demo. Use when testing the pitfall checker.

★ 0
zakariaf
zakariaf/pocket-arcade

demo-skill

Builds a demo. Use when testing the pitfall checker.

★ 0
zakariaf
zakariaf/pocket-arcade

troubleshooting-playbook

Diagnoses and fixes Pocket Arcade failures with a catalogue of 300+ known ones (symptom, cause, fix). Use when something errors, crashes, hangs or renders wrong, or an error or log needs explaining. Not for gate setup (quality-gates) or running builds (ios-simulator-build, ios-release-testflight).

★ 0
zakariaf
zakariaf/pocket-arcade

toybox-visual-parity

Proves a built Pocket Arcade screen matches its Toybox design screenshot (light/dark, en/fa) and drives the fixes: capture, element gates, sheets, sign-off. Use when any screen is built or changed, or for visual parity, design match, screenshot compare. Not for building screens (toybox-screens).

★ 0