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