cli-forge-resilience — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited cli-forge-resilience (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Optimization: This skill uses on-demand loading. Heavy content lives in references/ and is loaded only when needed. Language rule: Skill instructions are written in English.When generating user-facing output (reports, files, documentation), detect the project's primary language (from README, comments, docs, commit messages) and produce the output in that language. If the project is bilingual, ask the user which language to use before proceeding.
Diacritics rule: When the chosen output language uses diacritics (French, Spanish, Portuguese, etc.), render them correctly — including on capitals (É, À, Ç, Ô…). Never strip accents to ASCII: write "sécurité" not "securite", "Rôle" not "Role". ASCII-flattened French is a defect, not a style.
Writing style: Favor clarity — short sentences, one idea per sentence, plain words. A metaphor only when it clarifies. Keep one consistent register (impersonal/infinitive for operational docs). Separate narrative prose, meant to make the reader understand, from telegraphic content (tables, commands, checklists) which stays terse for action.
No fabricated output: Never invent command output, console captures, API responses, metrics, or logs. When real output is needed, emit a clearly-marked placeholder (🚧 "replace with a real capture"), never plausible-but-fake text presented as real.
Memorability (rule of three): For short lists an operator must internalize (incident reflexes, level missions, checklists), add a three-part memory hook above the list (e.g. "Capture → Stay on the rails → Verify"), keeping the detailed items underneath. Use sparingly — only where recall matters under stress, never on reference tables.
"A system survives production when it keeps homeostasis under stress, not when it merely passes happy-path tests."
Treat the system as an organism in an environment, not as a pile of files.
Production bugs usually appear when one of these mismatches exists:
Read references/models.md for the full biology + physics mapping.
| Signal from user | What to generate |
|---|---|
| "runbook", "troubleshoot", "ops guide", "what do I check first" | Runbook + capture checklist + fast triage decision tree |
| "agent-ready runbook", "N1/N2/N3", "L1/L2/L3", "support tiers", "agent autonomy", "ops pack" | Runbook + support tier matrix + agent autonomy policy + capability contracts |
| "make staging/dev closer to prod", "prod-like", "preprod" | Prod-parity matrix + test ladder + parity gaps |
| "prevent prod bugs", "harden", "resilience", "release gate" | Full resilience blueprint |
| "incident blackbox", "postmortem", "capitalise incident" | Blackbox update + anti-regression battery + runbook delta |
| Empty / vague input | Auto-discover and produce the full blueprint |
$ARGUMENTS can be:
git log --oneline -10 + head -20 README.mdREADME*, docs/**/*, TROUBLESHOOTING*, RUNBOOK*, OPERATIONS*, INCIDENT*, POSTMORTEM*, BLACKBOX*tests/**, test/**, spec/**, e2e/**, smoke/**, chaos/**Dockerfile*, Containerfile*, compose*, helm*, k8s/**, manifests/**, deploy/**, systemd/**, quadlet/**, *.service.github/workflows/*, .gitlab-ci.yml, Jenkinsfile, .circleci/**package.json, Cargo.toml, go.mod, pyproject.toml, .env*, *.yaml, *.yml, *.json, *.tomlscripts/**, bin/**, aliases, helper CLIs, make, justfileRead references/models.md when you need the detailed definitions, failure smells, and test ideas.
| # | Model | Operational meaning |
|---|---|---|
| 1 | Genome / DNA | Single source of truth for contracts, config, naming, image refs, roles, ports |
| 2 | Membrane / Boundary conditions | Prod-parity matrix: OS, runtime, network, storage, identities, time, data, external deps |
| 3 | Homeostasis | Steady-state health checks, invariants, observability, "first useful signal" |
| 4 | Immune system | Negative tests, fuzzing, mutation tests, canaries, pre-mortem |
| 5 | Stress–strain | Load, fatigue, budgets, long-run, repeated deploys, storage growth |
| 6 | Phase transition | Thresholds where behavior changes qualitatively: disk full, max conn, latency cliffs, failover |
| 7 | Hysteresis | Dirty reruns, partial failures, rollback residue, stale caches/volumes/ACLs |
| 8 | Memory cells | Runbooks, blackboxes, anti-regression tests, closure criteria |
Create a surface map. Minimum surfaces:
For each surface, capture:
| Surface | Primary source of truth | Typical prod failure | First discriminating probe | Blast radius |
Build an invariant table. Every critical behavior must map to one authoritative source.
Examples of invariants:
For each invariant, record:
| Invariant | Source of truth | Where else it appears | Drift risk | Verification command |
Rule: if the same operational fact is manually duplicated in multiple places, flag it as Genome Drift.
Create a Prod-Parity Matrix. Compare Observed Dev/Staging vs Expected Prod across these axes:
| Axis | Observed | Expected in prod | Gap | Risk |
|---|---|---|---|---|
| OS / kernel / libc | ||||
| CPU / arch | ||||
| Container runtime / orchestrator | ||||
| Filesystem / volume / SELinux / permissions | ||||
| Network topology / DNS / ports / TLS | ||||
| Secrets / identity / rotation path | ||||
| Data shape / size / anonymized fixtures | ||||
| External dependencies / timeouts / rate limits | ||||
| Clock / timezone / locale | ||||
| Observability stack | ||||
| Security / scan / policy gates |
Rules:
Read references/test-ladder.md for the full ladder, examples, and escalation rules. The rung semantics are shared across skills (oci, pipeline, audit-test) in ../shared/gate-ladder.md; this skill's biology names map onto those rungs. Reproducibility/idempotency techniques (T3 reruns, mutation baselines) are shared in ../shared/determinism.md.
Use this ladder:
For every relevant surface, generate two things:
Read references/mutations.md for a ready-to-use mutation catalog.
For each critical contract, design at least one "break it on purpose" test:
| Mutation | Expected signal | If it passes silently = bug | Minimum level |
|---|---|---|---|
| wrong image ref / artifact ref | deploy or startup fails loudly | hidden pull / wrong artifact | T0/T2 |
| missing or malformed secret | startup/auth fails with useful log | silent fallback / broken auth path | T2/T3 |
| port drift / wrong listen address | health/client path fails deterministically | operator path hides real failure | T2/T3 |
| wrong role / revoked grant | least-privilege test fails | ACL drift undetected | T3 |
| dirty rerun after partial deploy | rerun either converges or fails loudly | snowflake state | T2/T3 |
| disk pressure / quota reduction | graceful alert / degraded mode | silent corruption / surprise outage | T4 |
| latency injection / dependency timeout | retry or graceful degradation | hanging requests / false health | T4 |
| clock skew / timezone change | expiry/TTL tests fail predictably | time-sensitive bugs invisible | T4 |
| stale docs / wrapper mismatch | executable docs test fails | operator follows broken docs | T0/T3 |
Mutation rule: if more than two mutations pass silently, the operational safety net has holes.
Read references/runbook-template.md before writing.
The runbook MUST include:
If the user mentions support levels, N1/N2/N3, L1/L2/L3, agent execution, autonomous remediation, MCP tools, or regulated operations, read references/agent-ops.md and generate an operations pack in addition to the human runbook.
If incident docs or blackboxes already exist:
If they do not exist, generate starter templates for:
Read references/scoring.md for the detailed 15-dimension framework. The score (≥ 45/60 + mutation tests pass) is this skill's post-verification gate — the 3-phase definition-of-done structure (pre → during → post) is canonical in ../shared/done-gate.md.
Score each dimension 0–4:
| # | Dimension | 0 | 4 |
|---|---|---|---|
| D1 | Contract Genome | scattered facts | single source + verified renders |
| D2 | Boundary Parity | toy env | prod-like matrix with explicit gaps |
| D3 | Build Reproducibility | snowflake build | reproducible build + smoke |
| D4 | Fresh Deploy | never tested | clean prod-like deploy validated |
| D5 | Rerun / Hysteresis | reruns break state | reruns converge or fail loudly |
| D6 | Runtime Homeostasis | vague health | discriminating health + invariants |
| D7 | Network Path Fidelity | path confusion | all paths explicit and tested |
| D8 | Secrets / Identity / Roles | manual drift | rendered, rotated, verified least privilege |
| D9 | Data / Recovery | no restore proof | restore/rollback path proven |
| D10 | Observability | noisy logs only | first useful error quickly reachable |
| D11 | Operability | manual tribal knowledge | wrappers + runbook + smoke |
| D12 | Immune Tests | happy path only | systematic negative/mutation/property tests |
| D13 | Chaos / Degraded Mode | none | degraded states tested intentionally |
| D14 | CI / Release Gate Convergence | false green possible | runtime risk mapped to real gates |
| D15 | Memory / Runbook / Blackbox | incidents evaporate | every incident leaves guardrails |
Target score: > 45/60 (75%) for a production-bound system.
Use 3 tiers (tier semantics are canonical in ../shared/triage.md — Tier 3 = critical / Tier 2 = major / Tier 1 = minor, independent of GRADE confidence):
Each item must include:
| # | Finding | Tier | Surface | Why it matters in prod | Minimum fix | Minimum rerun |
# Resilience Blueprint — {system}
**Date:** {date}
**Target:** {repo/path/system}
**Mode:** {full blueprint | runbook only | parity only | blackbox delta}
**Resilience Score:** {X}/60 — {verdict}
## 1. Failure Surface Map
| Surface | Source of Truth | First Probe | Blast Radius | Notes |
## 2. Prod-Parity Matrix
| Axis | Observed | Expected in Prod | Gap | Risk | Fix |
## 3. Test Ladder
### T0 — Genome
### T1 — Organelle
### T2 — Tissue
### T3 — Organism
### T4 — Immune
### M0 — Memory
## 4. Mutation & Chaos Battery
| Mutation | Expected Signal | Silent Pass Means | Level |
## 5. Troubleshooting Runbook
### Capture Before Correction
### Fast Triage
### Decision Tree
### Rollback / Containment
### Anti-Regression Reruns
### Closure Criteria
## 6. Agent Operations Pack
### Support Tier Matrix
### Agent Autonomy Policy
### Capability Contracts
### Approval and Escalation Boundaries
## 7. Incident Memory / Blackbox Delta
| Incident or Recurrent Hurdle | Missing Guardrail | Add This Test | Add This Runbook Step |
## 8. Dimension Scores
| # | Dimension | Score | /4 | Evidence | Gap |
## 9. Action Plan
### Tier 3 — Critical
### Tier 2 — Major
### Tier 1 — Minor| Condition detected | Recommend | Why |
|---|---|---|
| General test strategy is weak or undocumented | /cli-audit-test | Formal test-plan maturity audit |
| CI is slow, flaky, or false-green | /cli-forge-pipeline | Pipeline-level biomimetic optimization |
| Operational risk comes from architecture gaps | /cli-forge-hld | Capture boundaries, NFRs, and tradeoffs |
| Risk comes from component-level contracts or DB/API design | /cli-forge-lld | Tighten low-level contracts |
| Infra/deploy complexity dominates the issue | /cli-forge-infra | Simplify and harden delivery path |
| Docs, wrappers, and code disagree | /cli-audit-sync | Catch doc-code drift |
| Stress / phase-transition surfaces detected but no perf budget or A/B harness | /cli-forge-perf | T4 stress-strain becomes measurable: bench protocol + roofline + reproducible A/B (../shared/determinism.md) |
Rule: recommend handoffs, do not auto-execute them unless the user explicitly asks.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.