From silver-bullet
Runs Silver Bullet quality gates in dual-mode: design-time checklist (pre-plan) or adversarial audit (pre-ship), with auto-detected mode.
How this skill is triggered — by the user, by Claude, or both
Slash command
/silver-bullet:silver-quality-gatesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Recommended model:** Use the active host default. Quality gates are structured checklist evaluation, and Silver Bullet does not switch models automatically.
Recommended model: Use the active host default. Quality gates are structured checklist evaluation, and Silver Bullet does not switch models automatically.
Applies Silver Bullet's quality dimensions in sequence. Operates in dual-mode: design-time checklist when run pre-plan, or adversarial audit when run pre-ship. Mode is auto-detected from artifact state — no manual configuration required.
The standard product sweep is 8 core dimensions. ai-llm-safety is included conditionally when the phase includes AI/LLM behavior, model calls, prompts, evals, agents, retrieval, or automated decisioning.
Plugin root: Determine PLUGIN_ROOT from this file's path. This file lives at
${PLUGIN_ROOT}/skills/silver-quality-gates/SKILL.md, so the plugin root is two directories up.
Dimension skills root: Set DIMENSION_SKILLS_ROOT="${PLUGIN_ROOT}/skills" by default. Dimension helpers are hidden implementation dependencies, so their packaged files may be named SILVER_SOURCE instead of SKILL.md.
If this skill is running from a Codex native mirror such as $HOME/.codex/skills/silver-quality-gates/SKILL.md and ${PLUGIN_ROOT}/skills/modularity/SKILL.md does not exist, resolve the hidden packaged Codex source root in this order:
for candidate in \
"$HOME/.codex/plugins/cache/alo-labs-codex/silver-bullet/current/skill-source" \
"$(find "$HOME/.codex/plugins/cache/alo-labs-codex/silver-bullet" -mindepth 2 -maxdepth 2 -type d -path '*/skill-source' 2>/dev/null | sort -V | tail -n 1)"; do
if [[ -n "$candidate" && -f "$candidate/modularity/SILVER_SOURCE" ]]; then
DIMENSION_SKILLS_ROOT="$candidate"
break
fi
done
Do not require dimension helper skills to appear in the Codex skill picker. They are implementation dependencies of silver:quality-gates, not user-facing routes.
If any required dimension source is unavailable, first repair the missing dependency from its marketplace source before any fallback:
/plugin install alo-exp/silver-bullet or the host-specific marketplace equivalent; Codex package key: silver-bullet@alo-labs-codex).Detect operating mode from artifact state before loading dimension skills.
Canonical criterion (single source of truth): hooks/lib/quality-gates-mode.sh — sb_qg_detect_mode and sb_qg_repo_requires_pre_ship_marker. Hooks and record-skill use the same logic; do not invent a parallel detector in this skill.
| PLAN.md substantive? | VERIFICATION.md substantive + status: passed? | Mode |
|---|---|---|
| No | No | design-time (pre-plan quality gate) |
| No | Yes | Invalid state — STOP: passed verification without PLAN.md |
| Yes | No | design-time (mid-execution / pre-plan) |
| Yes | Yes | adversarial (pre-ship quality gate) |
Record the detected mode. It controls Step 2 behavior for all applicable dimensions.
silver-quality-gates is invoked twice in a full flow: once pre-plan (design-time) and once pre-ship (adversarial). Each invocation records silver-quality-gates plus a mode marker (silver-quality-gates-design or silver-quality-gates-adversarial). Delivery gates require the adversarial marker when substantive passed VERIFICATION.md exists — the base marker alone cannot prove the pre-ship audit ran.
Therefore both invocations are mandatory and non-substitutable:
silver:feature Step 13, silver:ui Step 13, silver:devops Step 10, silver:bugfix Step 7b) MUST run this skill again in adversarial mode before ship (the pre-ship quality gate) — never skip it on the grounds that "quality-gates already ran".record-skill also writes distinguishable mode markers: silver-quality-gates-design / silver-quality-gates-adversarial (product) or devops-quality-gates-design / devops-quality-gates-adversarial (devops-cycle). Delivery gates require the adversarial marker when substantive passed VERIFICATION.md exists.quality-gate-stage-1..4 + full-test-suite-rerun in the quality_gate_state_file) is enforced independently by completion-audit.sh for silver:release/gh release create and is not the same as this skill's pre-ship run.Use the active runtime file-reading mechanism to read each of the following files. For every dimension path, read the first file that exists in this order: SILVER_SOURCE, SILVER_SOURCE.md, SILVER_SKILL.md, SKILL.md.
${DIMENSION_SKILLS_ROOT}/modularity/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/reusability/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/scalability/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/security/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/reliability/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/usability/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/testability/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/extensibility/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md}${DIMENSION_SKILLS_ROOT}/ai-llm-safety/{SILVER_SOURCE,SILVER_SOURCE.md,SILVER_SKILL.md,SKILL.md} only when the phase includes AI/LLM behaviorFor each dimension, run its Planning Checklist (design-time mode) or Full Audit (adversarial mode) as determined in Step 0 against the current design or plan.
Work through all items. For each checklist item mark it:
After the 8 core dimensions, determine whether specialized domain packs apply.
When any trigger matches, invoke or apply silver:domain-audit for the selected
pack set and include its pack results as conditional rows in the quality report.
| Trigger | Domain packs |
|---|---|
| API routes, controllers, SDKs, webhooks, OpenAPI, or auth boundary | api-contract, test-health, security dimension cross-check |
| Schema, migrations, ORM, SQL, persistence, caches, or backfills | data-contract, performance-resource, test-health |
| Package manifests, lockfiles, new imports, generated clients, toolchains | dependency-supply |
| Bundle size, latency, memory, queue/job throughput, caching, hot paths | performance-resource |
| Module moves, repo structure, layering, architecture drift | structure-maintainability, architecture-adr |
| CI workflows, build scripts, release automation, Docker, deploy scripts | ci-workflow, environment-secrets |
| Env vars, config files, secrets, deployment manifests | environment-secrets, runtime-release |
| Public site pages, help content, metadata, redirects, docs migration | content-search, accessibility when user-facing |
| UI components, layout, forms, keyboard/focus behavior | ui-system, accessibility |
| Release/deploy/canary/rollback/incident/retro/benchmark scope | runtime-release, incident-retro, benchmark-eval as applicable |
Domain pack findings use the normalized schema from docs/evidence-schema.md
and silver:domain-audit.
Unresolved BLOCK findings are hard-stop quality-gate failures. Deferred
WARN findings must be filed through silver:add before this gate can pass.
Validate normalized finding rows when the helper is available:
bash scripts/validate-evidence-findings.sh
Output a report in this format:
## Quality Gates Report
| Dimension | Result | Notes |
|---------------|--------|-------|
| Modularity | ✅/❌ | ... |
| Reusability | ✅/❌ | ... |
| Scalability | ✅/❌ | ... |
| Security | ✅/❌ | ... |
| Reliability | ✅/❌ | ... |
| Usability | ✅/❌ | ... |
| Testability | ✅/❌ | ... |
| Extensibility | ✅/❌ | ... |
| AI/LLM Safety | ✅/❌/N/A | included only when applicable |
| Domain Packs | ✅/❌/N/A | selected `silver:domain-audit` packs and result |
### Failures requiring redesign
[List each ❌ item with the specific rule violated and required fix]
### Overall: PASS / FAIL
There are no exceptions. A ❌ is a hard stop, not a warning.
After gate enforcement, scan the report for any items that:
For each such item, immediately capture it in the configured SB backlog
instead of silently dropping it. Read .silver-bullet.json:
Prefer routing through /silver:add, which resolves the correct destination
automatically. If filing directly, honor issue_tracker:
issue_tracker: "github" -> create a GitHub Issue with gh issue create
when the CLI is authenticated.issue_tracker: "local" or missing (legacy "gsd" is treated as local) ->
append the item to docs/issues/BACKLOG.md (creating the file if needed), the
canonical local backlog used by /silver:add.If no items were deferred or suggested, output: "No backlog items to capture from this quality review."
npx claudepluginhub alo-exp/silver-bullet --plugin silver-bulletGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.