Decision Expert Skill
A comprehensive decision support system that helps users make better choices by providing structured analysis, decision frameworks, and objective evaluation of options.
When to Use This Skill
Use this skill when the user:
- - Asks for help making a decision (e.g., "Should I buy X or Y?", "Which job should I take?", "Is this investment good?")
- Wants to weigh pros and cons of different options
- Needs a structured framework to evaluate choices
- Is facing a complex decision with multiple factors
- Wants to document and track their decision-making process
- Needs to compare alternatives systematically
Common trigger phrases:
- - "帮我决定..." (help me decide...)
- "哪个更好?" (which is better?)
- "应该选哪个?" (which should I choose?)
- "买什么手机?" (what phone should I buy?)
- "该不该换工作?" (should I change jobs?)
- "投资这个项目好吗?" (is this investment good?)
Command Design
The skill provides a CLI command decision with the following structure:
Basic Commands
CODEBLOCK0
Interactive Mode
CODEBLOCK1
Scenario-Specific Commands
CODEBLOCK2
Output Formats
CODEBLOCK3
Decision Frameworks Design
The skill implements several proven decision-making frameworks:
1. Pros & Cons List (利弊分析)
- - Simple listing of advantages and disadvantages
- Weighted scoring option
- Visual balance display
2. SWOT Analysis (SWOT分析)
- - Strengths, Weaknesses, Opportunities, Threats
- Internal vs. external factors
- Strategic implications
3. Decision Matrix (决策矩阵)
- - Multiple criteria with weights
- Option scoring (1-5 or 1-10 scale)
- Weighted total calculation
- Sensitivity analysis
4. Cost-Benefit Analysis (成本效益分析)
- - Quantitative evaluation of costs vs. benefits
- ROI calculation
- Time value of money consideration
5. Decision Tree (决策树)
- - Branching scenarios with probabilities
- Expected value calculation
- Risk assessment
6. Eisenhower Matrix (艾森豪威尔矩阵)
- - Urgent vs. important classification
- Priority setting
- Time management decisions
7. Weighted Scoring Model (加权评分模型)
- - Custom criteria with importance weights
- Objective scoring rubrics
- Comparative analysis
8. Six Thinking Hats (六顶思考帽)
- - Parallel thinking framework
- Multiple perspective consideration
- Emotionally intelligent decision making
9. Pareto Analysis (帕累托分析)
- - 80/20 principle application
- Focus on high-impact factors
- Resource allocation decisions
10. Scenario Planning (情景规划)
- - Multiple future scenarios
- Contingency planning
- Robustness testing
Supported Decision Scenarios
Shopping & Purchases (购物决策)
- - Electronics (phones, laptops, gadgets)
- Vehicles (cars, bikes)
- Real estate (buying, renting)
- Appliances and home goods
- Fashion and personal items
- Subscription services
Career & Education (职业与教育)
- - Job offers and career moves
- Education paths and courses
- Skill development investments
- Business opportunities
- Freelance vs. employment
- Promotion decisions
Investment & Finance (投资与财务)
- - Stock and investment choices
- Real estate investments
- Business investments
- Savings and retirement planning
- Loan and debt decisions
- Insurance choices
Daily Life & Personal (日常生活)
- - Health and fitness choices
- Relationship decisions
- Time management
- Habit formation
- Travel planning
- Home improvement
Business & Strategy (商业与战略)
- - Product development choices
- Market entry decisions
- Hiring and team building
- Vendor selection
- Technology adoption
- Strategic partnerships
Project & Technical (项目与技术)
- - Technology stack selection
- Architecture decisions
- Tool and platform choices
- Implementation approaches
- Resource allocation
- Risk management
Technical Implementation Suggestions
Core Architecture
CODEBLOCK4
Key Implementation Components
- 1. Decision Engine: Core logic for applying frameworks and calculating scores
- Framework Library: Modular implementations of each decision framework
- Scenario Adapters: Specialized logic for different decision domains
- Interactive Shell: Guided workflow for complex decisions
- Storage System: Save/load decisions, templates, and history
- Export System: Multiple output formats (Markdown, JSON, HTML, CSV)
Dependencies
CODEBLOCK5
API Design
CODEBLOCK6
Interactive Features
- 1. Step-by-step guidance: Walk users through decision process
- Template system: Pre-built decision templates for common scenarios
- History tracking: Record and learn from past decisions
- Collaboration support: Share decisions and get input from others
- Reminder system: Follow up on decision outcomes
- Learning system: Improve suggestions based on user preferences
File Structure Recommendations
Minimum Viable Structure
CODEBLOCK7
Advanced Structure (Full Implementation)
CODEBLOCK8
Integration with OpenClaw
The decision assistant skill can integrate with OpenClaw in several ways:
- 1. Direct CLI usage: Users run
decision commands directly - Agent integration: Pearl can call the decision assistant when users need help with decisions
- API mode: Other skills can use the decision engine via JavaScript API
- Template sharing: Decision templates can be shared across the OpenClaw ecosystem
Example Agent Integration
CODEBLOCK9
Getting Started
Quick Start
CODEBLOCK10
Development Setup
CODEBLOCK11
Learning Resources
- - Decision Theory: Understanding rational choice models
- Behavioral Economics: Cognitive biases in decision making
- Operations Research: Quantitative decision analysis methods
- Psychology of Choice: How people actually make decisions
- Business Strategy: Strategic decision frameworks
Contributing
This skill welcomes contributions! Areas needing improvement:
- 1. Additional decision frameworks
- More scenario-specific templates
- Better visualization options
- Integration with other tools (calendar, task managers, etc.)
- Multi-language support
- Accessibility improvements
License
[MIT License] - Open for use and modification within the OpenClaw ecosystem.
"Good decisions come from experience, and experience comes from bad decisions." - This skill helps you get more experience without the bad decisions.
决策专家技能
一个全面的决策支持系统,通过提供结构化分析、决策框架和选项的客观评估,帮助用户做出更好的选择。
何时使用此技能
当用户出现以下情况时使用此技能:
- - 请求帮助做决定(例如:我应该买X还是Y?、我应该接受哪份工作?、这个投资好吗?)
- 想要权衡不同选项的利弊
- 需要结构化框架来评估选择
- 面临涉及多个因素的复杂决策
- 想要记录和追踪自己的决策过程
- 需要系统地比较备选方案
常见触发短语:
- - 帮我决定...
- 哪个更好?
- 应该选哪个?
- 买什么手机?
- 该不该换工作?
- 投资这个项目好吗?
命令设计
该技能提供CLI命令decision,结构如下:
基本命令
bash
获取帮助并列出可用框架
decision help
使用自动框架选择分析决策
decision analyze 买什么手机 --options iPhone 15, Samsung Galaxy S24, Google Pixel 8
创建利弊清单
decision pros-cons 换工作到上海 --pros 高薪, 发展机会 --cons 高房价, 离家远
使用特定决策框架
decision swot 开咖啡店 --strengths 热爱咖啡, 有经验 --weaknesses 资金有限 --opportunities 社区需求 --threats 竞争激烈
创建决策矩阵
decision matrix 买车 --criteria 价格, 油耗, 安全性, 空间 --options SUV, 轿车, 电动车 --weights 30, 20, 25, 25
比较多个选项
decision compare 度假地点 --options 巴厘岛, 日本, 欧洲 --factors 预算, 时间, 兴趣, 便利性
交互模式
bash
启动交互式决策会话
decision interactive
引导式决策工作流
decision guide 职业选择
场景特定命令
bash
购物决策
decision shopping 笔记本电脑 --budget 8000 --needs 编程, 设计, 便携
职业决策
decision career offer选择 --offers 公司A: 高薪但忙, 公司B: 平衡但薪低
投资决策
decision investment 买房 vs 租房 --timeframe 5年 --risk 中等
日常生活决策
decision daily 早上锻炼还是晚上锻炼 --factors 精力水平, 时间安排, 坚持难度
输出格式
bash
将决策分析导出为不同格式
decision analyze 买手机 --format markdown --output decision.md
decision analyze 买手机 --format json --output decision.json
decision analyze 买手机 --format table --display
决策框架设计
该技能实现了多种经过验证的决策框架:
1. 利弊分析
2. SWOT分析
3. 决策矩阵
- - 带权重的多个标准
- 选项评分(1-5或1-10分制)
- 加权总分计算
- 敏感性分析
4. 成本效益分析
- - 成本与效益的定量评估
- ROI计算
- 货币时间价值考量
5. 决策树
6. 艾森豪威尔矩阵
7. 加权评分模型
8. 六顶思考帽
9. 帕累托分析
10. 情景规划
支持的决策场景
购物决策
- - 电子产品(手机、笔记本电脑、小工具)
- 交通工具(汽车、自行车)
- 房地产(购买、租赁)
- 家电和家居用品
- 时尚和个人物品
- 订阅服务
职业与教育
- - 工作机会和职业变动
- 教育路径和课程
- 技能发展投资
- 商业机会
- 自由职业与受雇
- 晋升决策
投资与财务
- - 股票和投资选择
- 房地产投资
- 商业投资
- 储蓄和退休规划
- 贷款和债务决策
- 保险选择
日常生活
- - 健康和健身选择
- 关系决策
- 时间管理
- 习惯养成
- 旅行规划
- 家居改善
商业与战略
- - 产品开发选择
- 市场进入决策
- 招聘和团队建设
- 供应商选择
- 技术采用
- 战略合作伙伴关系
项目与技术
- - 技术栈选择
- 架构决策
- 工具和平台选择
- 实施方案
- 资源分配
- 风险管理
技术实现建议
核心架构
decision-expert/
├── cli/ # 命令行界面
│ ├── index.js # 主CLI入口点
│ ├── commands/ # 单个命令实现
│ └── utils/ # CLI工具函数
├── lib/ # 核心决策逻辑
│ ├── frameworks/ # 决策框架实现
│ ├── models/ # 数据模型(决策、选项、标准等)
│ ├── analysis/ # 分析算法
│ └── visualization/ # 输出格式化和显示
├── scenarios/ # 场景特定逻辑
│ ├── shopping.js
│ ├── career.js
│ ├── investment.js
│ └── daily.js
├── storage/ # 决策历史和模板
│ ├── history/
│ ├── templates/
│ └── exports/
└── interactive/ # 交互式会话管理器
├── prompts.js
├── workflows.js
└── ui.js
关键实现组件
- 1. 决策引擎:应用框架和计算分数的核心逻辑
- 框架库:每个决策框架的模块化实现
- 场景适配器:不同决策领域的专门逻辑
- 交互式Shell:复杂决策的引导工作流
- 存储系统:保存/加载决策、模板和历史记录
- 导出系统:多种输出格式(Markdown、JSON、HTML、CSV)
依赖项
json
{
dependencies: {
commander: ^11.0.0, // CLI框架
inquirer: ^9.2.0, // 交互式提示
chalk: ^5.3.0, // 终端样式
cli-table3: ^0.6.3, // 表格显示
lodash: ^4.17.21, // 工具函数
yaml: ^2.3.0, // 模板YAML解析
json2csv: ^6.0.0, // CSV导出
markdown-table: ^3.0.3 // Markdown表格生成
},
devDependencies: {
jest: ^29.7.0, // 测试
eslint: ^8.50.0 // 代码质量
}
}
API设计
javascript
// 核心决策API
const decisionEngine = {
createDecision(description, options, criteria),
applyFramework(decision, framework, params),
calculateScores(decision, weights),
generateRecommendation(decision),
exportDecision(decision, format)
};
// 框架实现
const frameworks = {
prosCons: { analyze(options, pros, cons) },
swot: { analyze(strengths, weaknesses, opportunities, threats) },
decisionMatrix: { analyze(options, criteria, weights, scores) },
costBenefit: { analyze(costs, benefits, timeframe, discountRate) }
};
交互功能
- 1. 逐步引导:引导用户完成决策过程
- 模板系统:常见场景的预构建决策模板
- 历史追踪:记录并从过去的决策中学习
- 协作支持:分享决策并获取他人意见
- 提醒系统:跟进决策结果
- 学习系统:根据用户偏好改进建议
文件结构建议
最小可行结构
~/.openclaw/