/selamy-skills:gate-before-pushfrom selamy-skills
Use before opening a pull request. Reproduce the repository's OWN CI gates locally and make them green first — including its bespoke checks — so the PR arrives green and merges first-try instead of burning scarce CI iterations.
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.
Open a PR only after it would already go green. Every red CI iteration costs a full runner cycle plus review latency; when runner capacity is constrained, a push-and-pray PR steals capacity from everyone. The fix is to run the repository's own gates locally before the push — not "I ran some tests," but the exact checks CI will run.
The trap is running the obvious checks (build, unit tests) and missing the bespoke ones that only this repo enforces — the gates you'd otherwise discover failing only after a runner picks the PR up.
Before trusting a passing result, identify whether the check reads the working
tree, the index, committed HEAD, or a composed merge tree. Confirm that its
file selection includes every new or renamed path in its scope.
Stage intended paths before index-based checks. Run HEAD-enumerating checks
after the local commit and before pushing or opening the PR: a scanner using
git ls-tree HEAD cannot see an uncommitted addition. When CI validates a
composed merge tree, use the repository's existing check for that result.
For qualification or preparation, follow wrappers and package scripts to the gate they actually invoke. Verify its input preconditions, including base/head identity and required ancestry; accepted CLI arguments alone do not establish valid inputs. A receipt consumer's narrower predicate does not waive an invoked gate's requirement. Preserve valid evidence and use the repository's supported branch-history preparation.
Prefer existing cheap native filename, structure, and metadata validators. When file inclusion is unclear, use a focused control to verify the changed path is checked. Reuse valid results for unchanged inputs where repository policy permits; do not repeat a full suite merely to rerun a cheap enumeration check.
For changes to a shared boundary, identify its affected consumers and run their relevant existing suites, even outside the edited package. A success fixture must satisfy the boundary's production contract; use small valid artifacts and reserve malformed data for rejection cases. Passing each gate category does not establish that the affected test scope ran.
Generic checks rarely fail twice; the repo-specific scanners and validators are where push-and-pray loses. Those are exactly the cheap-to-run, expensive-to-discover-remotely gates — running them locally is the highest-leverage minute you spend.
When a UI change naturally produces useful before/after screenshots, golden images, or rendered design evidence, embed those images directly in the PR description with clear Before and After labels and one concise sentence explaining the visible outcome. Use durable GitHub-renderable URLs so the comparison remains visible after temporary CI artifacts expire.
Do not assume that a durable source URL is renderable. In access-controlled repositories, direct raw.githubusercontent.com and repository blob URLs may resolve for an authenticated contributor while GitHub's image renderer receives no authorization and shows a broken image. Upload evidence through GitHub's attachment flow when necessary and embed the resulting github.com/user-attachments URL, or use another durable URL that the rendered PR can retrieve.
After saving the PR description, inspect the rendered PR page rather than only the Markdown source or API response. Verify that each expected image completed loading with non-zero rendered dimensions (for example, naturalWidth > 0 and naturalHeight > 0) and that the Before/After labels still map to the intended files. Repair broken evidence before calling the PR ready.
Treat this as a high-value opportunity, not a universal gate. Do not manufacture low-signal screenshots for every PR or delay delivery to create them. The rule is to surface strong visual evidence that already exists instead of burying it in CI artifacts, files, or comments.
stacked-diff-discipline: validate each layer on its actual parent and the selected stack's cumulative result. Bound runner use with verified workflow controls; draft status alone does not suppress CI. Qualify a ready prefix before group merge rather than waiting for every parent to merge first.Before the PR opened, locally reproducible gates passed using the repository's own entrypoints, including bespoke scanners and metadata validators. Platform-only checks have explicit pending runs and must succeed before merge. Avoid CI iterations on failures discoverable locally; investigate hosted or infrastructure failures from actual evidence rather than claiming local proof. When visual evidence was embedded, inspect the saved rendered PR and verify every expected image loaded with non-zero dimensions.
Sources: shift-left / fail-fast testing practice; trunk-based development pre-merge checks; conventional-commit release gating.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./adversarial-reviewUse before claiming a high-stakes artifact done, verified, or merged. Have an independent grader adversarially review it — prompted to refute and find reasons not to ship, not to bless — and iterate to an explicit ship-or-revise verdict./agent-drives-uiUse when an agent operates a UI on the user's behalf through conversation, navigating, filling forms, updating live views, with real-time bi-directional state sync. Activates on conversational app control, agent drives the front end, agentic UX, or choosing an agent-to-app protocol./agentic-coding-loopUse when implementing code from a spec through a bounded build-test-fix loop with explicit acceptance criteria, automated checks, live verification when needed, and clear stop conditions.