/selamy-skills:structure-improves-agent-predictabilityfrom selamy-skills
Use when writing code an AI agent will later read and edit. Structure it so the next edit is obvious — typed boundaries, exhaustive matches, named dispatch, small surfaces — because well-structured code makes an agent predictable and ad-hoc code makes it guess.
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.
An AI agent edits code by pattern-matching against what it can see. The more the code's structure encodes the rules, the less the agent has to infer — and inference is where it guesses wrong. So structure isn't only for human maintainers anymore: a well-structured codebase makes agent behavior predictable; an ad-hoc one makes every agent edit a gamble. Treat the agent as a first-class reader and design for it.
A human carries hidden context across a sprawling function; an agent only has what's in front of it plus its priors. When the rules live in the shape of the code, a correct edit is the obvious edit:
If you find yourself writing a comment like "remember to also update X when you change Y," that coupling is invisible to an agent and it will miss it. The fix isn't a louder comment — it's structure that makes X and Y change together (one source, exhaustive switch, shared type). Every "remember to…" is a latent agent bug; convert it into something the type system or a single dispatch point enforces.
When writing or reviewing code that agents will maintain, prefer the option that removes a thing the next editor has to remember:
This compounds with the rest of the design skills (parse-don't-validate, map-dispatch-over-conditionals, enums-codify-behavior, small-focused-changes): each one is also a bet that the next editor — increasingly an agent — will do the predictable thing because the structure left no other obvious move.
What SKILL.md sets; muted values are Claude Code's defaults
111 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
npx claudepluginhub selamy-labs/agent-skills --plugin selamy-skills