Skip to content
Development
Skill

/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

From plugin
majiayu000-spellbook
277104 skills7 agents2 commands
Install
$ npx -y skills add majiayu000/spellbook --skill skill-lifeguard --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/skill-lifeguard

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

skill-lifeguard.SKILL.md
name: skill-lifeguard
description: "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."

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.

Reliable Skill Contract

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. |

Workflow

1. Search before creating or moving skill files. 2. Read the target skill and nearby docs that define its expected workflow. 3. Classify the skill maturity:

  • `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.

4. Score the five contract elements as `present`, `partial`, `missing`, or `deferred`. 5. Patch the smallest durable home: `SKILL.md` for routing and boundaries, `references/` for long examples, `scripts/` for deterministic checks, `assets/` or `templates/` for reusable report shapes. 6. Run repository validation and any skill-specific smoke check.

Operating Contract

  • Direct actions: audit skill files, draft contract gaps, patch local skill

instructions, and run local validation.

  • Escalate before: publishing skills, installing into user runtime directories,

deleting user files, changing secrets, or promoting manual workflows into scheduled automation.

  • Evidence-backed pushback: refuse reliability claims that lack fresh

verification, replay hooks, or drift signals.

  • Feedback loop: turn repeated corrections, false-success signals, or failed

smoke runs into a skill patch and rerun validation.

Gotchas

  • A checklist without pass/fail evidence is not a checkpoint.
  • A warning-only fallback can hide missing data; fail loud when output would be

incomplete or misleading.

  • A one-time successful manual run is not automation maturity.

Output

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.

Negative Examples

Reject these patterns and name the safer alternative:

  • "Verify by saying it should work." Use a fresh command, fixture, or state

query instead.

  • "Swallow a failed helper and continue with a generic fallback." Surface the

failure or mark the workflow blocked.

  • "Add a broad reminder to be careful." Add a concrete forbidden behavior and

an allowed replacement.

  • "Automate a workflow that has never passed manually." Keep it in `manual`

maturity and add smoke checks first.

Checkpoints

Place checkpoints where a future agent could otherwise drift:

  • after startup discovery and applicable instructions are read
  • before edits that touch high-context files or generated metadata
  • after each deterministic verification command
  • before commit, push, PR, merge, or automation
  • after a failure log produces a skill patch

Drift Signals

Treat these as evidence to patch the skill:

  • users repeat the same correction
  • the skill triggers for the wrong task boundary
  • the skill fails to trigger for its primary phrase
  • the expected verification command no longer exists
  • output format changes without downstream docs or examples changing
  • a silent fallback hides missing data, auth, files, or external state

Verification

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.

Read more
Ships withmajiayu000-spellbook

Cross-runtime skills for Claude Code, Codex, and multi-agent workflows.

Get the whole plugin

Other skills on majiayu000-spellbook.

idea-analogist
Skill

idea-analogist

想法群聊室 — 类比者角色。被 idea-team 主编排器调用,或用户单独说"类比一下"、"别的行业有没有"、"yes-and 扩展"、"X 让你想到什么"、"跨界启示"时触发。**专门做跨界类比 + yes-and 扩展——不评判、不挑刺、不要求事实证据**。Do NOT use when 用户要数据(用…

idea-devils-advocate
Skill

idea-devils-advocate

想法群聊室 — 反方角色。被 idea-team 主编排器调用,或用户单独说"反方意见"、"挑这个想法的刺"、"为什么会失败"、"找漏洞 / 反例"、"devil's advocate"时触发。**专门挑漏洞、找隐藏假设、给反例——不安慰、不"也许可以这样"、不全盘否定**。Do NOT use when…

idea-research
Skill

idea-research

想法群聊室 — 调研员角色。被 idea-team 主编排器调用,或用户单独说"调研一下 X"、"X 的现状/竞品/数据"、"找 2026 数据"、"事实底"时触发。**用 WebSearch 拉真实 2026 数据、列竞品、引来源——只给事实,不评判,不建议**。Do NOT use when…

idea-team
Skill

idea-team

想法群聊室主持人 — 把一句话想法丢给多角色 AI 团队(调研员/反方/类比者)做查漏补缺。每个角色有自己的 voice,他们互相 @ 接话;你随时插话。**这是创意扩展工具,不打分、不否决、不堵路**。Use when 用户说"组个团队聊一下"、"开会讨论这个想法"、"找几个角度看看"、"群聊一下 X"、"team…

idea-to-product
Skill

idea-to-product

端到端产品教练 — 把一句话想法走到 PRD + 可点击 HTML 原型。会顶嘴、强制砍功能、用 Nielsen + Norman 做友好性硬检。Use when user 说"我有一个想法"、"想做一个产品"、"做 MVP"、"写 PRD"、"做用户友好的产品",或调用插件命令…