科研技能库/科学方法
科研效率
低风险

科学方法

用于系统化问题解决的假设-检验-分析循环——统领所有其他技能的元技能。包含定义目标、生成假设、设计实验、测量结果、分析结果、迭代、完整循环、快速诊断和结构化调查。当您思考、弄清楚、尝试方法、进行实验、迭代、改进、优化、定义目标、生成假设、设计实验、测量结果、分析结果、完整循环、快速诊断、结构化调查、科学、假设时使用。

文件预览

14 个文件
Workflows
SKILL.md
5.5 KB · 可预览
---
name: Science
description: Hypothesis-test-analyze cycles for systematic problem-solving — the meta-skill governing all others. Includes define goal, generate hypotheses, design experiment, measure results, analyze results, iterate, full cycle, quick diagnosis, and structured investigation. USE WHEN think about, figure out, try approaches, experiment with, iterate on, improve, optimize, define goal, generate hypotheses, design experiment, measure results, analyze results, full cycle, quick diagnosis, structured investigation, science, hypothesis.
---

## Customization

**Before executing, check for user customizations at:**
`~/.claude/PAI/USER/SKILLCUSTOMIZATIONS/Science/`

If this directory exists, load and apply any PREFERENCES.md, configurations, or resources found there. These override default behavior. If the directory does not exist, proceed with skill defaults.


## 🚨 MANDATORY: Voice Notification (REQUIRED BEFORE ANY ACTION)

**You MUST send this notification BEFORE doing anything else when this skill is invoked.**

1. **Send voice notification**:
   ```bash
   curl -s -X POST http://localhost:8888/notify \
     -H "Content-Type: application/json" \
     -d '{"message": "Running the WORKFLOWNAME workflow in the Science skill to ACTION"}' \
     > /dev/null 2>&1 &
   ```

2. **Output text notification**:
   ```
   Running the **WorkflowName** workflow in the **Science** skill to ACTION...
   ```

**This is not optional. Execute this curl command immediately upon skill invocation.**

# Science - The Universal Algorithm

**The scientific method applied to everything. The meta-skill that governs all other skills.**

## The Universal Cycle

```
GOAL -----> What does success look like?
   |
OBSERVE --> What is the current state?
   |
HYPOTHESIZE -> What might work? (Generate MULTIPLE)
   |
EXPERIMENT -> Design and run the test
   |
MEASURE --> What happened? (Data collection)
   |
ANALYZE --> How does it compare to the goal?
   |
ITERATE --> Adjust hypothesis and repeat
   |
   +------> Back to HYPOTHESIZE
```

**The goal is CRITICAL.** Without clear success criteria, you cannot judge results.

---


## Workflow Routing

**Output when executing:** `Running the **WorkflowName** workflow in the **Science** skill to ACTION...`

### Core Workflows

| Trigger | Workflow |
|---------|----------|
| "define the goal", "what are we trying to achieve" | `Workflows/DefineGoal.md` |
| "what might work", "ideas", "hypotheses" | `Workflows/GenerateHypotheses.md` |
| "how do we test", "experiment design" | `Workflows/DesignExperiment.md` |
| "what happened", "measure", "results" | `Workflows/MeasureResults.md` |
| "analyze", "compare to goal" | `Workflows/AnalyzeResults.md` |
| "iterate", "try again", "next cycle" | `Workflows/Iterate.md` |
| Full structured cycle | `Workflows/FullCycle.md` |

### Diagnostic Workflows

| Trigger | Workflow |
|---------|----------|
| Quick debugging (15-min rule) | `Workflows/QuickDiagnosis.md` |
| Complex investigation | `Workflows/StructuredInvestigation.md` |

---

## Resource Index

| Resource | Description |
|----------|-------------|
| `METHODOLOGY.md` | Deep dive into each phase |
| `Protocol.md` | How skills implement Science |
| `Templates.md` | Goal, Hypothesis, Experiment, Results templates |
| `Examples.md` | Worked examples across scales |

---

## Domain Applications

| Domain | Manifestation | Related Skill |
|--------|---------------|---------------|
| **Coding** | TDD (Red-Green-Refactor) | Development |
| **Products** | MVP -> Measure -> Iterate | Development |
| **Research** | Question -> Study -> Analyze | Research |
| **Prompts** | Prompt -> Eval -> Iterate | Evals |
| **Decisions** | Options -> Council -> Choose | Council |

---

## Scale of Application

| Level | Cycle Time | Example |
|-------|-----------|---------|
| **Micro** | Minutes | TDD: test, code, refactor |
| **Meso** | Hours-Days | Feature: spec, implement, validate |
| **Macro** | Weeks-Months | Product: MVP, launch, measure PMF |

---

## Integration Points

| Phase | Skills to Invoke |
|-------|-----------------|
| **Goal** | Council for validation |
| **Observe** | Research for context |
| **Hypothesize** | Council for ideas, RedTeam for stress-test |
| **Experiment** | Development (Worktrees) for parallel tests |
| **Measure** | Evals for structured measurement |
| **Analyze** | Council for multi-perspective analysis |

---

## Key Principles (Quick Reference)

1. **Goal-First** - Define success before starting
2. **Hypothesis Plurality** - NEVER just one idea (minimum 3)
3. **Minimum Viable Experiments** - Smallest test that teaches
4. **Falsifiability** - Experiments must be able to fail
5. **Measure What Matters** - Only goal-relevant data
6. **Honest Analysis** - Compare to goal, not expectations
7. **Rapid Iteration** - Cycle speed > perfect experiments

---

## Anti-Patterns

| Bad | Good |
|-----|------|
| "Make it better" | "Reduce load time from 3s to 1s" |
| "I think X will work" | "Here are 3 approaches: X, Y, Z" |
| "Prove I'm right" | "Design test that could disprove" |
| "Pretend failure didn't happen" | "What did we learn?" |
| "Keep experimenting forever" | "Ship and learn from production" |

---

## Quick Start

1. **Goal** - What does success look like?
2. **Observe** - What do we know?
3. **Hypothesize** - At least 3 ideas
4. **Experiment** - Minimum viable tests
5. **Measure** - Collect goal-relevant data
6. **Analyze** - Compare to success criteria
7. **Iterate** - Adjust and repeat

**The answer emerges from the cycle, not from guessing.**

SKILL.md

元数据
name科学方法
description用于系统化问题解决的假设-检验-分析循环——统领所有其他技能的元技能。包含定义目标、生成假设、设计实验、测量结果、分析结果、迭代、完整循环、快速诊断和结构化调查。当您思考、弄清楚、尝试方法、进行实验、迭代、改进、优化、定义目标、生成假设、设计实验、测量结果、分析结果、完整循环、快速诊断、结构化调查、科学、假设时使用。

自定义

执行前,请检查以下路径的用户自定义: ~/.claude/PAI/USER/SKILLCUSTOMIZATIONS/Science/

如果该目录存在,加载并应用其中的任何 PREFERENCES.md、配置或资源。这些将覆盖默认行为。如果目录不存在,则使用技能默认设置。

🚨 强制要求:语音通知(在任何操作前必须执行)

调用此技能时,您必须在做任何其他事情之前发送此通知。

  1. 发送语音通知

    bash
    curl -s -X POST http://localhost:8888/notify \
      -H "Content-Type: application/json" \
      -d '{"message": "正在运行科学技能中的WORKFLOWNAME工作流以ACTION"}' \
      > /dev/null 2>&1 &
  2. 输出文本通知

    text
    正在运行**科学**技能中的**WorkflowName**工作流以ACTION...

这不是可选的。技能调用时必须立即执行此 curl 命令。

科学——通用算法

科学方法应用于一切。统领所有其他技能的元技能。

通用循环

text
目标 -----> 成功的标准是什么?
   |
观察 --> 当前状态是什么?
   |
假设 --> 什么可能有效?(生成多个)
   |
实验 --> 设计并运行测试
   |
测量 --> 结果如何?(数据收集)
   |
分析 --> 与目标相比如何?
   |
迭代 --> 调整假设并重复
   |
   +------> 返回假设

目标至关重要。 没有明确的成功标准,就无法判断结果。


工作流路由

执行时输出: 正在运行**科学**技能中的**WorkflowName**工作流以ACTION...

核心工作流

触发词工作流
"define the goal", "what are we trying to achieve"Workflows/DefineGoal.md
"what might work", "ideas", "hypotheses"Workflows/GenerateHypotheses.md
"how do we test", "experiment design"Workflows/DesignExperiment.md
"what happened", "measure", "results"Workflows/MeasureResults.md
"analyze", "compare to goal"Workflows/AnalyzeResults.md
"iterate", "try again", "next cycle"Workflows/Iterate.md
完整的结构化循环Workflows/FullCycle.md

诊断工作流

触发词工作流
快速调试(15分钟规则)Workflows/QuickDiagnosis.md
复杂调查Workflows/StructuredInvestigation.md

资源索引

资源描述
METHODOLOGY.md深入探讨每个阶段
Protocol.md技能如何实现科学方法
Templates.md目标、假设、实验、结果模板
Examples.md不同规模的实例

领域应用

领域表现相关技能
编程TDD(红-绿-重构)Development
产品MVP -> 测量 -> 迭代Development
研究问题 -> 研究 -> 分析Research
提示词提示 -> 评估 -> 迭代Evals
决策选项 -> 委员会 -> 选择Council

应用规模

级别循环时间示例
微观分钟TDD:测试、编码、重构
中观小时-天功能:规格说明、实现、验证
宏观周-月产品:MVP、发布、衡量产品市场契合度

集成点

阶段要调用的技能
目标委员会用于验证
观察研究用于背景
假设委员会用于创意,红队用于压力测试
实验开发(工作树)用于并行测试
测量评估用于结构化测量
分析委员会用于多视角分析

关键原则(快速参考)

  1. 目标优先 - 在开始前定义成功
  2. 假设多元 - 永远不要只有一个想法(至少3个)
  3. 最小可行实验 - 能带来学习的最小测试
  4. 可证伪性 - 实验必须可能失败
  5. 测量重要事项 - 只收集与目标相关的数据
  6. 诚实分析 - 与目标比较,而非期望
  7. 快速迭代 - 循环速度 > 完美实验

反模式

坏的好的
"让它更好""将加载时间从3秒减少到1秒"
"我认为X会有效""这里有3种方法:X、Y、Z"
"证明我是对的""设计一个可能推翻假设的测试"
"假装失败没有发生""我们学到了什么?"
"永远实验下去""发布并从生产中学习"

快速开始

  1. 目标 - 成功的标准是什么?
  2. 观察 - 我们已知什么?
  3. 假设 - 至少3个想法
  4. 实验 - 最小可行测试
  5. 测量 - 收集与目标相关的数据
  6. 分析 - 与成功标准比较
  7. 迭代 - 调整并重复

答案来自循环,而非猜测。