Token导航 LogoToken导航TokenDH.com
运维和基础设施只读github未标认证来源可访问clear审计通过

hypotheticals-counterfactuals假设反事实

Agent Skill

hypotheticals-counterfactuals 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,152

周安装

49

GitHub Stars

85

下载量

404
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hypotheticals-counterfactuals(假设反事实)
来源仓库:https://github.com/lyndonkl/claude
仓库路径:skills/hypotheticals-counterfactuals
安装命令:
npx skills add https://github.com/lyndonkl/claude --skill hypotheticals-counterfactuals
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/lyndonkl/claude --skill hypotheticals-counterfactuals

简介

hypotheticals-counterfactuals 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。

  • 适用于代码协作、项目管理和假设分析等场景,帮助 Agent 处理复杂协作事务。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法和功能细节。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 可结合来源仓库和 SKILL.md 继续核验具体用法,确保与当前宿主环境兼容。

SKILL.md

Hypotheticals and Counterfactuals

Table of Contents

Workflow

Copy this checklist and track your progress:

Hypotheticals & Counterfactuals Progress:
- [ ] Step 1: Define the focal question
- [ ] Step 2: Generate counterfactuals or scenarios
- [ ] Step 3: Develop each scenario
- [ ] Step 4: Identify implications and insights
- [ ] Step 5: Extract actions or decisions
- [ ] Step 6: Monitor and update

Step 1: Define the focal question

What are you exploring? Past decision (counterfactual)? Future possibility (hypothetical)? Assumption to test? See resources/template.md.

Step 2: Generate counterfactuals or scenarios

Counterfactual: Change one key factor, ask "what would have happened?" Hypothetical: Imagine future scenarios (2-4 plausible alternatives). See resources/template.md and resources/methodology.md.

Step 3: Develop each scenario

Describe what's different, trace implications, identify key assumptions. Make it vivid and concrete. See resources/template.md and resources/methodology.md.

Step 4: Identify implications and insights

What does each scenario teach? What assumptions are tested? What risks revealed? See resources/methodology.md.

Step 5: Extract actions or decisions

What should we do differently based on these scenarios? Hedge against downside? Prepare for upside? See resources/template.md.

Step 6: Monitor and update

Track which scenario is unfolding. Update plans as reality diverges from expectations. See resources/methodology.md.

Validate using resources/evaluators/rubric_hypotheticals_counterfactuals.json. Minimum standard: Average score ≥ 3.5.

Common Patterns

Pattern 1: Pre-Mortem (Prospective Hindsight)

  • Format: Imagine it's future date, project failed. List reasons why.
  • Best for: Project planning, risk identification before launch
  • Process: (1) Set future date, (2) Assume failure, (3) List causes, (4) Prioritize top 3-5 risks, (5) Mitigate now
  • When: Before major launch, strategic decision, resource commitment
  • Output: Risk list with mitigations

Pattern 2: Counterfactual Causal Analysis

  • Format: "What would have happened if we had done X instead of Y?"
  • Best for: Learning from past decisions, understanding what mattered
  • Process: (1) Identify decision, (2) Imagine alternative, (3) Trace different outcome, (4) Identify causal factor
  • When: Post-mortem, retrospective, learning from success/failure
  • Output: Causal insight (X caused Y because...)

Pattern 3: Three Scenarios (Optimistic, Baseline, Pessimistic)

  • Format: Describe best case, expected case, worst case futures
  • Best for: Strategic planning, forecasting, resource allocation
  • Process: (1) Define time horizon, (2) Describe three futures, (3) Assign probabilities, (4) Plan for each
  • When: Annual planning, market uncertainty, investment decisions
  • Output: Three detailed scenarios with implications

Pattern 4: 2×2 Scenario Matrix

  • Format: Two key uncertainties create four quadrants (scenarios)
  • Best for: Exploring interaction of two critical unknowns
  • Process: (1) Identify two key uncertainties, (2) Define extremes, (3) Develop four scenarios, (4) Name each world
  • When: Strategic planning with multiple drivers of uncertainty
  • Output: Four distinct future worlds with narratives

Pattern 5: Assumption Reversal

  • Format: "What if our key assumption is backwards?"
  • Best for: Challenging mental models, unlocking innovation
  • Process: (1) List key assumptions, (2) Reverse each, (3) Explore implications, (4) Identify if reversal plausible
  • When: Stuck in conventional thinking, need breakthrough
  • Output: New perspectives, potential pivots

Pattern 6: Stress Test (Extreme Scenarios)

  • Format: Push key variables to extremes, test if decision holds
  • Best for: Risk management, decision robustness testing
  • Process: (1) Identify decision, (2) List key variables, (3) Set to extremes, (4) Check if decision still valid
  • When: High-stakes decisions, need to ensure resilience
  • Output: Decision validation or hedges needed

Guardrails

Key requirements:

  1. Plausibility constraint: Scenarios must be possible, not just imaginable. "What if gravity reversed?" is not useful counterfactual. Stay within bounds of plausibility given current knowledge.
  2. Minimal rewrite principle (counterfactuals): Change as little as possible. "What if we had chosen Y instead of X?" not "What if we had chosen Y and market doubled and competitor failed?" Isolate causal factor.
  3. Avoid hindsight bias: Pre-mortem assumes failure, but don't just list things that went wrong in similar past failures. Generate new failure modes specific to this context.
  4. Specify mechanism: Don't just state outcome ("sales would be higher"), explain HOW ("sales would be higher because lower price → higher conversion → more customers despite lower margin").
  5. Assign probabilities (scenarios): Don't treat all scenarios as equally likely. Estimate rough probabilities (e.g., 60% baseline, 25% pessimistic, 15% optimistic). Avoids equal-weight fallacy.
  6. Time horizon clarity: Specify WHEN in future. "Product fails" is vague. "In 6 months, adoption <1000 users" is concrete. Enables tracking.
  7. Extract actions, not just stories: Scenarios are useless without implications. Always end with "so what should we do?" Prepare, hedge, pivot, or double-down.
  8. Update scenarios: Reality evolves. Quarterly review: which scenario is unfolding? Update probabilities and plans accordingly.

Common pitfalls:

  • Confusing counterfactual with fantasy: "What if we had $100M funding from start?" vs. realistic "What if we had raised $2M seed instead of $1M?"
  • Too many scenarios: 10 scenarios = analysis paralysis. Stick to 2-4 meaningful, distinct futures.
  • Scenarios too similar: Three scenarios that differ only in magnitude (10% growth, 15% growth, 20% growth). Need qualitatively different worlds.
  • No causal mechanism: "Sales would be 2× higher" without explaining why. Must specify how change leads to outcome.
  • Hindsight bias in pre-mortem: Just listing past failures. Need to imagine new, context-specific risks.
  • Ignoring low-probability, high-impact: "Black swan won't happen" until it does. Include tail risks.

Quick Reference

Counterfactual vs. Hypothetical:

TypeDirectionQuestionPurposeExample
CounterfactualBackward (past)"What would have happened if...?"Understand causality, learn from past"What if we had launched in EU first?"
HypotheticalForward (future)"What could happen if...?"Explore futures, prepare for uncertainty"What if competitor launches free tier?"

Scenario types:

Type# ScenariosStructureBest For
Three scenarios3Optimistic, Baseline, PessimisticGeneral forecasting, strategic planning
2×2 matrix4Two uncertainties create quadrantsExploring interaction of two drivers
Cone of uncertaintyContinuousRange widens over timeLong-term planning (5-10 years)
Pre-mortem1Imagine failure, list causesRisk identification before launch
Stress test2-4Extreme scenarios (best/worst)Decision robustness testing

Pre-mortem process (6 steps):

  1. Set future date: "It's 6 months from now..."
  2. Assume failure: "...the project has failed completely."
  3. Individual brainstorm: Each person writes 3-5 reasons (5 min, silent)
  4. Share and consolidate: Round-robin sharing, group similar items
  5. Vote on top risks: Dot voting or force-rank top 5 causes
  6. Mitigate now: For each top risk, assign owner and mitigation action

2×2 Scenario Matrix (example):

Uncertainties: (1) Market adoption rate, (2) Regulatory environment

Slow AdoptionFast Adoption
Strict Regulation"Constrained Growth""Regulated Scale"
Loose Regulation"Patient Build""Wild West Growth"

Assumption reversal questions:

  • "What if our biggest advantage is actually a liability?"
  • "What if the problem we're solving isn't the real problem?"
  • "What if our target customer is wrong?"
  • "What if cheaper/slower is better than premium/fast?"
  • "What if we're too early/too late, not right on time?"

Inputs required:

  • Focal decision or event: What are you analyzing?
  • Key uncertainties: What factors most shape outcomes?
  • Time horizon: How far into future/past?
  • Constraints: What must remain fixed vs. what can vary?
  • Stakeholders: Who should contribute scenarios?

Outputs produced:

  • counterfactual-analysis.md: Alternative history analysis with causal insights
  • pre-mortem-risks.md: List of potential failure modes and mitigations
  • scenarios.md: 2-4 future scenarios with narratives and implications
  • action-plan.md: Decisions and preparations based on scenario insights

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.21%
按下载量换算118

Gemini CLI

23.63%
按下载量换算95

Antigravity

19.08%
按下载量换算77

windsurf

12.84%
按下载量换算52

OpenCode

7.74%
按下载量换算31

github-copilot

3.68%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills