28 eval-informed mental models and critical-thinking skills for Claude Code, GitHub Copilot, Codex, Cursor, and other Agent Skills-compatible tools
JavaScript agent-skillsai-toolsanthropicclaudeclaude-codecritical-thinkingdecision-makingfirst-principlesmental-modelsproblem-solvingsystems-thinking
feat: rewrite 28 skills as lean agent contracts
Travis Boudreauxc2e4a73a6ade
diff --git a/evals/lib/registry.js b/evals/lib/registry.jsindex fb4baba..6def276 100644--- a/evals/lib/registry.js+++ b/evals/lib/registry.js@@ -226,6 +226,57 @@ function validateRegistry(registry) {validateSkillRow(id, skill, { active: false });}+ // Every declared absorption must be recorded symmetrically at its active+ // destination, including the exact mechanism contract. This prevents a+ // deleted skill from silently losing its active ingredient at cutover.+ for (const [deletedId, deleted] of Object.entries(deletedSkills)) {+ const targets = deleted.disposition?.absorb_into || [];+ for (const targetId of targets) {+ const destination = skills[targetId];+ if (!destination) continue; // Missing target is reported above.+ const absorbs = destination.disposition?.absorbs;+ const mechanisms = destination.disposition?.absorbed_mechanisms;+ if (!Array.isArray(absorbs) || !absorbs.includes(deletedId)) {+ errors.push(`skill ${targetId} missing absorbed source ${deletedId}`);+ }+ const matches = Array.isArray(mechanisms)+ ? mechanisms.filter(entry => entry?.id === deletedId)+ : [];+ if (matches.length !== 1) {+ errors.push(`skill ${targetId} must declare exactly one absorbed mechanism for ${deletedId}`);+ } else if (matches[0].mechanism !== deleted.disposition.mechanism) {+ errors.push(`skill ${targetId} absorbed mechanism mismatch for ${deletedId}`);+ }+ }+ }+ for (const [targetId, destination] of Object.entries(skills)) {+ const absorbs = destination.disposition?.absorbs;+ const mechanisms = destination.disposition?.absorbed_mechanisms;+ if (!Array.isArray(absorbs)) {+ errors.push(`skill ${targetId} disposition.absorbs must be an array`);+ continue;+ }+ if (!Array.isArray(mechanisms)) {+ errors.push(`skill ${targetId} disposition.absorbed_mechanisms must be an array`);+ continue;+ }+ if (new Set(absorbs).size !== absorbs.length) {+ errors.push(`skill ${targetId} disposition.absorbs contains duplicates`);+ }+ for (const deletedId of absorbs) {+ if (!deletedSkills[deletedId]) {+ errors.push(`skill ${targetId} absorbs unknown deleted skill ${deletedId}`);+ } else if (!(deletedSkills[deletedId].disposition?.absorb_into || []).includes(targetId)) {+ errors.push(`skill ${targetId} absorption not declared by deleted skill ${deletedId}`);+ }+ }+ for (const entry of mechanisms) {+ if (!absorbs.includes(entry?.id)) {+ errors.push(`skill ${targetId} has orphan absorbed mechanism ${entry?.id || 'missing'}`);+ }+ }+ }+// declared data_adequacy must match computed active statuses (explicit, no silent filter)if (registry.data_adequacy) {const declaredUnknown = new Set(registry.data_adequacy.unknown_skill_ids || []);diff --git a/evals/tests/registry-evidence.test.js b/evals/tests/registry-evidence.test.jsindex 25d249a..98931bb 100644--- a/evals/tests/registry-evidence.test.js+++ b/evals/tests/registry-evidence.test.js@@ -161,6 +161,64 @@ test('deleted_skills provenance fields are required and mutation-protected', ()assert.equal(okEmpty.ok, true, okEmpty.errors.join('; '));});+test('every absorbed mechanism has a symmetric mutation-protected destination', () => {+ const { registry, validation } = loadAndValidateRegistry();+ assert.equal(validation.ok, true, validation.errors.join('; '));+ const edges = [];+ for (const [deletedId, deleted] of Object.entries(registry.deleted_skills)) {+ for (const targetId of deleted.disposition.absorb_into) {+ edges.push(`${deletedId}->${targetId}`);+ const destination = registry.skills[targetId].disposition;+ assert.ok(destination.absorbs.includes(deletedId), `${deletedId}->${targetId}`);+ assert.deepEqual(+ destination.absorbed_mechanisms.filter(entry => entry.id === deletedId),+ [{ id: deletedId, mechanism: deleted.disposition.mechanism }],+ `${deletedId}->${targetId}`+ );+ }+ }+ assert.equal(edges.length, 12);++ const missingSource = JSON.parse(JSON.stringify(registry));+ missingSource.skills.systems.disposition.absorbs =+ missingSource.skills.systems.disposition.absorbs.filter(id => id !== 'feedback-loops');+ const missingValidation = validateRegistry(missingSource);+ assert.equal(missingValidation.ok, false);+ assert.ok(missingValidation.errors.some(error => /systems missing absorbed source feedback-loops/.test(error)));++ const wrongMechanism = JSON.parse(JSON.stringify(registry));+ wrongMechanism.skills.probabilistic.disposition.absorbed_mechanisms+ .find(entry => entry.id === 'bayesian').mechanism = 'generic updating';+ const mechanismValidation = validateRegistry(wrongMechanism);+ assert.equal(mechanismValidation.ok, false);+ assert.ok(mechanismValidation.errors.some(error => /probabilistic absorbed mechanism mismatch for bayesian/.test(error)));+});++test('absorbed mechanisms remain executable in destination skill contracts', () => {+ const contracts = [+ ['systems', [/reinforcing/i, /balancing/i, /delay/i, /recurring structure/i, /leverage/i, /side effects/i]],+ ['probabilistic', [/Prior odds/i, /Likelihood ratio/i, /Posterior odds/i, /Fermi-bound/i, /order-of-magnitude/i, /strongest evidence-based case/i]],+ ['steel-manning', [/strongest faithful case/i, /base rates or concrete alternatives/i, /overturn conditions/i]],+ ['pre-mortem', [/Failure-first reverse analysis/i, /necessary\/enabling conditions/i, /invert\W+each condition/i]],+ ['model-router', [/problem fit ≥4/i, /weighted total ≥3\.5/i, /return \*\*NONE\*\*/i]],+ ['scientific-method', [/fewest independent unsupported assumptions/i, /Parsimony ranks survivors after fit/i]],+ ['reversibility', [/Asymmetric downside \/ recovery/i, /Not acting/i, /permanently closes/i]],+ ['opportunity-cost', [/Future tradeoff \/ permanent forgone options/i, /permanent losses/i, /recoverable/i]],+ ];+ for (const [skillId, assertions] of contracts) {+ const content = fs.readFileSync(+ path.join(__dirname, '..', '..', 'skills', `thinking-${skillId}`, 'SKILL.md'),+ 'utf8'+ );+ for (const assertion of assertions) {+ assert.match(content, assertion, `${skillId}: ${assertion}`);+ const flags = assertion.flags.includes('i') ? 'gi' : 'g';+ const mutated = content.replace(new RegExp(assertion.source, flags), '');+ assert.doesNotMatch(mutated, assertion, `${skillId} mutation survived: ${assertion}`);+ }+ }+});+test('consumed migration coverage cannot count as fresh confirmatory data', () => {const { registry, validation } = loadAndValidateRegistry();assert.equal(validation.ok, true, validation.errors.join('; '));diff --git a/evals/tests/registry-validation.test.js b/evals/tests/registry-validation.test.jsindex 5731cfa..232b8fc 100644--- a/evals/tests/registry-validation.test.js+++ b/evals/tests/registry-validation.test.js@@ -22,6 +22,7 @@ const {const LEAN_BODY = `---name: thinking-exampledescription: Short situation-named description under two hundred characters.+disable-model-invocation: true---## When to Use@@ -33,6 +34,7 @@ Do not use for routine Y.## Procedure1. Observe evidence.2. Decide.+3. Stop.## OutputReturn a decision artifact.@@ -57,6 +59,37 @@ test('required sections are When to Use / NOT / Procedure / Output / Verificatioassert.equal(ok.pass, true, JSON.stringify(ok.failed));});+test('manual quarantine and procedure depth are enforced', () => {+ const missingQuarantine = LEAN_BODY.replace('disable-model-invocation: true\n', '');+ const quarantineResult = validateSkillContent(missingQuarantine, {+ name: 'thinking-example',+ maxWords: 100,+ enforceBudget: true,+ requireDisableModelInvocation: true,+ });+ assert.equal(quarantineResult.pass, false);+ assert.ok(quarantineResult.failed.some(check => check.name === 'Manual-only Quarantine'));++ const shallowProcedure = LEAN_BODY.replace('2. Decide.\n3. Stop.', '2. Decide.');+ const procedureResult = validateSkillContent(shallowProcedure, {+ name: 'thinking-example',+ maxWords: 100,+ enforceBudget: true,+ });+ assert.equal(procedureResult.pass, false);+ assert.ok(procedureResult.failed.some(check => check.name === 'Procedure Steps'));++ const deletedReference = `${LEAN_BODY}\nNever invoke thinking-deleted-example.\n`;+ const referenceResult = validateSkillContent(deletedReference, {+ name: 'thinking-example',+ maxWords: 100,+ enforceBudget: true,+ forbiddenSkillIds: ['deleted-example'],+ });+ assert.equal(referenceResult.pass, false);+ assert.deepEqual(referenceResult.forbidden_skill_refs, ['deleted-example']);+});+test('validator fails missing required sections and overlong description', () => {const body = `---name: thinking-example@@ -114,18 +147,19 @@ ${words}assert.ok(result.failed.some(f => f.name === 'Word Budget'));});-test('current pre-rewrite catalog fails new structural requirements (observable, not weakened)', () => {+test('current lean catalog satisfies every structural contract', () => {const report = validateAllSkills();assert.equal(report.found_count, 28);assert.equal(report.expected_count, 28);- // Pre-rewrite skills lack lean sections; failures must remain visible- assert.equal(report.ok, false);- assert.ok(report.failed.length > 0, 'expected pre-rewrite skills to fail new section requirements');- const sample = report.failed[0];- assert.ok(sample.failed.length > 0);- // Ensure we did not silently filter failures- assert.equal(report.summary.failed, report.failed.length);- assert.equal(report.summary.total, 28);+ assert.equal(report.ok, true, report.failed.map(result => result.name).join(', '));+ assert.equal(report.failed.length, 0);+ assert.equal(report.summary.passed, 28);+ assert.equal(report.summary.failed, 0);+ for (const result of report.results) {+ assert.ok(result.procedure_steps >= 3 && result.procedure_steps <= 7, result.name);+ assert.equal(result.frontmatter['disable-model-invocation'], 'true', result.name);+ assert.deepEqual(result.forbidden_skill_refs, [], result.name);+ }});test('validate-skills does not write quality-report.json', () => {diff --git a/scripts/validate-skills.js b/scripts/validate-skills.jsindex 8ff9d74..7c0caa9 100755--- a/scripts/validate-skills.js+++ b/scripts/validate-skills.js@@ -73,6 +73,22 @@ function hasSection(content, name) {return sectionHeadingPattern(name).test(content);}+function sectionBody(content, name) {+ const match = sectionHeadingPattern(name).exec(content);+ if (!match) return '';+ const start = match.index + match[0].length;+ const remainder = content.slice(start);+ const next = remainder.search(/^##\s+/m);+ return (next === -1 ? remainder : remainder.slice(0, next)).trim();+}++function numberedStepCount(content) {+ return sectionBody(content, 'Procedure')+ .split('\n')+ .filter(line => /^\s*\d+\.\s+\S/.test(line))+ .length;+}+/*** Pure validation of a single skill body.* @returns {object} structured result with pass/fail details@@ -83,11 +99,16 @@ function validateSkillContent(content, opts = {}) {const descriptionMax = opts.descriptionMax ?? DEFAULT_DESCRIPTION_MAX;const maxWords = opts.maxWords != null ? opts.maxWords : null;const enforceBudget = opts.enforceBudget !== false && maxWords != null;+ const requireDisableModelInvocation = opts.requireDisableModelInvocation === true;+ const forbiddenSkillIds = opts.forbiddenSkillIds || [];const { frontmatter, has_frontmatter } = parseFrontmatter(content);const words = countWords(content);const description = frontmatter.description || '';const descriptionLen = description.length;+ const procedureSteps = numberedStepCount(content);+ const nonEmptySections = requiredSections.filter(name => sectionBody(content, name).length > 0);+ const forbiddenRefs = forbiddenSkillIds.filter(id => content.includes(`thinking-${id}`));const sections = requiredSections.map(name => ({name,@@ -97,8 +118,12 @@ function validateSkillContent(content, opts = {}) {const checks = [];checks.push({name: 'YAML Frontmatter',- pass: has_frontmatter && Boolean(frontmatter.name || frontmatter.description),- detail: has_frontmatter ? 'present' : 'missing frontmatter',+ pass: has_frontmatter &&+ frontmatter.name === skillName &&+ Boolean(frontmatter.description),+ detail: has_frontmatter+ ? `name=${frontmatter.name || 'missing'}`+ : 'missing frontmatter',});checks.push({name: 'Description Length',@@ -115,6 +140,32 @@ function validateSkillContent(content, opts = {}) {detail: section.found ? 'found' : 'missing',});}+ checks.push({+ name: 'Required Section Content',+ pass: nonEmptySections.length === requiredSections.length,+ detail: nonEmptySections.length === requiredSections.length+ ? 'all required sections are non-empty'+ : `empty: ${requiredSections.filter(name => !nonEmptySections.includes(name)).join(', ')}`,+ });+ checks.push({+ name: 'Procedure Steps',+ pass: procedureSteps >= 3 && procedureSteps <= 7,+ detail: `${procedureSteps} numbered steps (required 3-7)`,+ });+ if (requireDisableModelInvocation) {+ checks.push({+ name: 'Manual-only Quarantine',+ pass: frontmatter['disable-model-invocation'] === 'true',+ detail: `disable-model-invocation=${frontmatter['disable-model-invocation'] || 'missing'}`,+ });+ }+ checks.push({+ name: 'Deleted Skill References',+ pass: forbiddenRefs.length === 0,+ detail: forbiddenRefs.length === 0+ ? 'none'+ : forbiddenRefs.map(id => `thinking-${id}`).join(', '),+ });if (enforceBudget) {checks.push({@@ -140,6 +191,8 @@ function validateSkillContent(content, opts = {}) {description_length: descriptionLen,words,max_words: maxWords,+ procedure_steps: procedureSteps,+ forbidden_skill_refs: forbiddenRefs,sections,checks,failed,@@ -183,6 +236,9 @@ function loadCatalogExpectations(registryPath) {descriptionMax: registry.frontmatter?.description_max_chars ?? DEFAULT_DESCRIPTION_MAX,budgets,survivors: new Set(registry.catalog?.survivors || []),+ quarantined: new Set(Object.entries(registry.skills || {})+ .filter(([, skill]) => skill.disposition?.disable_model_invocation_until_elevated === true)+ .map(([id]) => id)),deletions: new Set(registry.catalog?.deletions || []),registry,registryValidation,@@ -211,6 +267,8 @@ function validateAllSkills(opts = {}) {descriptionMax: catalog.descriptionMax,maxWords,enforceBudget,+ requireDisableModelInvocation: catalog.quarantined?.has(id) || false,+ forbiddenSkillIds: [...(catalog.deletions || [])],}));}@@ -289,6 +347,8 @@ module.exports = {parseFrontmatter,countWords,hasSection,+ sectionBody,+ numberedStepCount,validateSkillContent,validateSkillFile,validateAllSkills,diff --git a/skills/thinking-bounded-rationality/SKILL.md b/skills/thinking-bounded-rationality/SKILL.mdindex 73e0575..2d3d5ea 100644--- a/skills/thinking-bounded-rationality/SKILL.md+++ b/skills/thinking-bounded-rationality/SKILL.md@@ -1,398 +1,51 @@---name: thinking-bounded-rationality-description: Use when a search or investigation could run indefinitely and you need a stopping rule. Set an explicit "good enough" threshold and stop at the first option that clears it.+description: Use when search or investigation could run forever. Set an explicit good-enough threshold first, then stop at the first option that clears it.disable-model-invocation: true----# Bounded Rationality and Satisficing+# Bounded Rationality-## Overview--Herbert Simon's Bounded Rationality recognizes that any agent operating under finite resources cannot exhaustively optimize: the search space is too large, information is incomplete, and acting has a cost. Rather than pursuing the optimal solution, Simon proposed "satisficing"—a portmanteau of satisfy + suffice—choosing the first solution good enough to meet an explicit threshold, then stopping.--For an autonomous coding agent the binding constraint is a **budget**: tool calls, search/read operations, context window, and wall-clock time per turn. A grep that could keep matching, a file tree you could keep traversing, a doc set you could keep reading — each has steeply diminishing returns. Satisficing converts "search until certain" (which never terminates) into "search until the threshold is met, then act."--**Core Principle:** Define "good enough" *before* you search, and stop at the first option that clears the bar. Optimizing is correct only when the gap between good and best is worth more than the budget it costs to close it.+Under finite tool, context, and time budgets, stop at the first option that meets a predeclared aspiration level. Optimize only when the good-to-best gap is worth the remaining budget.## When to Use-- An investigation or search has no natural endpoint (greps, file reads, doc crawls, candidate solutions) and could consume the whole budget.-- Multiple options would all clear the requirement and you're tempted to keep comparing.-- You're gathering more context than the decision actually needs.-- A reversible, low-stakes choice is consuming optimization-level effort.-- You need to commit and ship before the turn/budget runs out.--Decision flow:--```-Search/investigation that could run indefinitely? → yes → Is closing the gap to "best" worth the budget? → no → SATISFICE (threshold + stop)- ↘ yes → Optimize (and cap the budget)- ↘ no → just answer-```+- Search or option comparison has no natural endpoint and could consume the turn budget.+- Multiple options would clear the requirement and further comparison has diminishing returns.+- The decision is reversible or low-stakes relative to more search.+- You are gathering context beyond what the decision needs to ship.## When NOT to Use-- **Irreversible or high-stakes choices** (data deletion, security boundaries, schema/migration decisions, public commitments) — the gap between good and best is worth the budget; optimize and verify.-- **Correctness gates** — tests, security checks, and "did the fix actually work?" are not satisficeable; you need the right answer, not a sufficient-looking one.-- **The answer is cheaply knowable** — if one more grep or a single file read would settle it definitively, just do it; don't satisfice your way past a quick fact.-- **The threshold can't be stated** — if you can't articulate what "good enough" means, you can't satisfice responsibly; clarify the requirement first.--## Trigger Card--When a search or investigation could run indefinitely and you need to ship:--1. **Set an explicit aspiration level** — what does "good enough" look like? Define a concrete, measurable threshold.-2. **Search sequentially** — evaluate options one at a time in the order you encounter them. Do not enumerate exhaustively.-3. **Stop at the first option that clears the threshold.** Commit and move on.--If the threshold can't be articulated or the cost of a wrong choice is catastrophic, don't satisfice — run the full procedure. For a single cheaply-knowable fact, just look it up.--## The Three Constraints--### 1. Information Bounds--**What you can know is limited**--- Complete information rarely exists-- Gathering more information has costs-- Information has diminishing returns-- Future states are inherently uncertain--```-Example: Choosing a technology stack-Reality: You can't test every option in production- You can't predict 5-year industry shifts- You can't know your future team composition-Satisfice: Pick a well-supported option that meets current needs-```--### 2. Processing Bounds (the budget)--**What you can compute and attend to is limited**--- Each turn has a finite budget of tool calls, reads, and context-window tokens-- Adding more options/criteria to a comparison degrades signal, not improves it — past ~3-5 criteria, marginal context rarely flips the decision-- Long, sprawling investigations crowd out the context needed to act on what you found-- More search reduces uncertainty with sharply diminishing returns--```-Example: Choosing among architecture options-Reality: Reading every doc and modeling every interaction effect- burns the budget before you produce an answer-Satisfice: Fix the 3-5 criteria that actually decide it, evaluate- against those, and stop at the first option that clears them-```--### 3. Action-Cost Bounds--**Deciding and re-deciding both cost budget and time**--- Every additional search/read consumes budget that can't be spent elsewhere-- The user is waiting; an answer now usually beats a marginally better answer later-- Re-opening a settled, reversible decision is rarely worth the cost-- Perfect is the enemy of shipped--```-Example: Picking a library for a reversible internal task-Reality: You could compare ten options across a dozen dimensions- Reversibility means a wrong-but-adequate pick is cheap to swap-Satisfice: Pick the first well-supported option that meets the requirement, move on-```--## Satisficing vs. Optimizing--### When to Satisfice--| Signal | Why Satisfice |-|--------|---------------|-| Reversible decision | Can adjust later with more information |-| Time pressure | Cost of delay exceeds value of more analysis |-| Diminishing returns | 80% solution found, 100% would take 10x effort |-| High uncertainty | More analysis won't reduce uncertainty meaningfully |-| Many acceptable options | Several solutions meet requirements adequately |-| Low stakes | Consequences of suboptimal choice are minor |--### When to Optimize--| Signal | Why Optimize |-|--------|--------------|-| Irreversible decision | Mistakes are permanent or very costly to undo |-| High stakes | Wrong choice has severe consequences |-| Clear criteria | You know exactly what "best" means |-| Bounded search space | All options can actually be evaluated |-| Available time | Deadline allows for thorough analysis |-| Clear value of optimal | Difference between good and best is significant |--## The Satisficing Process--### Step 1: Define Aspiration Level--Set the minimum acceptable threshold for each criterion:--```-Example: Hiring a senior engineer-Optimizing: Find the absolute best candidate-Satisficing: Find a candidate who:-- Has 5+ years relevant experience ✓-- Can pass technical interview ✓-- Salary expectations fit budget ✓-- Available to start within 4 weeks ✓-- Culture fit (team confirms) ✓--First candidate who meets all criteria → Hire-```--### Step 2: Search Sequentially--Evaluate options one at a time against aspiration level:--```-Option A: Meets 4/5 criteria → Continue search-Option B: Meets 3/5 criteria → Continue search-Option C: Meets 5/5 criteria → STOP, choose this one-```--Key insight: You don't compare options against each other, you compare each option against your threshold.--### Step 3: Adjust Aspiration If Needed--If search is too long or too short, recalibrate:--```-Too many options qualify → Raise aspiration level-Nothing qualifies after reasonable search → Lower aspiration level-```--### Step 4: Commit and Move On--Once threshold is met:--- Stop searching-- Accept the decision-- Resist second-guessing-- Redirect energy to execution--## Application Patterns--### For Technical Design--```-Scenario: Choose a message queue for new service--Satisficing approach:-1. Define requirements (aspiration level):- - At-least-once delivery ✓- - Handles 10k msg/sec ✓- - Team familiarity or fast learning curve ✓- - Managed option available ✓- - Within cost budget ✓--2. Evaluate sequentially:- - RabbitMQ: Meets all → STOP, use RabbitMQ--3. Don't continue researching Kafka, SQS, etc.- unless RabbitMQ fails threshold-```--### For Code Review--```-Scenario: Reviewing a PR under time pressure--Satisficing approach:-1. Define "good enough" criteria:- - No security vulnerabilities ✓- - Tests pass ✓- - No obvious performance issues ✓- - Code is readable ✓- - Follows project conventions ✓--2. Stop when criteria met- Don't perfect every line if shipping matters-```--### For Research/Investigation--```-Scenario: Debugging production issue--Satisficing approach:-1. Define stopping criteria:- - Root cause identified ✓- - Fix verified in staging ✓- - Rollback plan exists ✓--2. Stop investigating once you can fix- Don't exhaustively trace every code path- if you have a working solution-```--### For Feature Scope--```-Scenario: MVP feature set decisions--Satisficing approach:-1. Define "enough to learn":- - Core user job addressed ✓- - Measurable success metric exists ✓- - Usable enough for feedback ✓- - Can ship within sprint ✓--2. First scope that meets criteria → Ship it- Don't polish what you might throw away-```--## Setting Appropriate Aspiration Levels--### Too High → Analysis Paralysis+- Irreversible or high-stakes choices (data loss, security, migrations, public commitments) where the good-to-best gap is material.+- Correctness gates: tests, security checks, and "did the fix work?" need the right answer, not a sufficient-looking one.+- One cheap lookup would settle the fact — do it; do not satisfice past it.+- The aspiration level cannot be stated — clarify the requirement first.-Symptoms:+## Procedure-- Nothing ever meets the bar-- Endless research and comparison-- Decisions perpetually delayed-- Perfect becomes enemy of good--Fix: Ask "What's the minimum that would be acceptable?"--### Too Low → Poor Outcomes--Symptoms:--- Frequent rework required-- Quality issues in production-- Technical debt accumulation-- Stakeholder dissatisfaction--Fix: Ask "What past decisions do I regret? What threshold would have prevented them?"--### Calibration Heuristics--```-Reversibility Check:-- Easily reversible → Lower aspiration OK-- Hard to reverse → Raise aspiration--Consequence Check:-- Minor consequences → Lower aspiration OK-- Major consequences → Raise aspiration--Time Check:-- Tight deadline → Accept lower aspiration-- Ample time → Can afford higher aspiration-```--## Common Traps--### Trap 1: Satisficing Feels Like Settling--**Reality:** Satisficing is rational under constraints, not lazy.--```-Optimizing with infinite time = mathematically correct-Optimizing with real constraints = often irrational-Satisficing = adapted to actual world-```+1. **State decision and budget.** Name the choice, residual tool/context/time budget, and reversibility.+2. **Set aspiration before searching.** Write concrete pass/fail criteria for "good enough." Do not evaluate until the threshold is explicit.+3. **Search sequentially.** Score options in encounter order against the threshold only. Skip full matrices unless step 1 marked high-stakes/irreversible.+4. **Stop at first adequate.** When an option clears every criterion, select it immediately.+5. **Handle search failure without moving the goalposts.** If nothing clears after the pre-set cap, preserve the threshold and report no adequate option. Relax only a criterion predeclared as non-load-bearing, record the relaxation, and resume within a new cap; never raise the bar after failure.+6. **Commit.** Record choice and residual uncertainty; spend remaining budget on execution, not re-ranking.-### Trap 2: Post-Decision Regret+**Stop condition:** First option meets the predeclared aspiration level, or the search cap is exhausted with none adequate.-**Reality:** Finding a better option later doesn't mean the decision was wrong.+## Output+```text+Decision: <choice>+Aspiration: <pass/fail criteria>+Search: evaluated N; stopped at first adequate | cap exhausted+Selected: <option or none>+Residual risk: <what further search might change>+Next spend: <execution step>```-You chose Option B (met threshold)-Later discovered Option D was "better"-This is expected—you stopped searching at B-Regret is only valid if B didn't meet your threshold-```--### Trap 3: Creeping Aspiration--**Reality:** Moving goalposts prevent closure.--```-Original: "Need 100ms response time"-After meeting it: "Actually, 50ms would be better"-After that: "Hmm, 25ms would be ideal..."--Fix: Lock aspiration level before search begins-```--### Trap 4: Satisficing the Wrong Things--**Reality:** Some decisions warrant optimization.--```-Wrong to satisfice:-- Security critical systems-- Legal compliance-- Safety-critical code-- Irreversible architectural choices--Right to satisfice:-- Internal tooling-- Reversible experiments-- Style preferences-- Low-stakes choices-```--## Integration with Other Thinking Models--### With First Principles--```-Use First Principles to determine:-- What constraints are real vs assumed?-- What is the fundamental requirement?-Then satisfice against those fundamentals-```--### With Pre-Mortem--```-Use pre-mortem (failure-first reverse analysis) to set and validate aspiration level:-- "What would make this solution unacceptable?" → avoid those failure modes; any option avoiding them satisfices-- "If this satisficed solution fails, why?" → adjust thresholds to prevent likely failures-- Don't over-engineer against unlikely failures-```--### With Circle of Competence--```-Outside your circle:-- You can't evaluate "optimal" anyway-- Satisficing is your only realistic option-- Set thresholds based on expert input--Inside your circle:-- You can choose when to optimize vs satisfice-- Trust your calibrated aspiration levels-```--## Verification Checklist--- [ ] Identified whether this decision warrants optimizing or satisficing-- [ ] Set clear aspiration level before searching-- [ ] Defined explicit stopping criteria-- [ ] Evaluated options against threshold, not against each other-- [ ] Stopped when threshold was met (or adjusted threshold rationally)-- [ ] Committed to decision without continued comparison shopping-- [ ] Documented reasoning for future reference--## Key Questions--- "What's the minimum acceptable solution here?"-- "What would 'good enough' look like for this decision?"-- "Is more research likely to change my decision?"-- "What's the cost of continued analysis vs acting now?"-- "Can I reverse this decision if I learn more later?"-- "Am I searching for best, or searching to avoid deciding?"-- "What threshold would I set for someone else in my position?"--## Simon's Insight--"A wealth of information creates a poverty of attention."-In a world of infinite information and finite attention, satisficing isn't settling—it's adapting to reality. The goal isn't to make perfect decisions, but to make good decisions efficiently, preserving cognitive resources for the problems that truly require optimization.+## Verification-The satisficer who ships beats the optimizer who's still researching.+- Falsify if you kept comparing after an option cleared the threshold, or invented the threshold after seeing winners.+- Falsify if a correctness gate or irreversible decision was treated as satisficeable.+- Over-application guard: if one cheap check settles a fact, look it up — do not invoke this skill.diff --git a/skills/thinking-circle-of-competence/SKILL.md b/skills/thinking-circle-of-competence/SKILL.mdindex 28c6c6a..b4a0096 100644--- a/skills/thinking-circle-of-competence/SKILL.md+++ b/skills/thinking-circle-of-competence/SKILL.md@@ -1,217 +1,57 @@---name: thinking-circle-of-competence-description: Use when you're unsure whether you actually know the answer. If you lack the evidence or context to answer reliably, abstain, ask, or fetch it — don't confabulate a confident reply.+description: Use when a specific claim may lack grounding. Check evidence boundary, size wrongness cost, then answer, fetch, or abstain — never confabulate.disable-model-invocation: true---# Circle of Competence-## Overview-The Circle of Competence, articulated by Warren Buffett and Charlie Munger, is about knowing precisely where reliable knowledge ends. For an autonomous agent the operative version is **abstention**: the failure mode isn't being wrong about a hard problem — it's producing a fluent, confident answer when the grounding for it isn't there. The most damaging output a model can give is a plausible fabrication: an invented API, a hallucinated file path, a made-up statistic, a guessed config value, delivered with the same tone as a verified fact.--**Core Principle:** Knowing what you can't reliably answer is more valuable than the answer. When the evidence or context to answer correctly is missing, the right move is to abstain, ask, or go fetch it — not to confabulate. "I don't know, let me check" beats a confident guess.+Treat competence as an evidence boundary, not self-image. Answer only when grounded; otherwise fetch, mark uncertainty, or abstain. The failure mode is a fluent fabrication treated as fact.## When to Use-- A question demands a specific fact you're not certain of (an exact API signature, a config value, a version behavior, a number)-- You're about to assert something about *this* codebase/system without having read it-- The request is in an unfamiliar domain and your answer would be reconstructed from vague pattern rather than grounded knowledge-- You notice you're filling a gap with the most plausible-sounding value rather than a checked one-- A confident answer would be expensive to be wrong about-Decision flow:-```-About to give a specific/high-stakes answer?- → Is it grounded in something I've read/run/can cite? → yes → answer- ↘ no → CAN I cheaply fetch/check it? → yes → FETCH, then answer- ↘ no → ABSTAIN or ASK; flag the uncertainty-```+- About to assert a specific fact (API, path, number, config, version behavior) without a citable source from this session.+- The claim is about this codebase or system and you have not read or run the relevant artifact.+- Pattern reconstruction would sound complete but is unconfirmed.+- Cost of a wrong confident answer is material (security, data, irreversible action, trust).## When NOT to Use-- **The answer is grounded and verifiable** — you've read the file, run the command, or it's stable common knowledge. Don't perform false humility on things you actually know; needless hedging is its own failure.-- **The cost of being wrong is trivial and reversible** — a quick reversible attempt with a caveat can beat stalling, as long as you flag it as unverified.-- **You can just look it up right now** — then the move is *fetch*, not abstain. Abstention is the fallback when grounding is genuinely unavailable, not an excuse to skip a cheap check.-- **Brainstorming / clearly-hypothetical framing** — when the user has signalled they want options or speculation, labeled informed guesses are appropriate.--## The Three Zones (by grounding, not by ego)--### Zone 1: Grounded — answer-**The answer is anchored in something checkable**--- You read it in the actual code/file/doc this session, or ran it-- It's stable, common knowledge unlikely to be version- or context-specific-- You could cite *where* the answer comes from--```-Examples (grounded):-- "This function returns null on miss" — after reading the function-- HTTP 404 means not found — stable, universal-- "The config sets timeout to 30s" — after opening the config-→ Answer directly.-```--### Zone 2: Partial — verify before asserting-**Plausible but reconstructed, not confirmed**--- You have the general shape but not the specific-- It's version-, environment-, or repo-specific and you haven't checked this one-- You'd be inferring from a pattern, which is usually right but sometimes wrong--```-Examples (partial):-- "The library probably has a `retry` option" — likely, unchecked-- "This API usually returns ISO timestamps" — depends on the version here-→ Fetch/read to confirm, OR answer with an explicit "I believe X, verify with Y."-```--### Zone 3: Ungrounded — abstain or ask-**A confident answer here would be a fabrication**-- You'd be inventing a specific value (signature, path, number, flag)-- The domain is unfamiliar and the answer reconstructed from vague pattern-- You can't point to any source for it+- Claim is grounded in something you read, ran, or can cite this session, or is stable universal knowledge — answer without false humility.+- Error cost is trivial and reversible and you will flag the claim as unverified.+- Grounding is one cheap fetch away — fetch first; abstention is not an excuse to skip a check.+- User explicitly wants labeled brainstorming or hypotheticals.-```-Examples (ungrounded):-- Exact signature of an API you haven't seen in this codebase-- A precise statistic with no source-- "What does our internal service X do?" with no access to it-→ Say so, ask, or fetch — do NOT confabulate.-```--## Telling the Zones Apart--The honest test before a specific or high-stakes claim:+## Procedure-| Question | Grounded | Partial | Ungrounded |-|----------|--------|------|---------|-| Can I point to where this answer comes from? | ✓ | sort of | ✗ |-| Have I read/run the relevant thing this session? | ✓ | | ✗ |-| Is it version-/repo-/config-specific and unconfirmed? | | ✓ | ✓ |-| Am I filling a gap with the *most plausible-sounding* value? | | ✓ | ✓ |+1. **Name the claim.** Isolate the assertion that would be treated as fact.+2. **Classify the zone.**+ - *Grounded:* citeable session source (read/run) or stable non-version-specific knowledge.+ - *Partial:* general shape known; version/repo/config detail unconfirmed.+ - *Ungrounded:* would invent a concrete value with no source.+3. **Size wrongness cost.** If high-stakes (security, data loss, irreversible ops), treat Partial as Ungrounded until verified.+4. **Act by zone.**+ - Grounded → answer; cite when useful; do not hedge verified facts.+ - Partial → cheap fetch then answer; else answer only with explicit uncertainty and a check path.+ - Ungrounded → fetch if possible; else ask or abstain with what would enable an answer. Never invent.+5. **Refuse competence creep.** Adjacent code, prior versions, or general capability do not ground the unread target.+6. **Stop.** Emit answer, fetch request, or abstention. Do not round "probably" to a flat assertion.-Watch for the confabulation tells:-- An exact name, number, or path arrives with no memory of *where* it came from-- The answer is suspiciously convenient and complete for something you never looked at-- You're hedging the framing ("typically", "should be") around a claim the user will treat as fact-- "I'm capable in general, so I can answer this specific" — capability is not grounding+**Stop condition:** Claim answered with grounding, marked partial with a check path, or refused with missing-evidence note.-## What to Do in Each Zone+## Output-### Grounded: answer directly-```-✓ Give the answer-✓ Cite the source if it helps the user trust it-✓ Don't hedge a verified fact into mush-```--### Partial: confirm, then answer-```-→ Cheap to check? FETCH first — read the file, run the command, grep the symbol-→ Can't check right now? Answer with the uncertainty marked:- "I believe X — confirm against Y before relying on it."-→ Never round a "probably" up to a flat assertion+```text+Claim: <assertion>+Zone: grounded | partial | ungrounded+Evidence: <source or none>+Wrongness cost: low | medium | high+Action: answer | fetch-then-answer | answer-with-uncertainty | abstain/ask+Response: <wording or missing artifact>```-### Ungrounded: abstain, ask, or fetch — never confabulate-```-Option A: Fetch-- Get the grounding (read the code, search the docs, call the tool), then answer--Option B: Ask-- "I don't have access to X — can you share it / point me to it?"-- A precise question beats a confident guess--Option C: Abstain explicitly-- "I don't know this reliably and can't verify it here."-- State what *would* let you answer-```--## Common Traps--### Trap 1: Competence creep-Being grounded in one area doesn't transfer to the adjacent one:-```-Read service A's code → grounded on service A-Does NOT mean grounded on service B, the infra, or the client-Check the thing you're actually being asked about.-```--### Trap 2: Stale or version-specific recall-General knowledge of a tool ≠ knowledge of *this* version/config:-```-"I know how this library usually works" — but the repo pins an old major version-with a different API. Recall is partial here; verify against the installed version.-```--### Trap 3: Fluency misread as grounding-A smooth, complete answer *feels* authoritative regardless of whether it's checked:-```-The trap: the more confidently a specific value comes out, the less it gets questioned-The fix: before a specific claim, ask "where did this come from?" — if there's no source, it's ungrounded-```--### Trap 4: Capability-implies-knowledge-Being a strong general reasoner does not mean you know this specific fact:-```-"I can reason about anything" → still can't know an unread file's contents,-a private API's signature, or a number with no source. Capability is not grounding.-```--## Application Examples--### Reporting an API or library detail-```-Question: "What are the arguments to this client's `query` method?"--Self-assessment:-- Have I read this client's source in the repo? No → Partial/Ungrounded-- Am I about to reconstruct a plausible signature? Yes → confabulation risk--Action: grep/read the actual definition, THEN answer. If unavailable,- say "I haven't seen this client's source — let me read it" rather than inventing args.-```--### Answering about this specific system-```-Question: "What does our internal billing service do on a failed charge?"--Self-assessment:-- Do I have access to that service's code/docs? No → Ungrounded-- Can I infer a "typical" behavior? Yes, but it'd be a guess about a specific system--Action: Abstain or ask: "I don't have that service's code here — can you point me to it,- or should I search the repo?" Do not describe behavior you haven't seen.-```--### Adopting an unfamiliar technology-```-Question: "Should we use GraphQL here?"--Self-assessment:-- Do I have grounded knowledge of GraphQL's general tradeoffs? Yes → can speak to them-- Do I know THIS system's query patterns and constraints? Only what I've read → check--Action: Give the well-grounded general tradeoffs; for the fit to *this* system,- verify the actual access patterns before recommending.-```--## Verification Checklist-- [ ] Identified which zone the answer falls in (grounded / partial / ungrounded)-- [ ] For specific claims: can point to where the answer comes from-- [ ] If partial/ungrounded and cheap to check: fetched/read before asserting-- [ ] If ungrounded and uncheckable: abstained or asked, did not confabulate-- [ ] Marked any unverified claim as unverified, not as fact-- [ ] Did not hedge a genuinely-grounded answer into needless mush--## Key Questions-- "Where does this specific answer come from — can I cite it?"-- "Have I actually read/run the thing I'm about to describe?"-- "Am I filling this gap with a checked value or the most plausible-sounding one?"-- "Could I cheaply fetch the grounding instead of guessing?"-- "If I'm wrong here, how would anyone find out — and how costly is it?"-- "Is this version-/repo-/config-specific in a way I haven't confirmed?"--## Buffett's Reminder-"What counts is not how much they know, but rather how realistically they define what they don't know."+## Verification-The advantage isn't a bigger circle — it's refusing to answer outside it as if you were inside it. For an agent, the highest-value words are often "I don't know that reliably; let me check" — because a confident fabrication costs far more than an honest gap.+- Falsify if a specific value was asserted with no session source and no uncertainty marker.+- Falsify if Partial/high-stakes was treated as Grounded, or a cheap fetch was skipped for abstention theater.+- Over-application guard: do not hedge or refuse claims verified this session.diff --git a/skills/thinking-cynefin/SKILL.md b/skills/thinking-cynefin/SKILL.mdindex faac07e..7d9480f 100644--- a/skills/thinking-cynefin/SKILL.md+++ b/skills/thinking-cynefin/SKILL.md@@ -1,90 +1,55 @@---name: thinking-cynefin-description: Use when unsure how to approach a problem—plan, analyze, experiment, or stabilize first. Classify it by cause-effect (clear/complicated/complex/chaotic) and match the approach to the domain.+description: When the right response mode is unclear, classify the cause-effect domain first; decompose disorder.disable-model-invocation: true----# Cynefin Framework+# Cynefin Classification-## Overview--Cynefin (Dave Snowden) classifies a problem by the relationship between cause and effect, then prescribes the matching approach. Using the wrong approach for the domain is the failure mode: detailed planning is useless in chaos, and experimentation is reckless when a best practice already exists.--**Core Principle:** The nature of the problem determines the approach. Classify first, then act.--## The Classifier--| Cause–effect is… | Domain | Approach | Do this |-|------------------|--------|----------|---------|-| Obvious to anyone | **Clear** | Sense → Categorize → Respond | Apply the known best practice / runbook; don't over-engineer |-| Knowable with expertise/analysis | **Complicated** | Sense → Analyze → Respond | Investigate, profile, design; multiple valid solutions exist |-| Only visible in retrospect (emergent) | **Complex** | Probe → Sense → Respond | Run small safe-to-fail probes, amplify what works |-| Not perceivable; turbulent | **Chaotic** | Act → Sense → Respond | Act now to stabilize (rollback/failover), understand later |-| Unsure which domain | **Disorder** | Decompose | Split into parts and classify each part |--```-Can you see clear cause→effect?- obvious to everyone → CLEAR- knowable with analysis → COMPLICATED- only clear in hindsight → COMPLEX- totally turbulent, no time → CHAOTIC- can't tell → DISORDER (decompose)-```+Classify by cause-effect, then use only the matching response mode. Wrong-domain method is the failure mode.## When to Use-- You're unsure whether to plan, analyze, experiment, or just act-- An approach isn't working and you suspect it's mismatched to the problem-- Triaging an incident (is this stabilize-first chaos, or analyzable?)+- Unsure whether to run a playbook, analyze, probe, or stabilize.+- A method keeps failing and domain mismatch is plausible.+- A novel or mixed problem needs approach selection before solution work.## When NOT to Use-- The domain is already obvious and the approach is uncontested → skip the ceremony and just do it.-- You've already classified and now need to execute → switch to the domain's actual method (debugging, a hypothesis differential, experiment design); Cynefin only routes, it doesn't solve.-- The question is "what is the cause," not "how should I approach this" → classification won't find the bug.--## The Common Mismatches (the whole point)--- **Complex treated as Complicated:** extensive planning, but outcomes keep surprising you. You can't analyze your way through emergence—probe instead.-- **Complicated treated as Clear:** "just do it like Company X" without understanding why. Context matters; analyze the specific case.-- **Chaotic treated as Complex:** running experiments during an active outage. Chaos needs immediate stability, not learning.-- **Clear treated as Complicated:** over-engineering a trivial problem. Apply the best practice and move on.--## Confidence Check--Before committing, test the classification:-- Clear? Do best practices reliably work here? If not → probably Complicated.-- Complicated? Can analysis predict the outcome? If not → probably Complex.-- Complex? Can you run a safe-to-fail probe? If it's too turbulent to probe → Chaotic.-- Re-check as the situation evolves; domains shift (chaos stabilizes into complex/complicated).--## Decision Output--When this skill is used as a workflow gate, produce:--```json-{- "decision_key": "unordered_problem",- "answer": true,- "rationale": "one concise sentence"-}+- Domain and method are already agreed—execute.+- Task is finding a specific cause, not choosing an approach.+- Classification done; switch to the domain method—do not re-label endlessly.+- Pure mechanical edits with no approach uncertainty.++## Procedure++1. **State the unit.** Name the decision, incident, or subsystem; if mixed, list separable parts.+2. **Probe cause-effect.** Is the link obvious, expert-analyzable, retrospective only, or imperceptible in turbulence? Check predictability, urgency, and probe safety.+3. **Assign one domain per unit:**+ - **Clear** — obvious → Sense → Categorize → Respond with a runbook.+ - **Complicated** — expert-analyzable → Sense → Analyze → Respond; several valid answers.+ - **Complex** — emergent → Probe → Sense → Respond with safe-to-fail probes; amplify/dampen signals.+ - **Chaotic** — no safe sensing time → Act → Sense → Respond; stabilize first.+ - **Disorder** — unknown → split and classify each part.+4. **Mismatch check.** Reject Clear if its runbook fails; Complicated if analysis cannot predict; Complex if probing is unsafe; Chaotic once safe probing becomes possible.+5. **Commit and stop.** Output domain + first actions. Re-classify only on evidence of domain shift.++**Stop when** every unit has one domain, first actions, and a falsifier—or disorder is decomposed.++## Output++```text+unit: <decision/incident/part>+domain: clear | complicated | complex | chaotic | disorder+evidence: <cause-effect basis>+response_mode: <Sense-Categorize-Respond | Sense-Analyze-Respond | Probe-Sense-Respond | Act-Sense-Respond | decompose>+first_actions: <1-3 concrete steps>+falsifier: <what forces reclassification>+parts: <only if disorder>```-## Escalate to Full Skill When--- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.--## Key Questions--- "What's the relationship between cause and effect here?"-- "Can experts reliably predict the outcome, or is it only clear in hindsight?"-- "Is this actually complex, or am I avoiding the analysis?"-- "Is this actually complicated, or am I over-planning a simple thing?"-- "Has the situation moved to a different domain since I last looked?"--## Snowden's Wisdom+## Verification-"Complex systems are dispositional, not causal—you can't predict what will happen, only influence what might." The failure is rarely the methodology itself; it's applying the wrong methodology to the wrong domain.+- **Falsify:** Reliable prediction → not Complex. No safe probe → Chaotic. Working runbook → Clear.+- **Stop:** Stop classifying once the matched action is clear.+- **Over-application guard:** Do not call work Complex to avoid analysis or Complicated to avoid a standard fix. One label per unit; decompose multi-domain work.diff --git a/skills/thinking-effectuation/SKILL.md b/skills/thinking-effectuation/SKILL.mdindex 5eacbb9..c236b6a 100644--- a/skills/thinking-effectuation/SKILL.md+++ b/skills/thinking-effectuation/SKILL.md@@ -1,367 +1,52 @@---name: thinking-effectuation-description: Start with means, not goals; co-create with partners; leverage contingencies. Use for startup strategy, innovation projects, and uncertain/novel domains where planning is unreliable.+description: Under genuine uncertainty with no reliable forecast, inventory means, cap downside at affordable loss, act for commitments, and let goals emerge from controllable moves.disable-model-invocation: true---# Effectuation-## Overview--Effectuation, developed by Saras Sarasvathy from studying expert entrepreneurs, inverts traditional causal reasoning. Instead of starting with a goal and finding resources, effectuators start with available means and discover goals through action. This approach is more robust in highly uncertain environments where prediction is unreliable.--**Core Principle:** When you can't predict the future, don't try. Instead, focus on what you can control and let the future emerge from your actions.+Under Knightian uncertainty, start from available means and affordable loss—not a fixed goal and predicted return. Create the path through controllable action and real commitments.## When to Use-- Startup and new product development-- Innovation in uncertain domains-- When prediction is unreliable-- Entering new markets-- When resources are constrained-- Side projects and experiments-- Career pivots--Decision flow:--```-Facing uncertainty about outcomes?- → Can you predict the future reliably? → no → USE EFFECTUATION- → Do you have fixed goals but uncertain resources? → yes → Traditional planning- → Do you have available means but uncertain goals? → yes → USE EFFECTUATION-```+- The market, technology, or problem is novel enough that outcome probabilities are not trustworthy.+- Means are clearer than the goal: identity, skills, assets, and network exist before a fixed target does.+- A small action can buy information or a partner commitment without risking ruin.+- Plans keep breaking because the environment shifts faster than forecasts.## When NOT to Use-- **Use effectuation only under genuine (Knightian) uncertainty** — where outcomes can't be assigned meaningful probabilities because the market/technology/problem is novel. That's where "create the future through action" beats prediction.-- **For predictable markets with a known model, use causal planning instead.** If the market exists, the unit economics are knowable, and the path is a known sequence of steps, set the goal and plan to it — effectuation's "let goals emerge" wastes time you don't need to spend exploring.-- **Not when the cost of a wrong action exceeds affordable loss.** Effectuation assumes you can afford to act-and-learn; if a single misstep is ruinous, plan and de-risk first.--## Trigger Card--When starting a new initiative in an uncertain domain where planning is unreliable:--1. **Inventory your means** — who you are, what you know, who you know. Start from what's available, not from a distant goal.-2. **Take an affordable-loss step** — what can you act on now where the downside is survivable if it fails? Act; don't plan.-3. **Co-create with committed partners** — find stakeholders willing to make real commitments, then let the direction emerge from their input.--If the market and path are predictable, use causal planning instead. If a single misstep is ruinous, de-risk before acting.--## Causal vs Effectual Reasoning--### Causal (Traditional)--```-1. Set a goal-2. Plan to achieve the goal-3. Gather necessary resources-4. Execute the plan-5. Measure against the goal--Example:-Goal: Build a $10M company-Plan: Build product X for market Y-Resources: Raise $2M, hire 10 people-Execute: 18-month development plan-Measure: Revenue against projections-```--### Effectual (Entrepreneurial)--```-1. Start with your means-2. Take action with acceptable loss-3. Build partnerships-4. Leverage contingencies-5. Goals emerge from action--Example:-Means: I know databases, have some savings, know other engineers-Action: Build a small tool, see who's interested-Partners: Three early users want to co-create-Contingency: One user has a different problem that's bigger-Emerging goal: Pivot to new problem, user becomes co-founder-```--## The Five Principles of Effectuation--### 1. Bird in Hand (Start with Means)--Begin with what you have:--```markdown-## My Means Inventory--Who I am:-- Skills: [List skills]-- Preferences: [What I enjoy]-- Values: [What matters to me]--What I know:-- Domain expertise: [Areas of knowledge]-- Unique insights: [What I see that others don't]-- Technical skills: [What I can build]--Who I know:-- Potential partners: [People who might join]-- Potential customers: [People who might buy]-- Resources: [People who can help]--What can I do with THESE means?-(Don't start with "what's needed"—start with "what I have")-```--### 2. Affordable Loss (Acceptable Downside)--Focus on what you can afford to lose, not expected return:--```markdown-## Affordable Loss Analysis--I can afford to lose:-- Time: 6 months of evenings/weekends-- Money: $5K of savings-- Opportunity: Delay of other projects-- Reputation: Minor if it fails quietly--I cannot afford to lose:-- Day job income-- Family time beyond X hours-- More than $5K--Action: Design the experiment to fit within affordable loss- Don't calculate expected return—calculate maximum loss- Can I live with maximum loss? If yes, proceed.-```--### 3. Crazy Quilt (Partnerships)--Co-create with anyone who commits:--```markdown-## Partnership Building--Instead of: Finding resources for my predetermined plan-Do: Let partners shape the venture--Approach:-1. Share what I'm working on-2. Anyone who commits becomes a partner-3. They bring their means and constraints-4. The venture adapts to include them--Example:-- I start with: Database tool idea-- Partner 1 commits: Brings sales experience, shifts to B2B-- Partner 2 commits: Brings design, shifts to user-facing product-- Customer 1 commits: Brings specific use case, shapes roadmap--The venture becomes what committed partners make it.-```--### 4. Lemonade (Leverage Contingencies)--Treat surprises as opportunities:--```markdown-## Contingency Response--Causal mindset: "That wasn't in the plan—it's a problem"-Effectual mindset: "That's unexpected—how can we use it?"--Examples:-- Competitor launches similar product- Causal: "Our plan is threatened"- Effectual: "They validated market, potential acquirer, potential partner"--- Key hire falls through- Causal: "We're behind plan"- Effectual: "Maybe we don't need that role; what can we do with who we have?"--- Customer wants something different- Causal: "That's not our product"- Effectual: "Maybe that IS our product"-```--### 5. Pilot in the Plane (Control, Don't Predict)--Focus on what you can control:--```markdown-## Control vs Predict--Can't control/predict:-- Market movements-- Competitor actions-- Customer adoption rate-- Economic conditions-- Technology shifts--Can control:-- Who I work with-- What I build this week-- How I respond to feedback-- What partnerships I form-- How much I risk--Strategy: Maximize actions on controllable factors- Don't waste energy predicting uncontrollable factors- Create the future through action, not prediction-```--## Effectuation Process--### Step 1: Inventory Your Means--```markdown-## Means Inventory--### Who I Am-- Background: [Experience, skills, identity]-- Passions: [What energizes me]-- Values: [What I won't compromise]--### What I Know-- Professional knowledge: [Domains]-- Technical skills: [Abilities]-- Market insights: [What I understand that others might not]--### Who I Know-- Close network: [People who would take my call]-- Extended network: [People who know people]-- Communities: [Groups I'm part of]-```--### Step 2: Define Affordable Loss--```markdown-## Affordable Loss--Time I can invest: [Hours/week, months]-Money I can lose: [$X]-Reputation at stake: [What's the downside?]-Opportunity cost: [What else am I not doing?]--Maximum I'm willing to lose: [Clear boundary]-```--### Step 3: Take Action--```markdown-## Next Action--Given my means and affordable loss:-What's the smallest action that could create information?--Options:-1. [Action] - Teaches me [what]-2. [Action] - Teaches me [what]-3. [Action] - Teaches me [what]--Selected action: [Action with best learning/risk ratio]-```--### Step 4: Seek Commitments--```markdown-## Partnership Outreach--Who might be interested in co-creating?--| Person | Their Means | Ask | Commitment |-|--------|-------------|-----|------------|-| [Name] | [Skills/resources] | [What to ask] | [What they commit] |--Each commitment expands my means and shapes the direction.-```--### Step 5: Adapt and Iterate--```markdown-## Iteration Log--| Action | Outcome | Surprise | How to leverage |-|--------|---------|----------|-----------------|-| | | | |--After each action:-- What did I learn?-- What commitments emerged?-- What contingencies can I leverage?-- What's the next action?-```--## Effectuation Template--```markdown-# Effectuation Analysis: [Venture/Project]--## Means Inventory-Who I am: [Identity, skills, values]-What I know: [Knowledge, expertise]-Who I know: [Network, relationships]--## Affordable Loss-Can afford: [Time, money, reputation]-Cannot afford: [Boundaries]-Maximum loss I'm willing to accept: [Clear number]--## Current Commitments-| Partner | Their Means | Commitment |-|---------|-------------|------------|-| | | |--## Contingencies Available-| Surprise | Potential Leverage |-|----------|-------------------|-| | |--## Next Action-Action: [Specific, small action]-Affordable loss: [What's at stake]-Learning goal: [What I'll know after]--## Emerging Direction-Where seems to be going: [Current trajectory]-How it differs from start: [Evolution]-```--## When to Use Causal vs Effectual--| Context | Approach | Why |-|---------|----------|-----|-| Existing market, proven model | Causal | Prediction is reliable |-| New market, unproven model | Effectual | Prediction is unreliable |-| Abundant resources | Causal | Can afford to plan extensively |-| Constrained resources | Effectual | Must work with what you have |-| Clear goal | Causal | Plan toward the goal |-| Exploring opportunities | Effectual | Goals emerge from action |-| Risk can be calculated | Causal | Expected return is meaningful |-| Risk is uncertain | Effectual | Affordable loss is meaningful |--## Verification Checklist+- The path is predictable: known market, knowable unit economics, established playbook → use causal planning.+- A single wrong step is ruinous or irreversible → de-risk first; do not treat affordable-loss steps as free.+- The goal is already fixed and resources are the only uncertainty → plan to the goal.+- Routine execution with settled requirements → act; do not re-inventory means.-- [ ] Inventoried available means-- [ ] Defined affordable loss (not expected return)-- [ ] Sought commitments, not just resources-- [ ] Treating surprises as opportunities-- [ ] Focusing on what I can control-- [ ] Taking action to learn, not to execute plan-- [ ] Letting goals emerge from action+## Procedure-## Key Questions+1. **Inventory means only.** List who you are (skills, constraints, values), what you know (domain, tools, data), and who you know (reachable partners, users, resources). Reject "what would be needed for an ideal plan" as input.+2. **Cap affordable loss.** State the maximum time, money, reputation, and opportunity cost you can lose and still continue. If the proposed step exceeds any cap, redesign the step smaller or stop.+3. **Choose one controllable next action.** Prefer the smallest action that can yield either (a) a real commitment from someone else or (b) discriminating information. Act inside the loss cap; do not optimize expected return.+4. **Seek commitments, not opinions.** Share the working means-based offer. Anyone who commits resources, access, or work becomes a co-creator and may reshape the goal. Discard non-committing feedback as non-binding.+5. **Leverage contingencies.** Treat surprises as new means: failed hires, competitor moves, off-roadmap requests. Ask "how can this expand control?" not "how do we restore the old plan?"+6. **Update means and goal, then stop or loop.** Fold new means and commitments into the inventory; restate the emerging goal. Stop when a viable path is controlled enough to execute, the loss cap is exhausted without traction, or uncertainty collapses into a predictable plan (then switch to causal planning).-- "What can I do with what I have?"-- "What am I willing to lose?"-- "Who might want to co-create this?"-- "How can I leverage this surprise?"-- "What can I control right now?"-- "What's the smallest action that teaches me something?"+## Output-## Sarasvathy's Wisdom+Emit an effectuation brief:-"Effectual reasoning does not begin with a specific goal. Instead, it begins with a given set of means and allows goals to emerge contingently over time from the varied imaginations and diverse aspirations of the founders and the people they interact with."+- `means`: identity / knowledge / network actually available now+- `affordable_loss`: hard caps (time, money, reputation, opportunity)+- `next_action`: one controllable step inside those caps+- `commitments_sought_or_won`: who must put skin in the game, and what changed if they did+- `contingencies_used`: surprises turned into means (or none)+- `emerging_goal`: current goal shaped by means and commitments (may differ from the starting wish)+- `stop_or_loop`: continue under effectuation, switch to causal planning, or halt-"In the face of an uncertain future, entrepreneurs use effectual logic to fabricate—make—the future, rather than try to find or predict it."+## Verification-You can't predict the future. But you can create it through action. Start with your means, take affordable risks, build with partners, leverage surprises, and control what you can. The goal will find you.+- **Falsify means-first claims:** if the brief starts from a fixed goal and backfills resources, rewrite from means or abandon effectuation.+- **Loss-cap check:** every recommended action must fit inside stated affordable loss; if not, shrink or stop.+- **Commitment test:** progress that depends only on predictions or uncommitted interest is invalid—require at least one real commitment or a cheap information gain.+- **Over-application guard:** if a reliable forecast and known playbook exist, do not force effectuation; plan causally.+- **Stop:** after one means → loss-cap → action → commitment cycle with an explicit stop/loop decision; do not endless-explore under the effectuation label.diff --git a/skills/thinking-first-principles/SKILL.md b/skills/thinking-first-principles/SKILL.mdindex 7cebdec..8ad8363 100644--- a/skills/thinking-first-principles/SKILL.md+++ b/skills/thinking-first-principles/SKILL.md@@ -1,167 +1,51 @@---name: thinking-first-principles-description: When a constraint is treated as fixed ("too expensive", "impossible", "always done this way"), ask whether it's physics or just convention, then rebuild from what's actually true.+description: When a constraint is treated as fixed, separate physics from convention, keep only independently supported primitives, and rebuild the simplest solution that satisfies real constraints.disable-model-invocation: true----# First Principles Reasoning+# First Principles-## Overview-First principles thinking strips away assumptions and conventions to reveal fundamental truths, then reconstructs solutions from those basics. This approach, championed by Elon Musk and rooted in Aristotle's philosophy, enables breakthrough solutions by escaping the trap of reasoning by analogy.--**Core Principle:** Don't accept "that's how it's always done." Reduce to fundamentals, then rebuild.+Strip assumed constraints to independently supported primitives, then rebuild. Escape analogy when convention fails or looks artificially expensive.## When to Use-- Conventional approaches have failed or seem inadequate-- You're told something is "impossible" or "too expensive"-- Designing new systems/products from scratch-- Challenging industry assumptions or pricing-- Problem seems intractable using existing mental models-- You need innovation rather than incremental improvement-Decision flow:-```-Problem intractable? → yes → Are you reasoning from analogy? → yes → APPLY FIRST PRINCIPLES- ↘ no → Already at fundamentals- ↘ no → Standard problem-solving may suffice-```+- A constraint is treated as fixed ("too expensive," "impossible," "always done this way") without independent support.+- Convention or analogy has failed, stalled, or only yields weak incremental variants.+- Greenfield design where industry defaults may smuggle false requirements.+- Cost or feasibility claims rest on pricing, precedent, or authority rather than physics, math, or measured need.## When NOT to Use-- The constraint is genuinely physics/cost/regulation, not convention — verify, then accept it and move on.-- A well-trodden, working solution already exists; reinventing from scratch adds risk without lift. Use the convention.-- Routine implementation where the "why" is settled — don't re-derive a standard library, protocol, or known-good pattern.-- Time-critical incidents: act on the most likely cause first (scientific-method), reserve first-principles for the post-incident redesign.--## Trigger Card--When a constraint is treated as fixed ("too expensive", "impossible", "always done this way"):--1. **Ask: is this constraint physics or convention?** If it's a law of nature, accept it. If it's "how we've always done it," it's negotiable.-2. **Identify the irreducible truths** — what must be true no matter what solution you pick?-3. **Rebuild from those truths** — derive a solution that satisfies the real constraints but ignores the artificial ones. If a simpler rebuild solves it, stop.--Skip if the "why" is settled (standard library, known-good pattern). In an incident, act on the most likely cause first; reserve this for post-incident redesign.--## The Process--### Step 1: Identify Current Assumptions-List everything you "know" or assume about the problem:-- What are the constraints everyone accepts?-- What costs/limitations are considered fixed?-- What's the conventional wisdom?-- Why do people say it can't be done?--```-Example: "Rocket launches cost $65M because that's what aerospace companies charge"-Assumptions: Must buy from existing suppliers, existing designs are optimal,- materials must be aerospace-grade, vertical integration is too hard-```--### Step 2: Break Down to Fundamentals-Ask repeatedly: "What are we absolutely certain is true?"--Decomposition questions:-- What are the physical/mathematical constraints?-- What are the raw inputs required?-- What laws of physics/economics apply?-- What would this cost if built from raw materials?-- What is the minimum viable version?--```-Example: Rocket raw materials (aluminum, titanium, copper, carbon fiber)- = ~2% of typical rocket price-Fundamental truth: Materials aren't the cost driver;- manufacturing/overhead/margins are-```--### Step 3: Challenge Each Assumption-For each assumption, ask:-- Is this actually true, or just convention?-- What evidence supports this?-- Under what conditions would this be false?-- Who benefits from this assumption persisting?--Use the "5 Whys" to drill deeper:-```-Why is it expensive? → Suppliers charge high margins-Why? → Limited competition-Why? → High barriers to entry-Why? → Assumption that you must use existing supply chain-Why? → Nobody questioned it-```--### Step 4: Rebuild from Fundamentals-Starting ONLY from verified truths:-- What's the simplest solution that satisfies fundamental requirements?-- What new approaches become possible without false constraints?-- How would you solve this if starting from scratch today?-- What would a solution look like with 10x less resources?--```-Example: Build rockets in-house using commodity materials- = SpaceX reduced launch costs by 10x-```--### Step 5: Validate Against Reality-- Does your reconstructed solution violate any physics/laws?-- What practical constraints remain?-- What's the minimum viable test?-- How can you prove/disprove this quickly?--## Mental Traps to Avoid-| Trap | Description | Antidote |-|------|-------------|----------|-| Reasoning by Analogy | "Others do it this way" | Ask "but is it optimal?" |-| Appeal to Authority | "Experts say it's impossible" | "What specifically makes it impossible?" |-| Sunk Cost | "We've always done it this way" | "What if we started fresh today?" |-| Complexity Bias | Assuming complex = better | "What's the simplest version?" |-| False Constraints | Accepting artificial limits | "Is this a law of physics or convention?" |+- The constraint is verified physics, hard regulation, or measured capacity → accept it and optimize within it.+- A proven standard library, protocol, or known-good pattern already fits → use it; do not re-derive.+- Time-critical incidents → act on the most likely cause first; reserve first-principles rebuild for post-incident redesign.+- Incremental polish of a working system with no false-constraint signal → skip.-## Application Examples+## Procedure-### Software Architecture-```-Assumption: "We need a microservices architecture"-First Principles:-- What problem are we solving? (scalability, team independence, deployment)-- What's the minimum that achieves this?-- A modular monolith might suffice for current scale-```+1. **State the problem and claimed constraints.** List every limit treated as fixed (cost, scale, stack, process, "must use X").+2. **Classify each constraint.** Tag as `physics/math`, `regulation/contract`, `measured fact`, or `convention/analogy/authority`. Keep only the first three as binding unless evidence upgrades a convention.+3. **Decompose to primitives.** Required inputs, conservation/complexity bounds, true non-negotiables. Demand independent support (measurement, derivation, primary requirement)—not vendor pricing or competitor precedent.+4. **Discard unsupported assumptions.** For each convention tag, state a falsifier. Drop or renegotiate anything lacking support.+5. **Rebuild from remaining primitives only.** Simplest solution that satisfies binding constraints and ignores artificial ones. Prefer commodity inputs and fewer moving parts over analogy.+6. **Validate and stop.** Check against real physics, contracts, and measured needs. Define the cheapest kill test. Stop when a coherent rebuild plus discriminating validation exists, or when only verified hard constraints remain.-### Cost Reduction-```-Assumption: "This service costs $50k/month, that's just cloud pricing"-First Principles:-- What compute/storage do we actually need?-- What are we paying for that we don't use?-- Could we reduce by 80% with right-sizing?-```+## Output-### Feature Development-```-Assumption: "Users need feature X (because competitor has it)"-First Principles:-- What job is the user trying to accomplish?-- What's the simplest way to enable that job?-- Maybe a different approach solves it better-```+Emit a first-principles rebuild:-## Verification Checklist-- [ ] Listed all assumptions about the problem-- [ ] Identified which assumptions are physics/math vs convention-- [ ] Challenged at least 3 "obvious" constraints-- [ ] Rebuilt solution using only verified fundamentals-- [ ] Validated that solution doesn't violate actual constraints-- [ ] Identified minimum viable test to prove/disprove approach+- `claimed_constraints`: list with classification tags+- `primitives`: independently supported truths only+- `discarded_assumptions`: conventions dropped and why+- `rebuild`: solution derived only from primitives+- `binding_residuals`: real limits that remain+- `kill_test`: cheapest check that would falsify the rebuild-## Combining with Other Models-- **Pre-Mortem**: After first principles, assume the rebuild failed and reverse-analyze why; mitigate before committing-- **Second-Order Thinking**: Consider downstream effects of your new approach+## Verification-## Key Questions-- "What do we know to be absolutely true?"-- "Why does everyone assume this constraint exists?"-- "What would we do if we had to solve this with 10% of the budget?"-- "If we were starting from scratch today, would we build it this way?"-- "What would a complete outsider try?"+- **Independence check:** every primitive must cite measurement, derivation, or primary requirement—not precedent alone.+- **No smuggled analogy:** if the rebuild still depends on "how others do it" without a primitive, strip it.+- **Constraint honesty:** verified physics/regulation must remain; do not wish them away.+- **Over-application guard:** if a standard solution is already optimal under verified constraints, do not rebuild for novelty.+- **Stop:** one decompose → classify → rebuild → kill-test pass; do not recurse without new evidence.diff --git a/skills/thinking-five-whys-plus/SKILL.md b/skills/thinking-five-whys-plus/SKILL.mdindex 6a5cc5a..441826e 100644--- a/skills/thinking-five-whys-plus/SKILL.md+++ b/skills/thinking-five-whys-plus/SKILL.md@@ -1,159 +1,55 @@---name: thinking-five-whys-plus-description: Use when a fault is localized to a component and the proximate cause is known but the systemic root is not — chain 'why' with evidence, a counterfactual cause test, and an explicit stop condition.+description: When a fault is localized and the proximate cause is known but the systemic root is not, chain evidence-linked whys with a counterfactual stop and a countermeasure.disable-model-invocation: true---# Five Whys Plus-## Overview--Five Whys Plus is a **post-localization root-cause analysis** skill. It assumes a fault has already been localized to a specific component or subsystem (by `thinking-scientific-method` or equivalent hypothesis-differential debugging). From that starting point — the proximate cause is known — it chains "why" questions backward to reach the systemic root cause, with explicit guards against the technique's known failure modes.--**Core Principle:** Never ask "why" without evidence for the answer. Chain backward from localized fault to actionable root cause, and stop only when the cause passes a counterfactual test: "Would the problem NOT have occurred if this cause were absent?"+Build an evidence-linked causal chain from a known proximate fault to an actionable systemic root, then prescribe a countermeasure that would have blocked it.## When to Use-- A fault has been localized to a specific component (use `thinking-scientific-method` first if you don't know which component is at fault)-- The proximate cause is known but the systemic cause isn't-- A problem keeps recurring despite previous fixes-- You need the root cause, not just the proximate one--Decision flow:--```-Fault localized to a specific component?- → No → Run thinking-scientific-method first to localize- → Yes → Proximate cause known?- → No → Gather evidence on proximate cause- → Yes → Is the root cause already obvious and verified?- → Yes → Fix directly; don't chain- → No → APPLY FIVE WHYS PLUS-```+- A fault is already localized to a component, path, or subsystem.+- The proximate cause is known, but recurrence or systemic root is not.+- Prior symptom-only fixes failed and the failure returned.+- You need prevention that addresses why the proximate cause was possible.## When NOT to Use-- **The fault is not yet localized.** If you don't know which component is at fault (multiple candidate causes), this is a localization problem. Use `thinking-scientific-method` (hypothesis-differential debugging) first, then run Five Whys on the cause it confirms.-- **The root cause is already obvious and verified.** Don't ritualistically chain "why" — just fix it.-- **The chain would be pure speculation with no evidence for the next "why".** Stop and gather evidence; don't speculate deeper (see Anti-Patterns: Speculation Dive).-- **The problem is a one-off with no systemic dimension.** If a single fat-finger error caused an outage and there's no process gap, don't force a chain.+- Fault is not localized or multiple candidate causes remain — discriminate first.+- Root is evidenced and actionable — fix it.+- No evidence can answer the next "why" — gather evidence.+- One-off error without a process, tooling, or design enabler.+- Selective defect needing IS/IS-NOT analysis.+- Forward failure forecasting before commitment.## Procedure-### Step 1: State the Problem Precisely--Document the localized fault with specific, measurable details:--```markdown-Problem Statement:-- What happened: [Specific observable symptom]-- Localized to: [Component/subsystem confirmed by scientific-method or equivalent]-- When: [Time range]-- Where: [Affected systems/users]-- Extent: [Scope and severity]-- Impact: [Business/user impact]-```--### Step 2: Build the Evidence Chain--For each "why," require evidence, confidence, and alternatives considered:--```markdown-Why #N: Why did [answer N-1] occur?-Answer: [Hypothesis]-Evidence: [Data, logs, metrics that support this — NOT speculation]-Confidence: High / Medium / Low-What else considered: [Alternative causes checked]-Ruled out because: [Evidence against alternatives]-```--**Evidence types:** Logs showing the event, metrics correlating with timeline, code showing the behavior, configuration proving the state, testimony from multiple independent sources.--**Branch on "what else?"** at each step — explicitly list and rule out alternative explanations before proceeding.--### Step 3: Apply the Counterfactual Cause Test--Before stopping, test the proposed root cause:--> **Counterfactual:** "Would the problem NOT have occurred if this cause were absent?"--If the answer is "no" or "maybe not" — you haven't reached the root cause. Keep going.--If the answer is "yes, the problem would not have occurred" — AND the cause passes the stop condition (Step 4) — you've found the root cause.--### Step 4: Check the Stop Condition--Only stop when ALL criteria are met:--| Criterion | Question |-|-----------|----------|-| Actionable | Can we take concrete action on this cause? |-| Controllable | Is this within our control to fix? |-| Fundamental | Would fixing this prevent recurrence? |-| Evidenced | Do we have evidence, not just speculation? |-| Counterfactual | Would the problem NOT have occurred if this cause were absent? |-| Not-blame | Is this a system/process issue, not just "someone messed up"? |--**Never stop at human error.** When you reach "someone made a mistake," ask "Why was the mistake possible?" — that's the systemic cause.--### Step 5: Apply Devil's Advocate Review--Before finalizing, challenge the conclusion:--```markdown-Counter-analysis:-1. What evidence contradicts this conclusion?-2. What other explanation fits the evidence equally well?-3. Would someone outside our team reach the same conclusion?-4. If we fix X, are we confident the problem won't recur?-5. Are we finding what we expected to find? (confirmation bias check)-```--### Step 6: Document and Recommend--Record the full chain and prescribe actions that address the root cause (not just the symptom).--## Output Contract--A completed Five Whys Plus analysis produces:--1. **Problem Statement** — specific, measurable, with localized component-2. **Evidence Chain** — each "why" step with answer, evidence, confidence, and alternatives ruled out-3. **Counterfactual Test Result** — explicit answer to "would the problem NOT have occurred?"-4. **Stop Condition Check** — all six criteria satisfied-5. **Devil's Advocate Review** — contradicting evidence, alternative explanations, bias check-6. **Root Cause(s)** — primary and any contributing factors-7. **Recommended Actions** — addressing root cause, with owner and timeline-8. **Verification Plan** — how to confirm the fix worked--## Anti-Patterns--| Anti-Pattern | Symptom | Correction |-|---|---|---|-| **Pre-localization application** | Running Five Whys when you don't know which component failed | Use `thinking-scientific-method` first to localize |-| **Premature stop** | Accepting the first plausible cause without the counterfactual test | Apply the counterfactual: "Would the problem NOT have occurred?" |-| **Blame stop** | Ending at "someone made a mistake" | Ask "Why was the mistake possible?" — find the systemic gap |-| **Speculation dive** | Answers become increasingly speculative without evidence | Stop and gather evidence; mark un-evidenced steps as hypotheses |-| **Circular why** | "Why A?" → "Because B" → "Why B?" → "Because A" | Introduce external evidence or a third factor to break the cycle |-| **Single-cause bias** | Assuming one root cause without branching | At each step, ask "what else could cause this?" and rule out alternatives |-| **Confirmation bias** | Finding the cause you expected to find | Devil's advocate review; ask "what evidence contradicts this?" |-| **Ritualistic chaining** | Asking five whys when one would do | Stop when the counterfactual test passes and the stop condition is met |--## Decision Output--When this skill is used as a workflow gate, produce:--```json-{- "decision_key": "root_cause_needed",- "answer": true,- "rationale": "one concise sentence"-}+1. **State the localized problem.** Record the observable symptom, confirmed component/path, time window, scope, and impact. Stop if localization is missing.+2. **Chain why with evidence.** Make the prior answer the new effect; propose a cause; cite logs, code, config, metrics, or witnesses; name and rule out alternatives. Stop on speculation.+3. **Branch before descending.** Ask what else could produce the same effect; keep every evidenced independent pathway. Treat the retained branches as a causal set rather than forcing one root.+4. **Counterfactually test each pathway and the set.** For each candidate ask, "Would removing this cause block this pathway?" Then ask, "Would removing the retained set block the observed failure?" Retain independently sufficient branches whose removal blocks their own pathway; do not reject them merely because another branch could still cause the failure.+5. **Enforce stop criteria per branch.** Stop a branch only when its cause is evidenced, controllable, actionable, recurrence-preventing, non-blame (not merely "someone erred"), and counterfactual-positive for that pathway. If it hits human error, ask why the error was possible.+6. **Prescribe a countermeasure for every retained root.** Name the systemic fix, owner-capable action, and how recurrence will be checked. Prefer removing enabling conditions over only patching the proximate symptom.+7. **Stop when verified or blocked.** Halt when stop criteria pass and a countermeasure is specified, or when further steps lack evidence. Do not pad by habit.++## Output++```text+Problem: <localized symptom + component>+Chain:+ Why1: <cause> | Evidence: <...> | Ruled out: <...>+ WhyN: ...+Causal set check: would removing all retained roots block the failure? yes/no+Roots:+ - <systemic cause> | Pathway counterfactual: <...>+ Countermeasure: <action that removes the enabling condition>+ Verification: <how to confirm this pathway is blocked>```-## Escalate to Full Skill When+## Verification-- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.+- Falsify the chain if any step lacks evidence, if alternatives were never considered, if a retained root does not pass its pathway counterfactual, or if the full causal set does not explain the failure.+- Stop applying this skill once the root is fixed and verified, or when the problem is still pre-localization.+- Over-application guard: skip a full chain for a single known one-line defect; do not end at blame; do not invent depth without data.diff --git a/skills/thinking-jobs-to-be-done/SKILL.md b/skills/thinking-jobs-to-be-done/SKILL.mdindex dce954b..5c0fcdd 100644--- a/skills/thinking-jobs-to-be-done/SKILL.md+++ b/skills/thinking-jobs-to-be-done/SKILL.md@@ -1,364 +1,56 @@---name: thinking-jobs-to-be-done-description: Deciding what to build or why a feature isn't adopted. Reframe from features to the "job" users hire the product for — the progress they seek — to prioritize and position.+description: Deciding what to build or why adoption fails. Recover the progress users hire a solution for under a circumstance, then rank by outcome and competing workarounds.disable-model-invocation: true---# Jobs to Be Done-## Overview--Jobs to Be Done (JTBD), developed by Clayton Christensen, reframes product thinking around the progress customers are trying to make in their lives. People don't buy products; they "hire" products to do a job. Understanding the job reveals what you're really competing against and what success looks like.--**Core Principle:** People don't want a quarter-inch drill. They don't even want a quarter-inch hole. They want to hang a picture of their family.+Core rule: users hire solutions for progress in a situation. Prioritize the job, forces, outcome, and competing workaround—not the feature list.## When to Use-- Product development and roadmapping-- Feature prioritization-- User research and interviews-- Competitive analysis-- Market positioning-- Understanding "surprising" competitors-- Debugging low adoption of features+- Choosing what to build, cut, or prioritize when user need is unclear+- Explaining low adoption of a shipped feature+- Mapping competition beyond same-category products (email, spreadsheets, manual work, non-consumption)+- Positioning or research when the progress sought is contested-Decision flow:--```-Building/improving a product?- → Do you understand the job users hire it for? → no → DISCOVER THE JOB- → Are features not being adopted? → yes → CHECK JOB ALIGNMENT- → Surprising competitors winning? → yes → IDENTIFY THEIR JOB-```+Requires at least one evidence source: PRD/spec, tickets, support/sales notes, analytics/logs, or current product behavior. If none exist, name the research gap; do not invent quotes.## When NOT to Use-- **Skip for execution and infrastructure problems.** If the task is "fix this bug," "make this query faster," "design this schema," "wire up CI" — the job is already known and the work is technical. JTBD adds nothing; route to debugging, theory-of-constraints, or architecture skills instead.-- **Skip when the job is already well-established** and the open question is purely *how* to build it, not *whether/why*.-- **Don't use it to retro-justify** a feature decision already made — that's framework theater. Use it before prioritization, to change the decision.--## Trigger Card--When deciding what to build or why a feature isn't adopted:--1. **Identify the job** — what progress is the user trying to make in a specific situation? Frame it as "When [situation], I want to [progress]."-2. **Map competing solutions** — what do users currently hire to get this job done? Include non-software alternatives.-3. **Find the underserved job dimension** — where do current solutions fall short? Build for that gap.--Skip if the job is already well-established and the question is purely how to build it. Don't use to retro-justify a decision already made.--## Understanding Jobs--### The Job Formula--```-When I [situation/trigger]-I want to [motivation/progress]-So I can [desired outcome/better state]-```--**Example:**-```-When I [finish a project milestone]-I want to [notify my team without disrupting their focus]-So I can [maintain team awareness while respecting their time]--Job: "Keep team informed asynchronously"-Not: "Use Slack" (that's a solution, not the job)-```--### Job Dimensions--Every job has multiple dimensions:--| Dimension | Question | Example (Project Management Tool) |-|-----------|----------|-----------------------------------|-| Functional | What task needs doing? | Track tasks, assign work, see progress |-| Emotional | How do I want to feel? | In control, not overwhelmed, confident |-| Social | How do I want to appear? | Organized, reliable, professional |--### Job Context--Jobs are situation-specific:--```-Same person, different jobs:--Morning: "Help me triage what needs attention today"- → Simple dashboard, prioritized list--Deep work: "Get out of my way, let me focus"- → Minimal notifications, distraction-free--End of day: "Help me hand off cleanly so I can disconnect"- → Status summary, async update capabilities-```--## The JTBD Discovery Process--### Step 1: Identify Job Performers--Who is "hiring" your product?--```markdown-## Job Performers--Primary: Engineering managers-- Hire product for: tracking team delivery-- Frequency: daily-- Stakes: team performance visible to leadership--Secondary: Individual engineers-- Hire product for: knowing what to work on next-- Frequency: multiple times daily-- Stakes: personal productivity and recognition-```--### Step 2: Derive the Job From Available Artifacts--You usually can't run live user interviews. Instead, **reconstruct the job from the evidence already in front of you** — the PRD, tickets, support transcripts, analytics, and the code itself. Read these and answer the interview questions *from the artifacts*:--```markdown-## JTBD Evidence Sources (in priority order)--1. PRD / spec / design doc- - What problem statement and "success" definition does it state?- - What user motivation is asserted (and is it backed by evidence)?--2. Tickets / issues / support threads / sales notes- - What trigger made the user reach for this? ("When I…")- - What did they try before / complain about? (the switch + the pain)- - Recurring phrasings = the real job, in the user's words--3. Usage / analytics / logs- - Where do users actually go, and where do they drop off?- - Which flows get repeated (real job) vs. abandoned (stated but not real)?--4. The code / config itself- - What does the feature actually let a user accomplish today?--Then answer, from that evidence — NOT from a hypothetical interview:-- Trigger: what situation makes them reach for this?-- Progress sought: what better state are they after?-- Switch: what were they using before, and what was wrong with it?-- Done signal: how do they know the job is finished?--If the artifacts genuinely don't answer these, name the gap explicitly and-flag that user research is needed — do NOT invent quotes or fabricate a-persona to fill it.-```--### Step 3: Analyze Competing Solutions--What else could do this job?--```markdown-## Competition for "Keep team informed on project status"--Direct competitors:-- Other project management tools (Asana, Monday.com)--Indirect competitors (same job, different solution):-- Email updates-- Slack messages-- Weekly standup meetings-- Walking over to someone's desk-- Spreadsheets--Non-consumption:-- Just hope everyone knows-- Let things fall through cracks--Insight: We're not competing with other tools—we're competing- with "just send an email" and "bring it up in standup"-```--### Step 4: Map Job Steps+- Pure execution once the job is known (bug fix, schema, CI, performance)—implement, do not rediscover the job+- Retro-justifying a decision already locked—framework theater+- Infrastructure/internal work with no end-user progress decision+- When the open question is only *how* to implement a settled job-Break the job into stages:+## Procedure-```markdown-## Job Map: "Deliver working software on time"+1. **Name performers and circumstance.** Who hires a solution, in what trigger situation, how often, and with what stakes. Prefer primary performers with daily high-stakes jobs over rare secondary ones.+2. **State the job, not the solution.** Frame: `When [circumstance], I want to [progress], so I can [outcome]`. Reject solution-shaped statements ("use Slack", "add a dashboard"). Capture functional, emotional, and social dimensions only if evidence supports them.+3. **Map forces and switch.** From artifacts: what push made the old way fail, what pull the new progress offers, what anxiety blocks switching, what habit keeps the status quo. List what they hire today—including non-software and non-consumption.+4. **Define done and outcome metrics.** How the performer knows the job is finished. List outcomes to minimize and maximize (time-to-progress, rework, confidence, surprises). Prefer frequent, poorly served jobs over rare, adequately worked-around ones.+5. **Score candidates against the job.** For each feature/priority: which job step it serves, performer share, frequency, quality of alternatives. Promote high-frequency underserved dimensions; demote polished work for well-served or low-stakes jobs.+6. **Strongest countercase.** State the best case that the stated job is wrong (wrong performer, vanity metric, process-is-the-job, competition is actually non-consumption). If the countercase fits evidence better, revise the job before recommending build.+7. **Stop.** Stop when one primary job statement, competing set, and outcome metrics are evidence-backed enough to change a build/position decision—or when artifacts cannot answer and research is the only next step.-1. Define: Understand what needs to be built- - Sub-jobs: Clarify requirements, estimate scope, identify risks+## Output-2. Plan: Organize how to build it- - Sub-jobs: Break into tasks, sequence work, allocate resources+Produce a JTBD decision artifact:-3. Execute: Build the thing- - Sub-jobs: Track progress, remove blockers, adjust course--4. Validate: Confirm it works- - Sub-jobs: Test, get feedback, verify acceptance criteria--5. Deliver: Get it to users- - Sub-jobs: Deploy, communicate, monitor--Pain points cluster around: #2 (scope conflicts) and #3 (blocker visibility)-```--### Step 5: Identify Outcome Metrics--What does success look like for the job?--```markdown-## Desired Outcomes: "Deliver working software on time"--Minimize:-- Time spent on status reporting-- Surprises in sprint reviews-- Blocked time waiting for others-- Rework from misunderstood requirements--Maximize:-- Confidence in delivery timeline-- Clarity on priorities-- Team awareness of blockers-- Early warning of issues-```--## JTBD Application Patterns--### Feature Prioritization--```markdown-## Feature Evaluation: Job Lens--Feature: Advanced reporting dashboard--Job it serves: "Demonstrate team value to leadership"-Job performers: ~10% of users (managers reporting up)-Job frequency: Monthly-Alternative solutions: Screenshots + slides (works fine)--Verdict: Low priority - job is infrequent, alternatives adequate-------Feature: Blocker visibility alerts--Job it serves: "Remove obstacles before they delay delivery"-Job performers: ~60% of users (anyone managing work)-Job frequency: Daily-Alternative solutions: Manual check-ins (time-consuming, often missed)--Verdict: High priority - frequent job, poor alternatives+```text+Job statement: When …, I want to …, so I can …+Performers: primary / secondary (frequency, stakes)+Forces: push / pull / anxiety / habit+Competition: direct | indirect | non-consumption+Outcomes: minimize […] ; maximize […]+Priority implication: build / cut / reposition — because job gap is …+Countercase checked: …+Evidence used / gaps: …```-### Competitive Analysis--```markdown-## Competitive Analysis via JTBD--Our product: Developer documentation tool--Traditional competitive frame:-- Competitors: ReadMe, GitBook, Docusaurus-- Differentiation: Features, pricing, integrations--JTBD competitive frame:-Job: "Help developers integrate our API successfully"--Competitors for this job:-- Our own code examples (strongest competitor!)-- Stack Overflow answers-- Competitor's documentation-- Direct support from our team-- Just trying stuff until it works--Insight: Improving code examples in docs might beat any feature work-```--### Low Adoption Debugging--```markdown-## Why isn't Feature X being used?--Feature: Automated weekly report generation-Usage: 3% of target users--JTBD analysis:-Expected job: "Create status reports efficiently"-Actual job: "Demonstrate my judgment and insight to leadership"--Problem: Automated reports don't show judgment- The PROCESS of creating reports is part of the job- They want to curate, not automate--Solution: Change from "generate report" to "draft report for review"- Support the curation job, don't replace it-```--## JTBD Template--```markdown-# Jobs to Be Done Analysis: [Product/Feature]--## Job Performers-| Performer | Hire For | Frequency | Stakes |-|-----------|----------|-----------|--------|-| | | | |--## Primary Job--When I [situation/trigger]-I want to [motivation/progress]-So I can [desired outcome]--### Job Dimensions-- Functional: [What task]-- Emotional: [How feel]-- Social: [How appear]--## Job Map-1. [Stage]: [Sub-jobs]-2. [Stage]: [Sub-jobs]-...--## Competing Solutions-| Competitor | How it does the job | Where it falls short |-|------------|---------------------|---------------------|-| | | |--## Desired Outcomes-Minimize:-- [Negative outcome]--Maximize:-- [Positive outcome]--## Implications-- Feature should: [Insight]-- Feature shouldn't: [Insight]-- Position against: [True competitor]-```--## Verification Checklist--- [ ] Identified job performers (who hires the product)-- [ ] Articulated job in When/Want/So format-- [ ] Considered functional, emotional, and social dimensions-- [ ] Mapped job steps-- [ ] Identified all competing solutions (including non-consumption)-- [ ] Defined measurable desired outcomes-- [ ] Features traced to specific jobs--## Key Questions--- "What job is the user hiring this product to do?"-- "What progress are they trying to make?"-- "What are they switching from? (Including 'nothing')"-- "What are they giving up by using this?"-- "What does success look like for this job?"-- "What surprising competitors exist for this job?"--## Christensen's Wisdom--"People don't want a quarter-inch drill bit. They want a quarter-inch hole."--Actually: They want to hang a picture. Actually: They want to enjoy their family photos. The deeper you go, the more insight you get into what "better" really means.--"The jobs that arise in people's lives are the fundamental causal driver behind everything."+## Verification-Products don't fail because of features. They fail because they don't help people make progress on jobs they care about. Understand the job, and the features become obvious.+- **Falsify:** If replacing the job statement with a feature name does not change the recommendation, you never left solution-space—rewrite the job from circumstance and progress.+- **Stop:** Do not keep mapping job steps once the ranking decision is stable.+- **Over-application guard:** Skip on pure implementation tasks and known jobs. Never fabricate user quotes or personas to fill missing evidence.diff --git a/skills/thinking-kepner-tregoe/SKILL.md b/skills/thinking-kepner-tregoe/SKILL.mdindex f210d06..bb359cb 100644--- a/skills/thinking-kepner-tregoe/SKILL.md+++ b/skills/thinking-kepner-tregoe/SKILL.md@@ -1,174 +1,44 @@---name: thinking-kepner-tregoe-description: Use when a defect is selective (some endpoints/regions/users/times affected, not all) and the cause is unclear — map what IS vs IS-NOT affected; the boundary contrast points at the root cause.+description: Use when a selective defect needs IS/IS-NOT difference analysis or a consequential option choice needs must/want weighting and adverse-consequence comparison.disable-model-invocation: true----# Kepner-Tregoe Problem Analysis+# Kepner-Tregoe Analysis-## Overview--Kepner-Tregoe (KT) is a structured root-cause method. **This skill focuses on Problem Analysis (PA) — the IS/IS-NOT boundary contrast — which is the high-value KT process for debugging.** When a defect is *selective* (some cases affected, others not), the boundary between IS and IS-NOT reveals the distinction that points at the root cause.--Decision Analysis (DA) and Potential Problem Analysis (PPA) are de-emphasized here. For pure decision-making among alternatives, use `thinking-opportunity-cost`. For risk anticipation before a change, use `thinking-pre-mortem`. Those skills are purpose-built for those tasks; KT's DA/PPA add overhead without unique mechanism.--Situation Analysis (SA) is retained as a lightweight triage step when facing multiple concerns, but it is not a required preamble — jump directly to PA when the problem is already clear.--**Core Principle:** The boundary between what IS affected and what IS NOT affected encodes the root cause. Find the distinction, find the cause.+**Core rule:** Diagnose deviations by testing causes against both IS and IS-NOT. Compare consequential choices by screening MUSTs, weighting WANTs, and exposing adverse consequences before selecting.## When to Use-- A defect is **selective**: affects some endpoints/regions/users/times but NOT others — there is an IS-vs-IS-NOT boundary to contrast-- The cause is unclear and not obvious from a stack trace, error message, or a single recent change-- Multiple possible causes exist and you need a systematic way to narrow them-- A complex situation has multiple concerns that need triage before diving in--Decision flow:--```-Defect is selective (not 100%)? → No → IS/IS-NOT has no signal; use direct debugging or thinking-systems- → Yes → Cause obvious from stack trace/recent change? → Yes → Just fix it- → No → APPLY KT PROBLEM ANALYSIS-```+- A defect affects some objects, places, times, or cohorts but not comparable others.+- Several candidate causes remain and the contrast boundary can discriminate them.+- A consequential option choice has explicit non-negotiables, competing objectives, and risks that should be compared consistently.## When NOT to Use-- **The failure is uniform** (affects 100% of requests/everything) — there is no IS-vs-IS-NOT boundary to contrast; PA gives no signal. Use `thinking-systems` or direct debugging.-- **The cause is already obvious** from a stack trace, error message, or a single recent change — just fix it; IS/IS-NOT is overhead here.-- **A quick hypothesis is cheaply testable** — test it (`thinking-scientific-method`) before building a full specification matrix.-- **Pure decision-making with no deviation to diagnose** — use `thinking-opportunity-cost`, not KT's Decision Analysis.-- **Risk assessment for a planned change** — use `thinking-pre-mortem`, not KT's Potential Problem Analysis.--## Trigger Card--When a defect is selective (some cases affected, others not) and the cause is unclear:--1. **State the problem precisely** — what is the deviation? In what object? Where/when does it occur?-2. **Map IS vs IS-NOT** — what IS affected vs what IS NOT, side by side. The boundary is the signal.-3. **Find the distinction** — what is different about the IS cases vs the IS-NOT cases? That distinction IS the cause.--Skip if the failure is uniform (100%) — there's no boundary to contrast; use direct debugging. If the cause is obvious from a stack trace or recent change, just fix it. For a single cheaply-testable hypothesis, test it first.+- A uniform failure has no meaningful IS-NOT contrast, or the cause is already confirmed.+- One cheap observation settles the cause or one option plainly dominates every requirement.+- The criteria cannot be made operational; clarify them before assigning weights.+- The task is forward failure discovery for a planned change rather than diagnosis or option selection.## Procedure-### Step 1 (optional): Situation Analysis — Triage Multiple Concerns--Only when facing several problems at once. List all concerns, separate them if compound, and prioritize by Timing/Impact/Trend:--| Concern | Timing | Impact | Trend | Priority |-|---------|--------|--------|-------|----------|-| API latency spike | Urgent | High | Worsening | P0 |-| Checkout errors | Soon | High | Stable | P1 |--For each concern, decide: Problem Analysis (PA), or delegate to another skill.--### Step 2: State the Problem Precisely--Describe the deviation from expected behavior with specificity:--```-"API response time increased from 200ms to 800ms for /checkout endpoint,-US-East only, starting Monday 9 AM, affecting ~30% of requests."-```--### Step 3: Build the IS/IS-NOT Matrix--Specify the problem across four dimensions. The power is in the **distinction** column — what's unique about the IS side?--| Dimension | IS (affected) | IS NOT (not affected) | Distinction |-|-----------|---------------|----------------------|-------------|-| **WHAT** — object | /checkout endpoint | /cart, /product, /user | Payment processing |-| **WHAT** — defect | 4x latency increase | Errors, timeouts, data corruption | Performance only |-| **WHERE** — location | Production US-East | EU, US-West, staging | Single region |-| **WHERE** — on object | Database query phase | Auth, validation, serialization | DB layer |-| **WHEN** — first seen | Monday 9:00 AM | Before Monday, after 6 PM | Business hours |-| **WHEN** — pattern | During checkout submit | During browsing, cart add | Write operations |-| **EXTENT** — how many | ~30% of requests | 100% of requests | Intermittent |-| **EXTENT** — trend | Stable since Tuesday | Getting worse | Plateaued |--### Step 4: Extract Distinctions--For each row, ask: "What's unique or distinctive about the IS side compared to the IS-NOT side?"--```-Distinctions:-- Only /checkout (payment processing) — not other endpoints-- Only US-East (specific DB replica) — not other regions-- Only during business hours (load-related?) — not off-peak-- Only ~30% of requests (specific query pattern?) — not all-- Started Monday 9 AM — what changed?-```--### Step 5: Identify Changes--What changed in, on, around, or about the distinctions near the first observation time?--```-Changes near Monday 9 AM:-- Payment provider SDK updated (Sunday night deploy)-- Database index rebuild scheduled (Sunday maintenance)-- New fraud detection rules enabled (Monday 8:45 AM)-```--### Step 6: Generate and Test Possible Causes--Each candidate cause must explain BOTH the IS and the IS-NOT:--| Possible Cause | Explains IS? | Explains IS-NOT? | Verdict |-|----------------|-------------|------------------|---------|-| Fraud rules adding DB queries | ✓ Only checkout, only write ops | ✓ Not other endpoints | **Pursue** |-| Payment SDK change | ✓ Only checkout | ✗ Would affect all regions | Ruled out |-| Index rebuild | ✓ DB layer | ✗ Would affect all queries | Ruled out |--### Step 7: Verify the True Cause--Design a test to confirm or rule out the leading candidate:--```-Verification for "Fraud detection rules":-1. Check: Rules enabled 8:45 AM (matches timeline)-2. Check: Rules only on checkout (matches scope)-3. Test: Disable rules in canary, measure latency-4. Examine: Query logs for fraud check queries-```--## Output Contract--A completed KT Problem Analysis produces:--1. **Problem Statement** — specific, measurable deviation-2. **IS/IS-NOT Matrix** — all four dimensions with distinctions extracted-3. **Changes List** — what changed near the distinctions around the first observation-4. **Cause Test Table** — each candidate tested against IS and IS-NOT-5. **Confirmed Root Cause** — with verification evidence-6. **If used, SA Triage** — prioritized concern list with assigned processes--## Anti-Patterns--| Anti-Pattern | Symptom | Correction |-|---|---|---|-| **KT on uniform failure** | Running PA when 100% of requests fail | No boundary to contrast; use direct debugging or `thinking-systems` |-| **Over-specifying the matrix** | Filling every IS/IS-NOT cell for a simple bug | Stop when the distinction is clear; don't ritualize |-| **DA/PPA sprawl** | Running full Decision Analysis or Potential Problem Analysis for routine tasks | Redirect to `thinking-opportunity-cost` (decisions) or `thinking-pre-mortem` (risks) |-| **Skipping cause testing** | Pursuing the first plausible cause without testing against IS-NOT | Every cause must explain BOTH IS and IS-NOT |-| **SA as mandatory preamble** | Running full Situation Analysis before every PA | Jump directly to PA when the problem is already clear |-| **Ignoring the distinction** | Building the matrix but not extracting what's unique about IS | The distinction IS the signal; without it, the matrix is just a table |+1. **Choose the mode.** Use Problem Analysis for a deviation from expected behavior; use Decision Analysis for a choice among options. State the target and do not mix scores with causal evidence.+2. **Frame the target.** For a deviation, record object, defect, location, time, extent, and impact. For a choice, state the decision, alternatives, constraints, and deadline.+3. **Problem Analysis — build IS/IS-NOT.** For WHAT, WHERE, WHEN, and EXTENT, record IS, closest comparable IS-NOT, and the distinction unique to the IS side. List changes near the first occurrence.+4. **Problem Analysis — difference-test causes.** Generate candidates from distinctions and changes. A candidate survives only if it explains both IS and IS-NOT. Run the cheapest discriminating check; stop when one verified cause explains the full boundary.+5. **Decision Analysis — screen and score.** Define pass/fail MUSTs and weighted WANTs (1–10 importance) before scoring. Eliminate options that fail any MUST; score survivors against each WANT and calculate weighted totals using the same scale.+6. **Decision Analysis — test downside and sensitivity.** For leading options, list adverse consequences with probability × impact and identify assumptions or weight changes that would reverse the ranking. Do not let a high total conceal a ruinous failure mode.+7. **Decide or expose the gap.** Return the verified cause or highest-ranked acceptable option, the evidence/score behind it, residual risk, and next verification. If no cause verifies or no option passes MUSTs, return open/none rather than force a winner.-## Decision Output+## Output-When this skill is used as a workflow gate, produce:+Return one mode-specific decision artifact:-```json-{- "decision_key": "selective_defect",- "answer": true,- "rationale": "one concise sentence"-}-```+- **Problem Analysis:** problem statement; IS/IS-NOT matrix with distinctions; nearby changes; candidate-vs-boundary tests; confirmed cause or next discriminating check.+- **Decision Analysis:** decision statement; alternatives; MUST screen; weighted WANT matrix; adverse-consequence table; sensitivity/reversal conditions; selected option or none.-## Escalate to Full Skill When+## Verification-- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.+- **Falsify/stop:** reject a cause that cannot explain both sides of the boundary. Reject a choice if it fails a MUST, depends on inconsistent scoring, or loses under a plausible weight/risk change that was hidden.+- **Over-application guard:** skip the full matrix for an obvious cause, trivial choice, or one-shot check. Stop when the cause verifies or the option is robust enough for the stated stakes; extra rows are ceremony.diff --git a/skills/thinking-lindy-effect/SKILL.md b/skills/thinking-lindy-effect/SKILL.mdindex bb859fd..f8a0da3 100644--- a/skills/thinking-lindy-effect/SKILL.md+++ b/skills/thinking-lindy-effect/SKILL.md@@ -1,332 +1,50 @@---name: thinking-lindy-effect-description: Choosing a technology/framework/dependency and longevity matters. Use the heuristic that for non-perishable things, expected remaining life is proportional to current age — favor the proven.+description: Use when longevity of a non-perishable option matters. Treat survival duration as a remaining-life prior, then check domain drift before favoring the proven.disable-model-invocation: true----# The Lindy Effect+# Lindy Effect-## Overview--The Lindy Effect, named after a New York deli where comedians discussed career longevity, states that for non-perishable things (ideas, technologies, books, practices), future life expectancy is proportional to current age. If a technology has survived 20 years, it's likely to survive another 20. If it's survived 2 years, expect another 2.--**Core Principle:** Time is the ultimate test. Old things that still exist have proven their value; new things are still being tested.+For non-perishable ideas, technologies, and practices, expected remaining life scales with current survival age. Prefer proven survivors unless the new option clears a burden of proof or the domain has drifted.## When to Use-- Technology selection (languages, frameworks, databases)-- Evaluating libraries and dependencies-- Predicting tool longevity-- Career skill investment-- Methodology and practice adoption-- Architectural patterns-- Vendor/product selection--Decision flow:--```-Choosing between options?- → Are some options significantly older? → yes → APPLY LINDY HEURISTIC- → Is longevity important for this choice? → yes → FAVOR OLDER, PROVEN OPTIONS- → Is the new thing solving a new problem? → yes → NEW MIGHT BE APPROPRIATE-```+- Choosing languages, frameworks, databases, protocols, patterns, or dependencies where long-term survival matters.+- Skill or architecture bets whose value depends on lasting relevance.+- Ranking options when ages differ materially and the choice outlives a short experiment.## When NOT to Use-- **Not for perishable things** — specific SaaS vendors, individual products, hardware, fashion-driven choices. Age predicts survival only for non-perishable ideas/technologies/practices.-- **Not when a paradigm shift is underway.** Lindy holds *within* a stable paradigm; a discontinuity (cloud, LLMs) can make the old thing's age irrelevant. If the ground is moving, age is not evidence.-- **Not as a tiebreaker for short-lived/experimental work** where longevity doesn't matter — pick on fit, not age.-- **Don't read Lindy as "old = best."** Survival predicts further survival; it does not say the old option is optimal for a *new* requirement. The burden of proof is on the new — but the new can meet it.--## Trigger Card--When choosing a technology, framework, or dependency and longevity matters:--1. **Check the age** — how long has this option survived? For non-perishable things (ideas, technologies, institutions), expected remaining life is proportional to current age.-2. **Verify it's non-perishable** — is the option subject to rapid obsolescence (JS framework) or cumulative knowledge (database, language, protocol)? Lindy only applies to the latter.-3. **Favor the proven over the new** — let the new option carry the burden of proof. Pick the older option unless the new one demonstrates a clear, necessary advantage.--Skip for short-lived/experimental work where longevity doesn't matter. "Old" isn't automatically "best" — survival predicts further survival, not optimality for a new requirement.--## Understanding Lindy--### What Lindy Applies To (Non-Perishable)--- **Technologies:** Languages, databases, protocols-- **Ideas:** Mathematical concepts, design patterns, algorithms-- **Practices:** Testing, version control, code review-- **Books:** Technical references, foundational texts-- **Institutions:** Standards bodies, open source foundations--### What Lindy Doesn't Apply To (Perishable)--- **Hardware:** Physical degradation limits life-- **Individual careers:** Humans have biological limits-- **Specific products:** Companies can fail, be acquired-- **Fashion-driven choices:** Popularity cycles aren't Lindy--### The Math--```-Expected remaining life ≈ Current age--If survived 10 years → Expected to survive another ~10-If survived 50 years → Expected to survive another ~50-If survived 2 years → Expected to survive another ~2-```--## Applying Lindy to Technology--### Programming Languages--| Language | Age | Lindy Expectation | Evidence |-|----------|-----|-------------------|----------|-| C | 50+ years | 50+ more years | Powers OS, embedded, will outlive us |-| Java | 30 years | 30+ more years | Enterprise backbone, not going away |-| Python | 30 years | 30+ more years | Scientific computing, ML, scripting |-| Go | 15 years | 15+ more years | Proven for infra, backed by Google |-| Rust | 10 years | 10+ more years | Growing, solving real problems |-| New hotness | 2 years | 2-5 years | Unproven, might disappear |--### Databases+- Perishable targets: specific SaaS vendors, hardware, fashion, or products that can shut down regardless of concept age.+- Active paradigm discontinuity where age in the old regime is weak evidence.+- Throwaway work where longevity is irrelevant — optimize for fit and speed.+- Treating "older" as "optimal for a new requirement"; survival predicts further survival, not best fit.-| Database | Age | Lindy Expectation | Notes |-|----------|-----|-------------------|-------|-| PostgreSQL | 35+ years | 35+ more years | SQL is 50+ years old |-| MySQL | 30 years | 30+ more years | LAMP stack foundation |-| MongoDB | 15 years | 15+ more years | Survived NoSQL hype cycle |-| CockroachDB | 10 years | 10+ more years | NewSQL, still proving itself |-| Latest DB | 2 years | Unknown | High risk for production use |+## Procedure-### Frameworks+1. **Confirm non-perishable scope.** Concept/tech/practice continues; vendor/device → score fit/risk only and stop.+2. **Record survival age.** First significant production use and current age (ecosystem-relative if the ecosystem is young).+3. **Form the Lindy prior.** Expected remaining life ≈ current age; mark confidence from age and continued active use.+4. **Run domain-drift checks.** Problem class changed? Paradigm shift invalidating old assumptions? New option uniquely closes a real present gap?+5. **Assign burden of proof.** Default to the older adequate option. Accept newer only for a stated necessary advantage the Lindy option cannot meet at acceptable cost.+6. **Decide with residual risk.** Pick primary; note impact if the prior is wrong and any fallback.-| Framework | Age | Lindy Expectation | Notes |-|-----------|-----|-------------------|-------|-| React | 10+ years | 10+ more years | Dominant, ecosystem mature |-| Rails | 20 years | 20+ more years | Productive, battle-tested |-| Django | 18 years | 18+ more years | Python's Rails, stable |-| Express | 14 years | 14+ more years | Node.js standard |-| Newest framework | 1 year | 1-3 years | Likely to be replaced |+**Stop condition:** Primary chosen with age prior, drift check, and why new did or did not meet burden of proof.-### Patterns and Practices+## Output-| Practice | Age | Lindy Expectation |-|----------|-----|-------------------|-| Version control | 50+ years | Permanent |-| Automated testing | 40+ years | Permanent |-| Code review | 40+ years | Permanent |-| Agile (core ideas) | 30+ years | Very long |-| CI/CD | 20+ years | Very long |-| Microservices | 10 years | Moderate |-| Latest methodology | 2 years | Unknown |--## The Lindy Decision Process--### Step 1: Assess Age of Options--For each option, determine how long it's been in significant use:--```markdown-Options for message queue:-- RabbitMQ: 17 years (2007)-- Kafka: 13 years (2011)-- NATS: 11 years (2013)-- NewQueue: 2 years (2022)-```--### Step 2: Apply Lindy Heuristic--```markdown-Lindy expectation:-- RabbitMQ: 17+ more years-- Kafka: 13+ more years-- NATS: 11+ more years-- NewQueue: 2-5 more years (high uncertainty)-```--### Step 3: Consider Context--Lindy is a heuristic, not a law. Consider:--```markdown-When older is better:-- Long-term production systems-- Core infrastructure-- Skills investment-- Dependencies with many consumers--When newer might be appropriate:-- Solving genuinely new problems-- Performance-critical new workloads-- Specific capability older tools lack-- Temporary/experimental projects-```--### Step 4: Calibrate by Ecosystem Age--A 5-year-old tool in a 5-year-old ecosystem is "old" for that ecosystem:--```markdown-Kubernetes ecosystem: ~10 years old-- Helm: 8 years → "Lindy" for K8s-- ArgoCD: 7 years → "Lindy" for K8s-- New tool: 1 year → Not Lindy yet--Node.js ecosystem: 14 years old-- Express: 14 years → Maximally Lindy for Node-- Fastify: 8 years → Moderately Lindy-- New framework: 1 year → Unproven-```--## Lindy Failure Modes--### Survivor Bias Confusion--Lindy predicts future survival given current survival. It doesn't say all old things are good:--```-Correct: "COBOL has survived 60 years, will survive 60 more"-Incorrect: "COBOL is the best choice for new projects"-(Survival ≠ Optimal for new use cases)+```text+Options: <name, age, Lindy prior>+Drift: stable | discontinuous — <note>+Burden: on new | waived because <gap>+Decision: <primary>+Rejected: <one line each>+If Lindy wrong: <impact + fallback>```-### Ignoring Paradigm Shifts--Lindy works within stable paradigms. Paradigm shifts create discontinuities:--```-- Pre-cloud: On-premise databases were Lindy-- Post-cloud: Managed databases emerged-- But: Core database concepts (SQL, ACID) remained Lindy-```--### Confusing Perishable and Non-Perishable--```-Perishable: Specific SaaS vendor → Can be acquired, pivoted, shut down-Non-perishable: The practice the vendor enables → Likely Lindy--E.g., Heroku might change, but "platform-as-a-service" concept is Lindy-```--## Lindy in Practice--### Technology Selection--```markdown-## Lindy Analysis: Database for New Product--Requirements: ACID transactions, relational data, long-term stability--Options:-| Option | Age | Lindy Score | Fit for Requirements |-|--------|-----|-------------|---------------------|-| PostgreSQL | 35 years | Excellent | Excellent |-| MySQL | 30 years | Excellent | Good |-| CockroachDB | 10 years | Good | Excellent |-| PlanetScale | 5 years | Moderate | Good |--Decision: PostgreSQL (Lindy + excellent fit)- Consider CockroachDB for scale needs (worth the Lindy tax)-```--### Skill Investment--```markdown-## Lindy Career Analysis--Which skills to invest in?--Lindy skills (high confidence in future value):-- SQL (50+ years)-- Unix/Linux (50+ years)-- Git/version control (40+ years)-- Testing fundamentals (40+ years)--Moderate Lindy (good bet):-- Python (30+ years)-- JavaScript (28 years)-- Docker/containers (12 years)-- Kubernetes (10 years)--Low Lindy (speculative):-- Latest framework (1-3 years)-- Trending language (variable)--Investment strategy: Core in Lindy skills, experiments in new-```--### Dependency Selection--```markdown-## Lindy Dependency Audit--For each critical dependency:-| Dependency | Age | Last Update | Contributors | Lindy Risk |-|------------|-----|-------------|--------------|------------|-| lodash | 12 years | Active | Many | Low |-| express | 14 years | Active | Many | Low |-| new-lib | 1 year | Active | 3 | High |--Policy: Critical path requires 5+ year Lindy- Experimental features can use newer dependencies-```--## Lindy Template--```markdown-# Lindy Analysis: [Decision]--## Options with Age-| Option | First Stable | Age | Category |-|--------|--------------|-----|----------|-| | | | Proven/Moderate/New |--## Lindy Expectations-| Option | Expected Longevity | Confidence |-|--------|-------------------|------------|-| | | High/Medium/Low |--## Context Adjustments-- Is this a new problem domain? [Yes/No]-- Is the ecosystem mature? [Yes/No]-- Do newer options solve critical gaps? [Yes/No]--## Lindy-Adjusted Decision-Primary choice: [Option with best Lindy + fit]-Rationale: [Why this balances Lindy with requirements]--## Risk if Lindy is Wrong-[What happens if the non-Lindy option outlasts expectations?]-```--## Verification Checklist--- [ ] Identified age of all options-- [ ] Applied Lindy heuristic to estimate longevity-- [ ] Distinguished perishable from non-perishable-- [ ] Considered paradigm shift possibilities-- [ ] Checked if newer options solve genuinely new problems-- [ ] Balanced Lindy with specific requirements-- [ ] Documented reasoning--## Key Questions--- "How long has this technology/practice existed?"-- "Is this Lindy (non-perishable) or perishable?"-- "What's the Lindy expectation for each option?"-- "Is the newer option solving a problem that didn't exist before?"-- "Am I betting against Lindy? If so, why?"-- "What's proven vs. what's hyped?"--## Taleb's Wisdom--"If a book has been in print for forty years, I can expect it to be in print for another forty years. But, and that is the main difference, if it survives another decade, then it will be expected to be in print another fifty years."--"Technology is at its best when it is invisible."--The technologies you don't think about—TCP/IP, Unix, SQL—are the most Lindy. The technologies that demand constant attention are still being tested.--"The old is to be respected; the new is to be examined."+## Verification-Lindy doesn't mean reject the new. It means: the burden of proof is on the new. New must demonstrate value; old has already demonstrated survival.+- Falsify if age was used without non-perishable scope, or a paradigm shift was ignored.+- Falsify if a new option was rejected solely for youth despite a documented necessary gap.+- Over-application guard: skip throwaway prototypes and perishable vendor bets where fit and exit cost dominate.diff --git a/skills/thinking-map-territory/SKILL.md b/skills/thinking-map-territory/SKILL.mdindex 81bc5a1..165f891 100644--- a/skills/thinking-map-territory/SKILL.md+++ b/skills/thinking-map-territory/SKILL.md@@ -1,131 +1,53 @@---name: thinking-map-territory-description: Use when behavior contradicts the docs, tests, diagram, or your assumption — stop reasoning from the description, go verify the running code or data directly, and let the territory overrule the map.+description: When a claim, doc, test, metric, or assumption conflicts with observed behavior, stop theorizing from the map and verify the live code or data; let territory overrule.disable-model-invocation: true----# Map-Territory Thinking+# Map Territory-## Overview--"The map is not the territory." Every representation — doc, test, diagram, comment, mental model — is a simplified view of reality. When behavior contradicts the description, the fastest path to resolution is to **stop reasoning from the map and go verify the territory directly**: read the actual code path, run it with instrumentation, query the real data, reproduce the behavior.--A bug *is* a map–territory mismatch. The README says X, the function name implies Y, the comment claims Z — but the code does something else. The skill is scoped to this specific agent-relevant domain: docs/tests/mental-model vs runtime/code reality. It is NOT a general philosophical framework.--**Core Principle:** The running code and actual data are the territory. The README, the test, the diagram, the comment, and your assumption are all maps. When the two disagree, the territory wins — go look at it before building a theory on top of the map.+Docs, tests, diagrams, metrics, comments, and mental models are maps. Running code and actual data are the territory. When they disagree, verify territory and update the model — never force reality to match the description.## When to Use-- **Debugging:** behavior contradicts the docs, a test's expectation, a comment, a diagram, or "it should work" — go read/trace the real code path-- A claim about the system comes from a doc, a comment, or recall rather than from the current code or data-- Tests pass but the behavior is wrong (the test is a map of *expected* behavior, not all behavior)-- You're about to theorize about *why* something happens instead of looking at *what* happens--Decision flow:--```-Behavior ≠ what the doc/test/diagram/assumption says?- → Yes → GO VERIFY THE REAL CODE/DATA, then theorize- → No → Fine, but confirm before high-stakes action--Building a theory on a description rather than the thing itself?- → Yes → CHECK THE TERRITORY FIRST-```+- Observed behavior contradicts a doc, test expectation, diagram, comment, dashboard, or prior assumption.+- A claim about the system rests on a secondary source rather than current code or data.+- Tests pass but production or manual behavior is wrong.+- You are about to theorize why something happens before inspecting what happens.+- A decision depends on whether a model, schema, or metric is still current.## When NOT to Use-- **The map IS the artifact you're being asked to change.** When editing the docs, the spec, or the diagram itself, that *is* the territory for that task — don't spiral into verifying everything.-- **You've already verified against the territory this session.** Re-checking the same code path repeatedly is wasted budget; trust the verification you just did.-- **The map is authoritative and current** (e.g., a generated type, a schema the code is derived from). Don't second-guess a source of truth.-- **The mismatch doesn't affect the decision.** If the abstraction leaks in a way that can't change your action, note it and move on.+- The map is the artifact you are asked to edit (doc, diagram, spec) — that artifact is the task territory.+- Same path already verified this session — reuse that observation.+- Map is authoritative and generative (codegen types, derived schema) with no claimed drift.+- The mismatch cannot change the decision — note and move on.+- Competing causal hypotheses after territory is confirmed — switch to scientific-method.+- Security exploit construction — use red-team; this skill only settles model-versus-observation.## Procedure-### Step 1: Name the Map--When something is surprising, explicitly identify the *representation* the surprise is measured against:--```-Surprise: "This function should return the user, but the page is blank."--The map: the function name + a comment saying it returns the user-The territory: what the function body actually does on this input-```--Be specific about which map you were trusting — the doc, the test name, the variable name, the comment, the architectural diagram, or your own assumption.--### Step 2: Go to the Territory — Agent-Executable Verification--Don't reason about what the code *probably* does. Execute these verification actions:--1. **Read the actual function body and the path that runs** — not the summary of it, not the docstring, the actual code-2. **Run it / add a log / inspect the value** — instead of predicting the output from the signature-3. **Query the real data** — instead of trusting the schema's intent-4. **Reproduce the behavior** — instead of reasoning from the bug report's wording-5. **Check what changed recently** — `git log`, the deploy, the config change--Only theorize AFTER you've looked at the territory.--### Step 3: Let the Territory Overrule the Map--If the code does X and the doc says Y, the code is what ships and what breaks. Update your theory to match the territory — never the reverse.--```-Map: "The cache makes reads fast"-Territory (measured): 30% hit rate; most reads hit the DB-Conclusion: the mental model was wrong — fix the model, then the caching-```--### Step 4: Note What No Map Covers--Once verified, name the aspects no available map shows — that's where the next bug hides:--```-Have: the happy-path code, the passing tests-Don't have a map of: the error/timeout paths, contention behavior, the null case-Action: look at those before declaring it correct-```--### Step 5: Stop When Verified--Don't re-verify something you already confirmed this session. Trust the verification you just did and move on.--## Output Contract--A completed Map-Territory verification produces:--1. **Map Named** — which representation (doc/test/comment/assumption) was trusted-2. **Territory Verified** — what the actual code/data showed (specific observation, not interpretation)-3. **Delta Documented** — the gap between map and territory-4. **Model Updated** — the corrected understanding after territory observation-5. **Uncovered Aspects Noted** — what no available map covers (likely next bug site)--## Anti-Patterns--| Anti-Pattern | Symptom | Correction |-|---|---|---|-| **Theorizing before verifying** | Reasoning about what code *probably* does without looking | Go to the territory first — read/run/query/reproduce |-| **Trusting the map over the territory** | "The doc says X, so the code must be wrong" when the code is what ships | The territory wins; update the map |-| **Re-verifying known territory** | Checking the same code path repeatedly in one session | Trust what you just verified; note it and move on |-| **Map-territory on artifacts being edited** | Spiral into verification when the doc/diagram IS the thing you're changing | The edited artifact IS the territory for that task |-| **Over-applying to authoritative maps** | Second-guessing generated types or code-derived schemas | Authoritative/generated maps ARE the territory |-| **Verifying irrelevant mismatches** | Noting a doc-code gap that can't affect the decision | If it doesn't change your action, note it and move on |--## Decision Output+1. **Name the map.** State the exact representation trusted: which doc, test, metric, diagram, comment, or assumption. Quote the claim, not a paraphrase.+2. **Name the territory check.** Specify the observation that would prove or disprove the claim: code path, runtime value, query, reproduction, recent change, or live metric.+3. **Verify source and freshness.** Confirm origin of the map (author, generator, last update) and whether it could be stale relative to deploy, config, or data change. Prefer primary current sources over summaries.+4. **Observe the territory.** Read the real code path, run or instrument it, query real data, or reproduce the behavior. Do not predict from signatures or names alone.+5. **Record the delta and update.** If territory contradicts the map, territory wins for shipped behavior. Document the gap, revise the model, then decide the fix (code, map, or both). Note unmapped paths — likely next failure sites.+6. **Stop when settled.** Once the claim is confirmed or overturned with a concrete observation, stop re-checking the same path.-When this skill is used as a workflow gate, produce:+## Output-```json-{- "decision_key": "map_contradicts_territory",- "answer": true,- "rationale": "one concise sentence"-}+```text+Map: <claim + source + freshness>+Territory check: <what was inspected/run/queried>+Observation: <concrete result, not interpretation>+Delta: <aligned | map wrong | territory incomplete>+Updated model: <corrected understanding>+Action: <fix code | update map | no decision impact>+Uncovered: <paths no map covers>```-## Escalate to Full Skill When+## Verification-- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.+- Falsify if you reasoned from the map without a territory observation, trusted a stale secondary source, or forced code to match a wrong doc without checking either.+- Stop when the contradiction is resolved or irrelevant to the decision.+- Over-application guard: do not re-verify the whole system when editing the map, when the map is the generative source of truth, or when the gap cannot change the next action.diff --git a/skills/thinking-margin-of-safety/SKILL.md b/skills/thinking-margin-of-safety/SKILL.mdindex 2ba6085..a1aeb93 100644--- a/skills/thinking-margin-of-safety/SKILL.md+++ b/skills/thinking-margin-of-safety/SKILL.md@@ -1,350 +1,56 @@---name: thinking-margin-of-safety-description: Use when provisioning capacity, setting a timeout/limit, or committing to an estimate under uncertainty. Size a buffer to the cost of being wrong instead of optimizing to the edge.+description: When provisioning, setting a limit, or committing an estimate under uncertainty, size a buffer to residual error and the cost of breach—not to the optimistic edge.disable-model-invocation: true---# Margin of Safety-## Overview--Margin of Safety, borrowed from Benjamin Graham's investment philosophy and structural engineering, is the practice of building in buffers to account for unknown unknowns. In a world of uncertainty, systems optimized to the edge are brittle. Robust systems have slack, reserves, and room for error.--**Core Principle:** Build in buffers. The world is uncertain. Systems without margin fail when stressed.+Core rule: commit a buffered number when residual uncertainty plus breach cost can cause ruin or costly failure. Margin covers estimation error; it is not free slack for laziness.## When to Use-- Capacity planning-- Deadline and timeline estimation-- Architecture design-- Resource allocation-- Risk management-- SLA commitments-- Infrastructure provisioning-- Any commitment under uncertainty--Decision flow:--```-Provisioning, setting a limit, or committing an estimate?- → Is there real uncertainty AND a cost to under-provisioning? → yes → SIZE A BUFFER TO THE FAILURE COST- → Are you optimizing to the edge to save a little? → yes → ADD SLACK unless the breach is cheap- → Estimate could be 2x off? → factor that into the buffer-```+- Capacity, timeouts, pool sizes, queue depths, storage, or SLA numbers under load uncertainty+- Timeline or budget commitments where underestimation is costly+- Architecture headroom when scaling or recovery is slow+- Any public or production commitment where being wrong has asymmetric downside## When NOT to Use-- **Cheap, instant, and reversible to adjust.** If under-provisioning is detected immediately and fixed at near-zero cost (auto-scaling that reacts in seconds, a limit you can bump live), a fat static buffer just wastes resources — let the system absorb it.-- **The buffer's cost exceeds the expected breach cost.** Margin isn't free; when `cost(buffer) > probability(breach) × cost(breach)`, the buffer is the wrong call. Right-size, don't max out.-- **You can eliminate the uncertainty instead of padding it.** If the real number is measurable or lookup-able, get it — a measured value beats a padded guess. (Margin covers *residual* uncertainty, not laziness about checking.)-- **This is a stopping-criterion problem, not a buffer problem.** If the question is "how long do I keep searching/optimizing?", that's `thinking-bounded-rationality` (set a good-enough threshold), not margin. *Margin sizes the buffer on a number; bounded-rationality decides when to stop looking for the number.*--## Trigger Card--When provisioning capacity, setting a limit, or committing to an estimate under uncertainty:--1. **Estimate the base number** — what's your best estimate without padding?-2. **Assess the cost of being wrong** — if you undershoot, what breaks and how badly? The higher the cost, the larger the margin.-3. **Size the buffer to the uncertainty** — add enough margin that the worst plausible miss doesn't cause a catastrophe. Commit with the buffered number.--If you can eliminate the uncertainty by measuring or looking up the real number, do that instead — a measured value beats a padded guess. If the question is "when do I stop searching?", that's `thinking-bounded-rationality`, not margin.--## The Margin of Safety Framework--### Step 1: Identify Your Estimate--What's your best guess for the requirement?--```-Estimate: Need 100 requests/second capacity-Estimate: Project will take 6 weeks-Estimate: Need 500GB storage for year 1-```--### Step 2: Quantify Your Uncertainty--How confident are you, and what could you be missing?--```markdown-## Uncertainty Analysis--| Factor | Your Estimate | Uncertainty | Possible Range |-|--------|---------------|-------------|----------------|-| Traffic | 100 RPS | ±50% | 50-150 RPS |-| Spike multiplier | 3x | ±100% | 1.5x-6x |-| Growth rate | 20%/year | ±50% | 10-30%/year |-| Unknown unknowns | - | +50-100% | - |-```--### Step 3: Calculate Required Margin--Different contexts need different margins:--| Context | Typical Margin | Rationale |-|---------|---------------|-----------|-| Capacity planning | 2-3x | Traffic spikes unpredictable |-| Time estimation | 1.5-2x | Everything takes longer |-| Infrastructure | 2x headroom | Scaling takes time |-| SLA commitment | 1.5x buffer | Reputation at stake |-| New/unknown domain | 2-3x | High uncertainty |-| Well-understood domain | 1.3-1.5x | Lower uncertainty |--### Step 4: Apply Margin--```-Base estimate: 100 RPS-Margin: 2x (moderate uncertainty, spikes possible)-Provision: 200 RPS capacity--Base estimate: 6 weeks-Margin: 1.5x (experienced team, some unknowns)-Commit: 9 weeks-```--### Step 5: Monitor and Adjust--Track actuals against estimates to calibrate future margins:--```markdown-## Calibration Log--| Estimate | Margin Applied | Actual | Margin Accuracy |-|----------|----------------|--------|-----------------|-| 100 RPS | 2x (200) | 180 | Adequate |-| 6 weeks | 1.5x (9) | 10 weeks | Insufficient |-| 500 GB | 2x (1TB) | 400 GB | Excessive |--Insight: Time estimates need higher margin; storage was overprovisioned-```--## Margin Patterns--### Capacity Margin--```markdown-## Capacity Planning with Margin--Base load: 1,000 RPS-Peak multiplier: 3x (historical)-Margin for unknowns: 1.5x-Margin for growth: 1.3x (6 months runway)--Required capacity: 1,000 × 3 × 1.5 × 1.3 = 5,850 RPS-Round up: 6,000 RPS--Rationale: Can handle 6x normal load, or 4x peak, or growth + peak-```--### Time Margin--```markdown-## Project Estimation with Margin--Task estimates:-- Feature A: 2 weeks-- Feature B: 3 weeks-- Integration: 1 week-- Testing: 1 week-Base total: 7 weeks--Adjustments:-- Optimistic bias: +30%-- Unknowns: +20%-- Dependencies: +15%-Margin total: 1.65x--Commitment: 7 × 1.65 = 11.5 → 12 weeks--Rule of thumb: Hofstadter's Law - "It always takes longer than you expect,- even when you take into account Hofstadter's Law."-```--### Financial Margin--```markdown-## Budget with Margin--Infrastructure estimate:-- Compute: $5,000/month-- Storage: $2,000/month-- Network: $1,000/month-Base: $8,000/month--Margin considerations:-- Traffic growth: +25%-- Unplanned incidents: +15%-- New features: +20%--Budget request: $8,000 × 1.6 = $12,800/month-Actual budget: $13,000/month (round up)-```--### Design Margin--```markdown-## Architectural Margin--Connection pool:-- Normal usage: 50 connections-- Peak: 100 connections-- Margin: 2x peak-- Configure: 200 connections--Queue depth:-- Normal processing: 1,000 messages-- Burst: 10,000 messages-- Margin: 2x burst-- Configure: 20,000 max depth--Timeout:-- P99 latency: 500ms-- Margin: 2x-- Set timeout: 1000ms-```--## When to Use Different Margins--### High Margin (2-3x)--- New domain or technology-- Critical system (failure is very costly)-- External dependencies (unpredictable)-- Customer-facing SLAs-- Irreversible commitments--### Moderate Margin (1.5-2x)--- Familiar domain with some unknowns-- Internal systems (can recover from issues)-- Controlled dependencies-- Reversible decisions--### Low Margin (1.2-1.5x)--- Well-understood domain-- Historical data available-- Low consequence of being wrong-- Short time horizons-- Easy to adjust--### No Margin (Optimize to Edge)--Almost never appropriate for:-- Public commitments-- Production systems-- External dependencies--Acceptable for:-- Internal experiments-- Temporary systems-- Cost optimization after proving stable--## The Cost of Margin--Margin isn't free. Balance:--```markdown-## Margin Cost-Benefit--High margin:-+ Handles unexpected loads-+ Reduces stress/heroics-+ Enables growth without emergency scaling-- Higher infrastructure cost-- Potentially wasted resources--Low margin:-+ Lower cost-+ Efficient resource use-- Risk of outages-- Constant firefighting-- Technical debt from quick fixes--Sweet spot: Margin where cost of buffer < expected cost of margin-breach × probability-```--## Margin of Safety Template--```markdown-# Margin of Safety Analysis: [Context]--## Base Estimate-What: [What you're estimating]-Estimate: [Your point estimate]-Confidence: [How confident you are]--## Uncertainty Factors-| Factor | Impact | Probability | Adjustment |-|--------|--------|-------------|------------|-| [Factor 1] | +X% | Medium | |-| [Factor 2] | +Y% | Low | |-| Unknown unknowns | +Z% | - | |--## Margin Calculation-Base: [X]-Uncertainty multiplier: [1.X]-Context multiplier: [1.Y] (high/medium/low stakes)-Total margin: [X × all multipliers]--## Final Commitment/Design-With margin: [Final number]-Rationale: [Why this margin]--## Monitoring Plan-How will you know if margin is adequate/excessive?-- [Metric to track]-- [Threshold for concern]-- [Review cadence]-```--## Decision Output--When this skill is used as a workflow gate, produce:--```json-{- "decision_key": "adequate_margin",- "answer": true,- "rationale": "one concise sentence"-}-```--## Escalate to Full Skill When--- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.--## Verification Checklist--- [ ] Identified base estimate-- [ ] Quantified uncertainty factors-- [ ] Selected appropriate margin for context-- [ ] Applied margin to commitment/design-- [ ] Considered cost of margin vs. cost of breach-- [ ] Have monitoring to validate margin adequacy-- [ ] Calibrating based on actual outcomes--## Key Questions--- "What happens if my estimate is wrong by 2x?"-- "How much margin does this uncertainty warrant?"-- "Am I building for best case or realistic case?"-- "What's the cost of being wrong vs. cost of margin?"-- "Have I accounted for unknown unknowns?"-- "Am I optimizing to the edge when I shouldn't be?"--## Graham's Wisdom--"The margin of safety is always dependent on the price paid."--In engineering: The margin needed depends on the cost of failure. Critical systems need more margin. Experiments can run leaner.--"Confronted with the challenge to distill the secret of sound investment into three words, we venture the motto, Margin of Safety."--In systems: When in doubt, build in margin. The cost of over-provisioning is usually much less than the cost of under-provisioning when things go wrong.--"The function of the margin of safety is, in essence, that of rendering unnecessary an accurate estimate of the future."--You don't need to predict perfectly if you have adequate margin. Margin is insurance against your own estimation errors.+- Breach is detected immediately and fixed near-zero cost (fast auto-scale, live-tunable limit)—static fat buffers waste resources+- `cost(buffer) > P(breach) × cost(breach)`—right-size or measure instead of maxing out+- Uncertainty is eliminable by measurement or lookup—get the real number first+- Stopping-criterion / search budget problems—use bounded rationality, not padding+- Fully known parameters and low stakes where edge optimization is the goal++## Procedure++1. **Point estimate without padding.** State the base requirement in explicit units (RPS, weeks, GB, ms) and confidence (high / medium / low).+2. **Uncertainty and breach cost.** List drivers (spike, growth, unknowns, dependency variance). State what fails if undershot: outage, missed launch, data loss, reputation—and whether failure is recoverable or ruinous.+3. **Size the buffer.** Multiply or add margin to residual uncertainty and stakes—not to vanity. Typical bands (adjust with evidence):+ - Well-known, low consequence: ~1.2–1.5×+ - Familiar with unknowns / reversible: ~1.5–2×+ - New domain, external deps, SLA, irreversible: ~2–3×+ Cap or cut when buffer cost exceeds expected breach cost.+4. **Ruin constraint.** If a breach can cause irreversible harm, size so the worst plausible miss still stays above the failure threshold; if that buffer is unaffordable, change the design (shed load, degrade, stage) rather than pretend precision.+5. **Strongest countercase.** Challenge both under-buffering ("we will scale later") and over-buffering (idle cost, complexity). Prefer measure-then-trim when history exists.+6. **Commit and monitor.** Publish the buffered commitment, the failure threshold, and the metric that would prove margin excessive or thin. Stop when the number is set and monitorable.++## Output++```text+Base estimate: … (units, confidence)+Uncertainty drivers: …+Breach cost / failure threshold: …+Margin applied: …× (or absolute buffer …)+Buffered commitment: …+Ruin check: pass | redesign needed+Cost of margin vs expected breach cost: …+Monitor: metric … ; thin if … ; excessive if …+```++## Verification++- **Falsify:** If the buffered number equals the optimistic point estimate, no margin was applied—or if margin was added with zero stated breach cost, it is cargo-cult padding.+- **Stop:** Once commitment, threshold, and monitor exist, stop stacking multipliers without new uncertainty evidence.+- **Over-application guard:** Do not pad when adjustment is free and instant, or when the real number is cheaply measurable. Do not confuse search-stopping with capacity buffers.diff --git a/skills/thinking-model-combination/SKILL.md b/skills/thinking-model-combination/SKILL.mdindex d948e77..0b9384a 100644--- a/skills/thinking-model-combination/SKILL.md+++ b/skills/thinking-model-combination/SKILL.md@@ -1,409 +1,55 @@---name: thinking-model-combination-description: Combine multiple mental models for richer analysis. Use for complex problems requiring multiple lenses, high-stakes decisions, or when single models leave blind spots.+description: When one mental model leaves a material blind spot on a multi-domain or high-stakes problem, sequence complementary models with named roles and a conflict rule.disable-model-invocation: true---# Model Combination-## Overview--Real-world problems rarely fit neatly into a single mental model. Model combination uses multiple frameworks together—sequentially, in parallel, or nested—to achieve deeper understanding than any single model provides. The skill is knowing how to combine models productively without creating confusion or analysis paralysis.--**Core Principle:** Multiple lenses reveal what single lenses miss. But combination requires discipline, not just accumulation.--## Read This First: The Anti-Patterns--Most combination attempts fail by *adding* rather than *integrating*. Internalize these limits before doing anything else:--- **Hard cap: 3-4 models, each with a distinct, named role.** More than that is "Model Soup" — contradictory conclusions, analysis paralysis, no recommendation. If you can't say what unique question each model answers, drop it.-- **Add a model only to cover a specific, named blind spot** — not to look thorough. If a second model just confirms the first, it added nothing (Checkbox Combination).-- **Don't blend incompatible worldviews** (e.g., Effectuation's "embrace uncertainty" + detailed prediction). Use them in sequence for different phases, or as a deliberate adversarial pair — never mashed together.-- **Decide how the models relate *before* applying them**, and pick a tiebreaker model up front for when they conflict.--If a single model already answers the question, use it alone and stop. Combination is the exception, justified only by high stakes or genuine multi-domain spread. (Full anti-pattern detail is in the "Combination Anti-Patterns" section below.)+**Core rule:** Combine only when each model answers a different named question. Cap at three, name the conflict rule before applying, then synthesize once.## When to Use-- Complex problems spanning multiple domains-- High-stakes decisions where blind spots are costly-- When single models leave important questions unanswered-- Validating conclusions through different frameworks-- Teaching comprehensive analysis-- Building robust decision processes--Decision flow:--```-Analyzing a problem?- → Does one model fully address it? → yes → Use single model- → Are there important blind spots? → yes → ADD COMPLEMENTARY MODEL- → Are stakes high enough to justify deeper analysis? → yes → USE MULTIPLE MODELS-```-+- One model already applied (or clearly primary) still leaves a material blind spot that another mechanism covers.+- Problem spans domains (e.g. risk + choice + system structure) and stakes justify multi-lens work.+- You need independent checks, not confirmation of the same conclusion.+- You can name a distinct role per model before running them.## When NOT to Use-- **A single model already answers the question.** Use the single model and stop. Adding lenses creates noise, not rigor.-- **The task is routine, local, or reversible.** Combination is for high-stakes or genuinely multi-domain problems; otherwise it causes analysis paralysis.-- **You cannot name the distinct job of each model.** If every model is doing the same work, this is Model Soup. Drop the redundant lenses.-- **Models conflict but no tiebreaker is defined.** Decide the synthesis rule before applying them, or use one model at a time.-- **Time pressure prevents genuine synthesis.** Combining without integrating produces contradictory conclusions worse than a single honest model.--## Combination Patterns--### Pattern 1: Sequential (Pipeline)--Use one model's output as another's input:--```markdown-## Sequential Combination--Model A → Model B → Model C--Example: Product Decision-1. Jobs to be Done → Identify the real user need-2. First Principles → Design solution from fundamentals-3. Pre-mortem → Identify what could go wrong-4. Reversibility → Assess if we can course-correct--Flow:-[JTBD identifies need] → [First Principles designs solution] →-[Pre-mortem finds risks] → [Reversibility determines commitment level]--Each model builds on previous insights.-```--### Pattern 2: Parallel (Multiple Lenses)--Apply models independently, compare results:--```markdown-## Parallel Combination-- ┌→ Model A → Result A ─┐-Problem → Model B → Result B → Synthesis- └→ Model C → Result C ─┘--Example: Strategic Decision-Apply independently:-- Red Team: "How could this fail?"-- Opportunity Cost: "What are we giving up?"-- Second-Order Thinking: "What happens next?"--Synthesis:-| Model | Conclusion | Unique Insight |-|-------|------------|----------------|-| Red Team | [Finding] | [What only this revealed] |-| Opportunity Cost | [Finding] | [What only this revealed] |-| Second-Order | [Finding] | [What only this revealed] |--Combined conclusion: [Synthesis of all three]-```--### Pattern 3: Nested (Zoom Levels)--Use different models at different scales:--```markdown-## Nested Combination--Macro level: Model A- └→ Meso level: Model B- └→ Micro level: Model C--Example: System Optimization-- Macro (System): Theory of Constraints → Find the bottleneck-- Meso (Process): Scientific Method → Diagnose bottleneck cause-- Micro (Action): OODA Loop → Rapid iteration on fixes--The macro model identifies WHERE to focus.-The meso model identifies WHAT is happening.-The micro model guides HOW to respond.-```--### Pattern 4: Adversarial (Thesis-Antithesis)--Use models that challenge each other:--```markdown-## Adversarial Combination--Model A argues FOR → ← Model B argues AGAINST--Example: Investment Decision-- Optimistic lens (First Principles): "Here's why this could work"-- Pessimistic lens (Pre-mortem): "Here's why this will fail"-- Neutral lens (Probabilistic): "Here's the actual probability"--Structure:-| Aspect | First Principles | Pre-mortem | Probabilistic Estimate |-|--------|------------------|------------|------------------------|-| Market | [Optimistic case] | [Failure mode] | [P(success)] |-| Technology | [Optimistic case] | [Failure mode] | [P(success)] |-| Team | [Optimistic case] | [Failure mode] | [P(success)] |--Resolution: Adjust probabilities based on adversarial insights-```--### Pattern 5: Temporal (Time-Based)--Different models for different time horizons:--```markdown-## Temporal Combination--Past: Model A (understand history)-Present: Model B (assess current state)-Future: Model C (project outcomes)--Example: Career Decision-- Past (5 Whys): "Why am I in this situation?"-- Present (Circle of Competence): "What are my current advantages?"-- Future (Opportunity Cost): "What am I giving up by choosing this path?"--Timeline:-Past analysis → Present assessment → Future projection → Decision-```--## Combination Recipes--### Recipe 1: High-Stakes Decision--```markdown-## High-Stakes Decision Recipe--Combine: Reversibility + Pre-mortem + Opportunity Cost + Second-Order--Step 1 - Reversibility Check:-Is this Type 1 or Type 2?-[Assessment]--Step 2 - Pre-mortem:-Assume failure, explain why-[Failure modes]--Step 3 - Opportunity Cost:-What's the best alternative?-[Alternatives foregone]--Step 4 - Second-Order:-What happens after the immediate effect?-[Cascading consequences]--Synthesis:-Given [reversibility], with risks of [pre-mortem findings],-giving up [opportunity cost], leading to [second-order effects],-the decision is: [Conclusion]-```--### Recipe 2: System Diagnosis--```markdown-## System Diagnosis Recipe--Combine: Cynefin + Theory of Constraints + Systems Thinking--Step 1 - Cynefin:-What domain is this? [Clear/Complicated/Complex/Chaotic]-Appropriate approach: [Sense-Categorize-Respond / Sense-Analyze-Respond / etc.]--Step 2 - Theory of Constraints:-Where's the bottleneck?-[Constraint identification]--Step 3 - Systems Thinking:-What reinforcing/balancing loops and delays exist? Where can small changes have big effects?-[Loop mapping and leverage ranking]--Synthesis:-This is a [domain] problem. The constraint is [X].-The key feedback loop is [Y]. The highest leverage point is [Z].-```--### Recipe 3: Innovation Challenge--```markdown-## Innovation Recipe--Combine: First Principles + TRIZ + Effectuation + Via Negativa--Step 1 - First Principles:-What are the fundamental truths?-[Core elements]--Step 2 - TRIZ:-What contradictions exist? What inventive principles apply?-[Contradiction resolution]--Step 3 - Effectuation:-What means do we have? What's affordable loss?-[Means inventory and constraints]--Step 4 - Via Negativa:-What should we remove or avoid?-[Subtractions]--Synthesis:-Starting from [first principles], resolving [contradiction] via [TRIZ principle],-using [available means], and removing [via negativa items],-the innovation path is: [Approach]-```--### Recipe 4: Argument Evaluation--```markdown-## Argument Evaluation Recipe--Combine: Steel-manning + Probabilistic--Step 1 - Steel-manning:-What's the strongest version of this argument?-[Strengthened argument]--Step 2 - Probabilistic:-What's my prior (including base rates)? What evidence would update it?-Prior: [X%]-Evidence that would increase: [List]-Evidence that would decrease: [List]-Base-rate / alternative checks: [What rates or alternatives could distort the update?]--Synthesis:-The steel-manned argument is [X]. Given [evidence] and base-rate checks,-my updated probability is [Y%]. Conclusion: [Assessment]-```--## Combination Anti-Patterns--### Too Many Models--```markdown-## Anti-Pattern: Model Soup--Problem: Using 5+ models without clear purpose-Result: Confusion, analysis paralysis, contradictory conclusions--Symptoms:-- Can't synthesize findings-- Each model says something different-- Analysis takes forever-- No clear recommendation emerges--Fix: Maximum 3-4 models with clear roles- Define how models relate BEFORE applying- Designate a "tiebreaker" model for conflicts-```--### Incompatible Models--```markdown-## Anti-Pattern: Forced Marriage--Problem: Combining models with conflicting assumptions-Example: Effectuation (embrace uncertainty) + Detailed planning (predict future)--Symptoms:-- Models contradict each other fundamentally-- Can't reconcile conclusions-- Feels like arguing with yourself--Fix: Use models in sequence for different phases- Or use as adversarial pair intentionally- Don't try to blend incompatible worldviews-```--### Model Without Purpose--```markdown-## Anti-Pattern: Checkbox Combination--Problem: Adding models to seem thorough, not for insight-Result: Wasted effort, no additional value--Symptoms:-- Model confirms what you already knew-- No new insights from additional model-- Adding models "just in case"--Fix: Add model only if it addresses a specific blind spot- Ask: "What question does this model answer that others don't?"-```--## Model Combination Template--```markdown-# Model Combination Analysis: [Problem]--## Problem Characterization-[Describe the problem and why combination is needed]--## Combination Pattern-Pattern: [Sequential/Parallel/Nested/Adversarial/Temporal]-Rationale: [Why this pattern]--## Models Selected-| Model | Role | What It Addresses |-|-------|------|-------------------|-| | | |--## Analysis--### Model 1: [Name]-[Analysis using this model]-Key insight: [What this uniquely revealed]--### Model 2: [Name]-[Analysis using this model]-Key insight: [What this uniquely revealed]--### Model 3: [Name]-[Analysis using this model]-Key insight: [What this uniquely revealed]--## Synthesis--### Convergence-Where models agree: [Common conclusions]--### Divergence-Where models differ: [Conflicting conclusions]-Resolution: [How to resolve conflicts]--### Unique Contributions-| Model | Unique Insight |-|-------|----------------|-| | |--## Combined Conclusion-[Synthesis that incorporates all models]--## Confidence Assessment-Confidence in conclusion: [High/Medium/Low]-What would change my mind: [Key uncertainties]-```--## Verification Checklist--- [ ] Each model has a clear, distinct role-- [ ] Combination pattern is explicit-- [ ] Models are compatible or deliberately adversarial-- [ ] Synthesis addresses convergence and divergence-- [ ] Not using more models than necessary-- [ ] Clear combined conclusion emerges--## Key Questions--- "What does each model contribute that others don't?"-- "How do these models relate to each other?"-- "Where do the models agree? Disagree?"-- "Am I adding models for insight or just thoroughness?"-- "What's the simplest combination that addresses the problem?"-- "How do I synthesize if models conflict?"--## Munger's Wisdom (Extended)--"I've long believed that a certain system—which almost any intelligent person can learn—works way better than the systems most people use. What you need is a latticework of mental models in your head."--"You may have noticed students who just try to remember and pound back what is remembered. Well, they fail in school and in life. You've got to hang experience on a latticework of models in your head."--The latticework isn't just having models—it's the connections between them. Combination is how you weave the lattice. Individual models are threads; combination creates the fabric that catches reality's complexity.+- A single catalog skill fully answers the unknown — apply that skill alone.+- Routine, local, or fully reversible work where multi-lens cost exceeds upside.+- You cannot state what unique question each extra model answers (checkbox / model soup).+- Near-duplicate mechanisms (two diagnosis skills that ask the same causal question).+- Time budget cannot support genuine synthesis — prefer one honest model over contradictory partials.++## Procedure++1. **State the unknown and the gap.** Write the decision question. If one model already covers it, stop and use that model alone. Otherwise name the specific blind spot (e.g. "failure modes unexamined", "displaced alternative unknown").+2. **Pick 2–3 models with distinct roles.** For each, record: model id, role (narrow / decide / stress / cost / …), and the unique question it answers. Drop any model that only rephrases another. Prefer sequential pipeline (narrow → stress → decide) over parallel unless independent concurrent checks are required.+3. **Lock the relation and conflict rule before applying.** Choose pattern: sequential, parallel, nested (macro→meso→micro), or adversarial (for/against). Predeclare the tiebreaker (e.g. reversibility class, evidence strength, ruin constraint, primary decision owner). Incompatible worldviews run sequential or adversarial — never blended.+4. **Apply each model fully for its role only.** Capture one key insight per model plus what only that model revealed. Do not re-run a model that adds no new insight.+5. **Synthesize once.** Record convergence, divergence, how the conflict rule resolves divergence, and a single combined recommendation with residual uncertainty. Stop when the recommendation is decision-ready or when further models would only reconfirm.++## Output++```text+problem: <decision question>+gap: <named blind spot justifying combination>+pattern: sequential | parallel | nested | adversarial+models:+ - id: <skill>+ role: <named job>+ unique_question: <what only this answers>+ insight: <key finding>+conflict_rule: <predeclared tiebreaker>+convergence: <where models agree>+divergence: <where they conflict + resolution>+recommendation: <single decision-ready answer>+stop_reason: gap_closed | single_model_suffices | budget+```++## Verification++- **Falsify / stop:** Remove a model only when it changes none of the recommendation, supporting evidence, confidence, residual risks, or mitigations; then re-synthesize with fewer. If no predeclared conflict rule exists and models disagree, do not average — pick one primary model or stop and re-route.+- **Over-application guard:** Never exceed three models. Never add a model for thoroughness theater. If the first adequate single model already closes the gap, combination is wrong for this task.diff --git a/skills/thinking-model-router/SKILL.md b/skills/thinking-model-router/SKILL.mdindex 5378655..13503f8 100644--- a/skills/thinking-model-router/SKILL.md+++ b/skills/thinking-model-router/SKILL.md@@ -1,420 +1,85 @@---name: thinking-model-router-description: Route to the right mental model based on your domain and problem type. The single entry point for all thinking skills.+description: When unsure which thinking skill fits, map domain and problem type, then return NONE or one primary skill by default (at most three complementary).disable-model-invocation: true---# Model Router-## Overview--This is the **master routing skill** for all mental models. Instead of knowing 28 frameworks, start here. Identify your domain and problem type, and this skill points you to the right model(s). Think of it as the "which tool do I use?" guide.--**Core Principle:** Don't memorize models—memorize how to find the right one. Domain + Problem Type → Model.--## Short-Circuit: Skip the Router--**If you already know the right model, invoke it directly — don't route.** This skill is for when you're *unsure* which model fits. If the problem obviously calls for a specific model (e.g., "where's the bottleneck?" → theory-of-constraints; "how would an attacker break this?" → red-team), go straight to it. Routing is overhead you only pay when the match isn't obvious.--**Default outcome is NONE or one skill.** If no model clearly helps, reason directly (NONE) — do not force a skill. Prefer exactly one primary skill when something fits. Reach for multiple skills only when their mechanisms are truly complementary (distinct roles, not near-duplicates).--## Selection Criteria--When the match is not obvious, choose with these criteria — then stop at the first adequate fit (satisficing, not exhaustive ranking):--1. **Problem type** — Diagnose / Decide / Understand / Create / Evaluate / Predict / Optimize.-2. **Constraints** — time pressure, information gaps, stakes, reversibility, complexity.-3. **Mechanism fit** — does this skill's procedure attack the actual unknown (not habit or familiarity)?-4. **Blind spots** — what does the candidate ignore that still matters for this problem?-5. **Exit** — abandon after ~15 minutes with no insight, or when key facts refuse the frame; re-route or fall back to NONE rather than force the model.--**Routing defaults:**--| Outcome | When |-|---------|------|-| **NONE** | No skill clearly improves the work; problem is routine; match is forced or cosmetic |-| **One primary skill** | Default when a model fits — name it and apply it |-| **2–3 skills max** | Only if each has a distinct complementary role (e.g. reverse-risk then decide). Never stack near-duplicates. Prefer sequential over parallel unless independent checks are needed |--Quick defaults by type (override when constraints demand otherwise):-- Diagnostic → five-whys-plus or scientific-method-- Decision → reversibility first-- Understanding → systems-- Creative → first-principles-- Evaluation → steel-manning--### Deliberate selection (when several candidates remain)--Use only if the domain map and defaults leave 2+ plausible models, or stakes are high enough that a forced default is unsafe. Still end at **NONE or one primary** unless complementary multi-skill is justified.--1. Characterize the problem (type, constraints, stakes, reversibility, information).-2. Name **2–5 candidate models** (include the type default; do not pad with near-duplicates).-3. Score each candidate 1–5 on the weighted criteria below; pick the highest total that still fits mechanism and blind-spot checks.-4. Consider multi-skill only after a single winner leaves a material blind spot (see When to Combine Models).-5. Record rationale + exit signals; if no candidate scores well, choose **NONE**.--| Criterion | Weight | What to judge |-|-----------|--------|---------------|-| Problem fit | 30% | Does the skill's mechanism attack this unknown? |-| Available info | 20% | Do you have the inputs the skill needs? |-| Time to apply | 15% | Can it finish inside the real time budget? |-| Stakeholder acceptance | 15% | Will the framing be usable with the people affected? |-| Competence with model | 20% | Can you apply it correctly without cargo-culting? |--Mismatch signals (wrong model or overuse): analysis feels forced; important factors ignored; results only fit by distortion; same model applied by habit to every problem → return to NONE or re-route.--## Quick Router--### Step 1: What's Your Domain?--| Domain | You're working on... |-|--------|---------------------|-| **Coding/Debugging** | Bugs, errors, performance issues, root cause |-| **Architecture** | System design, technical decisions, scalability |-| **Product** | Features, user needs, prioritization, roadmap |-| **Business Strategy** | Competition, growth, market, organization |-| **Personal Decisions** | Career, life choices, major commitments |-| **Abstract/Analytical** | Arguments, ideas, theories, pure reasoning |-| **Risk/Safety** | What could go wrong, preparation, resilience |-| **Innovation** | New ideas, breakthroughs, creative solutions |--### Step 2: What's Your Problem Type?--| Type | You need to... |-|------|----------------|-| **Diagnose** | Find root cause, understand why |-| **Decide** | Choose between options |-| **Understand** | Grasp how something works |-| **Create** | Generate new solutions |-| **Evaluate** | Judge quality or validity |-| **Predict** | Forecast outcomes |-| **Optimize** | Improve performance |-------## Domain → Model Maps--### 🖥️ Coding & Debugging--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-Bug with unknown cause → Scientific Method, 5 Whys Plus-Performance degradation → Theory of Constraints, Systems Thinking-Spans multiple services → Systems Thinking-Incident postmortem → 5 Whys Plus, Systems Thinking-Flaky/intermittent behavior → Scientific Method (hypothesis testing)-"It works on my machine" → Map-Territory (model vs reality gap)-```--**Default for debugging:** Start with **5 Whys Plus**, escalate to **Systems Thinking** if it spans components.-------### 🏗️ Architecture & Technical Decisions--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-Technology choice → Lindy Effect, Reversibility-Build vs buy → Opportunity Cost, First Principles-Scalability design → Systems Thinking-Microservices vs monolith → Cynefin, Reversibility-Database selection → Lindy Effect, Theory of Constraints-API design tradeoffs → TRIZ (resolve contradictions)-Should we rewrite? → Second-Order, Opportunity Cost-```--**Default for architecture:** Start with **Reversibility** (is this Type 1 or Type 2?), then **Systems Thinking** for interconnections.-------### 📦 Product & Feature Development--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-What should we build? → Jobs to be Done-Feature prioritization → Opportunity Cost, Theory of Constraints-Why aren't users engaging? → Jobs to be Done, 5 Whys Plus-New product exploration → Effectuation, First Principles-Should we pivot? → Opportunity Cost, Reversibility-Product-market fit → Jobs to be Done, Probabilistic-Roadmap planning → Theory of Constraints, Opportunity Cost-A/B test interpretation → Probabilistic-```--**Default for product:** Start with **Jobs to be Done** (what job is the user hiring this for?).-------### 📈 Business Strategy--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-Competitive analysis → Red Team, Second-Order-Market entry → Cynefin, Effectuation-Growth strategy → Systems Thinking-Organizational dysfunction → Systems Thinking-Resource allocation → Theory of Constraints, Opportunity Cost-Startup strategy → Effectuation, Margin of Safety-M&A evaluation → Pre-mortem, Steel-manning-Pricing decisions → First Principles, Probabilistic-```--**Default for strategy:** Start with **Cynefin** (what domain is this problem in?), then match approach.-------### 🧑 Personal & Career Decisions--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-Should I take this job? → Opportunity Cost, Reversibility-Career direction → Circle of Competence, Opportunity Cost-Major life decision → Opportunity Cost, Pre-mortem-Learning what to learn → Circle of Competence, Lindy Effect-Negotiation prep → Steel-manning, Red Team-Should I start a company? → Effectuation, Margin of Safety, Pre-mortem-Time allocation → Opportunity Cost, Theory of Constraints-```--**Default for personal:** Start with **Opportunity Cost** (what alternative are you giving up?).-------### 🧠 Abstract & Analytical Thinking--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-Evaluating an argument → Steel-manning, Probabilistic-Challenging assumptions → First Principles, Socratic-Estimating unknowns → Probabilistic-Updating beliefs → Probabilistic-Exploring edge cases → Thought Experiment, Pre-mortem-Finding logical flaws → Pre-mortem, Steel-manning-Complex causation → Systems Thinking-Philosophical questions → Thought Experiment, First Principles-```--**Default for abstract:** Start with **Steel-manning** (argue the strongest opposing view first).-------### ⚠️ Risk & Safety--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-What could go wrong? → Pre-mortem, Red Team-Security review → Red Team, Pre-mortem-Disaster preparation → Pre-mortem, Margin of Safety-Avoiding catastrophic failure → Margin of Safety, Via Negativa-Stress-testing plans → Red Team, Pre-mortem-Probability of failure → Probabilistic-Building resilience → Via Negativa, Margin of Safety-```--**Default for risk:** Start with **Pre-mortem** (assume failure, explain why).-------### 💡 Innovation & Creativity--```-PROBLEM → MODEL(S)-─────────────────────────────────────────────────────-Breakthrough needed → First Principles, TRIZ-Stuck on contradictions → TRIZ-Limited resources → Effectuation, Via Negativa-Simplification → Via Negativa, Scientific Method-Challenging "impossible" → First Principles, TRIZ-New market creation → Effectuation, Jobs to be Done-Removing complexity → Via Negativa, Scientific Method-```--**Default for innovation:** Start with **First Principles** (strip to fundamentals, rebuild).-------## Quick Reference Card--```-┌─────────────────────────────────────────────────────────────────┐-│ MENTAL MODEL QUICK ROUTER │-├─────────────────────────────────────────────────────────────────┤-│ │-│ "Why is this broken?" → 5 Whys Plus, Scientific Method │-│ "How does this system work?" → Systems Thinking │-│ "What should we build?" → Jobs to be Done │-│ "Should I do this?" → Reversibility, Opportunity Cost │-│ "What could go wrong?" → Pre-mortem, Red Team │-│ "How do I innovate?" → First Principles, TRIZ │-│ "What's the probability?" → Probabilistic │-│ "Where's the bottleneck?" → Theory of Constraints │-│ "What am I giving up?" → Opportunity Cost │-│ "Is this argument valid?" → Steel-manning │-│ "Will this technology last?" → Lindy Effect │-│ "How complex is this?" → Cynefin │-│ "What to remove?" → Via Negativa │-│ "Is this safe enough?" → Margin of Safety │-│ │-└─────────────────────────────────────────────────────────────────┘-```--## Decision Flow--```-START HERE- │- ▼-┌─────────────────────┐-│ What's your domain? │-└──────────┬──────────┘- │- ┌─────┴─────┬──────────┬──────────┬──────────┐- ▼ ▼ ▼ ▼ ▼- Coding Architecture Product Strategy Personal- │ │ │ │ │- ▼ ▼ ▼ ▼ ▼-┌─────────────────────┐-│ What problem type? │-│ Diagnose/Decide/ │-│ Understand/Create/ │-│ Evaluate/Predict │-└──────────┬──────────┘- │- ▼-┌─────────────────────┐-│ Look up in domain │-│ table above │-└──────────┬──────────┘- │- ▼-┌─────────────────────┐-│ Any skill clearly helps?│-└──────────┬──────────┘- │- ┌──────┴──────┐- ▼ ▼- NO YES- │ │- ▼ ▼- NONE Single model enough?- (reason │- directly) ┌────┴────┐- ▼ ▼- YES NO (complementary roles only)- │ │- ▼ ▼- Apply it At most 3 skills- (prefer sequential)-```--## Model Inventory by Category--### Diagnostic Models (Find root cause)-- `5 Whys Plus` - Iterative "why" with bias guards-- `Scientific Method` - Competing hypotheses, least-assumptive survivors, discriminating tests-- `Kepner-Tregoe` - Systematic problem/decision analysis--### Decision Models (Choose wisely)-- `Reversibility` - Type 1 vs Type 2 decisions-- `Opportunity Cost` - What are you giving up?-- `Probabilistic` - Calibrated probability estimates, Bayesian updates, Fermi bounds--### Systems Models (Understand interconnections)-- `Systems Thinking` - Boundaries, stocks/flows, feedback loops/delays, leverage, archetypes-- `Theory of Constraints` - Find and exploit the bottleneck--### Risk Models (Prepare for failure)-- `Pre-mortem` - Assume failure, reverse-analyze why, prevent-- `Red Team` - Attack your own plan-- `Margin of Safety` - Build in buffers--### Innovation Models (Create breakthroughs)-- `First Principles` - Strip to fundamentals, rebuild-- `TRIZ` - Resolve technical contradictions-- `Effectuation` - Start with means, not goals-- `Via Negativa` - Improve by removing--### Evaluation Models (Judge quality)-- `Steel-manning` - Argue strongest opposing view-- `Lindy Effect` - Older = likely to last longer-- `Circle of Competence` - Know your expertise boundaries--### Context Models (Match approach to situation)-- `Cynefin` - Clear/Complicated/Complex/Chaotic domains-- `Model Combination` - Multiple models only when mechanisms are complementary--### Product Models (Build the right thing)-- `Jobs to be Done` - What job is user hiring this for?-- `Thought Experiment` - Structured imagination--## When to Combine Models--Default remains **one skill** (or NONE). Combine only when a single model leaves a material blind spot and each added skill contributes a **different mechanism**. Cap at three. Prefer sequential (narrow → decide) over parallel unless independent checks are required.--Use **model-combination** patterns only after the one-skill default fails the blind-spot check:--| Situation | Pattern | Example |-|-----------|---------|---------|-| High-stakes decision | Sequential | Reversibility → Pre-mortem → Opportunity Cost |-| System diagnosis | Nested | Cynefin (macro) → ToC (meso) → OODA (micro) |-| Validating strategy | Parallel | Red Team + Steel-manning + Second-Order |-| Innovation under constraints | Sequential | First Principles → TRIZ → Effectuation |-| Career decision | Temporal | 5 Whys (past) → Circle of Competence (present) → Opportunity Cost / Reversibility (future) |--Do **not** combine when: one skill already covers the unknown; the second skill is a synonym/near-neighbor of the first; time is tight and a single adequate model exists.--## Template-```markdown-# Model Router Analysis--## Context-Domain: [Coding/Architecture/Product/Strategy/Personal/Abstract/Risk/Innovation]-Problem: [Brief description]-Problem Type: [Diagnose/Decide/Understand/Create/Evaluate/Predict/Optimize]-Constraints: [Time / Information / Stakes / Reversibility / Complexity]--## Route-Outcome: [NONE | One skill | 2–3 complementary skills]-Primary: [Main model, or NONE]-Secondary: [Only if distinct complementary role]-Tertiary: [Only if distinct complementary role]-Combination pattern: [None / Sequential / Parallel / Nested]-Candidates (deliberate path only): [2–5 models scored]-Scores: [fit 30% / info 20% / time 15% / stakeholders 15% / competence 20%]-Rationale: [Why this fit; what blind spots remain]-Exit: [Signals to abandon and re-route or fall back to NONE]--## Application-[Apply the selected model(s) here — or direct reasoning if NONE]+**Core rule:** Prefer NONE or one primary skill. Route by mechanism fit, not habit. Combine only when roles are distinct and necessary.++## When to Use++- The right thinking skill is unclear and you would otherwise guess or stack tools.+- Several catalog skills seem plausible and you need a single primary (or explicit NONE).+- High-stakes work where a wrong frame is costly and a quick domain×type match helps.++## When NOT to Use++- The match is already known or obvious ("where's the bottleneck?" → theory-of-constraints) — invoke that skill directly; do not route for show.+- The task is routine implementation with no analytical unknown — reason directly (NONE).+- You are mid-execution of an agreed plan and only need the next concrete step.+- The ask is outside this catalog (pure coding syntax, tool ops with no judgment call) — NONE.++## Procedure++1. **Short-circuit.** If one skill clearly fits by mechanism, return that skill alone. If no skill clearly improves the work, return **NONE** and reason directly. Stop.+2. **Characterize.** Record domain (coding, architecture, product, strategy, personal, abstract, risk, innovation) and problem type (diagnose, decide, understand, create, evaluate, predict, optimize). Note constraints: time, information, stakes, reversibility, complexity.+3. **Candidate by type defaults (override when constraints demand).** Keep only active catalog skills:+ - Diagnose → five-whys-plus or scientific-method (kepner-tregoe if IS/IS-NOT matrix needed)+ - Decide → reversibility first; then opportunity-cost or probabilistic+ - Understand → systems (map-territory if model-vs-reality gap; cynefin if approach domain unclear)+ - Create → first-principles (triz for contradictions; effectuation for means-driven; via-negativa for remove-first)+ - Evaluate → steel-manning (socratic if assumptions/definitions are the unknown)+ - Predict → probabilistic+ - Optimize → theory-of-constraints (ooda under time pressure; bounded-rationality for search stop)+ - Risk / "what fails?" → pre-mortem or red-team; margin-of-safety for buffers+ - Product "what to build?" → jobs-to-be-done+ - Competence / durability → circle-of-competence, lindy-effect+ - Controlled hypothetical → thought-experiment+ - Multi-lens only after one primary fails a blind-spot check → model-combination+4. **Select with criteria (satisficing).** Score only if 2+ candidates remain or stakes make a forced default unsafe. Rate each criterion 1–5 (1 = absent/wrong fit; 3 = usable with gaps; 5 = direct fit): problem fit (30%), available inputs (20%), time to apply (15%), stakeholder usability (15%), competence to apply correctly (20%). A route must score problem fit ≥4 and weighted total ≥3.5; otherwise return **NONE**. For totals within 0.25, prefer fewer inputs and shorter execution; if still tied, choose NONE unless the skills answer distinct complementary questions.+5. **Multi-skill only as exception.** Add a second or third skill only when each has a distinct complementary role the primary leaves open. Cap at three. Prefer sequential over parallel. Near-neighbors and synonyms do not stack. For composition patterns, hand off to model-combination after naming the primary.+6. **Exit.** State abandon signals (forced fit, ignored factors, no insight ~15 minutes). On mismatch, re-route once or fall back to NONE — never force a frame.++**Domain cheat-map (primary first; still default to one or NONE):**++| Domain signal | Prefer |+|---------------|--------|+| Bug / root cause / flaky | five-whys-plus, scientific-method, systems |+| Architecture / tech choice | reversibility, systems, lindy-effect, opportunity-cost |+| Feature / roadmap / engagement | jobs-to-be-done, opportunity-cost, theory-of-constraints |+| Strategy / competition / growth | cynefin, systems, red-team, second-order |+| Personal / career commitment | opportunity-cost, reversibility, circle-of-competence, pre-mortem |+| Argument / belief update | steel-manning, probabilistic, socratic, first-principles |+| Security / disaster / ruin | pre-mortem, red-team, margin-of-safety, via-negativa |+| Innovation / contradiction / simplify | first-principles, triz, effectuation, via-negativa |++## Output++```text+outcome: NONE | one | multi+routes:+ - id: <primary skill id or NONE>+ role: <job this skill performs>+ unique_question: <question only this route answers>+ - id: <secondary skill id, only for multi>+ role: <distinct complementary job>+ unique_question: <distinct open question>+ - id: <tertiary skill id, only for multi>+ role: <distinct complementary job>+ unique_question: <distinct open question>+domain: <domain>+problem_type: <type>+constraints: <time/info/stakes/reversibility>+rationale: <mechanism fit in one sentence>+blind_spots: <what primary still ignores, if any>+exit: <when to abandon or re-route>+```++Default fill: `outcome: NONE` with one `id: NONE` route, or `outcome: one` with one route. Use `multi` only when every listed skill has a distinct role and unique question.## Verification-- [ ] Domain and problem type identified-- [ ] Chose NONE or one primary by default-- [ ] If deliberate: scored 2–5 candidates on weighted criteria-- [ ] Multi-skill only when mechanisms are complementary (≤3)-- [ ] Fit is by mechanism, not habit-- [ ] Exit criteria set--```--## Key Questions--- "What domain am I operating in?"-- "What type of problem is this—diagnose, decide, understand, create, or evaluate?"-- "Does any skill clearly help, or is NONE the right answer?"-- "What's the default single model for this domain + type?"-- "If several candidates remain, which wins on fit/info/time/stakeholders/competence?"-- "If combining, does each skill contribute a distinct complementary mechanism?"-- "Am I using a model because it fits, or because it's familiar?"-- "What would make me abandon this model and re-route?"------**Remember:** Prefer NONE or one skill. You don't need every model—you need the right one, or none. Domain + problem type → route → apply (or reason directly).+- **Falsify / stop:** If the route is habit or familiarity rather than mechanism fit, discard and re-score or return NONE. If multi-skill entries lack distinct roles, collapse to the single best primary. If no candidate clearly helps, NONE is correct — do not invent a route.+- **Over-application guard:** Do not route when the skill is already obvious. Do not return more than three skills. Do not cite deleted or non-catalog names. Do not treat the router as a prerequisite for leaf skills invoked directly.diff --git a/skills/thinking-ooda/SKILL.md b/skills/thinking-ooda/SKILL.mdindex 610b880..0657edd 100644--- a/skills/thinking-ooda/SKILL.md+++ b/skills/thinking-ooda/SKILL.md@@ -1,128 +1,46 @@---name: thinking-ooda-description: Use under time pressure (incident, outage, debugging a moving target) when you must act before you have certainty—cycle Observe→Orient→Decide→Act on ~70% confidence, then re-observe.+description: Use under time pressure when the situation is still changing and you must act before certainty — cycle Observe→Orient→Decide→Act on ~70% confidence, then re-observe.disable-model-invocation: true---# OODA Loop-## Overview-The OODA Loop (Observe, Orient, Decide, Act) is a framework for acting in fast-moving, uncertain situations. The core decision rule: don't wait for certainty—act on the best current understanding, then immediately observe the result and loop again. Speed through the loop beats a perfect plan that arrives too late.--**Core Principle:** Act on ~70% confidence for reversible moves, then re-observe. Cycle faster than the situation changes.+**Core rule:** For reversible moves under time pressure, act on ~70% confidence, then immediately re-observe. Cycle faster than the situation compounds; a late perfect plan loses to a fast loop.## When to Use-- Incident response and outages-- Debugging a moving target (intermittent failure, ongoing degradation)-- Any time-sensitive decision where the situation is still changing-```-Situation changing rapidly AND need to act before certainty? → yes → APPLY OODA- → no → use deliberate analysis / a hypothesis differential-```+- Incident response, outage, or ongoing degradation where state is still moving.+- Debugging a moving target (intermittent failure, live traffic shift).+- Any time-bounded decision where waiting for full certainty costs more than a reversible action.## When NOT to Use-- The situation is static and you have time → deliberate analysis beats fast looping.-- The action is irreversible/high-blast-radius → gather more information before acting; 70% confidence isn't enough.-- You can cheaply and directly localize the cause (read the diff/log) → use `thinking-scientific-method` (hypothesis differential) instead of looping in the dark.--## Trigger Card--When under time pressure (incident, outage, debugging a moving target) and you must act before certainty:--1. **Observe** — what is happening right now? Gather the cheapest, highest-signal data available.-2. **Orient** — what does it mean given your mental model? Update the model if the data contradicts it.-3. **Decide** — pick an action on ~70% confidence. Don't wait for 100%.-4. **Act** — execute, then immediately re-observe. The loop is the point; speed beats precision.--If the action is irreversible or high-blast-radius, gather more information before acting. If you can cheaply localize the cause (read the diff/log), use `thinking-scientific-method` instead.--## The Four Phases--### 1. OBSERVE — gather current state fast-- Current metrics, logs, alerts, error rates-- What changed recently (deploys, config, traffic)-- Feedback from your last action-- Cast wide, then narrow as a pattern emerges. Time-box it—don't observe forever.--```-Incident: error rate 10x normal; affects API gateway + user service;-started 5 min ago; a deploy went out 15 min ago; users report login failures.-```--### 2. ORIENT — make sense of it (the critical phase)-Match the observations to a pattern and form a hypothesis. This is where most loops go wrong: don't lock onto the first framing. Hold ≥2 candidate explanations and let new evidence shift you.--```-Pattern resembles last month's connection-pool exhaustion, BUT no DB anomaly this time.-The deploy touched auth rate-limiting.-Hypothesis: rate-limit config is too aggressive.-```--### 3. DECIDE — pick an action under uncertainty-- State the action and the hypothesis it tests.-- 70% confidence now beats 90% too late, for a reversible action.-- Decide what you'll observe next to confirm or refute.--```-Decision: roll back the auth deploy.-Hypothesis: this restores normal error rates.-Will watch: error rate for 2 minutes; fallback = investigate DB connections.-```--### 4. ACT — execute, then immediately re-observe-Execute decisively and go straight back to OBSERVE. The action creates new information; don't wait blindly for it to "settle."--```-Action: roll back deployment/auth-service.-Immediate observe: error rate, response times, 2-minute window.-```-The loop restarts until the system is stable.+- The situation is static and you have time — deliberate analysis or a hypothesis differential wins.+- The next action is irreversible or high blast-radius — raise the evidence bar; 70% is not enough.+- You can cheaply localize the cause (read the failing diff, log, or metric) — test that hypothesis directly instead of looping in the dark.+- There is no time pressure and no changing environment — OODA adds churn without value.-## What Speeds the Loop-| Speeds it up | Stalls it |-|--------------|-----------|-| Pre-planned responses for known scenarios | Waiting for certainty (stuck at Observe/Decide) |-| Good observability (fast, trustworthy signals) | Information overload (Observe never ends) |-| Clear hypotheses (fast Orient) | Locking onto one hypothesis (Orient lock) |-| Reversible actions you can undo | Seeking the perfect fix (Decide never ends) |+## Procedure-## Application Patterns+1. **Observe (time-boxed):** gather the cheapest high-signal state now — metrics, logs, alerts, recent deploys/config, and feedback from the last action. Cap the window; do not collect forever.+2. **Orient:** match observations to a pattern and form **≥2** candidate explanations. Update or discard the mental model when data contradicts it; refuse single-hypothesis lock.+3. **Decide:** pick one reversible action that tests the leading hypothesis. State confidence (~70% threshold for reversible moves), the predicted effect, the observation you will check next, and a time box for that check.+4. **Act:** execute once, decisively, with a known rollback or degrade path.+5. **Re-observe immediately:** compare outcome to prediction within the time box; feed the result into the next Observe. Loop until stable or until the next move is no longer reversible enough for this skill.+6. **Stop condition:** exit the loop when the system is stable, the remaining work is static analysis, or the next step requires irreversible commitment — then switch method.-### Incident Response-```-OBSERVE: metrics, logs, alerts, recent changes-ORIENT: match pattern, form ≥2 hypotheses, assess blast radius-DECIDE: mitigation (rollback, scale, disable feature)-ACT: execute, immediately observe results-LOOP: continue until stable-```+## Output-### Debugging Under Pressure-```-OBSERVE: errors, stack traces, recent changes-ORIENT: form a hypothesis about the cause-DECIDE: test the most likely hypothesis first-ACT: add logging / try the fix / eliminate the possibility-LOOP: update the hypothesis from the result-```+A cycle record (repeat per loop):-## Common Failure Modes-| Failure | Symptom | Fix |-|---------|---------|-----|-| Observation overload | Can't process all data | Filter to key indicators |-| Orientation lock | Stuck on one hypothesis | Force a second framing |-| Decision paralysis | Waiting for certainty | Set a decision deadline; act on 70% |-| Action without observation | Blind execution | Mandate observe-after-act |-| Not actually looping | Stuck in one phase | Time-box each phase |+1. **Observed** — current signals and what changed since last cycle.+2. **Orientation** — ≥2 hypotheses; which one leads and why.+3. **Decision** — action, confidence, predicted effect, next observation, time box.+4. **Act + result** — what ran and what the immediate re-observe showed.+5. **Loop status** — continue / stable / escalate out of OODA.-## Key Questions-- "What do I observe RIGHT NOW?" (not 5 minutes ago)-- "What pattern does this match—and what's my second hypothesis?"-- "What's my best reversible action given current understanding?"-- "How will I know in the next 2 minutes whether it worked?"-- "Am I cycling, or stuck in one phase?"+## Verification-## Boyd's Insight-"He who can handle the quickest rate of change survives." The goal isn't just making decisions—it's making and revising them faster than the situation compounds. Speed creates options; delay eliminates them.+- **Falsify/stop:** if you cannot name a reversible next action and a near-term observation that would refute it, stop looping and gather more evidence or escalate. If re-observe never happens after act, the loop is broken — fix that before another action.+- **Over-application guard:** do not OODA static design work, irreversible launches, or cases where a single cheap localization check ends the uncertainty. Do not wait for 100% confidence on reversible mitigations under active incident pressure.diff --git a/skills/thinking-opportunity-cost/SKILL.md b/skills/thinking-opportunity-cost/SKILL.mdindex 2f188e9..b31e239 100644--- a/skills/thinking-opportunity-cost/SKILL.md+++ b/skills/thinking-opportunity-cost/SKILL.md@@ -1,396 +1,55 @@---name: thinking-opportunity-cost-description: Before committing scarce time/people/money to one thing, ask "what's the next-best use of these resources, and what does doing nothing cost?" — the real cost is the best option you skip.+description: Before committing scarce time, people, or money, name the best forgone use of those resources and the value delta of the chosen path versus that alternative.disable-model-invocation: true----# Opportunity Cost Thinking+# Opportunity Cost-## Two operative prompts (use these first)-1. **Next-best alternative:** "If we didn't do this, what is the single best thing we'd do with the same resources instead?" That foregone option *is* the cost.-2. **Explicit do-nothing:** "What happens if we change nothing?" Always put status quo on the list — it's often undervalued and sometimes wins.--If both answers are cheap/obvious, you don't need the full framework below — just decide.--## Overview--Opportunity cost is the value of the next-best alternative foregone when making a choice. Every decision to do X is simultaneously a decision not to do Y, Z, and everything else. Engineers often focus on the value of their chosen path while underweighting what they're giving up.--**Core Principle:** The true cost of anything is what you give up to get it. A "free" option that consumes time has massive opportunity cost.+Core rule: every commitment displaces its best alternative. Report both that forgone value and the net value delta; decide on the delta, not the chosen path alone.## When to Use-- Resource allocation (time, money, people)-- Feature prioritization-- Build vs. buy decisions-- Technical debt evaluation-- Career decisions-- Architecture choices-- Saying "yes" to any commitment--Decision flow:--```-Making a commitment?- → Have you considered what you're NOT doing? → no → APPLY OPPORTUNITY COST- → Is the foregone value significant? → yes → Factor into decision- ↘ no → Proceed-```+- Allocating scarce time, headcount, budget, or attention across competing options+- Feature prioritization, build-vs-buy, tech-debt vs product work+- Saying yes to a large commitment that displaces other work+- Comparing a bold path against polishing the status quo when windows may close## When NOT to Use-- The choice is trivial or reversible and consumes negligible resources — deciding costs less than analyzing.-- There is no real alternative use for the resource (it's idle or earmarked) — no opportunity is being given up.-- The work is mandatory (compliance, security fix, hard dependency) — there's no optional alternative to weigh.-- You'd be inventing speculative alternatives to look rigorous — if the next-best option is clearly worse, just proceed.--## Trigger Card--Before committing scarce time, people, or money to one thing:--1. **Name the next-best alternative** — what would these resources do if not used here? Be specific.-2. **Compare value** — what does the primary option deliver vs. the next-best? The real cost is what you give up.-3. **Ask: "what does doing nothing cost?"** — sometimes the cheapest option is to wait. If delaying is free, consider it.-4. **Future tradeoff / foregone option** — which path, if skipped now, permanently closes or decays later (window ends, optionality dies, path locks)? Weigh that permanent "what if" against temporary costs that fade after recovery. If the acting downside is recoverable and the missed path is not, do not let short-term fear alone kill the higher-value option.--Skip if the work is mandatory (compliance, security fix, hard dependency) — there's no optional alternative. If the next-best option is clearly worse, don't manufacture alternatives to look rigorous.--## The Opportunity Cost Framework--### Step 1: Identify the Choice--State the decision explicitly:--```-Choice: Build custom authentication system-Commitment: 3 engineers for 4 months-```--### Step 2: List the Alternatives--What else could you do with those resources?--```-Alternatives for 3 engineers × 4 months:-A. Build custom auth (the choice)-B. Use Auth0 ($500/mo) + build 3 features-C. Improve performance of existing system-D. Reduce technical debt backlog by 40%-E. Build new product line MVP-```--### Step 3: Value Each Alternative--Estimate the value of each path:--```markdown-| Alternative | Direct Value | Strategic Value | Risk | Total Value |-|-------------|--------------|-----------------|------|-------------|-| Custom auth | Full control, no vendor cost | IP ownership | High (security) | Medium |-| Auth0 + features | Features faster | Time to market | Low | High |-| Performance work | 2x throughput | Customer satisfaction | Low | Medium-High |-| Tech debt | Faster future dev | Developer retention | Low | Medium |-| New product MVP | Revenue diversification | Growth potential | High | High |-```--### Step 4: Calculate Opportunity Cost--Opportunity cost = Value of best foregone alternative--```-If we choose Custom Auth:- Best alternative foregone: Auth0 + features (rated "High")- Opportunity cost: The features we won't build + faster time to market-```--### Step 5: Make Decision with Full Accounting--Total cost of choice = Direct cost + Opportunity cost--```-Custom Auth True Cost:- Direct: 3 engineers × 4 months = 12 engineer-months- Opportunity: 3 features delayed by 4 months- + Market share lost to faster competitors- + Developer time not on revenue features--Question: Is custom auth worth all of that?-```--### Step 6: Future Tradeoff and Permanent Foregone Options--Beyond next-best value today, check which alternatives decay if delayed:--```-For each serious alternative (including "try the bold path"):- Temporary costs if chosen and wrong: [fade after recovery?]- Permanent costs if not chosen: [window closes / lock-in / unrecoverable learning?]- Does inaction create a lasting "what if" with no re-entry?--Tradeoff rule:- Favor the choice that avoids the greater permanent loss when temporary costs are recoverable (and the acting downside is not catastrophic).- If both options permanently close something real, surface the value conflict — opportunity cost alone may not decide.- If the only permanent cost is missing a speculative upside with no evidence, do not invent permanence.-```--Example shape:--```-Choice: Ship the new market experiment this quarter vs. keep polishing the core product.-Temporary cost of experiment: 6 eng-weeks, recoverable if it fails.-Permanent cost of not experimenting: competitor owns the niche; re-entry cost multiplies.-Decision pressure: do not treat recoverable eng-weeks as equal to a permanently closed market option.-```--## Opportunity Cost Patterns--### The "Free" Trap--Nothing is free if it consumes time:--```-Scenario: "We can build this ourselves instead of paying $10K for the tool"--Analysis:-- Tool cost: $10,000-- Build time: 2 engineers × 2 weeks = 4 engineer-weeks-- Engineer cost: ~$4,000/week fully loaded = $16,000-- Maintenance: 1 week/quarter = $16,000/year ongoing--True cost: $16K + ongoing maintenance > $10K + $0 maintenance-Plus: What else could those engineers have built?-```--### The Sunk Cost Interaction--Don't let sunk costs distort opportunity cost analysis:--```-BAD thinking:-"We've already spent 6 months on this, we can't abandon it"-(Sunk cost fallacy ignores opportunity cost of continuing)--GOOD thinking:-"Given where we are now, what's the best use of the NEXT 6 months?"-(Fresh opportunity cost analysis from current state)-```--### The Hidden Alternative--The status quo is always an alternative:--```-Proposal: Migrate to Kubernetes-Alternatives considered: ECS, Nomad, K8s-Missing alternative: Don't migrate, improve current system--Full analysis should include:-- Cost of migration (all options)-- Cost of staying put (often undervalued)-- Opportunity cost of engineers doing migration vs. features-```--### Time as the Scarcest Resource--Time opportunity cost is often highest:--```-"Quick meeting, only 30 minutes"--For 8-person meeting:-- Direct cost: 30 min × 8 = 4 person-hours-- Opportunity cost: 4 hours not spent on focused work-- Context switching cost: 15 min recovery × 8 = 2 more hours-- True cost: ~6 person-hours of productivity--Question: Is this meeting worth 6 hours of productivity?-```--## Application Areas--### Feature Prioritization--```markdown-## Opportunity Cost Analysis: Feature A vs. B--| Factor | Feature A | Feature B |-|--------|-----------|-----------|-| Dev time | 4 weeks | 2 weeks |-| Revenue impact | $50K/month | $30K/month |-| Time to value | 4 weeks | 2 weeks |--If we build A first:-- We get A in 4 weeks-- We get B in 6 weeks-- 2 extra weeks without B = $60K foregone--If we build B first:-- We get B in 2 weeks-- We get A in 6 weeks-- 2 extra weeks without A = $100K foregone--Decision: Build A first despite higher dev cost (higher opportunity cost of delay)-```--### Build vs. Buy--```markdown-## Build vs. Buy: Monitoring System--Build:-- Development: $200K (4 engineers × 6 months)-- Maintenance: $80K/year-- Time to production: 6 months-- Opportunity cost: Features those engineers would have built--Buy (Datadog):-- License: $50K/year-- Integration: $30K (2 engineers × 1 month)-- Time to production: 1 month-- Opportunity cost: None significant--5-year TCO:-- Build: $200K + ($80K × 5) + opportunity cost = $600K + opportunity-- Buy: ($50K × 5) + $30K = $280K--Decision: Buy unless unique requirements justify 2x+ cost-```--### Technical Debt--```markdown-## Technical Debt Opportunity Cost--Current state: 20% of engineering time on maintenance-Proposed: 3-month refactoring project--Analysis:-- 3 months of refactoring = no features for 3 months-- After refactoring: 10% time on maintenance (saves 10%)-- Break-even: When does saved maintenance = investment?--If team = 10 engineers:-- Investment: 10 × 3 = 30 engineer-months-- Monthly savings: 10 × 10% = 1 engineer-month-- Break-even: 30 months--Opportunity cost: Features not built during 3-month refactoring-Real question: Are those features worth more than 30+ months of 10% overhead?-```--### Hiring Decisions--```markdown-## Hiring Opportunity Cost--Choice: Hire senior engineer at $250K-Alternative: Two mid-level at $300K total--Analysis:-- Senior: Higher immediate productivity, mentorship-- Two mid: More throughput long-term, redundancy--Opportunity cost of senior:-- Fewer total engineers-- Less coverage/redundancy-- Longer ramp-up if they leave--Opportunity cost of two mid:-- More management overhead-- Longer to complex projects-- Training investment--Decision depends on: Current team composition, project complexity, growth stage-```--## Opportunity Cost Template--```markdown-# Opportunity Cost Analysis: [Decision]--## The Choice-What we're considering: [Primary option]-Resource commitment: [Time, money, people]--## Alternatives-What else could we do with these resources?--| # | Alternative | Resource Use | Direct Value | Strategic Value |-|---|-------------|--------------|--------------|-----------------|-| 1 | [Primary choice] | [X] | [Value] | [Strategic] |-| 2 | [Alternative 1] | [X] | [Value] | [Strategic] |-| 3 | [Alternative 2] | [X] | [Value] | [Strategic] |-| 4 | Do nothing | [X] | [Value] | [Strategic] |--## Opportunity Cost Calculation--Best foregone alternative: [Which one]-Value of that alternative: [Quantified if possible]--## Future Tradeoff / Permanent Foregone-- Temporary costs if primary fails: [recoverable? how]-- Permanent costs if primary is skipped: [window/option that closes]-- Permanent costs if alternative is skipped: [if any]-- Lasting "what if" risk: [which path, if any]--## True Cost of Primary Choice-- Direct cost: [Resources consumed]-- Opportunity cost: [Value of best foregone alternative; classify temporary vs permanent components]-- Permanent component of opportunity cost: [window/option that closes if delayed/declined — included above, do not add twice]-- Total: [Direct cost + opportunity cost]--## Decision-Is [primary choice] worth [total cost]?-[Reasoning]--## Reversibility-If we're wrong, can we change course? At what cost?-```--## Mental Shortcuts--### The "What Else?" Question--Always ask: "If we didn't do this, what would we do instead?"--### The 10x Test--If opportunity cost is 10x the direct cost, rethink the decision.--### The Time Value Multiplier--Engineer time often has 3-5x multiplier in opportunity cost vs. dollar cost.--### The Status Quo Alternative--Always include "change nothing" as an explicit alternative.--## Verification Checklist--- [ ] Explicitly stated the choice and resource commitment-- [ ] Listed at least 3 alternatives (including status quo)-- [ ] Valued each alternative (even roughly)-- [ ] Identified the best foregone alternative-- [ ] Separated temporary recoverable costs from permanent foregone options-- [ ] Calculated opportunity cost explicitly-- [ ] Made decision accounting for full cost-- [ ] Considered reversibility--## Key Questions--- "What are we NOT doing by choosing this?"-- "Is the 'free' option actually free?"-- "What would we do with these resources otherwise?"-- "What's the value of our next-best alternative?"-- "Which foregone option permanently closes if we wait or decline?"-- "Is this worth more than everything we're giving up?"-- "Have we included the status quo as an option?"--## Economic Wisdom--"There is no such thing as a free lunch." — Milton Friedman--Every choice has a cost, even if it's not written on an invoice. The cost is what you gave up to make that choice. Recognizing opportunity cost transforms how you evaluate decisions.--"The cost of a thing is the amount of what I will call life which is required to be exchanged for it." — Henry David Thoreau-For engineers: substitute "engineering time" for "life" — it's your most valuable and constrained resource.+- Trivial or cheaply reversible choices where analysis costs more than the resource+- No real alternative use (resource is idle, earmarked, or non-fungible)+- Mandatory work (compliance, security fix, hard dependency) with no optional alternative+- Inventing speculative alternatives only to look rigorous when the next-best is clearly worse++## Procedure++1. **State the commitment.** Name the choice, the scarce resource units (eng-weeks, dollars, calendar), and the decision horizon.+2. **List real alternatives, including do-nothing.** At least: proposed option, next-best productive use of the same resources, and status quo / wait. Drop fantasy options with no owner or feasibility.+3. **Value each path.** For each alternative, estimate direct value, strategic value, risk, and time-to-value in the same units. Prefer rough comparable magnitudes over fake precision.+4. **Compute best forgone value and value delta.** Identify the single best non-chosen alternative (may be do-nothing). `best_forgone_value` = its estimated value. `value_delta` = `chosen_value − best_forgone_value` (same units). True cost of choosing = direct cost of the choice + `best_forgone_value`. Prefer the option with the superior (positive) value delta after risk; a large positive chosen value is not enough if the forgone alternative is larger.+5. **Future tradeoff / permanent forgone options.** For serious alternatives (including the bold path): mark temporary recoverable costs vs permanent losses (window closes, lock-in, no re-entry). Prefer avoiding the greater permanent loss when acting downside is recoverable and non-catastrophic—even if near-term value_delta is slightly negative. Do not invent permanence for speculative upside without evidence.+6. **Strongest countercase and decide.** Steel the case that the best alternative or its value is misidentified (sunk-cost anchoring, status-quo undervalued, or a "free" option that still burns time). Recompute `value_delta` under that challenge. Then choose: proceed if delta stays favorable (or permanent-loss rule applies), else switch, wait, or split. Stop when ranking is stable.++## Output++```text+Choice: …+Resources committed: …+Alternatives:+ A (proposed): value … risk …+ B (next-best): value … risk …+ C (do-nothing / wait): value … risk …+Best forgone alternative: …+Best forgone value: …+Value delta (chosen_value − best_forgone_value): …+Permanent vs temporary losses: …+Decision: proceed | switch | wait | split — because value_delta … (and permanent-loss rule if used)+Countercase checked: …+```++## Verification++- **Falsify:** If the analysis never names a concrete next-best use of the same resources, or reports only one number labeled both "opportunity cost" and "delta," it is incomplete—add B, then report `best_forgone_value` and `value_delta` separately.+- **Stop:** When one best forgone alternative and a signed value delta determine the choice, stop enumerating weaker options.+- **Over-application guard:** Do not run full accounting on mandatory or trivial work. Ignore sunk costs; revalue only from current state forward.diff --git a/skills/thinking-pre-mortem/SKILL.md b/skills/thinking-pre-mortem/SKILL.mdindex 6e9e009..4b6a49b 100644--- a/skills/thinking-pre-mortem/SKILL.md+++ b/skills/thinking-pre-mortem/SKILL.md@@ -1,216 +1,45 @@---name: thinking-pre-mortem-description: Before committing to a plan or launch, assume it has already failed and reason backward through why — prospective hindsight surfaces risks that "what could go wrong?" misses.+description: Before committing to a plan or launch, assume it already failed and reason backward through concrete causes — convert failure paths into mitigations, gates, and stop checks.disable-model-invocation: true---# Pre-Mortem Analysis-## Overview-The pre-mortem, developed by psychologist Gary Klein, uses "prospective hindsight": instead of asking "What could go wrong?", assume the plan HAS failed and reason backward through why. Stating failure as already-happened surfaces concrete risks that forward-looking risk assessment glosses over.--**Core Principle:** It's easier to explain a failure that "already happened" than to predict one. Use that asymmetry productively in a single reasoning pass.+**Core rule:** Prospective hindsight beats "what could go wrong?" Assume the plan has already failed (past tense), generate concrete failure paths, reverse them into prevention requirements, and bind each top path to a verifiable plan change.## When to Use-- Project kickoff (before work begins)-- Before committing to a major technical decision-- Sprint planning for high-risk work-- Before launch or major release-- When team seems overconfident-- After a plan is formed but before execution-Decision flow:-```-Starting significant work? → yes → Plan looks solid / on track? → yes → PRE-MORTEM ESSENTIAL- ↘ no → Pre-mortem still valuable- ↘ no → Standard risk assessment may suffice-```+- Before kickoff, major technical commitment, high-risk sprint work, launch, or release.+- After a plan looks solid but before execution, especially when optimism or overconfidence is likely.+- When a decision is costly to reverse and risks are still implicit rather than enforced.## When NOT to Use-- The work is small, local, and reversible — failure is cheap to undo, so skip the ceremony.-- You're mid-incident under time pressure — act on the likely cause now (ooda/scientific-method); pre-mortem belongs *before* execution, not during firefighting.-- You'd only generate generic risks ("requirements unclear", "scope creep") that don't bind to this specific plan — stop if nothing concrete surfaces.-- The risks are already enforced by automated gates (CI, canary, rollback) — don't re-list what the system already catches.--## Trigger Card--Before committing to a plan or launch where optimism may be hiding risks:--1. **Assume it has already failed** — "It's six months later. The project was a disaster. What happened?"-2. **List concrete failure reasons** — specific to THIS plan, not generic. Why did it actually fail?-3. **Mitigate the top 3-5** — for each top failure reason, add a concrete safeguard or change the plan.--Skip if you'd only generate generic risks that don't bind to this specific plan. If risks are already enforced by automated gates (CI, canary, rollback), don't re-list what the system already catches. For a full launch risk review, run the full procedure.--## The Process--### Step 1: Set the Failure Frame-Adopt the stance that the plan has already failed, stated in past tense:-> "It is [future date, post-deadline]. This plan didn't just slip — it failed. The launch was rolled back / the migration corrupted data / adoption never happened."--Past tense is what makes this work: you are *explaining* a failure, not *predicting* one.--### Step 2: Generate Failure Reasons (one prospective-hindsight pass)-Reason through *why* it failed across every angle. Push for breadth, not comfort — aim for 15+ distinct reasons before filtering:-- **Technical:** wrong architecture, integration/contract breaks, scale limits, data loss-- **Process:** untested paths, no rollback, deploy timing, missing migration step-- **Assumptions:** which load-bearing assumption turned out false?-- **Dependencies/external:** upstream API, vendor, rate limits, config drift-- Force a second sweep: "What did I, the author of this plan, most want to be true that wasn't?"--Generate the full list first; do not prune or rank while generating (premature filtering anchors on the obvious risks).--### Step 3: Categorize and Prioritize-Group by theme and assess:--| Category | Risk | Likelihood | Impact | Priority |-|----------|------|------------|--------|----------|-| Technical | API integration fails | High | Critical | P0 |-| Process | Requirements unclear | Medium | High | P1 |-| People | Key person leaves | Low | Critical | P1 |-| External | Vendor delays | Medium | Medium | P2 |--### Step 4: Develop Mitigations-For top risks, define:-```-Risk: API integration fails-Mitigation:-- Spike on integration first, before depending on it-- Identify fallback vendor / degrade path-- Build abstraction layer for swap-ability-Verification: integration smoke test passes before downstream work begins-```--### Step 5: Failure-First Reverse Analysis-For each top failure scenario, work backward from the failed outcome to the conditions that made it inevitable, then lock preventions as plan requirements:--1. **State the failed outcome in past tense** — e.g., "Auth launch was rolled back after credential stuffing emptied accounts."-2. **Trace necessary conditions** — list what had to be true for that failure (missing controls, false assumptions, absent checks). Ask: "What conditions made this failure possible or guaranteed?"-3. **Invert each condition into a prevention requirement** — turn the condition into an explicit avoid/require rule with a verifiable criterion (not a vague intention).-4. **Bind to the plan** — attach owner, verification checkpoint, and whether the requirement blocks ship or is staged.--```-Failed outcome: Credential stuffing emptied accounts after launch-Necessary conditions:-- No rate limiting on login-- Passwords stored with weak hashing-- No anomaly alerting on auth failures-Prevention requirements:-- Require rate limit + lockout on auth endpoints (verified by load/abuse test)-- Require bcrypt cost ≥ 12 or an explicitly configured Argon2id policy (verified by config audit)-- Require auth-failure anomaly alert before GA (verified by alert fire test)-```--Use this pass when a failure reason is still abstract ("security fails") or when optimism is hiding the concrete path. Prefer reverse analysis over forward brainstorming once the failure frame is set.--### Step 6: Update the Plan-Incorporate mitigations and reverse-analysis prevention requirements into the plan:-- Add spike/investigation tasks ahead of dependent work-- Build in contingency for the highest P×S risks-- Add a concrete verification/checkpoint for each top risk-- Encode inverted conditions as explicit ship/stage gates--## Pre-Mortem Template--```markdown-# Pre-Mortem: [Project Name]-Date: [Date]--## The Scenario-It is [Future Date]. [Project] has failed.--## Failure Reasons Identified--### Technical-- [Reason 1]-- [Reason 2]--### Process-- [Reason 1]-- [Reason 2]--### People/Team-- [Reason 1]-- [Reason 2]--### External/Dependencies-- [Reason 1]-- [Reason 2]--## Priority Risks and Mitigations--### P0: [Risk Name]-- **Description**: [What went wrong]-- **Mitigation**: [How to prevent]-- **Owner**: [Who]-- **Checkpoint**: [When to verify]--### P1: [Risk Name]-...--## Plan Updates-- [ ] [Action item from pre-mortem]-- [ ] [Action item from pre-mortem]-```--## Why Pre-Mortems Work--1. **Reframes prediction as explanation**: Explaining an "already-happened" failure is concrete; predicting one stays vague.-2. **Defeats first-plausible-answer lock-in**: Generating the full failure list before ranking stops anchoring on the obvious risk.-3. **Surfaces buried assumptions**: Asking "what did the plan need to be true that wasn't?" exposes load-bearing assumptions the forward plan hid.-4. **Counters optimism**: The forced-failure stance overrides the natural bias toward "this will work."--## Common Failure Categories to Prompt--| Category | Example Failures |-|----------|-----------------|-| Requirements | Scope creep, unclear success criteria, missing stakeholder |-| Technical | Wrong architecture, integration failures, scale issues |-| Timeline | Underestimation, dependencies delayed, parallel work blocked |-| Team | Key person unavailable, skill gaps, communication breakdown |-| External | Vendor issues, regulatory changes, market shift |-| Process | Insufficient testing, deployment problems, no rollback |--## Execution Tips-- **Use past tense** consistently ("failed" not "might fail") — it's what triggers the hindsight effect.-- **Generate before filtering** — collect the full list, then rank; don't prune mid-sweep.-- **Interrogate the plan's own optimism** — what did the author most want to be true?-- **Convert to action** — a pre-mortem with no plan change is wasted; each top risk needs a mitigation + verification.-## Decision Output+- Work is small, local, and cheaply reversible — skip the ceremony.+- You are mid-incident under time pressure — act now (OODA / scientific method); pre-mortem is pre-execution.+- You would only emit generic risks ("scope creep", "requirements unclear") that do not bind to this plan.+- Risks are already enforced by live gates (CI, canary, rollback, alerts) with no residual unlisted path.+- A mature risk register already covers the same specific failure paths with owners and checks.-When this skill is used as a workflow gate, produce:+## Procedure-```json-{- "decision_key": "pre_mortem_warranted",- "answer": true,- "rationale": "one concise sentence"-}-```+1. **Set the failure frame in past tense:** "It is [post-deadline date]. The plan failed: [rollback / data loss / no adoption / SLA breach]." Explaining a happened failure is required; predicting one is not enough.+2. **Generate failure reasons before filtering:** sweep technical, process, assumptions, dependencies/external, and people. Force a second pass: "What did the plan most need to be true that was not?" Collect breadth first (aim for many distinct reasons); do not rank mid-sweep.+3. **Prioritize:** group by theme; score likelihood × impact; keep the top 3–5 concrete risks (drop generics that do not bind).+4. **Failure-first reverse analysis (absorbed reverse path):** for each top risk, (a) restate the failed outcome in past tense, (b) list **necessary/enabling conditions** that had to be true for that failure, (c) **invert** each condition into a verifiable prevention requirement (avoid/require rule + check), (d) bind **owner, verification checkpoint, and ship/stage gate**.+5. **Mitigate and update the plan:** for each top risk, attach mitigation steps, spike/contingency if needed, and the reverse-analysis prevention requirements as explicit plan gates. A pre-mortem with no plan change is incomplete.+6. **Stop when** top risks each have a bound mitigation or prevention gate, or when further reasons are only generic restatements — then ship the updated plan, do not keep brainstorming.-## Escalate to Full Skill When+## Output-- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.+1. **Failure scenario** — past-tense disaster frame with date and failed outcome.+2. **Failure reasons** — unfiltered list, then prioritized top 3–5 with likelihood × impact.+3. **Reverse paths** — for each top risk: necessary conditions → inverted prevention requirements.+4. **Mitigations** — owner, verification checkpoint, ship/stage gate per top risk.+5. **Plan deltas** — concrete tasks, spikes, contingencies, and gates added to the plan.-## Verification Checklist-- [ ] Run before significant work begins (not mid-incident)-- [ ] Failure frame stated in past tense-- [ ] 15+ distinct failure reasons generated before ranking-- [ ] Risks prioritized by likelihood × impact-- [ ] Top 3-5 risks have explicit mitigations-- [ ] Top failures reverse-analyzed: necessary conditions → prevention requirements with verification-- [ ] Each mitigation has a concrete verification/checkpoint-- [ ] Plan updated to incorporate findings+## Verification-## Key Questions-- "The plan failed. Why?"-- "What conditions had to be true for this failure to occur?"-- "What was obvious in retrospect that the plan missed?"-- "What warning signs would have shown up first?"-- "Which load-bearing assumption turned out to be false?"-- "What did the plan most need to be true that wasn't?"-- "What prevention requirement would have made this failure path impossible?"+- **Falsify/stop:** if no plan-specific failure path can be stated in past tense with necessary conditions, stop — you are generating theater, not risk. If a "mitigation" has no verification checkpoint, it is not done.+- **Over-application guard:** do not pre-mortem reversible chores, mid-incident firefighting, or systems that already enforce the same paths. Do not leave abstract risks as "mitigate later"; either invert them into gates or drop them as non-actionable.diff --git a/skills/thinking-probabilistic/SKILL.md b/skills/thinking-probabilistic/SKILL.mdindex a32da51..73dda19 100644--- a/skills/thinking-probabilistic/SKILL.md+++ b/skills/thinking-probabilistic/SKILL.md@@ -1,368 +1,55 @@---name: thinking-probabilistic-description: Use when forecasting, estimating, or sizing risk. Anchor on base rates, give a range, update prior→likelihood→posterior on new evidence, and decompose unknowns into order-of-magnitude bounds.+description: Use when forecasting, estimating, or sizing risk — anchor on base rates, give ranges, update prior→likelihood→posterior on evidence, and factor unmeasured quantities into order-of-magnitude bounds.disable-model-invocation: true---# Probabilistic Thinking-## Overview--Probabilistic thinking, informed by Philip Tetlock's "Superforecasting," treats a forecast as a probability and a range rather than a single confident number. Core moves: **anchor on the base rate**, **express the estimate as a range** (not a point), **update prior→likelihood→posterior** when evidence arrives, and **decompose unknowns** into order-of-magnitude factor bounds when you cannot measure or look up the number.--**Core Principle:** Start from how often similar things happen, state your estimate as a range with a confidence level, move the number explicitly when evidence moves, and bound unmeasured quantities by factoring them rather than inventing precision.--> **Stateless-agent note.** Across a single task you have no persistent prediction log, so there is no "track my calibration over months" step here. The leverage is in the *act* of estimating: base rate, range, update. Apply the calibration *attitude* (assume you're overconfident; widen the range) without pretending to keep a cross-session scorecard you don't have.+**Core rule:** State beliefs as numbers and ranges, not vibes. Anchor on a base rate, update with an explicit likelihood, and bound unknowns by factoring them — never invent false precision.## When to Use-- Stating a timeline or effort estimate-- Assessing the risk of an action (migration, deploy, change)-- Predicting an outcome (will this fix work? will this launch hit the target?)-- Evaluating an uncertain technical choice-- Any time you're about to give a confident single number you can't actually be sure of--Decision flow:--```-About to state a forecast/estimate/risk?- → Outcome genuinely uncertain? → yes → BASE RATE, then a RANGE (not a point)- → New evidence since last estimate? → yes → PRIOR → LIKELIHOOD → POSTERIOR UPDATE- → Need a number you can't measure or look up? → yes → DECOMPOSE into factors; report order-of-magnitude bounds- → Can you just look it up / measure it? → yes → DO THAT INSTEAD-```+- Timeline, effort, or outcome forecasts where the true value is uncertain.+- Risk sizing for a change, migration, deploy, or launch.+- Any moment you are about to state a confident single number you cannot actually know.+- New evidence arrives and a prior estimate should move.## When NOT to Use-- **The quantity is knowable.** If you can measure it, query it, or look it up, do that — don't dress a checkable fact as a probability.-- **A single evidence update needs no range or base-rate work beyond prior × likelihood.** Still do the update here: state prior, likelihood ratio, posterior. Don't invent a full forecast ceremony if a point update is enough.-- **The decision doesn't depend on the number.** If you'd act the same across the plausible range, skip the estimate and act.-- **You'd be inventing the base rate.** If there's no real reference class, say the estimate is a guess rather than manufacturing false precision.--## Core Concepts--### Probability as Confidence--Convert vague language to numbers:--| Vague Statement | Probability Range |-|-----------------|-------------------|-| "Certain" | 99%+ |-| "Almost certain" | 90-99% |-| "Very likely" | 80-90% |-| "Likely" / "Probable" | 65-80% |-| "Better than even" | 55-65% |-| "Toss-up" | 45-55% |-| "Unlikely" | 20-35% |-| "Very unlikely" | 10-20% |-| "Almost impossible" | 1-10% |-| "Impossible" | <1% |--### Confidence Intervals--Express estimates as ranges, not points:--```-BAD: "The project will take 6 weeks"-GOOD: "I'm 80% confident the project will take 4-8 weeks"-BETTER: "50% confidence: 5-7 weeks; 90% confidence: 3-10 weeks"-```--### Base Rates--Start with how often similar things happen:--```-Question: Will this feature launch on time?-Base rate: What % of similar features launched on time? ~40%-Adjustment: This team is experienced (+10%), scope is clear (+10%)-Estimate: ~60% probability of on-time launch-```--## The Probabilistic Process--### Step 1: Express Initial Probability (Prior + Base Rate)--State the prior as a number *before* new evidence. Prefer a reference-class base rate over gut feel.--```markdown-## Prediction: Will we hit Q2 revenue target?--Prior (base rate first): 65%-Reasoning:-- Last 4 quarters: Hit 3/4 targets (75% base rate)-- Current pipeline: Slightly below historical (-10%)-- New product launching: Uncertain impact-```--Base-rate / alternative check (run before locking the prior):-1. What is the success rate for *similar* efforts in a real reference class?-2. Name at least one credible alternative hypothesis or path and its base rate.-3. If the prior is far from the base rate, write the concrete reason — or pull the prior back toward the base rate.--### Step 2: Identify Key Uncertainties--What could change the probability?--```markdown-Key uncertainties:-1. Will Enterprise deal close? (+15% if yes)-2. Will new product cannibalize existing? (-10% if significant)-3. Will competitor launch disrupt? (-20% if aggressive)-```--### Step 3: Create Probability Tree (or Fermi Bounds When Unmeasured)--For complex predictions, branch scenarios:--```-Project success: ?-├── Technical risk resolves well (60%)-│ ├── Team stays intact (80%) → 0.60 × 0.80 = 48% → SUCCESS-│ └── Key person leaves (20%) → 0.60 × 0.20 × 0.50 = 6% → PARTIAL-├── Technical risk causes delays (30%)-│ ├── Scope reduced (60%) → 0.30 × 0.60 × 0.70 = 12.6% → SUCCESS-│ └── Scope maintained (40%) → 0.30 × 0.40 = 12% → FAILURE-└── Technical risk blocks project (10%) → 10% → FAILURE--P(Success) = 48% + 12.6% = 60.6% ≈ 60%-```--When you need a **quantity** you cannot measure or look up and order-of-magnitude is enough:--1. **Decompose:** Quantity = Factor₁ × Factor₂ × … (component sum, rate×time, or population×fraction).-2. **Bound each factor** with a range (not a point); use geometric mean for order-of-magnitude; one significant figure.-3. **Multiply and sanity-check:** Does the order of magnitude make sense? Would a 10× error change the decision? Replace any factor that is actually lookup-able with the real value.-4. **Report:** "~X, within 3–5×" — never false precision.--```-Storage ≈ users × events/user/day × bytes/event × days × overhead- ≈ 150k × 50 × 500 × 365 × 3 ≈ 4 TB (range ~1–15 TB)-```--Skip Fermi when the number is cheaply measurable/lookup-able, when the decision needs precision tighter than ~3–5×, or when every factor is pure invention with no anchor.--### Step 4: Update Prior → Likelihood → Posterior--When new evidence arrives, update explicitly:--1. **Prior** — belief *before* this evidence (odds or probability).-2. **Likelihood ratio** — always P(evidence | H) / P(evidence | ¬H). LR > 1 supports H; LR = 1 is noise; LR < 1 undermines H (e.g. 0.25 = 4× against). Strength bands for |log| distance from 1: weak ~1.5–3× (or 1/3–2/3), moderate 3–10× (or 0.1–1/3), strong 10–100× (or 0.01–0.1), definitive 100×+ (or ≤0.01).-3. **Posterior odds = prior odds × LR** (multiply even when LR < 1 — that *lowers* the posterior); convert odds to probability as p = odds / (1 + odds).-4. Yesterday's posterior becomes today's prior for the next piece of evidence.--```markdown-Prior: 30% feature succeeds → odds 0.30/0.70 = 0.43-Evidence for: early lift 5% (p=0.08)- P(result | works) ≈ 0.60; P(result | doesn't) ≈ 0.15 → LR = 4×-Posterior odds: 0.43 × 4 = 1.72 → posterior ≈ 63%--Evidence against: week-2 lift vanishes- P(vanish | works) ≈ 0.20; P(vanish | doesn't) ≈ 0.80 → LR = 0.25-Posterior odds: 1.72 × 0.25 = 0.43 → posterior ≈ 30%-```--Base-rate neglect guard: for rare events, start with the prior; a positive test on a rare condition is often still a false alarm. Do not jump from vivid evidence to near-certainty.--Heuristic update (when formal LR is overkill):--```markdown-Original estimate: 65% hit revenue target-New information: Enterprise deal delayed to Q3 → −15% → 50%-New information: Competitor launch was weak → +10% → 60%-```--### Step 5: State the Estimate So It Can Be Checked--Make the forecast falsifiable within the task itself: a clear claim, a timeframe, and the range. This lets the *user or a later observation* verify it — you don't carry a personal scorecard across sessions, but a sharply-stated prediction can still be proven right or wrong.--```markdown-Prediction: "80% confident the migration completes with <5 min downtime,- range 1-15 min downtime." (Checkable against the actual run.)-```--## Calibration Techniques--> These are sanity checks you apply *now*, within the task — not a longitudinal tracking exercise.--### The Equivalent Bet Test--"Would I bet at these odds?"--```-Prediction: 80% confident project finishes on time-Equivalent: Would I bet $4 to win $1?-If that feels wrong, adjust the probability.-```--### The Outside View--Always check base rates:--```-Inside view: "Our team is great, we'll definitely finish on time"-Outside view: "What % of similar projects finished on time?"--Inside tends toward overconfidence-Outside provides calibration anchor-```--### The Pre-Mortem Adjustment--Imagine failure, then adjust:--```-Initial estimate: 85% success-After pre-mortem: Identified 5 failure modes I hadn't considered-Adjusted estimate: 70%-```--### The Confidence Interval Check--Are your intervals too narrow?--```-Test: Of your 90% confidence intervals, do 90% contain the actual?-Common finding: Only 60-70% do-Fix: Widen intervals by 50%-```--## Application Examples--### Project Estimation--```markdown-## Project: Payment System Rewrite--Timeline estimate:-- 50% confidence: 8-12 weeks-- 80% confidence: 6-16 weeks-- 95% confidence: 4-24 weeks--Key variables:-- API complexity: High uncertainty (+/- 3 weeks)-- Team availability: Medium uncertainty (+/- 2 weeks)-- Integration testing: High uncertainty (+/- 4 weeks)--Commitment: "We're 80% confident we'll deliver in Q2"-```--### Risk Assessment--```markdown-## Risk: Database migration causes extended downtime--Probability assessment:-- Base rate for similar migrations: 20% have issues-- Our preparation level: Above average (-5%)-- Complexity of our schema: Above average (+5%)-- Rollback plan quality: Strong (-5%)--Estimate: 15% probability of extended downtime--Mitigation value:-- If issue occurs: 4 hours downtime × $10K/hour = $40K-- Expected loss: 15% × $40K = $6K-- Mitigation cost: $3K for additional testing-- Decision: Mitigation worth it (ROI positive)-```--### Technical Decision--```markdown-## Decision: Adopt new framework--Success probability factors:-| Factor | Probability | Weight |-|--------|-------------|--------|-| Team learns quickly | 70% | 0.3 |-| Framework matures | 80% | 0.2 |-| Performance meets needs | 60% | 0.3 |-| Integration works | 75% | 0.2 |--Combined probability (simplified):-0.70 × 0.80 × 0.60 × 0.75 = 25% (if all must succeed)-OR weighted average: 70% (if partial success acceptable)--Decision: High uncertainty suggests pilot first-```--## Probabilistic Thinking Template--```markdown-# Probabilistic Assessment: [Prediction]--## Prediction-[Clear, falsifiable statement with timeframe]--## Initial Probability (Prior)-Estimate: [X]%-Base rate: [Similar events: Y%]-Alternative hypothesis / path: [Name + base rate]-Adjustment rationale: [Why different from base rate — or pull prior toward base rate]--## Confidence Interval-- 50% CI: [Range]-- 80% CI: [Range]-- 95% CI: [Range]--## Key Uncertainties-| Uncertainty | If positive | If negative |-|-------------|-------------|-------------|-| [Factor 1] | +X% | -Y% |-| [Factor 2] | +X% | -Y% |--## Fermi Bounds (if quantity unmeasured)-Quantity = [Factor1] × [Factor2] × …-Point / range: ~[X] within [N]×--## Updates (prior → likelihood → posterior)-| Evidence | Prior | LR (or heuristic Δ) | Posterior |-|----------|-------|---------------------|-----------|-| | | | |--## Checkable Outcome-[The specific observation that will prove this forecast right or wrong]-```--## Verification Checklist--- [ ] Expressed prediction as specific probability (prior before new evidence)-- [ ] Checked base rate and at least one alternative hypothesis/path-- [ ] Created appropriate confidence intervals-- [ ] Identified key uncertainties and their impacts-- [ ] For unmeasured quantities: decomposed into factors and reported order-of-magnitude bounds-- [ ] Updated with prior → likelihood ratio → posterior when evidence arrived-- [ ] Stated the prediction so it's checkable (claim + timeframe + range)-- [ ] Applied equivalent bet test for sanity check-- [ ] Willing to update the number when new information arrives--## Key Questions--- "What probability would I assign to this?"-- "What's the base rate for similar things — and what's the best alternative?"-- "What was my prior, what's the likelihood ratio, and what's the posterior?"-- "If I need a quantity I can't look up, what factors multiply to it?"-- "What would change my estimate up or down?"-- "Am I being overconfident? (Usually yes — widen the range)"-- "Have I given a range, or am I hiding uncertainty behind a single number?"-- "Would I bet at these odds?"--## Tetlock's Superforecaster Traits--1. **Update often:** Change the number when evidence changes-2. **Granular probabilities:** Use 65% not "likely"-3. **Outside view:** Start with base rates-4. **Seek disconfirming evidence:** Look for reasons you're wrong-5. **Ranges, not points:** Express confidence as an interval, and widen it-6. **Intellectual humility:** Assume you're often wrong--## Tetlock's Wisdom--"The fox knows many things, but the hedgehog knows one big thing."--Superforecasters are foxes—they integrate many perspectives, update frequently, and avoid ideological certainty. They're not smarter; they're more calibrated.--"Beliefs are hypotheses to be tested, not treasures to be protected."--Your predictions should change as evidence changes. Holding steady when you should update is a calibration failure.+- The quantity is measurable or look-up-able — measure or look it up.+- The decision is invariant across the whole plausible range — skip the estimate and act.+- There is no real reference class and you would invent a base rate — label it a guess, not a calibrated forecast.+- You only need a binary gate and already have a decisive observation — do not pad with ceremony.++## Procedure++1. **Define a checkable claim:** outcome + timeframe + unit. Prefer a falsifiable statement over vague language ("likely").+2. **Lock a prior and challenge it:** name a reference-class base rate and at least one credible alternative path/hypothesis with its rate. Pull the prior toward the base rate unless you write a concrete reason for deviation. Then state the strongest evidence-based case that your chosen prior or range is wrong, what estimate it supports, and revise if that countercase survives. Convert vague words to numbers (e.g. "likely" ≈ 65–80%).+3. **Express a range, not a point:** give at least one confidence interval (50% and 80% preferred). Assume overconfidence; widen intervals when the outside view is thin.+4. **Update prior → likelihood → posterior when evidence arrives:**+ - Prior odds = p / (1 − p).+ - Likelihood ratio LR = P(E|H) / P(E|¬H). LR > 1 supports H; LR = 1 is noise; LR < 1 undermines H.+ - Posterior odds = prior odds × LR (multiply even when LR < 1); p = odds / (1 + odds).+ - Strength bands for distance from 1: weak ~1.5–3×, moderate 3–10×, strong 10–100×, definitive 100×+.+ - Yesterday's posterior is today's prior for the next evidence. For rare events, start from the base rate — vivid positives still leave most mass on false alarms.+5. **Fermi-bound unmeasured quantities** (only when you need a magnitude you cannot measure/look up):+ - Decompose: Quantity = Factor₁ × Factor₂ × … (or sum of components).+ - Bound each factor with a range; use one-significant-figure geometric means for order-of-magnitude.+ - Multiply; report "~X within 3–5×"; sanity-check whether a 10× error would change the decision; replace any factor that is actually lookup-able.+ - Skip Fermi when the number is cheaply measurable, when the decision needs tighter than ~3–5× precision, or when every factor is pure invention.+6. **State the final estimate for checking:** claim, range/CIs, key uncertainties, and the observation that would prove it wrong. Stop when the decision is stable across the remaining range or the next update needs new evidence you do not have.++## Output++1. **Claim** — falsifiable statement with timeframe.+2. **Prior** — base rate, alternative path, adjustment reason, strongest countercase, and resulting prior probability.+3. **Range** — confidence intervals (not a lone point).+4. **Updates** — each evidence row: prior, LR (or explicit heuristic Δ), posterior.+5. **Fermi bounds** (if used) — factor product and "~X within N×".+6. **Decision implication** — what changes if the true value is at the low vs high end of the range.++## Verification++- **Falsify/stop:** if you cannot name a base rate, alternative, or serious countercase, label the estimate as a guess rather than calibrated. If the decision is unchanged across the full range, stop estimating. If new evidence arrives and the number does not move (or moves without an LR/Δ), recompute.+- **Over-application guard:** do not dress checkable facts as probabilities, invent reference classes, or Fermi-decompose quantities you can measure. Do not report three significant figures on a 5×-uncertain product. For rare events, refuse jumps from one vivid hit to near-certainty without the base-rate prior.diff --git a/skills/thinking-red-team/SKILL.md b/skills/thinking-red-team/SKILL.mdindex e7ab209..ed203e3 100644--- a/skills/thinking-red-team/SKILL.md+++ b/skills/thinking-red-team/SKILL.md@@ -1,162 +1,58 @@---name: thinking-red-team-description: Use when reviewing code, auth, or APIs for security vulnerabilities — adopt an attacker mindset, enumerate the attack surface, report only findings with a concrete reproducible attack path.+description: For authorized security review of code, auth, or APIs you control, model the attacker, map the attack surface, and report only findings with a reproducible exploit path and verified mitigation.disable-model-invocation: true----# Red Team Thinking+# Red Team-## Overview--Red teaming is **adversarial security review**: deliberately attacking a system you control to find vulnerabilities before an attacker does. This skill is scoped to security/code vulnerability detection — it is NOT for plan stress-testing or decision challenge (use `thinking-pre-mortem` or `thinking-steel-manning` for those).--**The anti-fabrication gate is the most important rule:** every reported finding MUST include a concrete, reproducible attack path — entry point → exact steps → realized impact. If you cannot describe how the attack actually executes against *this* code/config, it is not a finding. Drop it. A short report of real, demonstrable vulnerabilities beats a long list of speculation.--**Core Principle:** Attack yourself before others do. But only report what you can actually break.+Adversarial security review of systems you are authorized to assess. Attack before an outsider does, but report only what you can actually break: every finding needs a concrete exploit path and a check that the proposed fix closes it.## When to Use-- Security review of code, authentication, authorization, APIs, or infrastructure you control-- Pre-launch security hardening of a system that handles auth, data, or money-- Evaluating whether a specific vulnerability class (injection, XSS, auth bypass, etc.) is present in your code--Decision flow:--```-Reviewing a system for security?- → Can you demonstrate an attack path? → No → Don't report it- → Is the finding reproducible against this code/config? → No → Drop it- → Is this plan stress-testing or decision challenge? → Yes → Use thinking-pre-mortem or thinking-steel-manning- → No → RED TEAM IT-```+- Security review of code, authentication, authorization, APIs, data handling, or infrastructure you control and are permitted to probe.+- Pre-launch hardening of systems that handle auth, money, personal data, or privileged actions.+- Checking whether a specific vulnerability class (injection, XSS, IDOR, auth bypass, SSRF, secret exposure, etc.) is present with a real path.+- Validating that a claimed control actually blocks the attack, not only that a scanner is quiet.## When NOT to Use-- **Speculative claims without a reproducible attack path.** This is the anti-fabrication gate. "Best practice says X" or "this could theoretically be vulnerable" is not a finding. State the entry point, exact steps, and realized impact — or drop it.-- **Plan, strategy, or decision stress-testing.** For "how could this plan fail," use `thinking-pre-mortem`. For "what's the strongest case against this decision," use `thinking-steel-manning`.-- **Architecture review without security focus.** For architecture resilience, use `thinking-systems` or `thinking-pre-mortem`.-- **Running scanners replaces thinking.** Where you can actually run a SAST tool, fuzzer, or PoC, do that. This skill structures the adversarial thinking; it doesn't replace automated verification.-- **Padding the report to look thorough.** A short list of real vulnerabilities beats a long list of theoretical ones. Resist the incentive to add "informational" or "best-practice" items.+- No authorization to attack the target — stop; do not probe systems you do not own or have written leave to test.+- Speculative "best practice" notes without a reproducible exploit path — drop them; they are not findings.+- Plan, strategy, or decision stress-testing — use pre-mortem (how the plan fails) or steel-manning (strongest case against the decision).+- Architecture resilience without a security objective — use systems or pre-mortem.+- Scanner output alone as a report — patterns are leads; red-team requires an exploit path.+- Non-security root-cause or hypothesis localization — use scientific-method or five-whys-plus.## Procedure-### Step 1: Define the Target and Scope--```markdown-Target: [System/component under review]-Scope: [What to attack — be specific]-Out of scope: [What to skip]-Goal: [What constitutes a successful attack — e.g., unauthorized access, data exfiltration, privilege escalation]-```--### Step 2: Adopt the Adversary Mindset--Identify who would attack this system and what they want:--```markdown-Adversary profiles:-- External attacker (no access): targets public endpoints, auth bypass, injection-- Authenticated user (basic access): targets privilege escalation, IDOR, business logic-- Insider (elevated access): targets data exfiltration, audit bypass--For each profile, ask: "If I wanted to cause maximum damage with their access level, how would I?"-```--### Step 3: Enumerate the Attack Surface--Map every entry point and trust boundary:--| Surface | Exposure | Trust Boundary |-|---------|----------|----------------|-| Login form | Public internet | Anonymous → Authenticated |-| API /graphql | Public (with key) | Authenticated → Application |-| Password reset flow | Public | Anonymous → Account owner |-| Admin panel | Internal network | Authenticated → Admin |-| File upload endpoint | Authenticated | User data → Server storage |--### Step 4: Execute Attack Scenarios--For each attack surface, attempt to break the system:--```markdown-Attack: Credential stuffing against login-Steps:-1. Obtain breach database of known credentials-2. Script requests against /login with varied credentials-3. Observe rate limiting, account lockout, timing differences-Findings:-- Rate limiting: 10 req/min per IP (bypassable via distribution)-- Account lockout: none-- Timing: response time reveals valid vs invalid usernames ← VULNERABILITY-```--For each attack scenario, record: the entry point, exact steps taken, observed behavior, and whether a vulnerability was found.--### Step 5: Attempt Defense Bypass--For each defense encountered, try to bypass it:--| Defense | Bypass Attempt | Result |-|---------|---------------|--------|-| IP-based rate limiting | Distribute requests across IPs | BYPASSED |-| Input validation | Unicode normalization attacks | RESISTED |-| Session timeout | Replay expired token with modified timestamp | BYPASSED |--### Step 6: Document Findings — With the Anti-Fabrication Gate--For EVERY finding, fill out:--```markdown-Finding: [Title]-Severity: Critical / High / Medium / Low-Attack path (REQUIRED):- Entry point: [URL, endpoint, parameter, file]- Steps: [1. Send X, 2. Observe Y, 3. Escalate to Z]- Realized impact: [What the attacker actually achieves — data access, privilege, DoS]-Remediation: [Concrete fix]-```--**If you cannot fill out the attack path completely, drop the finding.** Do not report "Missing HttpOnly flag" as a standalone finding without demonstrating session token theft. Do not report "No rate limiting" without demonstrating a viable brute-force attack.--## Output Contract--A completed Red Team report produces:--1. **Target and Scope** — what was reviewed and what was excluded-2. **Attack Surface Map** — entry points with exposure levels and trust boundaries-3. **Attack Scenarios Executed** — each scenario with steps, observations, and outcome-4. **Findings Report** — each with severity AND a concrete, reproducible attack path (entry point → steps → impact)-5. **Defense Bypass Results** — which defenses held and which were circumvented-6. **Remediation Recommendations** — prioritized by severity with concrete fixes--Findings without a complete attack path are excluded from the report. A report with zero findings is acceptable if no reproducible vulnerabilities were discovered.--## Anti-Patterns--| Anti-Pattern | Symptom | Correction |-|---|---|---|-| **Speculative claims** | Findings that say "could be vulnerable" or "best practice says" without a demonstrated attack path | Drop them; only report what you can actually break |-| **Padding the report** | Adding "informational" or "best-practice" items to look thorough | A short report of real vulns beats a long list of theory |-| **Non-security red-teaming** | Using this skill for plan stress-testing or decision challenge | Use `thinking-pre-mortem` (plans) or `thinking-steel-manning` (decisions) |-| **Skipping the adversary model** | Attacking without defining who the attacker is and what access they have | Define the adversary profile first; attacks make sense only in context |-| **Missing the attack path** | Reporting a vulnerability without showing how to reach it | Every finding needs: entry point → steps → impact |-| **Scanner-as-substitute** | Running a SAST tool and reporting its output without adversarial thinking | The tool finds patterns; red-teaming finds exploitable paths |--## Decision Output--When this skill is used as a workflow gate, produce:--```json-{- "decision_key": "vulnerability_present",- "answer": true,- "rationale": "one concise sentence"-}+1. **Confirm authorization and objective.** State target, allowed scope, out-of-scope assets, success condition (e.g., unauthorized data read, privilege escalation), and stop rules. Refuse or narrow if authorization is unclear.+2. **Build the threat model.** Name adversary profiles (anonymous external, authenticated user, privileged insider) and their goals under realistic access. Attacks without an actor and goal are noise.+3. **Map the attack surface.** Enumerate entry points and trust boundaries: public endpoints, auth flows, APIs, uploads, admin surfaces, jobs, webhooks, secrets, and data stores. Note exposure and required privileges.+4. **Trace exploit paths.** For each high-value surface, attempt concrete abuse: input manipulation, authz gaps, token/session misuse, injection, SSRF, IDOR, mass assignment, rate-limit bypass, secret leakage. Record exact steps and observed behavior.+5. **Apply the anti-fabrication gate.** Keep a finding only if you can complete: entry point → ordered steps → realized impact on this code/config. Incomplete paths are dropped, not listed as "informational."+6. **Score severity and attempt defense bypass.** Rate impact and exploitability. For each relevant control (rate limit, validation, session check), try a realistic bypass and record held vs broken.+7. **Prescribe and verify mitigations.** For each kept finding, give a minimal concrete fix and state how to re-test that the path is closed. Prefer fixes that remove the exploit precondition. Stop when in-scope surfaces are covered or authorization/budget ends; zero findings is valid.++## Output++```text+Target/scope: <in | out | goal | authorization>+Threat model: <actors, access, goals>+Attack surface: <entry points + trust boundaries>+Findings (only complete paths):+ - Title | Severity+ Entry: <endpoint/param/file>+ Steps: <1..n>+ Impact: <realized effect>+ Bypass attempts: <control → result>+ Mitigation: <minimal fix>+ Re-test: <how to confirm closed>+Summary: <kept count; dropped speculative count>```-## Escalate to Full Skill When+## Verification-- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.+- Falsify any finding missing entry, steps, or realized impact; treat "could be vulnerable" as non-finding.+- Stop when in-scope attack surfaces are exhausted under authorization, or when re-test shows mitigations close the paths.+- Over-application guard: do not pad with best-practice laundry lists; do not use this skill for non-security plan critique; do not attack without authorization.diff --git a/skills/thinking-reversibility/SKILL.md b/skills/thinking-reversibility/SKILL.mdindex 63222e8..a545313 100644--- a/skills/thinking-reversibility/SKILL.md+++ b/skills/thinking-reversibility/SKILL.md@@ -1,381 +1,56 @@---name: thinking-reversibility-description: Before deliberating over a decision, ask if it's a one-way door (costly to undo) or two-way (cheap to undo) — decide two-way doors fast, and look for moves that make one-way doors reversible.+description: Before heavy deliberation, classify the decision as cheap or costly to undo; decide two-way doors fast and stage one-way doors to preserve options.disable-model-invocation: true----# Reversibility Thinking+# Reversibility-## Overview--Jeff Bezos distinguishes between Type 1 (irreversible, one-way door) and Type 2 (reversible, two-way door) decisions. The key insight: most decisions are Type 2 but get treated as Type 1, causing analysis paralysis. Match your decision process to the reversibility of the decision.--**Core Principle:** Reversible decisions should be made quickly by individuals. Irreversible decisions deserve deliberation. Most decisions are more reversible than they appear.+Core rule: match process depth to undo cost. Most decisions are cheaper to reverse than they look; irreversible ones deserve deliberation and staged commitment.## When to Use-- Technology choices-- Architecture decisions-- Process changes-- Hiring decisions-- Feature implementations-- Organizational changes-- Any decision where you're uncertain how much analysis is warranted--Decision flow:--```-Decision to make?- → Is it easily reversible? → yes → DECIDE QUICKLY (Type 2)- → Is it hard/impossible to reverse? → yes → DELIBERATE CAREFULLY (Type 1)- → Unsure of reversibility? → ANALYZE REVERSIBILITY FIRST-```+- Uncertain how much analysis a decision deserves (tech, process, product, org)+- Tempted to committee a low-blast-radius choice, or to rush a high-lock-in one+- Can redesign the move (pilot, flag, abstraction, time-box) to lower undo cost+- High-stakes choice where acting vs waiting have asymmetric recovery profiles## When NOT to Use-- You've already classified the door — don't re-run the analysis; just decide at the matched depth.-- Trivial, clearly two-way calls (variable names, which test to write first) — deciding is faster than classifying.-- The decision is being forced by a hard external constraint (deadline, contract, regulation) with no real optionality — reversibility doesn't change the available move.-- An irreversible action is genuinely required and the upside justifies it — name it, accept it, and proceed deliberately rather than stalling.--## Trigger Card--Before deliberating over a decision:--1. **Classify the door** — is it one-way (costly to undo) or two-way (cheap to undo)? If you're not sure, it's probably one-way.-2. **Two-way door?** → Decide fast. The cost of delay exceeds the cost of a wrong choice you can reverse.-3. **One-way door?** → Ask: can I make it more reversible? (Feature flag, canary, small rollout, decouple the irreversible part.) Then deliberate — but only on what's actually irreversible.-4. **Asymmetric downside/recovery** — for high-stakes one-way choices, separate *acting* downside from *not acting* downside:- - Is the downside of acting recoverable (time, money, status that can be rebuilt)?- - Is the downside of not acting permanent (option closes, window ends, irreversible lock-out)?- - If acting downside is recoverable and not-acting downside is permanent, favor staged commitment over pure avoidance — unless the acting downside is catastrophic, ruinous, or harms others (asymmetry flips; do not "just try it").--If the decision is forced by an external constraint with no optionality, reversibility doesn't change the available move. If an irreversible action is genuinely required and the upside justifies it, name it and proceed.--## Type 1 vs Type 2 Decisions--### Type 1: One-Way Doors--**Characteristics:**-- Irreversible or very costly to reverse-- Consequences are significant and lasting-- Changing course means starting over--**Examples:**-- Fundamental architecture choices (monolith vs microservices for core systems)-- Major technology platform (cloud provider for critical infra)-- Hiring for leadership positions-- Shutting down a product line-- Major acquisitions or contracts-- Public commitments or promises--**Process:**-- Extensive analysis before acting-- Explicitly argue the opposing choice (steel-man the alternative)-- Document the reasoning and the assumptions it rests on-- Escalate / surface to the human owner before committing--### Type 2: Two-Way Doors--**Characteristics:**-- Easily reversed if wrong-- Limited blast radius-- Can iterate and adjust--**Examples:**-- Most feature implementations-- UI/UX changes-- Internal tool selection-- Process experiments-- Meeting cadences-- Individual hiring decisions-- Marketing campaigns--**Process:**-- Decide quickly-- Pick the most reasonable option now-- Monitor results-- Adjust as needed-- Don't over-analyze--## The Reversibility Analysis--### Step 1: Assess True Reversibility--| Factor | Question | Impact on Reversibility |-|--------|----------|------------------------|-| Technical cost | How hard to undo technically? | High cost = less reversible |-| Time cost | How long to reverse? | Months = less reversible |-| Financial cost | How expensive to change? | High cost = less reversible |-| Reputation cost | Will reversal damage trust? | Yes = less reversible |-| Learning cost | Will we lose the learning? | Critical learning = more complex |-| Dependency cost | Have others built on this? | Many dependents = less reversible |--### Step 2: Categorize the Decision--```-Reversibility Score:-- Can undo in days with minimal cost: TYPE 2 (two-way door)-- Can undo in weeks with moderate cost: TYPE 2 with monitoring-- Can undo in months with significant cost: TYPE 1.5 (evaluate carefully)-- Cannot realistically undo: TYPE 1 (one-way door)-```--### Step 2b: Asymmetric Downside vs Recovery--When the decision is Type 1 or Type 1.5, run this check before pure avoidance:--```-Acting path:- Downside if wrong: [what fails]- Recoverable? [Yes / Partially / No — ruinous or harms others]- Recovery cost/time: [how you reverse or rebuild]--Not-acting path:- What is permanently foregone if you wait or decline?- Does the option close (window, exclusivity, path dependence)?- Permanent lock-out? [Yes / No]--Asymmetry rule:- Recoverable acting downside + permanent not-acting downside → prefer pilot / staged commitment over indefinite delay- Catastrophic or third-party-harming acting downside → asymmetry flips; refuse or redesign before committing- Both sides temporary / both permanent → reversibility class alone does not decide; use full deliberation-```--### Step 3: Match Process to Type--| Decision Type | Process | Effort | Who decides |-|---------------|---------|--------|-------------|-| Type 1 | Full analysis, argue the alternative, document | High | Surface to human owner before committing |-| Type 1.5 | Structured analysis, document rationale | Moderate | Flag to owner if stakes are high |-| Type 2+ | Quick analysis, note rationale | Low | Decide and proceed |-| Type 2 | Just decide | Minimal | Decide and proceed |--## Common Reversibility Misclassifications--### Treating Type 2 as Type 1--```-Decision: Which logging library to use-Common mistake: Extensive evaluation, committee decision, weeks of analysis-Reality: Can swap libraries in a day; dependencies are isolated-Correct approach: Engineer picks one, team evaluates after 2 weeks--Cost of over-deliberation: Weeks of productivity lost-```--### Treating Type 1 as Type 2--```-Decision: Database technology for core product-Common mistake: Quick decision because "we can always change later"-Reality: Changing databases means rewriting queries, data migration, retraining-Correct approach: Thorough evaluation, prototype, stakeholder alignment--Cost of under-deliberation: Months of migration pain later-```--### Hidden Reversibility--Some seemingly irreversible decisions are actually reversible:--```-"We can't change our API because clients depend on it"-Reality: Versioning makes this reversible- v1 continues, v2 adds improvements--"We can't change the architecture"-Reality: Strangler pattern enables gradual change- Migrate piece by piece-```--### Hidden Irreversibility--Some seemingly reversible decisions lock you in:--```-"It's just a prototype, we can rewrite later"-Reality: Prototypes often become production- "Temporary" code lives for years--"We can always switch cloud providers"-Reality: Deep integration creates massive switching cost- Proprietary services create lock-in-```--## Reversibility Patterns--### The Pilot Pattern--Turn Type 1 into Type 2 through limited rollout:--```-Type 1: "Adopt new framework for entire codebase"-Piloted: "Use new framework for one service"- → Now it's Type 2: Can abandon pilot with limited impact- → If successful, expand incrementally-```--### The Abstraction Pattern--Create reversibility through interfaces:--```-Type 1: "Choose between Postgres and MySQL"-With abstraction: "Define data layer interface, start with Postgres"- → Can swap implementation later- → Cost of reversal dramatically reduced-```--### The Time-Box Pattern--Make long commitments into short experiments:--```-Type 1: "Commit to vendor for 3 years"-Time-boxed: "Start with 6-month pilot"- → Can exit at known cost- → Full commitment only after validation-```--### The Feature Flag Pattern--Deploy with reversibility built in:--```-Type 1: "Launch new pricing model"-With flags: "Launch to 5% of users, flag-controlled"- → Can disable instantly- → Expand only when confident-```--## Decision Speed Guidance--### Decide Immediately (Type 2)--- Which test to write first-- Variable naming-- Which task to pick up next-- Local refactors within a single module--### Quick Analysis (Type 2+)--- Library choices (within approved options)-- Implementation approach for a feature-- Code organization within a module-- Bug fix approach--### Structured Analysis (Type 1.5)--- Design patterns for new components-- API contract changes (if unversioned)-- Tool adoption-- Architectural changes to non-critical services--### Full Deliberation, Surface to Owner (Type 1)--- Core architecture decisions-- Platform/infrastructure choices-- Irreversible data migrations / deletions-- Public API contracts with external consumers--## Reversibility Template--```markdown-# Reversibility Analysis: [Decision]--## The Decision-[What we're deciding]--## Reversibility Assessment--| Factor | Assessment | Score (1-5) |-|--------|------------|-------------|-| Technical effort to reverse | [Details] | |-| Time to reverse | [Duration] | |-| Financial cost to reverse | [Cost] | |-| Reputation impact of reversal | [Impact] | |-| Dependencies affected | [Count/scope] | |-| Learning lost if reversed | [Value] | |--Average: [X]-- 1-2: Clear Type 2-- 3: Type 1.5-- 4-5: Type 1--## Decision Type: [Type 1 / 1.5 / 2]--## Asymmetric Downside / Recovery-- Acting downside if wrong: [what fails]-- Recoverable? [Yes / Partial / No]-- Recovery path and cost: [how]-- Not-acting permanent foregone: [option/window that closes]-- Asymmetry favors: [staged try / deliberate refuse / standard process]--## Appropriate Process-- Analysis depth: [Minimal / Moderate / Extensive]-- Surface to human owner before committing? [No / Yes if high-stakes / Yes]-- Documentation: [None / Brief / Full]--## Can We Increase Reversibility?-- Pilot: [Option]-- Abstraction: [Option]-- Time-box: [Option]-- Feature flag: [Option]--## Decision-[The choice made]--## Reversal Plan (if needed)-[How we would reverse if this proves wrong]-```--## Decision Output--When this skill is used as a workflow gate, produce:--```json-{- "decision_key": "one_way_door",- "answer": true,- "rationale": "one concise sentence"-}-```--## Escalate to Full Skill When--- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.--## Verification Checklist--- [ ] Assessed reversibility across multiple factors-- [ ] Categorized as Type 1, 1.5, or 2-- [ ] For Type 1/1.5, checked recoverable acting downside vs permanent not-acting downside-- [ ] Matched decision process to decision type-- [ ] Explored options to increase reversibility-- [ ] Not over-analyzing Type 2 decisions-- [ ] Not under-analyzing Type 1 decisions-- [ ] Have a reversal plan for non-trivial decisions-- [ ] Did not treat catastrophic/third-party harm as "recoverable try"--## Key Questions--- "How hard would it be to undo this?"-- "Are we treating this like a one-way door when it's actually two-way?"-- "Can we pilot this to make it more reversible?"-- "What's the cost of being wrong vs. the cost of delay?"-- "Is the acting downside recoverable while not-acting permanently closes an option?"-- "Who else would be affected if we reverse — or if we never try?"-- "Is this actually irreversible, or does it just feel that way?"--## Bezos' Wisdom--"Some decisions are consequential and irreversible or nearly irreversible – one-way doors – and these decisions must be made methodically, carefully, slowly, with great deliberation and consultation."--"But most decisions aren't like that – they are changeable, reversible – they're two-way doors. If you've made a suboptimal Type 2 decision, you don't have to live with the consequences for that long. You can reopen the door and go back through."--"As organizations get larger, there seems to be a tendency to use the heavy-weight Type 1 decision-making process on most decisions, including many Type 2 decisions. The end result of this is slowness, unthoughtful risk aversion, failure to experiment sufficiently, and consequently diminished invention."-Speed matters. Most decisions are reversible. Decide, learn, adjust.+- Already classified this session—decide at matched depth; do not re-label forever+- Trivial two-way calls (names, local refactors) where deciding is cheaper than classifying+- Externally forced move with no optionality (hard deadline, contract, regulation)+- Correctness gates (security, data integrity) that need the right answer, not speed theater++## Procedure++1. **Name the decision and undo path.** State what would be committed and the concrete reverse move (rollback, migrate back, revoke, re-hire, re-contract).+2. **Score reversibility.** Assess technical effort, time, money, reputation, dependents, and learning lost if reversed. Classify:+ - **Type 2:** undo in days, low cost → decide fast+ - **Type 1.5:** undo in weeks, moderate cost → light structure + monitor+ - **Type 1:** months or not realistically undoable → deliberate+3. **Asymmetric downside / recovery.** For Type 1 or 1.5:+ - Acting wrong: downside, recoverable?, recovery cost+ - Not acting: what permanently closes (window, exclusivity, path lock)+ - Rule: recoverable acting downside + permanent inaction loss → staged commit over indefinite delay; catastrophic or third-party harm → refuse or redesign first+4. **Option-preserving redesign.** Prefer pilots, feature flags, interfaces, versioning, time-boxed vendor terms, or strangler slices that convert Type 1 surface into Type 2 experiments. Deliberate only the residual irreversible core.+5. **Match process and commit.** Type 2: pick a reasonable option, ship, monitor. Type 1: document assumptions, argue the opposing case, surface to owner if stakes require it. Stop once class and commitment depth are set—do not re-analyze without new undo-cost evidence.++## Output++```text+Decision: …+Undo path: …+Class: Type 2 | 1.5 | 1 (factors: …)+Acting downside / recovery: …+Not-acting permanent loss: …+Staging / option-preserving move: …+Process depth: decide-now | pilot | full deliberation+Commitment: …+```++## Verification++- **Falsify:** If "we can always change later" has no concrete undo path and cost, treat as more irreversible until proven otherwise.+- **Stop:** After class and process depth are set, further taxonomy is waste—execute the matched process.+- **Over-application guard:** Do not slow trivial Type 2 work with matrices. Do not use "two-way door" to skip verification on irreversible data, security, or public commitments.diff --git a/skills/thinking-scientific-method/SKILL.md b/skills/thinking-scientific-method/SKILL.mdindex e1fdc80..40c4836 100644--- a/skills/thinking-scientific-method/SKILL.md+++ b/skills/thinking-scientific-method/SKILL.md@@ -1,186 +1,56 @@---name: thinking-scientific-method-description: Use when a symptom could have several causes and you must find the faulty code by ranking falsifiable hypotheses and checking the cheapest discriminating observation first.+description: When a symptom has several plausible causes, rank falsifiable hypotheses and run the cheapest discriminating observation first; prefer least-assumptive survivors only after evidence fit.disable-model-invocation: true----# Hypothesis-Differential Debugging+# Scientific Method (Hypothesis Differential)-## Overview--The scientific method's payoff for an agent is not narrating "observe -> question." It is the **differential**: when a symptom could come from several places, enumerate competing falsifiable hypotheses and spend your cheapest observation on the one that best discriminates between them.--This is the proven replacement for the old broad scientific-method skill. In SWE-bench fault localization, the original was flat; this agent-native version turned it into the strongest measured debugging lift in the current eval set.--**Core Principle:** Don't guess-and-patch. Enumerate competing causes, then make the cheapest observation that would falsify the most likely one.+When a symptom could come from several places, enumerate competing falsifiable hypotheses and spend the cheapest observation on the one that best discriminates among them. After each observation, keep only hypotheses that still fit, then prefer the survivor with the fewest unsupported assumptions as the working explanation.## When to Use-- A bug or incident symptom could plausibly come from more than one place-- You have read access to code, logs, diffs, traces, or tests-- You need to localize the faulty file, function, branch, config, or invariant before fixing--```-Symptom has several plausible causes?- -> no -> test or fix the obvious cause directly- -> yes -> can you make cheap observations now?- -> no -> gather access/evidence first- -> yes -> apply hypothesis-differential debugging-```+- A bug, incident, or anomaly has more than one plausible cause.+- You can observe code, logs, diffs, traces, tests, configs, or data now.+- You must localize the faulty file, function, branch, config, or invariant before fixing.+- Competing explanations fit the same surface facts and you need a discriminating check.## When NOT to Use-- The cause is already obvious from a single trace, failing test, or recent diff -> fix directly.-- Only one plausible hypothesis exists -> test it directly.-- You cannot make any observation -> get access first; don't speculate.-- You are designing an A/B test, canary, or multi-week experiment -> this skill is for observations an agent can make now.--## The Procedure--### Step 1: Enumerate competing hypotheses--List 3-5 specific, falsifiable hypotheses. Name the likely file, function, subsystem, input condition, or invariant. Avoid vague buckets like "backend issue" or "race condition somewhere."--```markdown-| # | Hypothesis | Why plausible? |-|---|------------|----------------|-| H1 | `auth/session.py:refresh` drops rotated tokens | failures start after token rotation |-| H2 | cache TTL mismatch in `session_cache` | stale sessions persist across deploys |-| H3 | frontend retries reuse expired cookie | only browser flow is affected |-```--If you can only think of one hypothesis, you are guessing. Force alternatives before inspecting deeper.--### Step 2: Name the cheapest discriminating observation--For each hypothesis, name one observation you can make now that would separate it from the others.--Good observations:-- read the function the stack trace names-- grep callers of a parser or config key-- inspect the recent diff touching the failing path-- compare two log lines across working and broken cases-- check a test fixture or schema invariant--Bad observations:-- deploy a canary-- run a long experiment-- ask users to wait-- inspect every file in the subsystem--### Step 3: State falsifiers before looking--For each hypothesis, write what result would make you drop it. This prevents confirmation search.--```markdown-| Hypothesis | Falsified if... |-|------------|-----------------|-| H1 token refresh | refresh path never reads rotated token state |-| H2 cache TTL | cache entry expires before the observed stale window |-| H3 frontend retry | same failure occurs in API-only reproduction |-```--### Step 4: Rank observations; prefer least-assumptive survivors--Rank *observations* by likelihood × cheapness: make the cheapest observation that best separates your top hypotheses, not the most elaborate investigation.--Separately, after each observation, filter to hypotheses that still fit the evidence, then prefer the survivor with the fewest unsupported assumptions as the working explanation and next focus. Count only independent, load-bearing assumptions (extra components, timing dependence, rare conditions, external dependencies). Do not treat simplicity as truth: a leaner hypothesis that fails a falsifier is out; escalate complexity only when evidence has ruled out simpler survivors.+- Cause is already obvious from a single stack, failing test, or recent diff — fix directly.+- Only one plausible hypothesis exists — test it; do not invent rivals for ritual.+- No observation is possible yet — obtain access first; do not speculate a localization.+- Multi-week experiments, product A/B tests, or policy trials — this skill is for agent-now checks.+- Fault is already localized and you need systemic root/prevention depth — use five-whys-plus.+- Selective "only these objects/times" defects better suited to IS/IS-NOT comparison — use Kepner-Tregoe.+- Representation (doc/dashboard) may be stale versus reality — verify territory with map-territory first, then resume hypotheses.-```-For each hypothesis → name falsifier → pick observation by likelihood × cheapness → observe → drop falsified → among survivors prefer fewest unsupported assumptions → localize fault-```--### Step 5: Stop on direct localization--Stop when one hypothesis is supported by direct evidence and the key alternatives are ruled out. Name the file/function/config to change and the evidence that localizes it.--## Investigation Template--```markdown-## Symptom-[Specific failing behavior, scope, timing, and known constraints]+## Procedure-## Hypotheses-| # | Hypothesis | Why plausible? | Cheapest observation | Falsified if... |-|---|------------|----------------|----------------------|-----------------|-| H1 | [specific file/function/config cause] | [evidence] | [read/grep/diff/check] | [drop condition] |-| H2 | [specific alternate cause] | [evidence] | [read/grep/diff/check] | [drop condition] |-| H3 | [specific alternate cause] | [evidence] | [read/grep/diff/check] | [drop condition] |+1. **State the symptom precisely.** Capture failing behavior, scope, timing, environment, and constraints. Separate observation from interpretation.+2. **Enumerate 2–5 competing hypotheses.** Name specific files, functions, configs, input conditions, or invariants. Reject vague buckets ("backend issue"). If no serious alternative remains after a deliberate check, exit this differential and test or fix the sole evidenced cause directly; never fabricate a rival to continue the procedure.+3. **Name falsifiers and cheap observations before looking.** For each hypothesis: what result drops it, and what read/grep/diff/log/test check can you run now. Prefer observations available immediately over deploys, canaries, or long waits.+4. **Rank observations by discrimination × cheapness.** Run the cheapest check that best separates the top contenders. Do not deep-dive the favorite first if a cheap cross-check would kill alternatives.+5. **Update after each observation.** Drop falsified hypotheses. Among survivors that still fit all evidence, prefer the one with the fewest independent unsupported assumptions (extra components, rare timing, external dependencies). Parsimony ranks survivors after fit; it never rescues a leaner hypothesis that evidence already contradicts. Escalate complexity only when simpler survivors are ruled out.+6. **Localize and stop.** When one hypothesis has direct supporting evidence and key alternatives are ruled out, name the file/function/config to change and the evidence that localizes it. Stop analyzing once localization is direct.-## Test Order-1. [Cheapest discriminating observation]-2. [Next observation if H1 is falsified]-3. [Deferred only if cheap observations do not localize]--## Localization-[Supported hypothesis, ruled-out alternatives, and the file/function/config to change]-```--## Worked Shape--```markdown-Symptom: intermittent 500s on /export, only eu-west, started three days ago.+## Output+```text+Symptom: <specific failing behavior, scope, timing>Hypotheses:-1. recent diff to export serializer- Observation: inspect commits touching `export_serializer`- Falsified if: no diff touches the failing codepath-2. eu-west Redis rotation broke a cache key- Observation: read cache key construction + region config- Falsified if: key and TTL match healthy regions-3. upstream timeout under load- Observation: compare timeout logs during failure window- Falsified if: no upstream latency spike--Test order: H1, H2, H3.-Result: H1 diff changed nested export handling and matches stack trace.-Localized fault: `app/export/serializer.py`.+ H1: <specific cause> | Why plausible | Observation | Falsified if+ H2: ...+ H3: ...+Test order: <cheapest discriminating checks>+Results: <what each observation showed>+Survivors: <remaining Hs; least-assumptive working pick among fit>+Localized fault: <file/function/config + supporting evidence>+Ruled out: <Hs dropped and why>```-## Anti-Patterns--- Narrating the scientific method without proposing competing causes-- Looking only for evidence that supports your first guess-- Calling an expensive experiment a "test" when a cheap observation exists-- Preferring a “simpler” hypothesis that the evidence already contradicts, or treating fewest assumptions as proof rather than a ranking rule among survivors-- Stopping at a plausible explanation before ruling out alternatives-- Continuing to analyze after the faulty file/function is localized--## Decision Output--When this skill is used as a workflow gate, produce:--```json-{- "decision_key": "hypothesis_needed",- "answer": true,- "rationale": "one concise sentence"-}-```--## Escalate to Full Skill When--- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.--## Verification Checklist--- [ ] Listed 3-5 specific hypotheses-- [ ] Each hypothesis has a cheap observation available now-- [ ] Each hypothesis has a stated falsifier-- [ ] Observations are ranked by likelihood x cheapness-- [ ] Among evidence-surviving hypotheses, preferred the least-assumptive one without treating simplicity as truth-- [ ] Final answer names the localized file/function/config and the evidence--## Key Questions--- What would I see if this hypothesis were false?-- Which observation best separates the top two hypotheses?-- Am I testing a hypothesis or confirming my first guess?-- Can I localize the fault with a cheaper observation?--## Feynman's Wisdom+## Verification-"The first principle is that you must not fool yourself - and you are the easiest person to fool." Your intuition generates hypotheses; the differential tests them.+- Falsify the differential conclusion if you continued with fewer than two serious hypotheses, if no pre-stated falsifier existed, if a cheaper discriminating check was skipped, or if a "simpler" story was kept after evidence contradicted it.+- Stop when the fault is directly localized and alternatives that matter are ruled out; do not continue theorizing.+- Over-application guard: do not narrate observe→question without competing causes; do not treat fewest assumptions as proof; do not run this skill when a single obvious cause is already evidenced.diff --git a/skills/thinking-second-order/SKILL.md b/skills/thinking-second-order/SKILL.mdindex 4aa670b..f0c8741 100644--- a/skills/thinking-second-order/SKILL.md+++ b/skills/thinking-second-order/SKILL.md@@ -1,185 +1,58 @@---name: thinking-second-order-description: When a change has effects past the immediate fix (incentives, scale, feedback loops), ask "and then what?" across horizons before committing — the obvious fix often backfires downstream.+description: When a change has effects past the immediate fix—incentives, scale, feedback—trace consequence chains with timing and probability before committing.disable-model-invocation: true----# Second-Order Thinking+# Second-Order Consequence Chains-## Overview-Second-order thinking, articulated by Howard Marks, moves beyond immediate effects to consider what happens next, and what that leads to. First-order thinking is simplistic ("This action solves the problem"); second-order thinking asks "And then what?" repeatedly.--**Core Principle:** The obvious answer to "What should I do?" is often wrong because it ignores downstream effects.+Do not stop at the intended first effect. Trace what happens next across actors, time, and feedback until the chain stops changing the decision.## When to Use-- Making strategic or architectural decisions-- Evaluating policy or process changes-- Considering incentive structures-- Planning features that change user behavior-- Decisions with long-term consequences-- When the "obvious" solution feels too easy-Decision flow:-```-Decision with consequences beyond immediate? → yes → APPLY SECOND-ORDER THINKING- ↘ no → First-order may suffice-```+- Strategic, policy, incentive, or architecture choices with lasting coupling.+- The obvious fix feels too easy or has known backfire patterns.+- Success or scale would create new problems (load, gaming, debt).+- Need to compare options by delayed effects, not only day-one benefit.## When NOT to Use-- The change is local and reversible (a two-way door) with no downstream coupling — just make it and observe.-- The first-order fix is also the correct one and the chain is obvious; don't manufacture speculative cascades.-- You'd be inventing implausible third- and fourth-order effects to seem thorough — stop at the first effect that actually changes the decision.-- Pure mechanical edits (rename, format, dependency bump) with no behavioral or incentive change.--## First vs Second-Order Thinking--| Situation | First-Order | Second-Order |-|-----------|-------------|--------------|-| Team is slow | Add more engineers | More engineers → more coordination → slower decisions → may get slower |-| Users complain | Add the feature they request | Feature → complexity → more support load → less time for core work |-| Costs too high | Cut spending | Cuts → reduced quality → customer churn → revenue drop → worse situation |-| Bug in prod | Hotfix immediately | Hotfix → skip testing → more bugs → trust erosion → slower deployments |--## The Process--### Step 1: Identify the Decision and First-Order Effect-```-Decision: Add a feature flag system-First-order: Teams can ship features independently ✓-```--### Step 2: Ask "And Then What?"-Chain the consequences:-```-Feature flags → More flags created → Flag debt accumulates- → Teams don't clean up → Combinatorial testing complexity- → Bugs from flag interactions → "Turn it off" becomes risky- → Flags become permanent → Codebase complexity explodes-```--### Step 3: Evaluate Across Engineering Horizons-Trace the effect at three concrete horizons (not emotional ones):--| Horizon | Question | Analysis |-|---------|----------|----------|-| Immediate | What happens on the next request/run? | Problem solved—flag ships the feature |-| Next deploy / weeks | What does the team do because of this? | Flag sprawl, more flags created |-| At scale / months+ | Where does the trajectory lead at 10x usage or adoption? | Combinatorial flag debt, fragile codebase |--### Step 4: Consider Systemic Effects-Ask: "What if everyone did this?"-```-Decision: Skip code review for urgent fixes-If everyone: All urgent fixes skip review-Result: Definition of "urgent" expands → most things skip review-Outcome: Quality collapses, more urgent fixes needed-```--### Step 5: Map the Consequence Chain-```-┌─────────────────┐-│ Decision: X │-└────────┬────────┘- ▼-┌─────────────────┐-│ 1st Order: A │ ← Obvious, intended-└────────┬────────┘- ▼-┌─────────────────┐-│ 2nd Order: B │ ← Less obvious-└────────┬────────┘- ▼-┌─────────────────┐-│ 3rd Order: C │ ← Often counterintuitive-└────────┬────────┘- ▼-┌─────────────────┐-│ Feedback Loop │ ← May reinforce or counteract-└─────────────────┘-```--## Common Second-Order Effects in Software--### Optimization-```-1st: Optimize critical path → Faster-2nd: Team focuses on optimization → Less feature work-3rd: Premature optimization spreads → Complexity increases-4th: Maintenance burden grows → Slower overall-```--### Hiring-```-1st: Hire senior engineers → More capacity-2nd: Salary expectations rise → Budget pressure-3rd: Junior engineers feel stuck → Attrition-4th: Knowledge concentrated in seniors → Bus factor risk-```--### Process Addition-```-1st: Add approval process → More oversight-2nd: Approvals create bottleneck → Slower delivery-3rd: People route around process → Shadow processes-4th: Formal process becomes theater → Worst of both worlds-```--### Technical Shortcuts-```-1st: Skip tests to ship faster → Feature delivered-2nd: Bugs emerge → Support load increases-3rd: Team fights fires → Less time for features-4th: More shortcuts taken → Quality death spiral-```--## Application Framework--For any significant decision, fill out:--```markdown-## Second-Order Analysis: [Decision]--### Immediate Effect (1st Order)-[What happens right away]--### Near-Term Consequences (2nd Order)-[What does the immediate effect cause? 1-3 months]--### Medium-Term Consequences (3rd Order)-[What do the near-term effects cause? 3-12 months]--### Long-Term Trajectory-[Where does this path lead? 1+ years]--### Feedback Loops-[Does this create reinforcing or balancing dynamics?]--### If Scaled-[What happens if this becomes standard practice?]--### Revised Decision-[Given analysis, what should we actually do?]-```--## Questions to Surface Second-Order Effects-- "And then what?"-- "Who else is affected, and how will they respond?"-- "What incentives does this create?"-- "What behavior does this encourage/discourage?"-- "If this works, what problems does success create?"-- "What will we wish we had done differently in a year?"-- "What does this look like if everyone does it?"--## Verification Checklist-- [ ] Identified first-order effect clearly-- [ ] Asked "and then what?" at least 3 times-- [ ] Traced effects across immediate / next-deploy / at-scale horizons-- [ ] Considered systemic/scaled effects-- [ ] Identified potential feedback loops-- [ ] Revised decision based on full consequence chain-- [ ] Documented reasoning for future reference--## Marks' Warning-"First-level thinking is simplistic and superficial, and just about everyone can do it. Second-level thinking is deep, complex, and convoluted."-The crowd uses first-order thinking. Competitive advantage comes from thinking one level deeper—seeing what happens after the obvious effect.+- Local reversible edit with no incentive or cross-component coupling—just ship and observe.+- Full system structure (stocks, many loops, leverage ranking) is the goal—use systems.+- Pre-mortem of failure modes for a plan already chosen—use pre-mortem.+- Pure mechanical changes (rename, format) with no behavioral effect.++## Procedure++1. **State decision and first-order effect.** One sentence each: action and intended immediate result.+2. **Chain "and then what?"** At least two further orders. For each link record: effect, who responds, rough probability (high/med/low), timing (immediate / next cycle / at scale), and whether it feeds back into the original problem (reinforce or counteract).+3. **Expand affected parties.** Who else reacts (users, operators, other teams, attackers, markets)? What incentives does the change create or destroy?+4. **Scale test.** Ask what happens if everyone does this or usage grows 10x. Mark paths that only appear under scale or repetition.+5. **Prune and decide.** Drop speculative links that do not change the choice. Keep only effects that alter go/no-go, design, or mitigations. Revise the action or add guards where second-order harm exceeds first-order gain.++**Stop when** further "and then what?" no longer changes the decision, or the remaining chain is pure speculation without mechanism.++## Output++```text+decision: <action>+first_order: <intended immediate effect>+chain:+ - order: 2+ effect: <what>+ actors: <who>+ p: high|med|low+ when: immediate|next_cycle|at_scale+ feedback: none|reinforce|balance+ - order: 3+ ...+scale_if_universal: <one sentence or n/a>+revised_decision: <same | modified action | no-go>+mitigations: <guards for kept risks>+```++## Verification++- **Falsify:** If no credible second-order path changes the choice, first-order is enough—stop inventing cascades. If the core issue is multi-loop structure rather than one decision's trail, switch to systems.+- **Stop:** End at the first order that no longer affects the decision; do not pad to a fixed depth.+- **Over-application guard:** No low-probability sci-fi chains. No treating parameter tweaks as deep strategy. Probability and timing required on kept links; omit decoration without mechanism.diff --git a/skills/thinking-socratic/SKILL.md b/skills/thinking-socratic/SKILL.mdindex fbb4907..556bffc 100644--- a/skills/thinking-socratic/SKILL.md+++ b/skills/thinking-socratic/SKILL.md@@ -1,218 +1,58 @@---name: thinking-socratic-description: Use before building when a request is vague, assumption-laden, or "obvious." Ask the clarifying questions that surface hidden requirements and false premises instead of guessing.+description: When a request is vague, assumption-laden, or "obvious," ask the few load-bearing questions that expose hidden requirements before building or committing.disable-model-invocation: true---# Socratic Questioning-## Overview-The Socratic Method, developed by the ancient Greek philosopher Socrates, uses systematic questioning to stimulate critical thinking and illuminate ideas. Rather than providing answers, it draws out knowledge by challenging assumptions and exploring implications.--**Core Principle:** A vague or assumption-laden request is cheaper to clarify than to misbuild. The right question up front surfaces the hidden requirement or false premise that would otherwise be discovered only after the work is done.--Use this as a **pre-build clarification tool**: when a task is underspecified, ambiguous, or rests on an unstated assumption, ask the targeted question before writing code or committing to an approach — don't fill the gap with a guess.+**Core rule:** Surface the load-bearing assumption or undefined term before you build. Ask only what you cannot resolve yourself; stop when the next action is decision-ready.## When to Use-- A request is vague ("make it fast", "add a dashboard", "fix the bug") and you'd otherwise guess the spec-- The request rests on an unstated assumption that might be the actual problem-- Someone asserts something is "obvious" or "everyone knows" — exactly when premises go unchecked-- A proposal jumps to a solution before the problem is defined-- Debugging, to trace a claim ("the system is slow") back to a checkable specific-Decision flow:-```-About to build/commit on an underspecified request? → yes → ASK CLARIFYING QUESTIONS FIRST-Request rests on an unexamined assumption? → yes → PROBE THE ASSUMPTION-Stated problem is a vague symptom? → yes → QUESTION DOWN TO A SPECIFIC-```+- Request is underspecified ("make it fast", "add a dashboard", "fix the bug") and a guess would misbuild.+- Claim rests on an unstated assumption that may be the real problem.+- Someone treats a premise as "obvious" or jumps to a solution before the problem is defined.+- Debugging a vague symptom that needs a checkable specific before investigation.## When NOT to Use-- **The request is already clear and specified.** Don't interrogate a well-defined task — just do it. Question-asking theater wastes the user's time.-- **You can answer the question yourself by checking.** If the ambiguity is resolvable by reading the code, running a command, or consulting the docs, do that instead of asking the user.-- **During execution of an agreed plan.** Clarify before building; once the spec is settled, stopping to re-question every step is friction, not rigor.-- **A genuine emergency / time-pressured incident** where acting on 70% understanding beats a round of questions — clarify the one thing that's load-bearing, then act.--## The Six Types of Socratic Questions--### 1. Clarification Questions-**Purpose:** Ensure clear understanding of the claim or concept--| Question | Use When |-|----------|----------|-| "What do you mean by X?" | Term is ambiguous |-| "Can you give me an example?" | Concept is abstract |-| "How does this relate to Y?" | Connection unclear |-| "Can you rephrase that?" | Statement is confusing |-| "What is the main point?" | Discussion is scattered |--**Example:**-> "The system needs to be fast."-> → "What do you mean by 'fast'? What latency is acceptable?"-> → "Fast for whom? End users? Batch processes?"--### 2. Assumption-Probing Questions-**Purpose:** Expose underlying beliefs that may be unexamined--| Question | Use When |-|----------|----------|-| "What are we assuming here?" | Conclusion seems too quick |-| "Is this always true?" | Generalization made |-| "What if that assumption is wrong?" | Testing robustness |-| "Why do we believe this?" | Basis unclear |-| "What would have to change for this to be false?" | Finding conditions |--**Example:**-> "We need microservices for scale."-> → "What are we assuming about our scale requirements?"-> → "Is it always true that microservices scale better?"-> → "What if a modular monolith could meet our needs?"--### 3. Reason & Evidence Questions-**Purpose:** Examine the support for a claim--| Question | Use When |-|----------|----------|-| "What evidence supports this?" | Claim is asserted |-| "How do we know this?" | Source unclear |-| "Are there other explanations?" | Causation assumed |-| "What would prove this wrong?" | Testing falsifiability |-| "Is this evidence sufficient?" | Conclusion seems strong |--**Example:**-> "Users don't want feature X."-> → "What evidence do we have for this?"-> → "How many users did we ask? How were they selected?"-> → "Could there be other explanations for the feedback?"--### 4. Perspective & Viewpoint Questions-**Purpose:** Consider alternative angles and stakeholders--| Question | Use When |-|----------|----------|-| "How would X see this?" | Single perspective dominates |-| "What's the opposite view?" | No alternatives considered |-| "Who disagrees, and why?" | Consensus seems too easy |-| "What are we not seeing?" | Blind spots suspected |-| "How does this look from [role]?" | Stakeholder impact unclear |--**Example:**-> "This API design is intuitive."-> → "How would a new developer view this?"-> → "What would someone from a different language background expect?"-> → "Who might find this confusing, and why?"--### 5. Implication & Consequence Questions-**Purpose:** Explore downstream effects and logical conclusions--| Question | Use When |-|----------|----------|-| "What follows from this?" | Implications unexplored |-| "If this is true, what else must be true?" | Testing consistency |-| "What are the consequences?" | Impact unclear |-| "How does this affect X?" | Ripple effects not considered |-| "What are the second-order effects?" | Only immediate effects seen |--**Example:**-> "We'll add this field to the API response."-> → "What follows from adding this field?"-> → "How does this affect clients that don't need it?"-> → "What are the implications for backward compatibility?"--### 6. Questions About the Question-**Purpose:** Reflect on the inquiry itself; meta-level examination--| Question | Use When |-|----------|----------|-| "Why is this question important?" | Purpose unclear |-| "What would answering this tell us?" | Value of question unclear |-| "Is this the right question?" | May be missing the point |-| "What question should we be asking?" | Reframing needed |-| "Why are we asking this now?" | Timing or priority unclear |--**Example:**-> "Which database should we use?"-> → "Why is this question important right now?"-> → "What would answering this tell us that we don't know?"-> → "Is the real question about database, or about data modeling?"--## Application Patterns--### For Requirements Gathering-```-Stakeholder: "We need a dashboard."-Clarification: "What decisions will the dashboard help you make?"-Assumptions: "What are we assuming about who will use this?"-Evidence: "What data shows this is the highest priority?"-Perspective: "How do different user roles need different views?"-Implications: "If we build this, what won't we build?"-Meta: "Is a dashboard the best solution, or is there another approach?"-```--### For Debugging-```-Report: "The system is slow."-Clarification: "Which operations are slow? How slow?"-Assumptions: "What are we assuming about where the bottleneck is?"-Evidence: "What metrics/traces support this?"-Perspective: "Is it slow for all users or specific patterns?"-Implications: "If we fix this, what else might change?"-Meta: "Is 'slow' the right frame? Could it be 'inconsistent'?"-```--### For Design Review-```-Proposal: "We should use event sourcing."-Clarification: "What do you mean by event sourcing in this context?"-Assumptions: "What are we assuming about our query patterns?"-Evidence: "What evidence suggests this fits our use case?"-Perspective: "How would ops view this? New team members?"-Implications: "What are the consequences for debugging? Storage?"-Meta: "Is the real question about event sourcing or auditability?"-```--## How to Ask Well-- **Ask the load-bearing question first**: lead with the one whose answer most changes what you'll build.-- **One or two questions, not an interrogation**: batch the few that actually gate the work; don't run all six categories for show.-- **Follow the thread**: let each answer narrow the next question instead of working from a fixed script.-- **Resolve what you can yourself**: only ask the user what you can't determine by reading the code, running a command, or checking the docs.-- **Make the assumption explicit**: "This assumes X — is that right?" beats silently guessing X.--## Decision Output--When this skill is used as a workflow gate, produce:--```json-{- "decision_key": "ask_clarifying",- "answer": true,- "rationale": "one concise sentence"-}-```--## Escalate to Full Skill When--- The answer depends on scenario generation, not binary classification.-- The first pass surfaces multiple plausible branches.-- The task is novel enough that the checklist may be stale.-- The consequence of misrouting is high.--## Verification Checklist-- [ ] Used questions from at least 3 of the 6 categories-- [ ] Probed assumptions underlying the topic-- [ ] Explored at least one alternative perspective-- [ ] Examined implications and consequences-- [ ] Reached deeper understanding than starting point-- [ ] Documented key insights from questioning--## Key Meta-Questions-- "What do I think I know, and how do I know it?"-- "What question am I not asking?"-- "What would change my mind about this?"-- "Who knows more about this than I do?"-- "What's the question behind the question?"--## Socrates' Reminder-"I know that I know nothing."-The goal is not to prove others wrong but to discover truth together. The best questions reveal what everyone—including the questioner—doesn't yet understand.+- Spec is already clear and actionable — do the work; do not interrogate for theater.+- Ambiguity is resolvable by reading code, running a command, or checking docs — resolve it yourself.+- Mid-execution of an agreed plan — re-questioning every step is friction, not rigor.+- Emergency where one load-bearing fact is enough to act — clarify that fact, then act (prefer ooda).+- You need the strongest opposing case, not clarification — use steel-manning.+- You need causal chain depth on a defined failure — use five-whys-plus or scientific-method.++## Procedure++1. **Name the gap.** State what is undefined, assumed, or uncheckable. If you can fill it from tools/repo without the user, do that and stop.+2. **Ask the load-bearing question first.** Prefer one question whose answer most changes what you will build. Categories (use only what the gap needs):+ - Clarification — "What does X mean / for whom / success looks like?"+ - Assumption — "What must be true? What if it is false?"+ - Evidence — "What supports this? What would disprove it?"+ - Perspective — "Who is affected / who would disagree?"+ - Implication — "What follows if we do this?"+ - Meta — "Is this the right question?"+3. **Resolve or branch.** From the answer, either (a) write the clarified requirement/decision and proceed, or (b) ask at most one follow-up that still gates the work. Do not run all six categories by default.+4. **Make assumptions explicit.** Restate: "This assumes X; success means Y; out of scope is Z." Confirm only if still ambiguous after your restatement.+5. **Stop at decision-ready clarity.** When the next action no longer depends on a hidden premise, end questioning and act or hand off. Cap user-facing questions tightly; prefer batching the few that truly gate work.++## Output++```text+gap: <what was vague or assumed>+resolved_by: self | user | mixed+questions_asked:+ - <only questions actually needed>+assumptions_made_explicit:+ - <X must be true / success = Y>+clarified_requirement: <decision-ready statement>+next_action: <build | investigate | re-scope | stop>+stop_reason: clear_enough | self_resolved | blocked_on_<fact>+```++## Verification++- **Falsify / stop:** If answers do not change the plan, you asked non-load-bearing questions — stop interrogating. If the "clarification" is still a guess, do not build; name the remaining blocker.+- **Over-application guard:** Do not Socratic-interview a well-specified task. Do not outsource facts you can read or measure. Do not turn every step of execution into a new question round.diff --git a/skills/thinking-steel-manning/SKILL.md b/skills/thinking-steel-manning/SKILL.mdindex d535949..19594c6 100644--- a/skills/thinking-steel-manning/SKILL.md+++ b/skills/thinking-steel-manning/SKILL.md@@ -1,342 +1,52 @@---name: thinking-steel-manning-description: Use before rejecting a proposal or when you're inclined to just agree with the user. Build the strongest version of the opposing case first, then engage that — not a weak version.+description: Before rejecting a proposal or reflexively agreeing, build the strongest faithful opposing case, state agreement conditions, then update or reaffirm.disable-model-invocation: true---# Steel-Manning-## Overview--Steel-manning is the opposite of straw-manning. Instead of attacking the weakest version of an opposing argument, you construct and address the strongest possible version. This leads to better decisions, more productive debates, and deeper understanding of trade-offs.--**Core Principle:** To truly evaluate an idea, argue against its best form. If you can defeat the strongest version, you've actually learned something.+**Core rule:** Engage the best form of the opposing case, not a weak one. If your position survives that, reaffirm; if not, update.## When to Use-- Design reviews-- Evaluating alternative approaches-- Conflict resolution-- Validating your own decisions-- Code review discussions-- Architecture debates-- When you disagree with someone's proposal-- Before rejecting an idea--Decision flow:--```-Disagreeing with a proposal?- → Can you state their best argument? → no → STEEL-MAN FIRST- → Are you attacking a weak version? → yes → CONSTRUCT STRONGER VERSION- → Have you found the core insight? → no → DIG DEEPER--About to agree with the user's plan?- → Have you stated the strongest case against it? → no → STEEL-MAN THE OPPOSING VIEW FIRST-```--This skill is the direct counter to **sycophancy** — the pull to validate whatever the user proposed. Before endorsing a plan, construct the best case *against* it; agreement that survives that is worth more than reflexive agreement.+- About to reject a proposal, design, or alternative approach.+- Inclined to agree with the user/plan and risk sycophancy — construct the best case *against* first.+- Design review, architecture debate, or conflict where trade-offs are real.+- Validating your own preferred decision before locking it (strongest-countercase check).## When NOT to Use-- **The matter is settled fact, not a position.** Don't steel-man a factual error, a security anti-pattern, or a violated requirement — correct it. Steel-manning is for genuine trade-offs and judgment calls, not for manufacturing a defense of something wrong.-- **You already agree for good, stated reasons.** If you've actually weighed it, don't perform a fake debate; say why you agree.-- **Trivial or fully reversible choices** where the cost of being wrong is near zero — the deliberation isn't worth the budget.-- **An emergency requiring immediate action** — steel-man the post-incident review, not the live fire.--## Trigger Card--Before rejecting a proposal or when you're inclined to just agree with the user:--1. **State the opposing case in its strongest form** — not the version that's easy to knock down. What would its best advocate say?-2. **Find what's actually true in it** — even if you reject the conclusion, what valid insight or concern does it surface?-3. **Engage that strongest version** — respond to what was actually claimed, not a weak version. If your position still holds, great; if not, update.--**Strongest-countercase check** (also when defending a path you already prefer):--1. Name the decision or claim you are about to lock.-2. Construct the strongest case *against* it (or for the best alternative) in good faith — evidence, incentives, and failure modes an informed critic would use.-3. State one concrete observation that would prove your preferred path wrong, and whether you have looked for it.-4. Only then accept, revise, or reject. Naming the countercase without changing (or explicitly reaffirming) the decision is incomplete.--Skip for trivial or fully reversible choices where the cost of being wrong is near zero. In an emergency, steel-man the post-incident review, not the live fire.--## The Steel-Manning Process--### Step 1: Understand the Original Argument--Before improving, understand:--```markdown-## Original Proposal--Proposal: "We should rewrite the backend in Rust"--Stated reasons:-- Memory safety-- Better performance-- Modern language--Apparent weaknesses:-- Team doesn't know Rust-- Rewrite is risky-- Current system works-```--### Step 2: Identify the Core Insight--What's the strongest kernel of truth?--```markdown-## Core Insight--Behind "rewrite in Rust" is:-- Concern about memory-related bugs in production-- Performance problems that are hard to solve in current language-- Technical debt making changes slow--The proposal might be wrong, but the concerns are valid.-```--### Step 3: Construct the Strongest Version--Build the best possible case:--```markdown-## Steel-Manned Argument--"Our memory-safety issues have caused 3 major outages this year,-costing us ~$500K in engineering time and customer trust.-Our performance problems stem from GC pauses that are fundamental-to our current runtime. While a rewrite is risky, the incremental-cost of working around these limitations is growing.--A gradual rewrite of performance-critical paths to Rust would:-- Eliminate a class of bugs (memory safety)-- Solve GC-related latency issues-- Attract engineers who want modern tooling-- Create optionality for high-performance features--The risk can be mitigated by:-- Starting with one isolated service-- Keeping the team small and focused-- Maintaining the old system during transition-- Having clear rollback criteria"-```--### Step 4: Address the Steel-Manned Version--Now engage with the strongest argument:--```markdown-## Response to Steel-Manned Argument--The strongest case for Rust addresses real problems. However:--Memory safety issues:-- 2 of 3 outages were logic bugs, not memory bugs-- Could be addressed with better testing in current language-- Rust learning curve might introduce new bug classes--Performance:-- GC issues could be addressed with tuning-- Critical path is <5% of codebase-- FFI to native code is an option without full rewrite--The 6-month investment in Rust might be better spent:-- 2 months: Performance profiling and GC tuning-- 2 months: Targeted native extensions for hot paths-- 2 months: Improved testing/monitoring--This addresses the concerns with lower risk.-```--### Step 5: Find the Synthesis--What's the best answer considering both sides?--```markdown-## Synthesis--The Rust proposal was right about the problems, less right about the solution.+- Settled fact, security anti-pattern, or violated hard requirement — correct it; do not invent a defense of what is wrong.+- You already agree for stated, weighed reasons — do not perform a fake debate.+- Trivial or fully reversible choices where deliberation cost exceeds downside.+- Live emergency — act first; steel-man in the post-incident review.+- Need definition/assumption cleanup, not opposition — use socratic.+- Need failure scenarios for a plan — use pre-mortem; need attacker paths — use red-team.-Agreed:-- Memory safety is a real concern (but smaller than stated)-- Performance needs improvement (but addressable incrementally)-- Technical modernization has value (but not at rewrite cost)+## Procedure-Plan:-1. Address immediate performance with profiling + tuning-2. Build one small service in Rust as learning experiment-3. Evaluate Rust for future services based on learnings-4. Don't rewrite existing system+1. **State the target claim or decision** you are about to accept or reject, in one sentence. Name the real alternative if one exists.+2. **Extract the core insight** behind the opposing position (or against your preferred path): the legitimate concern even if the proposed solution is wrong.+3. **Construct the strongest faithful case** an informed advocate would make: best evidence, incentives, and failure modes — no mockery, no cherry-picked weak version, no motive attacks. Include base rates or concrete alternatives that could overturn the preferred path when relevant.+4. **State agreement / overturn conditions.** Write one observation or result that would make you accept the opposing case (or abandon your preferred path), and whether you have looked for it.+5. **Engage that strong version, then decide.** Respond to the steel-manned case on the merits. Output one of: accept opposing path, revise synthesis, or reaffirm original with explicit residual risks. Naming the countercase without accept/revise/reaffirm is incomplete. Stop once the decision updates or is reaffirmed with conditions.-This takes the best of both positions.-```--## Steel-Manning Patterns--### In Design Reviews--```markdown-## Design Review: Microservices Proposal--Weak version to avoid:-"They just want to use trendy tech"--Steel-manned version:-"The monolith has become a development bottleneck.-Deploy conflicts are causing delays. Different teams-need different scaling characteristics. The proposal-addresses real coordination problems."--Now address:-"The coordination problems are real, but can we solve them-with modular monolith patterns before taking on distributed-systems complexity?"-```--### In Code Reviews--```markdown-## Code Review: Complex Abstraction--Weak critique:-"This is over-engineered"--Steel-manned understanding:-"The author anticipated we'll need to support multiple-backends. This abstraction makes adding new backends-trivial. The complexity exists to serve future flexibility."--Better critique:-"I understand this enables multiple backends. Let's-validate that requirement—if we only ever need one,-the abstraction adds maintenance burden without benefit."-```--### In Conflict Resolution--```markdown-## Team Disagreement: Testing Strategy--Person A: "We need 100% code coverage"-Person B: "Code coverage is a vanity metric"--Steel-man A:-"Coverage ensures we think about edge cases and makes-refactoring safer. Without coverage requirements,-critical paths go untested."--Steel-man B:-"Coverage without quality gives false confidence.-Testing getters/setters wastes time better spent on-integration tests that catch real bugs."--Synthesis:-"Coverage is valuable for complex logic, less valuable-for trivial code. Let's require coverage for business-logic modules, but focus on integration tests for-overall system confidence."-```--### In Self-Critique--```markdown-## Validating My Own Decision--My decision: Use NoSQL for this project+## Output-Steel-man the opposite:-"SQL has survived 50 years because relational models-work for most data. NoSQL solves problems most projects-don't have. The flexibility of schemaless data becomes-a bug when requirements solidify. Joins are a feature,-not a limitation."--Now: Does my NoSQL choice survive this critique?-- Do I actually need schemaless flexibility?-- Will I regret not having joins?-- Am I solving a problem I don't have?-```--## Steel-Manning Red Flags--Signs you're straw-manning instead:--| Straw-Man Sign | Example | Fix |-|----------------|---------|-----|-| "They just want..." | "They just want to use new tech" | Find the legitimate concern |-| Attacking messenger | "They're inexperienced" | Address the argument |-| Cherry-picking worst example | "Remember when X failed?" | Consider best examples |-| Assuming bad faith | "They don't care about quality" | Assume they want good outcomes |-| Ignoring strong points | Skipping their best argument | Address strongest point first |--## Steel-Manning Template--```markdown-# Steel-Man Analysis: [Topic]--## Original Position-Who: [Person/group]-Position: [Their stated view]-Stated reasons: [Their explicit arguments]--## Apparent Weaknesses-[What seems wrong at first glance]--## Core Insight-[The legitimate concern or truth behind the position]--## Steel-Manned Version-[The strongest possible formulation of their argument]--"[Write it as if you were advocating for this position]"--## My Response to the Strong Version-[Now address the steel-manned argument]--## What I Learned-[How did steel-manning change my understanding?]--## Synthesis-[Best answer considering both positions]+```text+claim: <decision or proposal under test>+core_insight: <legitimate concern behind the opposition>+steel_man: <strongest faithful opposing argument>+overturn_if: <concrete observation that would change your mind>+looked_for_overturn: yes | no | partial+response_to_steel_man: <engagement on the merits>+decision: accept_opposing | revise | reaffirm+update: <what changed in belief or plan, or why reaffirm stands>+residual_risks: <what remains even after reaffirm/revise>```-## Verification Checklist--- [ ] Understood the original argument-- [ ] Identified the core insight/concern-- [ ] Constructed the strongest possible version-- [ ] Ran the strongest-countercase check on the preferred path (including one falsifying observation)-- [ ] Addressed the strong version, not a weak one-- [ ] Found what's legitimate in the opposing view-- [ ] Considered synthesis of positions-- [ ] Changed my mind if the steel-man is convincing--## Key Questions--- "What's the strongest version of this argument?"-- "What legitimate concern is behind this?"-- "Could I argue this position convincingly?"-- "What would make this position correct?"-- "What single piece of evidence would prove my preferred path wrong — and have I looked for it?"-- "Am I attacking the weakest or strongest form?"-- "If I were advocating for this, what would I say?"--## Rapoport's Rules (Related)--Daniel Dennett, channeling Anatol Rapoport, offers rules for criticizing:--1. Attempt to re-express the target's position so clearly that they say "Thanks, I wish I'd thought of putting it that way."-2. List any points of agreement (especially if not matters of widespread agreement).-3. Mention anything you learned from the target.-4. Only then are you permitted to say so much as a word of rebuttal or criticism.--This is steel-manning as ethical practice.--## Mill's Wisdom--"He who knows only his own side of the case knows little of that."+## Verification-You don't truly understand your position until you can argue the opposition's best case. Steel-manning isn't weakness—it's the path to strong positions that can withstand strong criticism.+- **Falsify / stop:** If the "steel man" is weaker than the original or attacks a caricature, rebuild it. If no overturn condition is stated, the check is incomplete. If evidence meets the overturn condition, you must update — reaffirmation is then false.+- **Over-application guard:** Do not steel-man factual errors or hard constraints. Do not run a full adversarial brief for near-zero-cost reversible choices. Do not use this skill to delay an emergency response.diff --git a/skills/thinking-systems/SKILL.md b/skills/thinking-systems/SKILL.mdindex c47ede7..9a8400c 100644--- a/skills/thinking-systems/SKILL.md+++ b/skills/thinking-systems/SKILL.md@@ -1,260 +1,69 @@---name: thinking-systems-description: Use when debugging across services/an incident where a fix in one place breaks another, or behavior is emergent and no single component explains it. Maps the system and traces causes.+description: When behavior is emergent across components—fixes elsewhere break, loops/delays dominate—map boundary, stocks/flows, feedback, archetypes, then rank leverage.disable-model-invocation: true----# Systems Thinking+# Systems Mapping and Leverage-## Overview-Systems thinking views a problem as part of an interconnected whole rather than isolated components. It focuses on relationships, feedback loops, delays, and emergent properties—behaviors that arise from interactions and can't be predicted from parts alone. Its proven payoff is cross-service/incident debugging, where "obvious" single-component fixes fail.--**Core Principle:** The behavior of a system cannot be understood by analyzing components in isolation. Look at connections, feedback, and emergence.+Treat the problem as structure and interaction, not isolated parts. Map boundary, stocks/flows, loops/delays, and recurring patterns; intervene at the highest feasible leverage after a side-effect check.## When to Use-- Debugging issues that span multiple services/components-- A fix in one place breaks something in another-- Behavior is emergent—no single component is at fault, but the whole misbehaves-- Analyzing incidents and outages with non-obvious causes-- Performance issues where the slow part isn't the actual cause-- The same problem keeps recurring despite multiple fixes (match structure, not only symptoms)-- Parameter/buffer tweaks keep not sticking—need to rank where to intervene by leverage-```-Problem spans multiple components? → yes → APPLY SYSTEMS THINKING-Fix in one place caused issue in another? → yes → APPLY SYSTEMS THINKING-Behavior seems "emergent" or unexpected? → yes → APPLY SYSTEMS THINKING-```+- Symptom spans services/components; single-stack fixes fail or bounce.+- A change in one place breaks another; behavior is emergent.+- Problem recurs despite local fixes (structure, not only symptom).+- Need to rank interventions when parameter/buffer tweaks do not stick.## When NOT to Use-- A single-component, linear bug (one service, clear stack trace) → just trace and fix it; the systems overhead buys nothing.-- The cause is already obvious from the recent diff or one log line → fix directly.-- The work is a contained refactor or feature with no cross-component interactions → skip.--## Systems Debugging Process-This is the core of the skill—apply it first.--### Step 1: Map the System-Draw components, connections, and data/control flows:-```-┌─────────┐ ┌─────────┐ ┌─────────┐-│ Client │────▶│ API │────▶│ DB │-└─────────┘ └────┬────┘ └─────────┘- │- ▼- ┌─────────┐- │ Cache │- └─────────┘-```--### Step 2: Identify Feedback Loops and Delays-For each candidate loop, run this check:-1. **Classify the behavior:** growing/collapsing → reinforcing; oscillating → balancing with delay; stuck/resisting change → dominant balancing; settling cleanly → healthy balancing.-2. **Trace the loop:** list variables that feed back into themselves; mark each link same-direction (+) or opposite (-). Even count of (-) = reinforcing; odd = balancing.-3. **Name the delay:** where does cause lag effect (cache TTL, deploy pipeline, ramp-up, metric lag)? Long delays cause overshoot/oscillation—shorten the delay, reduce correction gain, or wait for feedback before acting again.-4. **Find the leverage on the loop:** shorten a delay, change loop gain, add a balancing loop to a runaway reinforcing one, or weaken a balancing loop that blocks needed change.--```-Retry Storm Loop (Reinforcing - Dangerous):-Service slow → Clients retry → More load → Service slower → More retries-Delay: retry backoff / client timeout; intervention: circuit breaker + shed load-```--### Step 3: Trace Upstream-Follow the symptom backward to find originating cause:-```-Symptom: High latency in Service C-→ Service C waiting on Service B- → Service B waiting on Service A- → Service A doing full table scan (ROOT CAUSE)-```--### Step 4: Look for Interactions-What happens when components interact under stress?-- Circuit breakers tripping-- Cascading timeouts-- Resource contention-- Thundering herd--### Step 5: Consider Time Dynamics-- When did this start?-- What changed recently (deploys, config, traffic)?-- Is it periodic? (Cron jobs, cache expiration, batch processes)-- Is it growing or stabilizing?--### Step 6: Match Recurring Structure (Archetypes)-When the same problem keeps recurring despite fixes, match the structure before inventing a new diagnosis:--| Archetype | Recognize | Structure check | Intervene by asking |-|-----------|-----------|-----------------|---------------------|-| Fixes That Fail | Fix returns worse later; needs larger doses | Quick fix + delayed side effect | What side effect will this fix create? |-| Shifting the Burden | Permanent workaround; real fix starved | Symptomatic fix atrophies fundamental capability | What capability are we not building? |-| Limits to Growth | Strong growth then plateau | Reinforcing growth hits a balancing constraint | What limits us at 10x? |-| Tragedy of the Commons | Shared resource degrades under local optima | Individual gain, collective depletion | Who owns long-term health of this resource? |-| Escalation | Arms race / mutual reaction spiral | Two reinforcing responses to each other | Can we change the game instead of playing harder? |-| Success to the Successful | Winner takes investment; alternatives starve | Initial advantage compounds via resource allocation | Are we starving future options to feed the incumbent? |-| Growth and Underinvestment | Reactive capacity only after crisis | Demand grows; capacity investment delayed | What fails if we grow 50% without capacity now? |--If no archetype fits after a genuine look, keep the from-scratch map—do not force a pattern. One-off linear bugs need no archetype.--## Common System Patterns--### Cascading Failure-```-One component fails → Dependent components overload → They fail- ↓- ← More traffic to remaining ←-```-**Mitigation:** Circuit breakers, bulkheads, graceful degradation--### Thundering Herd-```-Cache expires → All requests hit backend simultaneously → Overload-```-**Mitigation:** Jittered expiration, cache warming, request coalescing--### Queue Backup-```-Processing rate < Arrival rate → Queue grows → Memory pressure → OOM-```-**Mitigation:** Backpressure, rate limiting, queue bounds--### Resource Contention-```-Multiple processes → Same resource → Lock contention → Serialization- ↓- Throughput collapses despite available CPU-```-**Mitigation:** Sharding, optimistic locking, resource isolation--## Key Concepts--### 1. Feedback Loops-**Reinforcing (Positive) Loops:** Amplify change-```-Technical Debt Loop:-Deadline pressure → Shortcuts → More bugs → More firefighting- ↓- ← Less time for quality ←-```--**Balancing (Negative) Loops:** Counteract change-```-Auto-scaling Loop:-Load increases → More instances spawn → Load per instance decreases- ↓- ← Fewer instances needed ←-```--**Questions to identify loops:**-- Does this effect feed back into its cause? Classify reinforcing vs balancing (even/odd count of opposite links).-- Where is the delay, and would acting before feedback arrives overcorrect?-- What keeps this system in equilibrium—or what would make the loop unstable?--### 2. Stocks and Flows-**Stocks:** Accumulated quantities (users, technical debt, cache size)-**Flows:** Rates of change (registrations/day, bugs fixed/sprint)--```-┌─────────────────────────────────────┐-│ Inflow → [Stock] → Outflow │-│ │-│ New bugs → [Bug Backlog] → Fixes │-│ Requests → [Queue Depth] → Processed│-│ Hires → [Team Size] → Attrition │-└─────────────────────────────────────┘-```--**Key insight:** Stocks change slowly even when flows change quickly. Queue depth doesn't drop instantly when you add capacity.--### 3. Delays-Time lags between cause and effect obscure relationships:-```-Code deployed → [Delay: Cache TTL] → Users see change-Feature shipped → [Delay: Adoption curve] → Metrics change-New hire starts → [Delay: Ramp-up] → Productivity impact-```--**Danger:** Acting before feedback arrives leads to overcorrection.--### 4. Non-Linear Relationships-Small changes can have large effects (and vice versa):-```-Linear assumption: 2x traffic = 2x latency-Reality: Traffic crosses threshold → 10x latency (queue buildup)--Linear assumption: Adding engineer adds capacity-Reality: Communication overhead grows O(n²)-```--### 5. Emergent Properties-Behaviors that arise from interactions, not individual components:-- **Distributed system:** No single service is slow, but the system is slow (cascading delays)-- **Team dynamics:** No individual is toxic, but collaboration is toxic (incentive interactions)-- **Market behavior:** No actor intends a bubble, but bubble emerges--## Causal Loop Diagram Template--```-┌──────────────────────────────────────────────────────────────┐-│ System: [Name] │-├──────────────────────────────────────────────────────────────┤-│ │-│ ┌─────────┐ ┌─────────┐ │-│ │ Factor │──────(+)──────────────▶│ Factor │ │-│ │ A │ │ B │ │-│ └─────────┘ └────┬────┘ │-│ ▲ │ │-│ │ │ │-│ (-) (+) │-│ │ │ │-│ │ ┌─────────┐ │ │-│ └─────────│ Factor │◀─────────────┘ │-│ │ C │ │-│ └─────────┘ │-│ │-│ Legend: (+) = same direction, (-) = opposite direction │-│ Loop type: Reinforcing / Balancing │-└──────────────────────────────────────────────────────────────┘-```--## Rank Interventions by Leverage and Side Effects-After mapping the system and loops, rank candidate interventions top-down. Prefer the highest-leverage point you can actually move; then check side effects before committing.--| Level (high→low) | Leverage class | Examples |-|------------------|----------------|----------|-| Goals / paradigm | Highest | Change what the system optimizes for; rethink architecture assumptions |-| Rules / information | High | CI gates, contracts, policies; surface a missing metric/signal |-| Loop structure | Medium–high | Add/strengthen balancing loops; weaken runaway reinforcing loops; shorten delays |-| Stock/flow structure | Medium | Topology, schema, connection paths |-| Buffers / parameters | Lowest | Queue sizes, timeouts, retry counts, instance counts |--**Ranking procedure:**-1. List current and proposed interventions; map each to a level above.-2. For every low-level move, ask for the higher version (more instances → fix the inefficient path; longer timeout → shorten the delay; patch each bug → make the class unrepresentable / gate it).-3. Score feasibility: can you move this point now? Cost, resistance, blast radius.-4. Pick the highest feasible leverage; if blocked, stage toward it (warn-only gate → enforce; observe metric → act on it).-5. **Side-effect check before acting:** What feeds back into what after this change? What breaks elsewhere? What delayed effect could reverse the gain (Fixes That Fail)? Prefer interventions that strengthen needed balancing loops or cut harmful reinforcing gain without creating a new commons/escalation.--## Verification Checklist-- [ ] Mapped system components, connections, stocks/flows-- [ ] Classified reinforcing vs balancing loops and named delays-- [ ] Traced symptom upstream to potential root causes-- [ ] Checked for a recurring archetype when the problem keeps returning-- [ ] Looked for emergent/interaction effects-- [ ] Ranked interventions by leverage; chose highest feasible-- [ ] Side-effect check: delayed consequences, other components, new loops--## Key Questions-- "What feeds back into what?"-- "Where are the delays in this system?"-- "What happens when this scales 10x?"-- "What would an observer see vs. what's actually happening?"-- "If I fix this here, what breaks over there?"-- "What behavior emerges that no single component intends?"-- "Where is the highest-leverage change I can actually make, and what side effects follow?"--## Meadows' Reminder-"We can't control systems or figure them out. But we can dance with them."-Systems resist simple fixes. Effective intervention requires understanding the whole, finding leverage points, and accepting that you're influencing, not controlling.+- Single-component linear bug with clear stack/diff—trace and fix.+- Throughput limited by one obvious stage—use theory-of-constraints.+- Decision is a consequence chain of one proposed action—use second-order.+- Approach selection (plan vs probe vs stabilize)—use cynefin first.++## Procedure++1. **Bound the system.** Name purpose, actors, boundary, and in/out flows. Exclude noise outside the decision horizon; include any path that can feed the symptom.+2. **Map stocks and flows.** List accumulating stocks (queue depth, debt, cache size, WIP) and the rates that fill/drain them. Note what changes slowly even when flows jump.+3. **Find feedback and delays.** For each candidate loop: classify reinforcing (amplifies) vs balancing (resists); mark same-direction (+) vs opposite (-) links; name delays (TTL, deploy lag, metric lag, ramp-up). Even count of opposite links → reinforcing; odd → balancing. Long delay + strong correction → overshoot risk.+4. **Match recurring structure when problems return.** Check only if recurrence or policy resistance is present; do not force a pattern:+ - Fixes That Fail — quick fix, delayed worse side effect+ - Shifting the Burden — workaround starves fundamental fix+ - Limits to Growth — growth hits a balancing constraint+ - Tragedy of the Commons — local optima deplete a shared stock+ - Escalation — mutual reaction spiral+ - Success to the Successful — advantage compounds via allocation+ - Growth and Underinvestment — capacity lags demand until crisis+ If none fits after a genuine pass, keep the from-scratch map.+5. **Trace symptom to structure.** Walk upstream along flows and loops; separate proximate symptom from structural driver (interaction, delay, wrong goal, missing info).+6. **Rank interventions by leverage, then side effects.** Prefer higher feasible class: goals/paradigm → rules/information → loop structure (gain, balancing add, delay shorten) → stock/flow topology → buffers/parameters. For each candidate: feasibility, blast radius, delayed reversal risk. Prefer moves that cut harmful reinforcing gain or strengthen needed balancing loops without creating a new commons/escalation.+7. **Stop.** Commit highest feasible intervention plus watch signals for loop/delay response. Re-map only if the structure changes or the intervention fails its watch.++**Stop when** boundary, key stocks/flows, dominant loop(s)+delay(s), optional archetype, and a ranked intervention with side-effect check are stated—or when the problem collapses to a single linear cause.++## Output++```text+boundary: <system purpose and edges>+stocks_flows: <stock → inflow/outflow list>+loops:+ - name: <loop>+ type: reinforcing | balancing+ delay: <where cause lags effect>+ links: <brief +/->+archetype: <name or none>+structural_driver: <one sentence>+interventions_ranked:+ - level: <goals|rules|loops|structure|params>+ action: <what>+ side_effects: <feedback/elsewhere/delay risk>+chosen: <highest feasible>+watch: <signals that confirm or falsify>+```++## Verification++- **Falsify:** If removing one component fully explains and fixes the issue with no cross-effects, systems mapping is wrong—drop to local debug. If utilization shows one fixed stage as the sole cap, switch to theory-of-constraints.+- **Stop:** Do not keep adding loops after the chosen intervention and watch are set.+- **Over-application guard:** No archetype without recurrence evidence. No low-leverage param tweak listed as primary when a feasible higher class exists. Do not recreate standalone archetype/feedback/leverage procedures—those checks live only inside this map.diff --git a/skills/thinking-theory-of-constraints/SKILL.md b/skills/thinking-theory-of-constraints/SKILL.mdindex 553efc8..0cb9b29 100644--- a/skills/thinking-theory-of-constraints/SKILL.md+++ b/skills/thinking-theory-of-constraints/SKILL.md@@ -1,339 +1,55 @@---name: thinking-theory-of-constraints-description: Use when optimizing latency or throughput in a pipeline and one stage dominates—focus all effort on that single bottleneck, since speeding up the others changes nothing until it's fixed.+description: When throughput or latency is pipeline-limited, identify the single binding constraint and exploit, subordinate, elevate, then recheck—ignore non-constraints.disable-model-invocation: true---# Theory of Constraints-## Overview--The Theory of Constraints (TOC), from Eliyahu Goldratt's "The Goal," says a throughput-limited system has exactly one constraint setting its rate. Optimizing anything else is wasted effort—often counterproductive. Find the bottleneck, exploit it, subordinate everything else to it, and only then elevate it.--**Core Principle:** A chain is only as strong as its weakest link. Strengthening any other link does nothing.+A throughput-limited system has one binding constraint. Improve only that constraint; local optimization of non-constraints wastes effort and often grows WIP.## When to Use-- Latency optimization where one stage dominates the time budget-- Throughput optimization where one stage caps the rate-- A pipeline where work piles up before one specific stage--```-Trying to improve latency/throughput?- → Have you identified the constraint? → no → FIND THE CONSTRAINT FIRST- → Are you optimizing a non-constraint? → yes → STOP, FOCUS ON CONSTRAINT- → Is the constraint working at 100%? → no → EXPLOIT BEFORE ELEVATING-```+- Latency or throughput goal where one stage dominates time or rate.+- Work piles up before one stage; downstream idles.+- Adding capacity/workers elsewhere does not raise end-to-end output.+- Need ordered plan: exploit cheaply before spending to elevate.## When NOT to Use-- **No single stage dominates** (latency/load is spread roughly evenly, or many stages are near 100%) → there is no one constraint to exploit. Use `thinking-systems` to model the interactions instead.-- The problem is correctness, not throughput → this is the wrong lens; debug the fault.-- The bottleneck is already obvious and cheap to fix → just fix it; skip the five steps.-- "Bottleneck" shifts every run (it's contention/coupling, not a fixed stage) → that's a systems problem, not a constraint.--## The Five Focusing Steps--### Step 1: Identify the Constraint--Find the one thing limiting the system:--```markdown-## Constraint Identification--System: Software delivery pipeline--Potential constraints:-| Stage | Capacity | Utilization | Queue Time |-|-------|----------|-------------|------------|-| Requirements | 10/week | 60% | 0 days |-| Development | 8/week | 95% | 3 days |-| Code Review | 5/week | 100% | 5 days |←CONSTRAINT-| Testing | 12/week | 40% | 0 days |-| Deployment | 20/week | 20% | 0 days |--Constraint: Code Review-Evidence: 100% utilization, 5-day queue, lowest throughput-```--**How to find the constraint:**-- Highest utilization-- Longest queue/wait time-- Lowest throughput rate-- Where work piles up-- What people complain about waiting for--### Step 2: Exploit the Constraint--Get maximum output from the constraint without spending money:--```markdown-## Exploiting the Constraint--Constraint: Code Review (5/week capacity)--Exploitation strategies:-| Strategy | Effort | Impact |-|----------|--------|--------|-| Never let reviewers wait for reviewable PRs | Low | +10% |-| Batch small PRs together | Low | +15% |-| Clear review criteria to reduce back-and-forth | Low | +20% |-| Prioritize reviews over other reviewer work | Medium | +10% |-| Remove unnecessary review requirements | Low | +15% |--Total potential: 5/week → 8/week (60% increase, no new resources)-```--**Exploitation questions:**-- Is the constraint ever idle? Why?-- Is the constraint doing any unnecessary work?-- Is the constraint's output ever wasted downstream?-- Can we reduce setup/changeover time?-- Can we improve quality at the constraint (less rework)?--### Step 3: Subordinate Everything Else--Non-constraints should serve the constraint:--```markdown-## Subordination--Every other stage should optimize FOR code review, not for itself.--Requirements:-- DON'T: Maximize requirement throughput-- DO: Pace requirements to match code review capacity-- DO: Ensure requirements are clear (reduce review iterations)--Development:-- DON'T: Maximize development output-- DO: Produce review-ready code at the rate review can handle-- DO: Spend extra time on clarity (save reviewer time)--Testing:-- DON'T: Maximize testing efficiency-- DO: Be ready to test immediately when reviews complete-- DO: Provide feedback that helps reviewers learn--Counter-intuitive: Keeping developers busy beyond review capacity- creates work-in-progress that HURTS throughput-```--**Subordination principle:**-Local optimization of non-constraints often hurts global throughput. A 100% utilized developer feeding a 100% utilized reviewer creates a queue that slows everything.--### Step 4: Elevate the Constraint--If exploitation isn't enough, invest in increasing constraint capacity:--```markdown-## Elevating the Constraint--Current constraint capacity: 8/week (after exploitation)-Required capacity: 12/week--Elevation options:-| Option | Cost | Capacity Gain |-|--------|------|---------------|-| Hire dedicated reviewer | $150K/year | +4/week |-| Train more reviewers | $10K training | +2/week |-| Adopt review tooling | $5K/year | +1/week |-| Pair reviewing | Process change | +3/week |--Recommendation: Training + tooling first ($15K for +3/week)- Then hire if still insufficient-```--**Elevation timing:**-Only elevate after exploitation is maxed out. Elevating is expensive; exploitation is cheap.--### Step 5: Prevent Inertia (Go Back to Step 1)--When you elevate, the constraint often moves:--```markdown-## Constraint Movement--Before: Code Review was constraint (5/week)-After elevation: Code Review does 12/week--New constraint search:-| Stage | Capacity | Utilization |-|-------|----------|-------------|-| Requirements | 10/week | 100% | ←NEW CONSTRAINT-| Development | 15/week | 80% |-| Code Review | 12/week | 80% |-| Testing | 12/week | 100% | ←OR THIS ONE |--System bottleneck moved—repeat the process.-```--## Finding Constraints--### Types of Constraints--| Type | Examples | How to Find |-|------|----------|-------------|-| Physical | Machine capacity, server limits | Utilization metrics |-| Policy | Approval requirements, rules | Process analysis |-| Market | Customer demand | Sales/pipeline data |-| Time | Fixed deadlines | Schedule analysis |-| Knowledge | Expert availability | Skill matrix |--### Constraint Indicators--```-Signs of a constraint:-✓ Work queues up before this stage-✓ Downstream stages have idle time-✓ Increasing input doesn't increase output-✓ This stage is always at full capacity-✓ Small improvements here have large system effects--Signs of a non-constraint:-✓ Often has idle time-✓ Improvement has no system effect-✓ Work flows through without queuing-```--## TOC Application Patterns--### Performance Optimization--```markdown-## System Performance Analysis--Request flow:-API Gateway → Auth → App Logic → Database → Response--Latency breakdown:-| Component | Latency | % of Total |-|-----------|---------|------------|-| API Gateway | 5ms | 2% |-| Auth | 10ms | 4% |-| App Logic | 30ms | 12% |-| Database | 200ms | 80% | ←CONSTRAINT-| Response | 5ms | 2% |--Constraint: Database--Wrong approach: Optimize app logic (12% of latency)-Right approach: Focus 100% on database optimization- Query optimization, caching, indexing, read replicas-```--### Batch/Data Pipeline Throughput--```markdown-## Pipeline Throughput Analysis--Stage flow:-Ingest → Parse → Transform → Enrich (external API) → Write--Throughput analysis:-| Stage | Rate (rec/s) | Utilization |-|-------|--------------|-------------|-| Ingest | 50,000 | 20% |-| Parse | 30,000 | 35% |-| Transform | 20,000 | 50% |-| Enrich (external API) | 2,000 | 100% | ←CONSTRAINT-| Write | 40,000 | 25% |--System throughput is capped at 2,000 rec/s by the enrichment call.-Parallelizing parse/transform does nothing—it just grows the queue before Enrich.--Exploit: batch the API calls, cache repeat lookups, drop redundant enrichments.-Subordinate: pace upstream stages to 2,000 rec/s; don't build WIP.-Elevate (only if exploit insufficient): add API concurrency / a second provider.-```+- Load is spread; no stage dominates—use systems for interactions.+- Problem is correctness/fault, not flow rate—debug the fault.+- Bottleneck hops every run due to coupling/contention without a stable stage—systems or concurrency design, not five focusing steps.+- Constraint already known and a cheap fix is ready—apply it without ceremony.-### Concurrency / Lock Contention+## Procedure-```markdown-## Contention Analysis+1. **Define the flow and goal.** Name the unit of work (request, job, PR, record) and the metric that matters (end-to-end rate or latency).+2. **Identify the constraint with evidence.** Compare stages on utilization, queue/wait, and throughput. Constraint signals: near-100% use, longest queue, lowest stage rate, work piles here, more input does not raise system output. Prefer measured rates over opinions. If two candidates tie, pick the one whose improvement would raise system throughput first.+3. **Exploit (no major spend).** Maximize constraint output: cut idle, drop nonessential work on the constraint, reduce rework/setup, protect its time, improve quality at the constraint so output is not wasted. Estimate gain before spending.+4. **Subordinate non-constraints.** Pace upstream to constraint rate; do not flood WIP. Make other stages serve the constraint (readiness, clarity, immediate pull). Reject local utilization targets that grow queues before the constraint.+5. **Elevate only if still short.** After exploit is maxed, invest to raise constraint capacity (people, tooling, sharding, parallel path). Choose cheapest adequate elevation.+6. **Recheck (prevent inertia).** After elevation or large exploit, remeasure all stages—the constraint often moves. Return to step 2. Do not keep optimizing the old constraint.-Symptom: throughput plateaus far below CPU capacity.+**Stop when** constraint, evidence, exploit plan, subordination rules, and elevate-or-not decision are explicit—or when no single stage binds (exit to systems).-| Resource | Wait time | Notes |-|----------|-----------|-------|-| CPU | low | cores idle |-| Global mutex | HIGH | every request serializes here | ←CONSTRAINT-| DB pool | low | |+## Output-The single hot lock is the constraint; adding workers makes contention worse.-Exploit: shorten the critical section to the minimum.-Elevate: shard the lock / switch to a lock-free or per-key structure.+```text+system_goal: <throughput/latency objective>+flow: <stage sequence>+constraint: <stage or resource>+evidence: <utilization / queue / rate facts>+exploit: <actions, expected gain>+subordinate:+ - stage: <name>+ change: <how it serves the constraint>+elevate: <none | option + cost/gain>+next_constraint_watch: <what to remeasure after change>```-## Theory of Constraints Template--```markdown-# TOC Analysis: [System/Process]--## System Definition-What flows through this system: [Work items, requests, features]-Goal: [What throughput matters]--## Constraint Identification--| Stage | Capacity | Utilization | Queue Time | Throughput |-|-------|----------|-------------|------------|------------|-| | | | | |--**Identified Constraint:** [Stage]-**Evidence:** [Why this is the constraint]--## Step 2: Exploit--How to maximize constraint output without investment:-| Exploitation | Effort | Expected Gain |-|--------------|--------|---------------|-| | | |--## Step 3: Subordinate--How should non-constraints support the constraint?-| Stage | Current Behavior | Should Change To |-|-------|------------------|------------------|-| | | |--## Step 4: Elevate (if needed)--If exploitation isn't sufficient:-| Elevation Option | Cost | Capacity Gain |-|------------------|------|---------------|-| | | |--## Step 5: Next Constraint--After elevation, where will the constraint move?-[Prediction]-```--## Verification Checklist--- [ ] Identified the single constraint (not multiple "bottlenecks")-- [ ] Have data supporting the constraint identification-- [ ] Maximized exploitation before considering elevation-- [ ] Non-constraints are subordinated (not locally optimized)-- [ ] Not investing in non-constraint improvements-- [ ] Monitoring for constraint movement--## Key Questions--- "What's the ONE thing limiting throughput?"-- "Is the constraint ever idle? Why?"-- "Are we improving a non-constraint while ignoring the constraint?"-- "Are non-constraint improvements building inventory?"-- "What should the rest of the system do to serve the constraint?"-- "If we improve this, where will the constraint move?"--## Goldratt's Wisdom--"Every action that brings the company closer to its goal is productive. Every action that does not bring a company closer to its goal is not productive."--"An hour lost at a bottleneck is an hour lost forever. An hour saved at a non-bottleneck is a mirage."--"The sum of local optimums is not equal to the global optimum."+## Verification-Optimizing everywhere is the same as optimizing nowhere. Find the constraint. Make it work. That's all that matters until the constraint moves.+- **Falsify:** If raising the named stage cannot increase system throughput (another stage already caps), identification is wrong. If non-constraint optimizations change end-to-end rate, re-identify.+- **Stop:** Do not elevate before exploit is exhausted. Do not optimize multiple stages “just in case.”+- **Over-application guard:** One constraint at a time. Idle capacity upstream is not a problem to fill. Do not use TOC language for pure multi-loop emergence without a binding stage.diff --git a/skills/thinking-thought-experiment/SKILL.md b/skills/thinking-thought-experiment/SKILL.mdindex c9d4723..722261a 100644--- a/skills/thinking-thought-experiment/SKILL.md+++ b/skills/thinking-thought-experiment/SKILL.md@@ -1,355 +1,53 @@---name: thinking-thought-experiment-description: You need to trace how a system would fail or behave at a scale you can't cheaply test or measure. Use to imagine the scenario and walk the consequence chain step by step.+description: When a real test is too rare, large, or irreversible, run a controlled counterfactual: isolate one variable, fix conditions, trace the mechanistic chain, and bound what the result implies.disable-model-invocation: true----# Thought Experiments+# Thought Experiment-## Overview--Thought experiments use imagination to test ideas when direct experimentation is impractical, impossible, or premature. Einstein's elevator, Schrödinger's cat, and the trolley problem have advanced physics and philosophy. In engineering, thought experiments help evaluate designs, explore edge cases, and stress-test decisions before implementation.--**Core Principle:** Structured imagination is a tool. When you can't test in reality, test in your mind with discipline.--## The Core Reframe--When you can't run the real experiment — the failure is too rare, the scale too large, the decision too one-way — you can still run it in your head with discipline: fix the conditions, then trace the consequence chain one step at a time until something breaks. The value is in the *step-by-step trace*, not in the verdict you jumped to.+When empiricism is out of reach, run a disciplined counterfactual: one isolated change, fixed conditions, step-by-step mechanism, and a hard bound on implications.## When to Use-- Tracing a failure mode you can't easily trigger (primary DB down at peak, region outage)-- Reasoning about behavior at a scale you can't currently reach (10x/100x traffic)-- Evaluating a one-way architectural decision before committing-- Exploring edge cases that are expensive or impossible to reproduce--Decision flow:--```-Need to understand how something behaves?- → Can you cheaply test or measure it? → yes → DO THAT (stop here)- → Is the real test too rare/large/irreversible? → yes → THOUGHT EXPERIMENT-```+- You need behavior under failure, scale, or policy you cannot cheaply trigger or measure (region outage, 100x load, one-way architecture).+- A decision is expensive or irreversible and a mental trace can surface break points before commit.+- Edge cases are too costly to stage, but a mechanistic chain can still expose missing controls.## When NOT to Use-- **If you can cheaply test or measure it, test it.** A thought experiment is a substitute for empiricism, not a replacement — a load test, a feature flag, a query against real data, or a quick spike beats imagined consequences every time. Reach for this skill only when the real experiment is genuinely out of reach.-- **For adversarial "how would an attacker break this" analysis, use thinking-red-team** — it has the structured attack-surface and findings format. Don't reinvent it here.--## Trigger Card--When you need to trace how a system would behave at a scale you can't cheaply test:--1. **Define the scenario precisely** — what changed? What's different from normal operation? Set initial conditions.-2. **Walk the consequence chain step by step** — given these conditions, what does the system do next? Then what? Then what? Be mechanistic, not hand-wavy.-3. **Derive what you'd need to check** — what observation would confirm or refute this chain? If you can test one link cheaply, test it.--If you can cheaply test or measure the real thing (load test, feature flag, query against real data), do that instead — a thought experiment is a substitute for empiricism, not a replacement. For adversarial "how would an attacker break this" analysis, use `thinking-red-team`.--## Types of Thought Experiments--### 1. The Hypothetical Scenario--Imagine a specific situation and trace consequences:--```-"What if we had 100x current traffic tomorrow?"-"What if our primary database failed right now?"-"What if a competitor copied our core feature?"-```--### 2. The Extreme Case--Push a parameter to its limit:--```-"What happens with 0 users? 1 billion users?"-"What if latency was 0? What if it was 10 seconds?"-"What if this team was 1 person? 100 people?"-```--### 3. The Counterfactual--Imagine the opposite of reality:--```-"What if we hadn't chosen microservices?"-"What if we didn't have this dependency?"-"What if our main customer segment didn't exist?"-```--### 4. The Role Reversal--Think from a different perspective:--```-"What would a malicious actor do with this system?"-"How would a new hire experience this codebase?"-"What would a competitor do with our technology?"-```--### 5. The Time Shift--Move forward or backward in time:--```-"How will this look in 5 years?"-"If we had known this a year ago, what would we have done?"-"What will we wish we had built today?"-```--## The Thought Experiment Process--### Step 1: Define the Experiment--State clearly what you're testing:--```markdown-## Thought Experiment: Database Failure Resilience--Question: How would our system behave if the primary database- became unavailable for 30 minutes during peak traffic?--Variables:-- Database state: Unavailable-- Duration: 30 minutes-- Traffic: Peak (3x normal)-- Preparation time: None (unexpected)-```--### Step 2: Set the Initial Conditions--Describe the starting state precisely:--```markdown-## Initial Conditions--System state:-- 10,000 active users-- 500 RPS to database-- No circuit breaker currently-- 10-second connection timeout-- No read replica failover configured--User behavior:-- Users will retry failed requests-- ~50% will leave after 2 failures-```--### Step 3: Trace the Consequences--Walk through what happens step by step:--```markdown-## Consequence Chain--T+0s: Database becomes unavailable-T+0-10s: Requests queue waiting for connection-T+10s: Connection timeouts start-T+10-30s: App servers accumulate waiting requests-T+30s: Thread pools exhausted-T+30s-2m: Cascading timeouts to upstream services-T+2m: Load balancer health checks fail-T+2m: Alerts fire (too late - damage done)-T+2-30m: Service completely unavailable-T+30m: Database returns, but app servers need restart-T+35m: Service gradually recovers-T+1h: Backlog of failed requests processed-```--### Step 4: Identify Insights--What did you learn?--```markdown-## Insights--1. Circuit breaker would limit cascade (need to implement)-2. Thread pool exhaustion is the failure mode (need limits)-3. Alerts fire too late (need proactive monitoring)-4. Recovery is slow (need automated recovery)-5. User experience is terrible (need graceful degradation)-```--### Step 5: Derive Actions--What should you do based on this experiment?--```markdown-## Actions--| Insight | Action | Priority |-|---------|--------|----------|-| No circuit breaker | Implement circuit breaker | High |-| Thread pool exhaustion | Add connection limits | High |-| Late alerts | Add DB latency monitoring | Medium |-| Slow recovery | Automate failover | Medium |-| Poor UX | Implement degraded mode | Medium |-```--## Thought Experiment Patterns--### The Failure Mode Analysis--```markdown-## Thought Experiment: What if [component] fails?--For each critical component:-- API Gateway fails: [Trace consequences]-- Auth service fails: [Trace consequences]-- Cache layer fails: [Trace consequences]-- Message queue fails: [Trace consequences]--Template for each:-1. What fails immediately?-2. What fails within 1 minute?-3. What's the blast radius?-4. How would we know?-5. How would we recover?-```--### The Adversarial Analysis--> For real security work, prefer **thinking-red-team** (structured attack surface + reproducible-attack-path findings). Use the sketch below only as a quick lens, not a substitute.--```markdown-## Thought Experiment: Attacker Perspective--"I am a malicious actor with [access level]. How would I cause maximum damage?"--Scenario 1: External attacker with no access-- What public endpoints are vulnerable?-- What would a DDoS look like?-- What data could I infer from public behavior?--Scenario 2: Compromised user account-- What can I access beyond my own data?-- Can I escalate privileges?-- What's the blast radius of one compromised account?--Scenario 3: Malicious insider-- What would a rogue employee do?-- What access is over-provisioned?-- What audit trails would catch this?-```--### The Scale Experiment--```markdown-## Thought Experiment: 10x Scale--Current: 10,000 users, 100 RPS-Imagined: 100,000 users, 1,000 RPS--What breaks?-- [ ] Database connections (pool exhaustion at ~300)-- [ ] Single-threaded workers (CPU bound at ~500 RPS)-- [ ] Memory per request (OOM at ~800 RPS)-- [ ] Network bandwidth (saturated at ~1500 RPS)--What doesn't break?-- [x] Stateless API servers (horizontally scalable)-- [x] CDN-served assets (already edge-cached)-- [x] Read-heavy queries (can add replicas)--First constraint to address: Database connection pooling-```--### The Timeline Experiment--```markdown-## Thought Experiment: 3 Years From Now--It's 2027. Our system is [successful/struggling]. Why?--Success scenario:-- What architectural decisions paid off?-- What did we avoid that would have hurt us?-- What did we invest in that scaled well?--Struggle scenario:-- What technical debt crushed us?-- What market change did we miss?-- What architecture couldn't adapt?--Present implications:-- What should we invest in now for 2027 success?-- What should we avoid now to prevent 2027 failure?-```--## Thought Experiment Template--```markdown-# Thought Experiment: [Title]--## Question-What am I trying to understand?-[Precise question]--## Setup-Initial conditions:-- [Condition 1]-- [Condition 2]--Variables being tested:-- [Variable 1]: [Value in experiment]-- [Variable 2]: [Value in experiment]--## Thought Experiment-[Step-by-step trace of what happens]--T+0: [Initial event]-T+X: [Consequence]-T+Y: [Next consequence]-...-T+end: [Final state]--## Observations-What happened in the experiment?-- [Observation 1]-- [Observation 2]--## Insights-What did I learn?-- [Insight 1]-- [Insight 2]--## Implications-What should I do differently?-- [Action 1]-- [Action 2]--## Limitations-What didn't this experiment capture?-- [Limitation 1]-- [Limitation 2]-```--## Verification Checklist--- [ ] Defined a clear, specific question-- [ ] Set up realistic initial conditions-- [ ] Traced consequences systematically-- [ ] Considered second-order effects-- [ ] Identified non-obvious insights-- [ ] Derived actionable implications-- [ ] Acknowledged experiment limitations--## Key Questions--- "What happens if [extreme scenario]?"-- "How would this look from [different perspective]?"-- "What would [5 years from now] tell us about this decision?"-- "What if the opposite were true?"-- "What's the worst thing that could happen?"-- "How would a [malicious actor/competitor/novice] interact with this?"--## Einstein's Approach--"A thought experiment is a device with which one performs an intentional, structured process of intellectual deliberation in order to speculate, within a specifiable problem domain, about potential consequents (or antecedents) for a designated antecedent (or consequent)."--More simply: Imagine a scenario, trace what happens, and learn.--"I have no special talents. I am only passionately curious."--Thought experiments are curiosity with structure. Ask "what if?" systematically, trace the answer carefully, and you'll see what testing in reality would eventually show you—sometimes years sooner.+- A cheap real test exists (load test, flag, query, spike) → run the test; do not substitute imagination.+- Adversarial security attack-path work → use red-team structure, not free-form scenarios.+- You already know the mechanism and only need a decision under known facts → decide; do not dramatize.+- Vague "what if everything" brainstorming without a single isolated variable → tighten or stop.++## Procedure++1. **State the question and isolation.** Name exactly one primary variable or counterfactual change. Freeze all other conditions as the control world. Reject multi-variable "and also" scenarios.+2. **Fix initial conditions.** Specify system state, load, configuration, actors, and what is *not* changed. Write values concrete enough that another agent could replay the setup.+3. **Trace the mechanism step by step.** From t0, record what fails, queues, retries, or adapts next—and why—using known components and policies only. No hand-wavy "then everything collapses"; each step needs a causal link.+4. **Extract invariants and break points.** Note what still holds (invariants) and the first step where the system violates a requirement (capacity, correctness, safety, UX). Mark assumptions that, if false, void the chain.+5. **Bound implications.** Map insights only to actions or checks justified by the chain (limits, guards, monitoring, redesign). Label speculative leaps beyond the isolation as out of bound.+6. **Name a discriminating real check, then stop.** For the weakest link, state the cheapest observation or experiment that would confirm or kill it. Stop after one controlled chain with bounded implications; if a link is cheaply testable now, exit to that test instead of further imagination.++## Output++Emit a thought-experiment record:++- `question`: what behavior or decision is under test+- `isolated_variable`: single change vs control world+- `initial_conditions`: frozen state and non-changes+- `consequence_chain`: ordered mechanistic steps+- `invariants`: what still holds+- `break_points`: first requirement failures and critical assumptions+- `implication_bound`: actions/checks justified by the chain only+- `discriminating_check`: cheapest real observation to confirm or kill the weak link++## Verification++- **Isolation check:** more than one free variable without a stated control → invalid; reset.+- **Mechanism check:** any step without a causal link to a known component/policy → rewrite or drop.+- **Implication bound:** recommendations not entailed by the chain are out of scope.+- **Empiricism override:** if a real test became available mid-analysis, stop the thought experiment and test.+- **Over-application guard:** do not use this skill for ordinary debugging you can reproduce, or as a substitute for red-team threat modeling.+- **Stop:** one isolated counterfactual → full chain → bounded implications + discriminating check; no scenario sprawl.diff --git a/skills/thinking-triz/SKILL.md b/skills/thinking-triz/SKILL.mdindex b198f9a..95753f1 100644--- a/skills/thinking-triz/SKILL.md+++ b/skills/thinking-triz/SKILL.md@@ -1,172 +1,52 @@---name: thinking-triz-description: Use when stuck between two architecture or API requirements that seem mutually exclusive — name the contradiction precisely, then separate the conflicting states in time, space, or condition.+description: When two design requirements seem mutually exclusive, name the contradiction, separate conflicting states, then invent a concrete no-compromise resolution.disable-model-invocation: true----# TRIZ Thinking+# TRIZ-## Overview--TRIZ is a systematic method for resolving **architecture and API design contradictions** — situations where two requirements seem mutually exclusive. When you're about to accept a trade-off because "you can't have both," TRIZ says: name the contradiction precisely, then try to **separate** the conflicting states in time, space, or condition so you get both — no compromise.--The separation moves are the primary procedure. The 40 Inventive Principles are a reference library, not a required checklist. The skill is scoped to technical design contradictions (architecture, API, system parameters); it is NOT for non-technical problems, ordinary prioritization, or contradictions that dissolve under measurement.--**Core Principle:** Great design doesn't compromise — it separates. Find the dimension where the conflicting states can coexist.+Resolve technical design contradictions without midpoint compromise. Name the conflict, separate the opposing states, and transform the system so both benefits hold.## When to Use-- An architecture or API design decision is stuck between two requirements that seem mutually exclusive (fast vs accurate, stable vs evolving, large cache vs fast invalidation)-- You're about to accept a trade-off because "you can't have both"-- The same weakness shows up in every solution you've considered — the contradiction is structural--Decision flow:--```-Two requirements seem mutually exclusive?- → Yes → NAME THE CONTRADICTION, TRY SEPARATION- → No → About to accept a trade-off curve compromise?- → Yes → APPLY TRIZ FIRST- → No → This is a routine decision — just pick based on constraints-```+- Architecture, API, or system parameters pull in opposite directions (stable vs evolving, fresh vs cached, strict vs frictionless).+- You are about to accept a trade-off because "you can't have both."+- Every candidate solution shares the same structural weakness—the conflict is in the requirements, not the options list.## When NOT to Use-- **Ordinary trade-offs with a correct answer.** If one option is simply better given your constraints (cheaper, simpler, well-understood), just pick it — don't manufacture a contradiction.-- **The "contradiction" dissolves under measurement.** If you can cheaply test which side actually matters, do that instead of inventing a separation.-- **Non-technical or people problems.** Separation principles target system parameters, not organizational dynamics or interpersonal conflicts.-- **The contradiction is already well-solved by standard patterns.** If there's an established pattern (cache-aside, CQRS, feature flags), apply the pattern directly.--## Trigger Card--When stuck between two architecture or API requirements that seem mutually exclusive:--1. **Name the contradiction precisely** — "We need [PARAMETER A] to be [STATE 1] for [BENEFIT 1] BUT also [STATE 2] for [BENEFIT 2]." If you can't write it in this form, it's not a TRIZ problem.-2. **Try separation** — can you satisfy state 1 at one TIME and state 2 at another? In different SPACES (components, layers)? Under different CONDITIONS (context, load, user)?-3. **Test the simplest separation first** — separate in time (feature flags, scheduled behavior) before space (separate services) before condition.--If one option is simply better given your constraints, just pick it. If you can cheaply test which side actually matters, test instead of designing a separation. For standard patterns (cache-aside, CQRS, feature flags), apply the pattern directly.+- One option is simply better under stated constraints → pick it; do not manufacture a contradiction.+- A cheap measurement shows which side actually matters → measure instead of inventing a separation.+- A standard pattern already resolves it (cache-aside, CQRS, feature flags, versioning) → apply the pattern directly.+- Non-technical people/org conflicts → out of scope; separation targets system parameters.+- Ordinary prioritization or resource allocation without opposing states of the same parameter.## Procedure-### Step 1: Name the Contradiction Precisely--Use this template:--```-"We need [PARAMETER A] to be [STATE 1] for [BENEFIT 1]- BUT also [STATE 2] for [BENEFIT 2]"--Example:-"We need the API to be STABLE for client compatibility- BUT also EVOLVING to support new features"-```--If you can't write the contradiction in this form, it's not a TRIZ problem — use another skill.--### Step 2: Envision the Ideal Final Result (IFR)--Before solving, describe the outcome where the problem solves itself:--```-"The API supports both old and new clients simultaneously,-without version negotiation overhead,-while maintaining a single codebase."-```--IFR questions: What if the problem solved itself? What if the harmful element became useful? What's the result with zero cost?--### Step 3: Try Separation Moves (Primary Procedure)--For each separation dimension, ask: "Can the conflicting states exist at different [times/places/conditions/scales]?"--#### Separation in Time--"Can we be in state 1 at one time and state 2 at another?"--```-Contradiction: "Cache must be FRESH AND cached"-Separation in Time: TTL-based invalidation — cached now, refreshed later-```--#### Separation in Space--"Can we be in state 1 in one place and state 2 in another?"--```-Contradiction: "Data must be LOCAL (fast) AND DISTRIBUTED (resilient)"-Separation in Space: Multi-region with local reads, distributed writes-```--#### Separation by Condition--"Can we be in state 1 under some conditions and state 2 under others?"--```-Contradiction: "Auth must be STRICT AND frictionless"-Separation by Condition: Strict for sensitive operations, frictionless for low-risk — risk-based authentication-```--#### Separation in Scale/Level--"Can state 1 and state 2 exist at different levels of the system?"--```-Contradiction: "API must be STABLE AND evolving"-Separation in Scale: Stable interface (API contract), evolving implementation — versioned APIs-```--### Step 4: If Separation Fails, Scan the Principles (Reference)--When no separation dimension resolves the contradiction, scan the software-adapted inventive principles for inspiration:--| Principle | Software Pattern |-|-----------|-----------------|-| Segmentation (#1) | Microservices, sharding, chunked processing |-| Preliminary Action (#10) | Pre-computation, caching, warm-up, materialized views |-| The Other Way Round (#13) | Push vs pull, invert control, event-driven instead of polling |-| Intermediary (#24) | Proxy, message queue, API gateway, adapter |-| Copying (#26) | Caching, replication, CDN, read replicas |-| Dynamization (#15) | Feature flags, runtime configuration, adaptive thresholds |-| Another Dimension (#17) | Add metadata layer, versioning, event sourcing |--The full 40 principles are reference material; scan only the most applicable ones.--### Step 5: Resource Analysis--Before adding new components, ask: what already exists that can be used?--```-Before: "We need a new service to track user sessions"-Resource check:-- What data already exists? → Auth tokens carry user identity-- What's already running? → Load balancer sees all requests-- What's unused? → Request headers have room for session ID-Solution: Encode session in existing auth flow — no new service-```--### Step 6: Synthesize and Decide--Combine the separation move with resource reuse into a concrete design decision. Document the contradiction, the separation dimension used, and the resolution.+1. **Name the contradiction in template form.** Write: "We need [PARAMETER] to be [STATE_1] for [BENEFIT_1] BUT [STATE_2] for [BENEFIT_2]." If this form fails, stop—use another method.+2. **State the ideal final result (IFR).** Describe both benefits held with minimal new machinery and no permanent midpoint sacrifice.+3. **Try separation before invention.** Test, in order: **time** (different moments), **space** (different components/layers), **condition** (context, load, risk), **scale** (interface vs implementation, aggregate vs element). Keep the first separation that delivers both benefits without hidden compromise.+4. **If separation fails, apply an inventive transform.** Prefer resource-light moves: segmentation, preliminary action, inversion (push/pull), intermediary, copying/replication, dynamization (flags/config), another dimension (metadata/versioning/events). Scan only principles that map to the named parameter conflict.+5. **Reuse existing resources first.** Before adding services or stores, check data, traffic, headers, schedulers, and side effects already present that can carry the separation.+6. **Lock a concrete resolution and stop.** Specify the design change, where each state lives, and how both benefits are preserved. Stop when a no-compromise design is stated, or when honest analysis shows only a constrained trade-off remains—then document the residual trade-off explicitly rather than forcing TRIZ theater.-## Output Contract+## Output-A completed TRIZ analysis produces:+Emit a TRIZ resolution:-1. **Contradiction Statement** — in the precise template form (Parameter A must be State 1 for Benefit 1 BUT State 2 for Benefit 2)-2. **Ideal Final Result** — what the self-solving outcome looks like-3. **Separation Attempts** — which dimensions were tried (time, space, condition, scale) and the result-4. **Principles Scanned** (if separation failed) — which inventive principles were considered-5. **Resources Used** — what existing capabilities were leveraged before adding new ones-6. **Resolution** — the concrete design decision that resolves the contradiction without compromise+- `contradiction`: parameter / state_1+benefit_1 / state_2+benefit_2+- `ideal_final_result`: both benefits without permanent compromise+- `separation_tried`: time | space | condition | scale → result each+- `inventive_move`: principle or pattern used if separation alone was insufficient (or none)+- `resources_reused`: existing capabilities leveraged+- `resolution`: concrete design decision and where each state holds+- `residual_tradeoff`: none, or the honest remaining compromise-## Anti-Patterns+## Verification-| Anti-Pattern | Symptom | Correction |-|---|---|---|-| **Manufacturing contradictions** | Applying TRIZ to "which database should we use" when one is clearly better | Use it only for genuine "I need both opposite states" tension |-| **Compromising instead of separating** | Accepting a midpoint on the trade-off curve without trying separation | Try all four separation dimensions before compromising |-| **Skipping separation, jumping to principles** | Immediately scanning the 40 principles without trying time/space/condition/scale | Separation is the primary procedure; principles are the fallback |-| **Applying to non-technical problems** | Using TRIZ for org dynamics or interpersonal conflicts | Separation targets system parameters, not people |-| **Over-applying to testable contradictions** | Running full TRIZ when a quick measurement resolves which side matters | If you can test it cheaply, test it |-| **Ignoring existing resources** | Adding new components when existing ones could be reused | Resource analysis before new component proposals |+- **Template gate:** if the contradiction cannot be written in the required form, do not apply TRIZ.+- **No-compromise check:** a pure midpoint on the trade-off curve without a separation or inventive move is a failed application.+- **Separation-first:** principles without attempted time/space/condition/scale separation are incomplete.+- **Over-application guard:** if measurement or a standard pattern settles the design, skip TRIZ.+- **Stop:** one named contradiction → separation/inventive pass → concrete resolution; do not cycle principles as decoration.diff --git a/skills/thinking-via-negativa/SKILL.md b/skills/thinking-via-negativa/SKILL.mdindex 531c340..5316b69 100644--- a/skills/thinking-via-negativa/SKILL.md+++ b/skills/thinking-via-negativa/SKILL.md@@ -1,359 +1,52 @@---name: thinking-via-negativa-description: About to add a feature/layer/process to fix a problem. First ask what to remove instead — subtraction is often more robust than addition. Use for simplification and complexity reduction.+description: Use when the reflex is to add a feature, layer, or process. Prefer removing harmful or nonessential elements first, with an irreversibility guard before deletion.disable-model-invocation: true---# Via Negativa-## Overview--Via Negativa, articulated by Nassim Taleb in "Antifragile," is the principle that improvement often comes from subtraction rather than addition. We're biased toward adding (features, processes, complexity) when removing (bugs, friction, unnecessary work) often provides more value with less risk.--**Core Principle:** Focus on what to remove, not what to add. Subtraction is more robust than addition.+Improve by subtraction before addition. Prefer removing harm, waste, and nonessential complexity; add only when a demonstrated need remains after removal candidates are exhausted.## When to Use-- System simplification-- Process improvement-- Feature prioritization (what NOT to build)-- Performance optimization-- Reducing technical debt-- Personal productivity-- Decision-making (what to avoid)-- Code review (what to delete)--Decision flow:--```-Trying to improve something?- → First instinct is to add? → yes → PAUSE, CONSIDER SUBTRACTION- → Can you achieve the goal by removing instead? → yes → REMOVE FIRST- → Is current complexity necessary? → no → SIMPLIFY VIA NEGATIVA-```+- About to add a feature, abstraction, dependency, process, or control to fix a problem.+- Simplifying a system or workflow where complexity is the tax.+- Prioritizing by deciding what not to keep, build, or maintain.+- Performance or reliability work where eliminating a bad path beats bolting on mitigation.## When NOT to Use-- **Never subtract a load-bearing control, test, validation, guard, or safety check** just because it's "extra complexity." Removal is only low-risk when the thing is genuinely unused or redundant. A test you don't understand, an error handler, a rate limiter, an auth check, or a retry are presumed load-bearing — prove they're dead before deleting. The whole "subtraction is safe" claim holds only for things that provide no benefit.-- **Not when the addition is genuinely required** to meet a real, demonstrated need. Via negativa fights the *reflex* to add; it doesn't forbid all addition.-- **Don't delete to hit an aesthetic "less is more" target** without checking what each element does — confirm non-use with evidence (usage data, dead-code analysis, removing it in a branch and watching), not assumption.--## Trigger Card--When about to add a feature, layer, or process to fix a problem:--1. **Ask: "What can I remove instead?"** — before adding, scan for something to subtract that would have the same or better effect.-2. **Identify the highest-cost, lowest-usage candidates** — what's consuming resources (code, process, dependency) but delivering the least value?-3. **Remove the simplest one first** — subtraction is asymmetric: removing is safer than adding because you can always add back. Test by removing it in a branch and seeing what breaks.--Don't delete to hit an aesthetic target without checking what each element does — confirm non-use with evidence, not assumption. If the addition is genuinely required for a real, demonstrated need, add it — via negativa fights the reflex to add, not all addition.--## The Via Negativa Process--### Step 1: Identify What to Eliminate--Instead of "What should we add?", ask:--```-- What's not working that we should remove?-- What's causing harm we should stop?-- What's unnecessary complexity we should eliminate?-- What's outdated that we should delete?-```--### Step 2: Catalog Candidates for Removal--List elements that might be subtracted:--```markdown-## Candidates for Removal--Code:-- Dead code (unreachable)-- Deprecated features (still running)-- Unused dependencies-- Redundant abstractions--Process:-- Meetings that don't produce decisions-- Approval steps that don't add value-- Reports no one reads-- Alerts no one acts on--Features:-- Low-usage functionality-- Legacy features maintained "just in case"-- Edge cases that complicate the core-```--### Step 3: Evaluate Impact of Removal--For each candidate:--```markdown-| Element | Usage | Maintenance Cost | Risk of Removal | Value of Removal |-|---------|-------|------------------|-----------------|------------------|-| Feature X | 0.1% of users | 20 hrs/month | Low | High |-| Meeting Y | 8 people | 4 hrs/week | None | High |-| Process Z | 5 approvers | 2 days/request | Medium | Medium |-```--### Step 4: Remove with Monitoring--Subtract and verify no harm:--```markdown-Week 1: Remove Feature X for 10% of users-Week 2: Monitor complaints, metrics-Week 3: If no issues, remove for 50%-Week 4: Full removal and code deletion-```--## Via Negativa Patterns--### Subtractive Design--Add by removing:--```-Goal: Make the product easier to use-Additive approach: Add tutorial, tooltips, help section-Via Negativa: Remove confusing features, simplify flow, delete options--Often more effective:-- Fewer choices = easier decisions-- Less surface area = less to learn-- Simpler UI = faster adoption-```--### The Pruning Principle--Healthy growth requires pruning:--```-Codebase:-- Every feature has maintenance cost-- Old features create complexity tax-- Pruning unused code enables healthier growth--Team:-- Every process has coordination cost-- Old processes accumulate like barnacles-- Pruning enables focus on what matters-```--### Harm Reduction Over Benefit Addition--Removing bad is often more impactful than adding good:--```-Performance:-- Removing one slow query helps more than adding one cache-- Eliminating N+1 beats adding read replicas-- Deleting unused indexes beats adding new ones--Health (Taleb's domain):-- Removing sugar helps more than adding supplements-- Stopping smoking beats starting exercise-- Eliminating stress beats adding meditation-```--### The 80/20 Removal--Remove the 80% that provides 20% of value:+- Load-bearing controls: auth, validation, tests, rate limits, retries, safety checks — presume necessary until proven dead.+- A demonstrated requirement that cannot be met by removal or simplification.+- Aesthetic minimalism without evidence of non-use or net harm.+- Irreversible deletion without a rollback path when impact is unknown.-```markdown-## Feature Usage Analysis+## Procedure-| Feature | Users | Revenue | Maintenance |-|---------|-------|---------|-------------|-| Core A | 90% | 70% | 20% |-| Core B | 85% | 25% | 15% |-| Edge C | 5% | 3% | 25% |-| Edge D | 2% | 2% | 40% |+1. **Pause the add reflex.** State the goal and the proposed addition in one line.+2. **Ask the subtraction question first.** List what could be removed or stopped to achieve the same goal with less surface area.+3. **Catalog candidates with evidence.** Prefer unused, redundant, high-cost/low-value, or harmful elements. Require usage, call-graph, metrics, or experiment evidence — not taste.+4. **Apply the irreversibility guard.** Classify reversible vs hard-to-restore; identify dependents; refuse deleting unproven mystery guards. Plan staged removal or flag when risk is non-trivial.+5. **Remove the safest high-value candidate first.** Subtract, monitor, and verify absence of needed behavior before the next removal.+6. **Add only if the goal still fails.** If subtraction cannot meet the need, add the minimum change and record why removal was insufficient.+7. **Stop** when the goal is met by absence, or remaining candidates fail the irreversibility/evidence bar and a minimal addition is justified.-Via Negativa: Remove Edge C and D-Result: 65% less maintenance for 5% of value- Enables focus on Core A and B-```--## Application Areas--### Code--```markdown-## Via Negativa Code Review--Before adding new code, ask:-1. Can we solve this by removing existing code?-2. Is there dead code to delete?-3. Are there unused imports/dependencies?-4. Is there duplication to consolidate?-5. Are there unnecessary abstractions?--Rule: Every PR should delete at least as much as it adds- (aspirational, not mandatory)-```--### Process--```markdown-## Via Negativa Process Audit--List all recurring processes:-- Daily standup (15 min/day × 8 people = 10 hrs/week)-- Sprint planning (2 hrs × 8 people = 16 hrs/sprint)-- Weekly status report (2 hrs to write)-- Monthly review (4 hrs × 5 people = 20 hrs/month)--For each, ask:-- What happens if we stop?-- Can we reduce frequency?-- Can we reduce attendees?-- Can we reduce duration?--Often: Half the meetings, half the reports = more productive-```--### Features--```markdown-## Via Negativa Product Strategy--Instead of roadmap of additions, create:--## Sunset List-| Feature | Usage | Decision | Timeline |-|---------|-------|----------|----------|-| Export to CSV | 0.5% | Remove | Q2 |-| Legacy API v1 | 2% | Deprecate | Q3 |-| Advanced filters | 3% | Simplify | Q2 |--## Maintenance Liberation-Removing 3 features frees 2 engineers for core work--## Simplicity Gains-- Fewer code paths to test-- Smaller attack surface-- Easier onboarding-- Faster development-```--### Personal Productivity--```markdown-## Via Negativa for Focus--Don't add:-- More productivity apps-- More systems-- More commitments--Instead remove:-- Notifications-- Unnecessary meetings-- Low-value tasks-- Context switching-- Decision fatigue (reduce choices)--"Stop doing" list > "To do" list-```+**Stop condition:** Goal achieved via removal, or residual need documented after evidence-backed subtraction failed.-### Architecture+## Output-```markdown-## Via Negativa Architecture Review--Before adding complexity, audit existing:--Services to consolidate:-- Microservice A and B do similar things → Merge-- Service C has one caller → Inline--Dependencies to remove:-- Library X is used for one function → Write function-- Framework Y is overkill → Use lighter alternative--Layers to eliminate:-- Abstraction that has one implementation → Remove-- API that wraps another API identically → Direct call-```--## Via Negativa Template--```markdown-# Via Negativa Analysis: [System/Process/Product]--## Current State-[Description of what exists]--## Candidates for Removal--### Category 1: Unused/Dead-| Element | Evidence of Non-Use | Removal Risk |-|---------|---------------------|--------------|-| | | |--### Category 2: Low-Value High-Cost-| Element | Value Provided | Maintenance Cost | Ratio |-|---------|---------------|------------------|-------|-| | | | |--### Category 3: Redundant-| Element | Duplicated By | Removal Path |-|---------|---------------|--------------|-| | | |--## Removal Priority-1. [Element] - [Why first]-2. [Element] - [Why second]--## Removal Plan-| Element | Week | Monitor | Rollback |-|---------|------|---------|----------|-| | | | |--## Expected Benefits-- Reduced complexity: [Measure]-- Freed resources: [Measure]-- Improved focus: [Measure]+```text+Goal: <desired outcome>+Proposed add (if any): <thing>+Removal candidates: <element — evidence — risk — reversible?>+Action: remove <X> | staged remove <X> | add minimal <Y> because <why removal failed>+Verification plan: <how absence/success is checked>+Do-not-touch: <load-bearing items preserved>```-## The Lindy Connection--Via Negativa aligns with Lindy:-- Old things that have survived removal attempts are robust-- New additions are fragile, unproven-- Subtracting recent additions is lower risk than adding new things--## Verification Checklist--- [ ] Asked "what can we remove?" before "what should we add?"-- [ ] Identified candidates for removal in multiple categories-- [ ] Evaluated usage/value of removal candidates-- [ ] Planned gradual removal with monitoring-- [ ] Considered second-order effects of removal-- [ ] Resisted the urge to add when subtraction would work--## Key Questions--- "What can we remove instead of add?"-- "What would happen if we stopped doing this?"-- "What's the maintenance cost of this existing thing?"-- "Is this complexity earning its keep?"-- "What should we stop doing?"-- "What would we not build if starting from scratch?"--## Taleb's Wisdom--"The first principle of iatrogenics: we do not need evidence of harm to claim that a treatment is harmful; we need evidence of benefit to claim it is not harmful."--Applied to software: We don't need evidence that a feature is actively harmful to remove it; we need evidence it provides benefit to keep it.--"Via Negativa is more powerful than Via Positiva: omission does less harm than commission."--Removing is safer than adding. Every addition has unknown side effects. Removal of recent additions reverts to a known-good state. When in doubt, subtract.--"The best way to live is to maximize the number of decisions not made."+## Verification-Reduce decisions through simplification. Fewer features = fewer decisions to make. Fewer processes = fewer coordination points. Simpler is more robust.+- Falsify if something was deleted without non-use/harm evidence, or a safety control was removed as "complexity."+- Falsify if an addition shipped without a prior subtraction pass on the same goal.+- Over-application guard: do not delete for line-count or purity when the element is load-bearing or the need is demonstrated.