hashgraph-online/awesome-codex-plugins / plugins/boshu2/agentops/skills/premortem
premortem
VerifiedFind how a rollout plan could fail before committing to it. Use when: asked what could go wrong or to poke holes in a plan.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.6 KB |
| references/derivation-diff.md | markdown | 1.5 KB |
| references/durable-review.md | markdown | 1.7 KB |
| schemas/premortem-plan-review.v1.schema.json | config | 1.3 KB |
| scripts/validate-output.shexecutable | script | 2.4 KB |
| scripts/validate.shexecutable | script | 1.5 KB |
scripts/validate-output.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
if [[ $# -ne 1 || ! -f "$1" ]]; then
echo "usage: $0 <premortem-plan-review.json>" >&2
exit 2
fi
python3 - "$1" <<'PY'
import json
import re
import sys
from pathlib import Path
path = Path(sys.argv[1])
try:
value = json.loads(path.read_text(encoding="utf-8"))
except (OSError, json.JSONDecodeError) as exc:
print(f"premortem plan review: unreadable JSON: {exc}", file=sys.stderr)
raise SystemExit(1)
required = {
"schema_version", "intent_digest", "author_context_id",
"judge_context_id", "findings", "checked", "not_checked",
}
if not isinstance(value, dict):
raise SystemExit("premortem plan review: top level must be a JSON object")
if set(value) != required:
print("premortem plan review: unexpected or missing fields", file=sys.stderr)
raise SystemExit(1)
if value["schema_version"] != "premortem-plan-review.v1":
raise SystemExit("premortem plan review: wrong schema_version")
digest = value["intent_digest"]
if not isinstance(digest, str) or not re.fullmatch(r"[a-f0-9]{64}", digest):
raise SystemExit("premortem plan review: invalid intent digest")
author = value["author_context_id"]
judge = value["judge_context_id"]
if not isinstance(author, str) or not author or not isinstance(judge, str) or not judge or author == judge:
raise SystemExit("premortem plan review: author and judge identities must be nonempty and distinct")
for field in ("checked", "not_checked"):
if not isinstance(value[field], list) or not all(isinstance(item, str) for item in value[field]):
raise SystemExit(f"premortem plan review: {field} must be a string array")
if not isinstance(value["findings"], list):
raise SystemExit("premortem plan review: findings must be an array")
for finding in value["findings"]:
if not isinstance(finding, dict) or set(finding) != {"id", "statement", "evidence"}:
raise SystemExit("premortem plan review: malformed finding")
if not all(isinstance(finding[key], str) and finding[key] for key in ("id", "statement")):
raise SystemExit("premortem plan review: finding id and statement are required")
evidence = finding["evidence"]
if not isinstance(evidence, list) or not evidence or not all(isinstance(item, str) and item for item in evidence):
raise SystemExit("premortem plan review: each finding needs evidence")
print("premortem plan review: valid")
PY
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |