Token导航 LogoToken导航

Agent Skill · 运维和基础设施

hypotheticals-counterfactuals(假设反事实)

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

hypotheticals-counterfactuals 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证为 MIT,第三方扫描已通过,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 929。

总安装 1,152周安装 49GitHub Stars 85下载 404核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

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

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

可结合来源仓库和 SKILL.md 继续核验具体用法,确保与当前宿主环境兼容。

来源仓库内路径:skills/hypotheticals-counterfactuals

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/lyndonkl/claude --skill hypotheticals-counterf…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

hypotheticals-counterfactuals 怎么安装?

在终端执行 npx skills add https://github.com/lyndonkl/claude --skill hypotheticals-counterfactuals。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

hypotheticals-counterfactuals 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

hypotheticals-counterfactuals 需要什么权限?

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

hypotheticals-counterfactuals 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

hypotheticals-counterfactuals 用的人多吗?

公开数据是累计安装 1,152 次,近一周安装 49 次,下载 404 次,GitHub 85 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

hypotheticals-counterfactuals 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
hypotheticals-counterfactuals

假设反事实 · 本页

1,15285只读MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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

平台分布

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