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
- 资产文件assets/shared.json73 B
- 参考文档references/guide.md162 B
- 脚本scripts/check-greeting.mjs1.0 KB
- 脚本scripts/check-lib.mjs44.4 KB
- 脚本scripts/selftest.mjs290 B
- 脚本templates/greeting.ts87 B
- 参考文档tests/fixtures/bad-rude/hello.txt8 B
- 参考文档tests/fixtures/good/hello.txt11 B
03 SKILL.md 正文
Sample greetings
A small, valid skill that the validator self-test changes one rule at a time.
Rules that must hold
- Greet first. Every greeting starts with "Hello", so the reader knows what it is.
Workflow
- Read references/guide.md.
- Copy templates/greeting.ts into the app and fill in the placeholder.
- Run
node ${CLAUDE_SKILL_DIR}/scripts/check-greeting.mjs greetingsand fix every FAIL line until it printsRESULT: PASS.
Definition of done
- [ ] The greeting is copied and filled in.
- [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-greeting.mjs greetingsprintsRESULT: 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
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).
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).
demo-skill
Builds a demo. Use when testing the pitfall checker.
demo-skill
Builds a demo. Use when testing the pitfall checker.
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).
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).