greeting-checks
Checks sample greetings for the validator self-test. Use when testing the skill validator. Not for real apps (greeting-checks).
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- name
- greeting-checks
- description
- Checks sample greetings for the validator self-test. Use when testing the skill validator. Not for real apps (greeting-checks).
02 资源文件 8
- 资产文件assets/shared.json73 B
- 参考文档references/guide.md162 B
- 脚本scripts/check-greeting.mjs1.0 KB
- 脚本scripts/selftest.mjs290 B
- 脚本templates/greeting.ts124 B
- 参考文档tests/fixtures/bad-rude/EXPECT.txt9 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
- None
04 同仓库更多 Skills
demo
Planted skill folder (never scanned).
demo
Planted installed skill (its files must never be scanned).
web-support
Ships the web build of an Expo app: platform files, APIs missing in react-native-web, expo-sqlite headers. Use when adding web, a .web.tsx file or expo export --platform web. Not for responsive layout (adaptive-layout).
value-objects-money-and-units
Stores money as ISO 4217 minor units, quantities in canonical units, instants as epoch ms. Use when adding a price, currency, tax, split, unit or timestamp, or a total is a cent off. Not for calendar days (dates-streaks-and-statistics).
unit-and-component-tests
Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).
ui-states-and-feedback
Builds loading, empty, failed and offline states, delayed skeletons, toasts, banners, confirms, Undo. Use when a screen loads data, shows a spinner, toast, retry or delete prompt. Not for failure values (error-handling-typed-results).