重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
six-thinking-hats by proffesor-for-testing/agentic-qe
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill six-thinking-hats<default_to_action> 分析测试决策时:
快速帽子轮换(30 分钟):
🤍 白帽(5 分钟)- 仅限事实:指标、数据、覆盖率
❤️ 红帽(3 分钟)- 直觉感受(无需理由)
🖤 黑帽(7 分钟)- 风险、差距、可能出错的地方
💛 黄帽(5 分钟)- 优势、机会、有效之处
💚 绿帽(7 分钟)- 创意想法、替代方案
🔵 蓝帽(3 分钟)- 行动计划、后续步骤
“API 测试策略”示例:
| 帽子 | 焦点 | 关键问题 |
|---|---|---|
| 🤍 白帽 | 事实与数据 | 我们知道什么? |
| ❤️ 红帽 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 情绪 |
| 我们感觉如何? |
| 🖤 黑帽 | 风险 | 可能出什么问题? |
| 💛 黄帽 | 益处 | 有什么好处? |
| 💚 绿帽 | 创造力 | 我们还能尝试什么? |
| 🔵 蓝帽 | 流程 | 我们应该做什么? |
| 帽子 | 用途 |
|---|---|
| 🤍 白帽 | 基线指标、测试数据清单 |
| ❤️ 红帽 | 团队信心检查、质量直觉感受 |
| 🖤 黑帽 | 风险评估、差距分析、事前剖析 |
| 💛 黄帽 | 优势审计、快速胜利识别 |
| 💚 绿帽 | 测试创新、新方法、头脑风暴 |
| 🔵 蓝帽 | 策略规划、回顾、决策制定 |
输出:量化的测试基线
问题:
我们有什么测试覆盖率?
我们的通过/失败率是多少?
存在哪些环境?
我们的缺陷历史是什么?
示例输出: 覆盖率:行覆盖率 67%,分支覆盖率 45% 测试套件:1,247 个单元测试,156 个集成测试,23 个端到端测试 执行时间:单元测试 3 分钟,集成测试 12 分钟,端到端测试 45 分钟 缺陷:23 个未解决(5 个严重,8 个主要,10 个次要)
输出:全面的风险评估
问题:
生产环境中可能出什么问题?
我们没有测试什么?
哪些假设可能是错误的?
覆盖差距在哪里?
高风险:
输出:优势和机会
问题:
哪些方面运作良好?
我们可以利用哪些优势?
有哪些快速胜利可用?
优势:
快速胜利:
输出:创新的测试想法
问题:
我们还能如何测试这个?
如果我们尝试完全不同的东西会怎样?
我们可以采用哪些新兴技术?
想法:
输出:团队直觉感受(无需理由)
问题:
你对质量有多大信心?
什么让你感到焦虑?
什么让你有信心?
感受:
输出:包含负责人和时间表的行动计划
问题:
我们的策略是什么?
我们应该如何确定优先级?
下一步是什么?
优先级行动:
# 六顶帽子分析:[主题]
## 🤍 白帽(5 分钟)
事实:[列出指标、数据]
## ❤️ 红帽(3 分钟)
感受:[直觉反应,无需理由]
## 🖤 黑帽(7 分钟)
风险:[可能出什么问题]
## 💛 黄帽(5 分钟)
优势:[有效之处、机会]
## 💚 绿帽(7 分钟)
想法:[创意替代方案]
## 🔵 蓝帽(3 分钟)
行动:[优先级后续步骤]
// 风险导向分析(黑帽)
const risks = await Task("Identify Risks", {
scope: 'payment-module',
perspective: 'black-hat',
includeMitigation: true
}, "qe-regression-risk-analyzer");
// 创意测试方法(绿帽)
const ideas = await Task("Generate Test Ideas", {
feature: 'new-auth-system',
perspective: 'green-hat',
includeEmergingTechniques: true
}, "qe-test-generator");
// 综合分析(所有帽子)
const analysis = await Task("Six Hats Analysis", {
topic: 'Q1 Test Strategy',
hats: ['white', 'black', 'yellow', 'green', 'red', 'blue']
}, "qe-quality-analyzer");
aqe/six-hats/
├── analyses/* - 完整的帽子分析
├── risks/* - 黑帽发现
├── opportunities/* - 黄帽发现
└── innovations/* - 绿帽想法
const analysisFleet = await FleetManager.coordinate({
strategy: 'six-hats-analysis',
agents: [
'qe-quality-analyzer', // 白帽 + 蓝帽
'qe-regression-risk-analyzer', // 黑帽
'qe-test-generator' // 绿帽
],
topology: 'parallel'
});
| ❌ 避免 | 原因 | ✅ 替代方案 |
|---|---|---|
| 混合帽子 | 混淆思维 | 一次一顶帽子 |
| 为红帽找理由 | 扼杀直觉 | 仅陈述感受 |
| 跳过帽子 | 遗漏见解 | 使用全部六顶 |
| 匆忙进行 | 分析肤浅 | 每顶帽子至少 5 分钟 |
为清晰起见,分离思考模式。 每顶帽子揭示不同的见解。红帽的直觉常常能捕捉到黑帽分析遗漏的东西。
每个人都戴所有帽子。 这是平行思考,而不是基于角色的思考。目标是全面分析,而不是辩论。
每周安装次数
68
仓库
GitHub 星标数
281
首次出现
2026 年 1 月 24 日
安全审计
安装于
gemini-cli65
opencode65
codex64
github-copilot63
cursor63
kimi-cli61
<default_to_action> When analyzing testing decisions:
Quick Hat Rotation (30 min):
🤍 WHITE (5 min) - Facts only: metrics, data, coverage
❤️ RED (3 min) - Gut feelings (no justification needed)
🖤 BLACK (7 min) - Risks, gaps, what could go wrong
💛 YELLOW (5 min) - Strengths, opportunities, what works
💚 GREEN (7 min) - Creative ideas, alternatives
🔵 BLUE (3 min) - Action plan, next steps
Example for "API Test Strategy":
| Hat | Focus | Key Question |
|---|---|---|
| 🤍 White | Facts & Data | What do we KNOW? |
| ❤️ Red | Emotions | What do we FEEL? |
| 🖤 Black | Risks | What could go WRONG? |
| 💛 Yellow | Benefits | What's GOOD? |
| 💚 Green | Creativity | What ELSE could we try? |
| 🔵 Blue | Process | What should we DO? |
| Hat | Use For |
|---|---|
| 🤍 White | Baseline metrics, test data inventory |
| ❤️ Red | Team confidence check, quality gut feel |
| 🖤 Black | Risk assessment, gap analysis, pre-mortems |
| 💛 Yellow | Strengths audit, quick win identification |
| 💚 Green | Test innovation, new approaches, brainstorming |
| 🔵 Blue | Strategy planning, retrospectives, decision-making |
Output: Quantitative testing baseline
Questions:
What test coverage do we have?
What is our pass/fail rate?
What environments exist?
What is our defect history?
Example Output: Coverage: 67% line, 45% branch Test Suite: 1,247 unit, 156 integration, 23 E2E Execution Time: Unit 3min, Integration 12min, E2E 45min Defects: 23 open (5 critical, 8 major, 10 minor)
Output: Comprehensive risk assessment
Questions:
What could go wrong in production?
What are we NOT testing?
What assumptions might be wrong?
Where are the coverage gaps?
HIGH RISKS:
Output: Strengths and opportunities
Questions:
What's working well?
What strengths can we leverage?
What quick wins are available?
STRENGTHS:
QUICK WINS:
Output: Innovative testing ideas
Questions:
How else could we test this?
What if we tried something completely different?
What emerging techniques could we adopt?
IDEAS:
Output: Team gut feelings (NO justification needed)
Questions:
How confident do you feel about quality?
What makes you anxious?
What gives you confidence?
FEELINGS:
Output: Action plan with owners and timelines
Questions:
What's our strategy?
How should we prioritize?
What's the next step?
PRIORITIZED ACTIONS:
# Six Hats Analysis: [Topic]
## 🤍 White Hat (5 min)
Facts: [list metrics, data]
## ❤️ Red Hat (3 min)
Feelings: [gut reactions, no justification]
## 🖤 Black Hat (7 min)
Risks: [what could go wrong]
## 💛 Yellow Hat (5 min)
Strengths: [what works, opportunities]
## 💚 Green Hat (7 min)
Ideas: [creative alternatives]
## 🔵 Blue Hat (3 min)
Actions: [prioritized next steps]
// Risk-focused analysis (Black Hat)
const risks = await Task("Identify Risks", {
scope: 'payment-module',
perspective: 'black-hat',
includeMitigation: true
}, "qe-regression-risk-analyzer");
// Creative test approaches (Green Hat)
const ideas = await Task("Generate Test Ideas", {
feature: 'new-auth-system',
perspective: 'green-hat',
includeEmergingTechniques: true
}, "qe-test-generator");
// Comprehensive analysis (All Hats)
const analysis = await Task("Six Hats Analysis", {
topic: 'Q1 Test Strategy',
hats: ['white', 'black', 'yellow', 'green', 'red', 'blue']
}, "qe-quality-analyzer");
aqe/six-hats/
├── analyses/* - Complete hat analyses
├── risks/* - Black hat findings
├── opportunities/* - Yellow hat findings
└── innovations/* - Green hat ideas
const analysisFleet = await FleetManager.coordinate({
strategy: 'six-hats-analysis',
agents: [
'qe-quality-analyzer', // White + Blue hats
'qe-regression-risk-analyzer', // Black hat
'qe-test-generator' // Green hat
],
topology: 'parallel'
});
| ❌ Avoid | Why | ✅ Instead |
|---|---|---|
| Mixing hats | Confuses thinking | One hat at a time |
| Justifying Red Hat | Kills intuition | State feelings only |
| Skipping hats | Misses insights | Use all six |
| Rushing | Shallow analysis | 5 min minimum per hat |
Separate thinking modes for clarity. Each hat reveals different insights. Red Hat intuition often catches what Black Hat analysis misses.
Everyone wears all hats. This is parallel thinking, not role-based. The goal is comprehensive analysis, not debate.
Weekly Installs
68
Repository
GitHub Stars
281
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli65
opencode65
codex64
github-copilot63
cursor63
kimi-cli61
后端测试指南:API端点、业务逻辑与数据库测试最佳实践
11,800 周安装