agentleFS
skyf0xxskyf0xx/gambit/skills/premortem/SKILL.md

premortem

Skill29 starsChanged 33 days agoMITView on GitHub

Use before committing to a significant plan or an irreversible action. Assumes the effort has already failed, then works backwards to explain why — a prospective hindsight technique that surfaces failure modes outside-in red-teaming reliably misses, especially ones the user privately suspects but hasn't said aloud.

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 35 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not doom-mongering. The output is a list of things to fix while fixing is still cheap.

    line 40
  2. Very specific:

    Read the goal — the goal statement, success criteria, deadline, plan key, people key, riskNotes and systemsNotes keys if present.

    line 49
  3. Distinctive:

    Write the failure explanations.

    line 66
  4. Distinctive:

    Every fatal cause needs one of: a change to the plan, an early-warning indicator, or an explicit acceptance.

    line 121
  5. Distinctive:

    If the write returns { ok: false, errors }, fix the reported fields and retry before ending the turn.

    line 160

“Common” is measured: kept by at least 6 in 10 of the 35 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: premortem

Trigger: A plan is about to be committed to, or an action is about to be taken that can't be walked back. Also use when a plan feels solid and nobody can articulate why it might not be — that comfort is itself the signal.

Purpose: Surface failure modes that red-teaming misses.

threat asks "how could this be attacked or go wrong?" — an outside-in question, and people answer it analytically. This asks something different: it is [date]. This failed. Explain why. The failure is stipulated, not hypothesised, and that single change reliably produces different answers. People who can't generate criticism of a plan they're invested in can readily generate an explanation for an outcome they've been told already happened.

Both moves are needed. This one is worth running even when threat returned little.


Voice & Tone

Committed to the premise. Do not hedge back toward "this might not happen" — the technique works because the failure is treated as fact for the duration. Write in past tense throughout.

Concrete and unsparing. "Momentum was lost" is not a failure explanation; "the follow-on date was never announced, so the WhatsApp group went quiet within nine days and the organisers who'd taken time off work didn't come back" is.

Not doom-mongering. The output is a list of things to fix while fixing is still cheap. Say that at the end, and mean it.


Execution Sequence

1. Load Context

Read the goal — the goal statement, success criteria, deadline, plan key, people key, riskNotes and systemsNotes keys if present.

2. Set the Scene

Pick a date far enough out that the outcome would be known — just past the deadline, or past the point where the current plan would have resolved. State it plainly:

It is [date]. [The goal] did not happen.

[One sentence on what the failed end-state looks like concretely — not "we fell short",
but what someone would actually observe.]

3. Generate Causes — Widely, Before Filtering

Write the failure explanations. Aim for eight to twelve before assessing any of them; the valuable ones tend to arrive late, after the obvious ones are exhausted.

Work deliberately across categories, because unaided generation clusters in one or two:

  • Execution — something didn't get done, or got done late or badly
  • People — someone left, didn't deliver, fell out, burned out, or was never really committed
  • External — a decision went the other way, the environment shifted, timing collided with something bigger
  • Assumption — something believed to be true simply wasn't
  • Second-order — an action worked, and its consequence undid the goal
  • Sustained attention — nothing dramatic failed; it just quietly stopped
  • The operator — the user ran out of money, time, energy, or will

That last category is the one most often omitted and most often correct. Include it.

Then the sharpest question in the technique:

Which of these did you already suspect before I listed them?

A failure the user privately anticipated but hadn't said aloud is the highest-value finding this skill produces. It is almost never the most dramatic item on the list.

4. Rank

CAUSE: [past tense, specific]
  Plausibility: high | medium | low
  Would it have been visible early? yes | no — [the signal that would have shown it]
  Preventable now? yes | partly | no
  Cost to prevent: [what it takes today]

Prioritise on plausibility × preventability. A high-plausibility cause that was invisible until too late deserves an early-warning indicator even if it can't be prevented.

5. Separate the Fatal from the Survivable

FATAL — would have ended the goal on its own:
  [cause] → prevent by [action]

DEGRADING — would have hurt, recoverable:
  [cause] → mitigate by [action]

ACCEPTED — inherent to attempting this at all:
  [cause] → the cost of playing

Be honest about the third category. Some risk is the price of the goal, and pretending otherwise produces a plan that only works in a world where nothing is at stake.

6. Convert to Changes

Every fatal cause needs one of: a change to the plan, an early-warning indicator, or an explicit acceptance. No fatal cause leaves this skill unhandled.

CHANGE: [what to alter in the plan now]
WATCH: [indicator] — [what it would look like] — [check when]
ACCEPT: [risk] — [why it's worth carrying]

7. Elicit

Two questions:

  - Which of those felt most real to you — not most likely, most real?
  - Is there a version of failure I haven't described that you'd recognise?

The user's gut on which failure "feels real" is signal. It's often a pattern they've seen before in their own history, and it deserves weight the analysis can't supply.

8. Update the Goal

Call write_section on riskNotes with the fatal causes and their mitigations added to the existing array (keep the entries already there, including threat's, and label each new one with source: "premortem" so the source is clear). Add any early-warning indicators as watch items. Call append_log with one note on what changed this pass, not a summary of the section the page already shows.

Each appended entry must have:

  • item (required, max 120 chars): the fatal cause or mitigation
  • detail (optional, max 120 chars): additional context
  • source (required): must be "premortem" for items this skill appends
  • accepted (required): boolean; true if user explicitly chose to accept this risk
{
  "riskNotes": [
    { "item": "...", "detail": "...", "source": "premortem", "accepted": false }
  ]
}

If the write returns { ok: false, errors }, fix the reported fields and retry before ending the turn.

9. Name the Next Step

Next: [the single most important plan change this produced]

Or:
  - Rework the sequence around these → plan
  - The fatal cause is unverified → web search, or say it's unverified
  - Preventing it means a real tradeoff → decide
  - This changes what matters most → strategy

Close by saying plainly that the failure was hypothetical and the fixes are not. The point of the exercise is that all of this is still cheap to change.

Download now (ZIP)

  • Other versions38 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 38

    1. parcadei/Continuous-Claude★ 3.9ksame name
    2. parcadei/Continuous-Claude-v2★ 3.9ksame name
    3. parcadei/Continuous-Claude-v3★ 3.9ksame name
    4. MaxMiksa/Auto-Company★ 3.2ksame name
    5. MaxMiksa/Autonomous-Company★ 3.2ksame name
    6. boshu2/agentops★ 452same name
    7. entropyvortex/meta-llm-charter★ 248same name
    8. nicepkg/auto-company★ 188same name
    9. joetawil7/first-pass★ 128same name
    10. neurofoo/agent-skills★ 111same name

    28 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use community-led-growth, ph-community-outreach and 10 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • nicepkgSkill

      community-led-growth

      Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

      Also in 5 projects that use this

    • nicepkgSkill

      ph-community-outreach

      Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

      Also in 5 projects that use this

    • ncklrsSkill

      seo-content-strategist

      Expert SEO content strategy for SaaS and B2B sites. Use when doing keyword research, planning content clusters, creating pillar pages, optimizing on-page SEO, fixing technical SEO issues, building links, refreshing content, implementing programmatic SEO, mapping search intent, optimizing for SERP features, or measuring content performance. Use for SEO audits, content gap analysis, and organic growth strategy.

      Also in 5 projects that use this

    • xfstudioSkill

      micro-saas-launcher

      Expert in launching small, focused SaaS products fast - the indie hacker approach to building profitable software. Covers idea validation, MVP development, pricing, launch strategies, and growing to sustainable revenue. Ship in weeks, not months. Use when: micro saas, indie hacker, small saas, side project, saas mvp.

      Also in 5 projects that use this

    • mastepanoskiSkill

      ux-audit-rethink

      Comprehensive UX audit using IxDF's 7 factors, 5 usability characteristics, and 5 interaction dimensions. Holistic evaluation with redesign proposals based on user-centered design principles.

      Also in 5 projects that use this

    • parcadeiSkill

      agent-context-isolation

      Agent Context Isolation

      Also in 3 projects that use this

    • +6 more from nicepkg
  • In this repository36 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.