Skip to content
Back to skills

Promotion Gate

ASecurity

Enforce evidence-backed promotion criteria for candidate learnings. Use when the user runs /evolution promote <id>. Wraps bin/evolve-promote.sh and explains why each gate passed or failed. Never promotes on its own judgment — always runs the script.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentsbash

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add kmshihab7878/claude-code-setup --skill promotion-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Promotion Gate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Promotion Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kmshihab7878-promotion-gate/badge)](https://www.skillsdirectory.com/skills/kmshihab7878-promotion-gate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: promotion-gate
description: "Enforce evidence-backed promotion criteria for candidate learnings. Use when the user runs /evolution promote <id>. Wraps bin/evolve-promote.sh and explains why each gate passed or failed. Never promotes on its own judgment — always runs the script."
---

# promotion-gate

## When to use
- `/evolution promote <candidate-id>` — user explicitly requests promotion.
- Before manual editing of `stable/global.md` — to confirm a proposed edit would have passed the gate.

## Protocol
1. Identify the candidate file: `~/.claude/evolution/candidates/<id>.yaml`.
2. Run gate check: `bash ~/.claude/evolution/bin/evolve-promote.sh --check <id>`.
3. Show the user each gate result (pass/fail with the specific reason).
4. If all gates pass AND the user confirms, run: `bash ~/.claude/evolution/bin/evolve-promote.sh <id>`.
5. Show the resulting diff of `stable/global.md` (or `stable/by-project/<slug>.md`).
6. Record the promotion as an evidence event (type: adaptation).

## Hard rules from `config.yaml`
- `evidence_count ≥ min_evidence` (default 3).
- Distinct `session_ids.length ≥ min_distinct_sessions` (default 2).
- Distinct `project_slugs.length ≥ min_distinct_projects` (default 2) — unless `scope: project-specific`.
- `last_confirmed > last_failed`.
- Post-promotion stable-file size ≤ `startup_budget_chars` (default 4000).
- No contradictions with existing stable rules.

## What to do on gate failure
- Explain each failed gate in plain English.
- Suggest what would unblock it (more evidence, wait for cross-project confirmation, condense text).
- Do NOT bypass the gate. Do NOT write to stable/ manually. If the user insists, document the bypass in `reports/` with reason.

## Output
Plain-text verdict per gate, followed by either (a) the diff of the promoted file or (b) the blocking reasons.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.