/selamy-skills:loop-governance-and-learningfrom selamy-skills
Use after an iteration, bug, review, incident, or repeated failure to decide what durable artifact should change: tests, skills, docs, decision logs, issues, or nothing.
Ships in selamy-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this after a meaningful loop finishes: a bug is fixed, a review changes the direction, a workflow succeeds, an incident exposes a gap, or a repeated failure reveals a pattern. The goal is to convert durable learning into the right artifact so the same lesson does not stay trapped in a transcript.
Not every lesson deserves persistence. Capture reusable knowledge; discard temporary task state.
Name the lesson in one sentence, then classify it:
| Lesson type | Durable artifact |
|---|---|
| A bug can recur | Regression test, fixture, monitor, or policy check |
| A behavior promise is unclear | Acceptance check, example, or product issue |
| A workflow is repeatable | Skill, runbook, or checklist |
| A prior decision matters | Decision log, commit message, or PR description |
| A source assumption changed | Documentation or source-of-record update |
| A task was merely completed | No durable artifact |
If the lesson is not reusable, do not persist it. Stale memory is worse than no memory because future agents treat it as fact.
Use [[skill-curation]] before creating or changing a skill. A skill update is appropriate when:
Do not create a skill for:
Prefer a test, eval, or monitor when the lesson is about observable behavior. Use [[regression-ratchet]] for bugs and [[feature-coverage-not-just-line-coverage]] for user or system promises.
The check should fail on the bad behavior and turn green after the fix. If it cannot fail independently, it is not evidence; it is a restatement of the implementation.
Use [[source-history-decision-log]] when the lesson is a rationale: why a shape was chosen, why an alternative was rejected, or what prior failure a line of code protects against.
Use docs when the lesson explains how to operate, configure, or understand a system. Keep docs close to the source they explain, and remove stale statements instead of layering contradictions.
Stop with a durable-learning change when:
Stop without changing durable artifacts when:
Lesson: <durable pattern learned>
Artifact: <test, skill, doc, issue, decision log, monitor, or none>
Why this substrate: <short rationale>
Verification: <how the artifact was checked>
Not persisted: <task-local or unsafe details intentionally left out>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills111 skills in this plugin
/adaptive-estimationUse when tracking a slowly-varying latent quantity from noisy measurements with quantifiable uncertainty — a drifting metric, capacity, latency trend, or confidence. Prefer a Kalman-style adaptive estimator over fixed moving averages or static thresholds./adaptive-loop-budgetingUse when an autonomous loop needs explicit limits on attempts, time, cost, tool calls, verification depth, or risk, and a clear stop, continue, yield, or escalate decision./adopt-and-deleteUse when adopting a shared module, library, chart, or service, or doing any consolidation, migration, or refactor that supersedes existing code. The change that adds the replacement must REMOVE what it replaced, in the same atomic change.Other plugins' skills for the same job