AGENT SKILL

mh-cto-sdlc-prod-readiness

暂无简介

License 许可
MIT
最近更新
2026-05-13
Stars
★ 2
Forks
0

02 资源文件 2

03 SKILL.md 正文

Production Readiness Review

Mode: adversarial verifier. "We deployed it" and "it is operational" are not the same statement. This skill verifies that the system can be operated — monitored, debugged, scaled, and rolled back — not just run. Every unchecked item is a production incident waiting to happen.

Elite character: Production readiness is not a checklist ceremony — it is the last structured opportunity to find gaps before real users are affected. A gap found here costs minutes to fix. The same gap found at 2am during an incident costs days of trust.

Step 1 — Load Artifacts

Confirm present:

  • Observability spec (observability-spec.md) ✓ / ✗ — REQUIRED
  • Resilience surface map (resilience-surface-map.md) ✓ / ✗ — REQUIRED
  • CI/CD gates spec (cicd-gates-spec.md) ✓ / ✗
  • Phase 5 gate verdict / testing mandate ✓ / ✗
  • Tech stack (tech-stack.md) ✓ / ✗

Step 2 — Monitoring and Alerting Verification

From observability-spec.md, verify each item is not just designed but confirmed operational:

Structured logging:

  • [ ] Every service is emitting structured logs with required fields (from observability-spec.md)
  • [ ] PII fields are excluded or masked in all log outputs
  • [ ] Log aggregation pipeline is receiving and indexing logs (spot check: query a recent event)

Metrics:

  • [ ] All business metrics defined in observability-spec.md are emitting
  • [ ] USE method metrics (utilization, saturation, errors) are visible per service
  • [ ] Dashboards are built and accessible to the person on-call

Distributed tracing:

  • [ ] Trace IDs are propagated across service boundaries
  • [ ] At least one complete trace for a critical path exists and is viewable

Alerting:

  • [ ] Every critical path failure mode from observability-spec.md has a firing alert configured
  • [ ] Alerts have been tested — confirm they actually fire by triggering the condition in staging
  • [ ] Alert routing: verified that alerts reach the right person (not just the right channel)
  • [ ] Alert fatigue check: no alerts firing on staging that would be noise in production

Health checks:

  • [ ] Every deployable unit has /health/live and /health/ready endpoints responding 200
  • [ ] Load balancer / orchestrator is using readiness checks before routing traffic

For each item not confirmed: "UNVERIFIED: {item} — monitoring spec exists but operational status not confirmed. Must verify before go-live."

Step 3 — Runbook Review

Runbooks must be written, reviewed, and accessible — not just referenced in architecture documents.

For each critical failure mode from resilience-surface-map.md:

Runbook exists for: {failure mode}

  • [ ] Written (link or location)
  • [ ] Reviewed by at least one person who didn't write it
  • [ ] Runbook has been walked through once (not necessarily during a real incident)
  • [ ] Accessible during an incident (not locked behind auth that requires the system being up)

Minimum required runbooks:

  • Service restart and health verification
  • Database failover or recovery
  • Rollback procedure (see Step 4)
  • Incident communication (who to notify, what to say, in what order)
  • Escalation path (when to wake someone up, when to involve the founding team)

Step 4 — Rollback Procedure Test

The rollback procedure has been TESTED, not just designed.

  • [ ] Last production-deployable artifact is identified and accessible
  • [ ] Rollback command or procedure is documented step-by-step
  • [ ] Rollback has been executed at least once in staging (timed: {N} minutes to complete)
  • [ ] Post-rollback health check procedure is documented
  • [ ] Decision authority is named: who has authority to call a rollback without approval?
  • [ ] Rollback threshold is defined: what metrics or user-visible signals trigger rollback consideration?

If rollback has not been tested: "BLOCKER: Rollback procedure has not been tested. A rollback that has never been executed is a rollback that will fail under pressure. Test in staging before proceeding."

Step 5 — Incident Response Path

  • [ ] On-call rotation defined (or single point of contact named for initial phase)
  • [ ] Incident severity classification defined (P1/P2/P3 criteria)
  • [ ] P1 response SLA defined (e.g., acknowledged within 15 minutes, 24/7)
  • [ ] Communication channel for incidents defined (Slack channel, PagerDuty, etc.)
  • [ ] External communication template exists for user-facing incidents
  • [ ] Post-incident review process defined (lightweight — when to do it, who leads it)

Step 6 — Data Protection Verification

  • [ ] Database backups are configured and verified (restore test performed — not just backup)
  • [ ] Backup retention period matches RTO/RPO from resilience-surface-map.md
  • [ ] Encryption at rest is active for all PII fields (from data model)
  • [ ] Secret rotation procedure documented (API keys, database credentials)
  • [ ] No secrets in environment variables that are visible in logs or crash reports

Step 7 — Write Output

Save to _mh-output/cto/sdlc/prod-readiness/{YYYY-MM-DD}_{r###}_prod-readiness-checklist.md:

# Production Readiness Checklist

**Date:** {date}
**Verified by:** {name or "AI-assisted review"}

---

## Monitoring and Alerting

{Itemized checklist with VERIFIED / UNVERIFIED / BLOCKER status per item}

## Runbooks

{Itemized checklist}

## Rollback Procedure

{Verified / BLOCKER — with test result: "{N} minutes in staging"}

## Incident Response

{Itemized checklist}

## Data Protection

{Itemized checklist}

## Summary

BLOCKERS: {N} — must resolve before go-live
UNVERIFIED: {N} — must verify before go-live
PASS: {N}

## Overall Readiness

READY FOR PHASE7-GATE / NOT READY — {reason}

Step 8 — Present Summary

Production Readiness Review complete.

Blockers: {N} items must be resolved before gate. Unverified: {N} items must be operationally confirmed. Pass: {N} items verified.

Next step: {If no blockers: "Run /mh-cto-sdlc-phase7-gate for final release quality gate."} {If blockers: "Resolve {N} blockers first."}

04 同仓库更多 Skills

Imad-Oute
Imad-Oute/MicroHard

mh-vo-vault-brief

Weekly vault intelligence report — health score, pipeline status, OS alignment, and top issues. Use when the user says vault brief, weekly vault report, vault intelligence, run the vault brief, or weekly review brief.

★ 2
Imad-Oute
Imad-Oute/MicroHard

mh-vo-output-bridge

Scan _mh-output/ for new artifacts and create or update corresponding vault entries. Use when the user says run the bridge, sync outputs to vault, output bridge, create vault entries, sync mh-output to vault, or bridge outputs.

★ 2
Imad-Oute
Imad-Oute/MicroHard

mh-vo-moc-builder

Create or update Maps of Content for vault sections and ensure every note is reachable from a MOC. Use when the user says build MOCs, update MOCs, rebuild maps of content, MOC builder, create maps of content, or update the MOCs.

★ 2
Imad-Oute
Imad-Oute/MicroHard

mh-vo-link-architect

Identify missing vault connections and generate precise link recommendations. Use when the user says recommend links, find missing connections, link architect, what should be connected, or identify missing links.

★ 2
Imad-Oute
Imad-Oute/MicroHard

mh-vo-base-builder

Generate Obsidian Bases (.base files) for live database views of vault data. Use when the user says build base views, create base files, generate bases, build live views, or create database views.

★ 2
Imad-Oute
Imad-Oute/MicroHard

mh-vo-taxonomy-enforcer

Audit vault tags and frontmatter, find drift, and apply corrections. Use when the user says fix the taxonomy, enforce tags, fix frontmatter, clean up tags, taxonomy enforcer, or fix tags.

★ 2