/tl:premortem <feature or change to stress-test>from tl
Runs a premortem analysis to identify failure modes, risks, and mitigations before building high-stakes features (money, auth, data integrity, security).
Ships in tl. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are running the Premortem workflow -- a pre-mortem analysis that surfaces failure modes before implementation begins. Feature to analyze: $ARGUMENTS
Premortem works in 5 phases:
Understand the feature (what changes, what it touches)
-> Generate failure scenarios (3 agents, different lenses)
-> Prioritize with user (which failures matter most)
-> Design mitigations (concrete code/test/monitoring changes)
-> Report and create tasks
If $ARGUMENTS is vague or incomplete, ask the user one clarifying question:
Otherwise proceed immediately.
Use Grep, Glob, and Read to understand what will change, what downstream systems it touches, who consumes it, and what happens today.
Write a brief summary (3-5 sentences):
## Feature Summary
**What it does**: [1-2 sentence description of the feature]
**What changes**: [Components/files/modules that will be modified or added]
**What it touches**: [Downstream systems, databases, APIs, queues, external services]
**Who uses it**: [End users, internal systems, other services]
**Current state**: [What happens today, what gap this feature fills]
Dispatch 3 Explore agents with run_in_background=true, each with a different failure lens.
You are running a pre-mortem security analysis.
Feature: [feature summary from Phase 1]
Your job: Generate 3-5 concrete failure scenarios where this feature is exploited or causes a security breach.
Your perspective: You think in terms of attack surfaces, trust boundaries, and data flows. You assume breach and look for what an attacker would exploit first — injection points, authentication bypasses, privilege escalation paths. You consider both technical vulnerabilities (OWASP Top 10) and process gaps (insecure defaults, missing validation, unsafe deserialization). You ask: "Where does untrusted data enter the system, and what can I do with it?"
Follow the investigation protocol and report requirements from the Agent Preamble (fan-out-protocol rule).
Report format:
## Security Failure Scenarios ### [Scenario 1 Title] **Narrative**: [What goes wrong, step by step. Be concrete -- name files, functions, parameters] **Attack vector**: [How would an attacker trigger this?] **Impact**: [What gets compromised -- data, access, availability?] **Severity**: [catastrophic | major | minor] **Likelihood**: [high | medium | low] **Affected components**: [file:line references] [Repeat for each scenario]
You are running a pre-mortem reliability analysis.
Feature: [feature summary from Phase 1]
Your job: Generate 3-5 concrete failure scenarios where this feature breaks in production.
Your perspective: You think in terms of load, concurrency, and failure propagation. You assume things will run at 10x expected scale with dependencies flaking at the worst possible time. You look for race conditions, resource exhaustion, timeout chains, and state drift — anything that works in testing but fails under production chaos. You ask: "What happens when this runs with 1000 concurrent requests while the database is slow and the cache is stale?"
Follow the investigation protocol and report requirements from the Agent Preamble (fan-out-protocol rule).
Report format:
## Reliability Failure Scenarios ### [Scenario 1 Title] **Narrative**: [What goes wrong, step by step. Be concrete -- name files, functions, state] **Trigger**: [What conditions cause this failure?] **Impact**: [Downtime, data loss, degraded performance?] **Severity**: [catastrophic | major | minor] **Likelihood**: [high | medium | low] **Affected components**: [file:line references] [Repeat for each scenario]
You are running a pre-mortem user impact and business risk analysis.
Feature: [feature summary from Phase 1]
Your job: Generate 3-5 concrete failure scenarios where this feature harms users or the business.
Your perspective: You think from the user's chair and the CFO's spreadsheet. You look for data loss, wrong results, confusing UX, and irreversible actions that break user trust. You consider compliance landmines (GDPR, HIPAA, PCI) and cost explosions (runaway cloud spend, cascading API charges). You ask: "What failure would show up in a user complaint, a compliance audit, or next quarter's financials — and can we roll this back if it goes wrong?"
Follow the investigation protocol and report requirements from the Agent Preamble (fan-out-protocol rule).
Report format:
## User/Business Failure Scenarios ### [Scenario 1 Title] **Narrative**: [What goes wrong from the user or business perspective. Be concrete] **Trigger**: [What user action or business condition causes this?] **Impact**: [User harm, business cost, compliance risk?] **Severity**: [catastrophic | major | minor] **Likelihood**: [high | medium | low] **Affected components**: [file:line references] [Repeat for each scenario]
Wait for all three concurrent agents to complete before proceeding.
Combine all scenarios into a single table sorted by (severity x likelihood):
## Failure Scenario Rankings
| # | Title | Lens | Severity | Likelihood | Impact Summary |
|---|-------|------|----------|------------|----------------|
| 1 | SQL injection via search | Security | catastrophic | high | Attacker gains DB access |
| 2 | Race condition on balance | Reliability | catastrophic | medium | Data corruption in accounts |
| 3 | GDPR violation in logs | User/Business | major | high | Compliance penalty + user harm |
| ... | ... | ... | ... | ... | ... |
Ranking priority: catastrophic+high > catastrophic+medium = major+high > major+medium = catastrophic+low > everything else.
Use AskUserQuestion to let the user select which scenarios to mitigate:
I found [N] failure scenarios across security, reliability, and user/business dimensions.
The table above shows all scenarios ranked by severity × likelihood.
**Default recommendation**: Mitigate all catastrophic + high-likelihood scenarios (items #1-#X).
Which scenarios would you like to design mitigations for?
- Option 1: Top [X] scenarios (all catastrophic + high-likelihood) [RECOMMENDED]
- Option 2: Top [Y] scenarios (include major + high-likelihood)
- Option 3: All scenarios
- Option 4: Let me select specific scenario numbers (e.g., 1,2,5,7)
Record the user's selection and proceed with only the selected scenarios.
For each prioritized scenario (from the user's selection in Phase 3), design a specific, actionable mitigation plan.
For each scenario, produce:
### Mitigation: [Scenario Title]
**Original failure**: [Brief recap of the scenario]
**Prevention**: [Code change that prevents this failure from happening]
- What file/function to modify
- What validation, check, or guard to add
- What library or pattern to use
**Detection**: [Monitoring or alerting that catches this if prevention fails]
- What metric to track
- What threshold to alert on
- What log message to emit
**Verification**: [Test that proves the mitigation works]
- What test type (unit, integration, e2e)
- What scenario to simulate
- What assertion to make
**Estimated effort**: [S | M | L] (Small: <1 day, Medium: 1-3 days, Large: >3 days)
Before finalizing, verify each mitigation: prevention actually blocks the failure, detection is realistic given the current observability stack, and the test scenario is concrete enough to implement. Refine until all three hold.
Sharpening gate (from /retro): Each Prevention/Detection/Verification item must pass concreteness tests:
Prevention: Name the specific file/function to modify, state the exact validation/check/guard (not "add proper validation"), make it implementable without design decisions.
Detection: Name the specific metric or log line (not "monitor for anomalies"), state the concrete threshold/alert (not "watch for issues"), confirm the metric exists in the current observability stack.
Verification: Name the specific test file/type (not "test with various inputs"), state the concrete scenario and assertion (not "ensure it works"), make the pass/fail criteria explicit.
If a mitigation item fails the gate, rewrite it until it passes. Each item must be implementable in one session without needing clarification.
Emit the report in pipe format so downstream skills (/spec, /tracer, /test-strategy, /critique) can consume prioritized failures and mitigations:
## Pre-Mortem: [Feature Name]
**Source**: /premortem
**Input**: [feature from $ARGUMENTS]
**Pipeline**: (none — working from direct input)
### Items (N)
1. **[Scenario title]** — [one-line impact summary]
- lens: security | reliability | user-business
- severity: catastrophic | major | minor
- likelihood: high | medium | low
- mitigation: [one-line prevention summary]
- effort: S | M | L
- source: [file:line references from agent investigation]
- confidence: CONFIRMED | LIKELY | POSSIBLE
2. **[Scenario title]** — [one-line impact summary]
- lens: security | reliability | user-business
- severity: catastrophic | major | minor
- likelihood: high | medium | low
- mitigation: [one-line prevention summary]
- effort: S | M | L
- source: [file:line references]
- confidence: CONFIRMED | LIKELY | POSSIBLE
[... one item per prioritized scenario from Phase 3, ordered by severity × likelihood]
### Failure Analysis
- **Total scenarios identified**: N (security: X, reliability: Y, user/business: Z)
- **Prioritized for mitigation**: M
- **Estimated total effort**: [sum of S/M/L estimates]
### Mitigation Details
[Full mitigation plan from Phase 4 — one subsection per item with Prevention/Detection/Verification]
### Summary
[One paragraph synthesizing the risk landscape: dominant failure category, highest-impact scenario, key architectural implications, and recommended implementation order.]
Items include only the prioritized scenarios (user-selected in Phase 3). Unprioritized scenarios are omitted from pipe-format output but referenced in the Failure Analysis counts.
Create tasks in your task tracker to track mitigations:
Create the feature task if it doesn't exist yet.
rules/memory-layout.md, checkpoint at phase boundaries to .claude/tackline/memory/scratch/premortem-checkpoint.md./spec — formalize the design before or after premortem; premortem findings become constraints in the spec/tracer — trace mitigation tasks through implementation; feed the mitigation epic created by premortem into tracer/test-strategy — failure modes identified by premortem become concrete test cases; run after mitigations are designedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
risk-analysis, failure-mode, mitigation, security-review, premortem
npx claudepluginhub tyevans/tackline --plugin tackline55 skills in this plugin
/active-learnUse when an agent's performance is uneven and you want systematic improvement. Runs diagnose -> challenge-gen -> challenge-run -> update learnings in a loop. Works with or without a team. Keywords: active-learn, training, adversarial, improve, agent, loop, capability, tuning, solo./adviseUse when you're unsure what to work on next. Reads git state, session history, and task tracker to recommend next actions. Works with just git, richer with more context. Keywords: advise, suggest, next, what now, recommend, orient./assembleUse when starting a project, forming a team for long-horizon work, or upgrading from ad-hoc agent dispatch. Creates persistent roles with ownership and learnings that improve across sessions. Keywords: team, project, setup, roles, persistent, agents, staff, learning.Other plugins' skills for the same job