/selamy-skills:stacked-diff-disciplinefrom selamy-skills
Use when splitting dependent work into reviewable PRs, continuing above an unmerged prerequisite, converting existing branches into a stack, or merging a GitHub stack together. Also use when serial PR admission or repeated rebases delay dependent work.
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.
Read when SKILL.md points to them.
Build dependent changes as small reviewable layers and merge the ready prefix of the stack together. Continue authoring above an unmerged parent while it is reviewed. Keep independent work on separate branches or separate stacks.
| Observed relationship | Shape |
|---|---|
| A later change needs an earlier change's code or contract | Stack, prerequisite at the bottom |
| Changes merely share a tracker, reviewer, CI runner, or ledger file | Separate PRs; use the repository's merge queue for integration |
| Related commits contain distinct dependent concerns | One concern per layer, each tested with its ancestors |
| A change needs an unmerged member of another stack | Coordinate one explicit dependency chain with its owner |
Prefer short stacks, usually two to five layers. Review the decomposition when the stack grows; this is a planning heuristic, not a platform limit. A layer may depend on lower layers, never on an unmerged layer above it. Include the tests needed to establish that layer's behavior with the layer.
For GitHub, use the official github/gh-stack extension and its
upstream agent skill
for command details. Reuse upstream guidance rather than maintaining a second
command catalog. Check installed help when flags or behavior differ.
Read the operating reference for an executable example, migration, CI considerations, and unsupported-host fallback.
Record the intended prefix: repository, trunk SHA, ordered PR URLs, each base/head SHA, required approvals/checks, chosen method, and highest included PR. Re-read current GitHub state before execution.
gh stack merge <highest-included-pr> --yes with the repository's
approved method. Verify the resolved target and selected members; stack and
PR numbers share the command's target syntax.submit --auto generates PR
metadata; it does not arm auto-merge. Use native stack merge or its queue
path instead of a loop of gh pr merge --auto calls. API clients must use
GitHub's asynchronous stack merge API.Drafts communicate unfinished work. They suppress CI only when the actual
workflow implements draft-aware conditions. Inspect triggers, concurrency,
required checks, runner limits, and merge_group coverage. Native stacks apply
trunk protections and PR workflow filtering to every member; upper PRs are not
exempt because their immediate base differs.
Use bounded concurrency, cancellation of superseded runs, and verified stack-aware job selection to reduce repeated expensive checks. Preserve every required check and its meaning. When the intended prefix is ready, promote and qualify all its members within capacity; requiring every parent to merge before promoting its child defeats group merge. Preserve genuine repository approval, deployment, and resource gates; identify an obsolete serial policy as a separate source change instead of bypassing it.
Read back every included PR's merge state, resulting trunk SHA, and required post-merge checks. Map each PR to its resulting commit/group and verify the combined artifact and required deployment or user behavior. Reuse combined certification only when repository policy allows it, with every member mapped to that evidence. Check remaining members' new bases/heads after restacking.
Preserve existing PRs, reviews, and recovery refs during conversion; do not close, squash together, or replace them merely to manufacture a stack. Distinguish planned, submitted, queued, merged, and verified states.
Sources: GitHub stack model, group merge requirements, stack CI.
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