majiayu000/skill-lifeguard
Use when a skill is brittle, drifting, repeatedly failing, or needs a Reliable Skill Contract. Trigger for phrases like skill lifeguard, reliable skill, self-maintaining skill, negative examples, verification checkpoints, drift signals, replay hooks, or failure log to skill patch. Audits or patches skills so high-value workflows include explicit forbidden behaviors, checkpoints, machine-checkable done conditions, replay or smoke hooks, and drift detection.
npx skills add https://github.com/majiayu000/spellbook --skill skill-lifeguard
Use this skill to make an existing or new skill self-maintaining enough for real
agent work. It complements skill-audit and skill-creator: use this skill for
the reliability contract, then use those skills for library fit and authoring.
Read references/examples.md when you need example contract wording. Use
assets/reliable-contract-template.md when drafting a reusable section.
Every high-value workflow skill should either include these five elements or
record why an element is intentionally deferred:
| Element | Required Evidence |
| --- | --- |
| Explicit negative examples | Named forbidden behaviors and concrete alternatives. |
| Verification checkpoints | Pass/fail checks after important phases, not only at the end. |
| Machine-checkable done conditions | Commands, assertions, artifacts, or state queries from the current session. |
| Replay or smoke hooks | A small way to rerun or sample the workflow, plus a log-to-patch loop. |
| Drift signal detection | Observable signs that the skill is stale, undertriggering, overtriggering, or producing false success. |
manual: workflow still needs human validation.skill: manually validated and packaged as reusable instructions.automation: repeatedly reliable and safe enough for scheduled or hook-driven use.present, partial, missing, or deferred.SKILL.md for routing and boundaries,references/ for long examples, scripts/ for deterministic checks,
assets/ or templates/ for reusable report shapes.
instructions, and run local validation.
deleting user files, changing secrets, or promoting manual workflows into
scheduled automation.
verification, replay hooks, or drift signals.
smoke runs into a skill patch and rerun validation.
incomplete or misleading.
For audits, lead with findings:
reliable_skill_contract:
- target:
- maturity:
- score:
negative_examples:
verification_checkpoints:
machine_done_conditions:
replay_or_smoke_hooks:
drift_signals:
- blocking_gaps:
- patch_plan:
- verification:
For edits, keep the patch scoped to the missing contract elements. Do not
rewrite the skill's domain behavior unless the reliability gap requires it.
Reject these patterns and name the safer alternative:
query instead.
failure or mark the workflow blocked.
an allowed replacement.
manualmaturity and add smoke checks first.
Place checkpoints where a future agent could otherwise drift:
Treat these as evidence to patch the skill:
For Spellbook skills, run:
python3 ./scripts/validate_skills.py --check
python3 ./scripts/audit_skill_quality.py skill-name
If the skill owns scripts, also run the relevant syntax check or fixture. Report
missing prerequisites instead of marking the contract complete.
Take majiayu000/skill-lifeguard from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.