Token导航 LogoToken导航

Agent Skill · 待分类

decision-support(决策支持)

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

decision-support 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为权限未标注;许可证信息还不明确,第三方扫描已通过,按安装量在待分类类的 11,209 个 Skill 里排第 6,955。

总安装 404周安装 17GitHub Stars 111下载 141核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/datadrivenconstruction/ddc_skills_for_ai_agents_in_construction --skill decision-support

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

构建多准则决策支持系统,整合加权评分与风险情景模拟。适用于建筑等行业的多目标权衡分析需求。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。包含供应商选择、材料决策等具体业务用例实现示例。建议结合实际业务指标调整权重与风险参数设置。

decision-support 属于待分类类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/decision-support

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

    权限没有明确标注,第一次使用时只给一个无关紧要的任务,观察它到底读了哪些文件和网络。

常见问题

6 条

decision-support 怎么安装?

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

decision-support 支持哪些 AI 工具?

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

decision-support 需要什么权限?

权限级别没有明确标注。第一次使用时建议只给无关紧要的任务,观察它实际读写了哪些内容。

decision-support 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

decision-support 用的人多吗?

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

decision-support 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

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

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
decision-support

决策支持 · 本页

404111权限未标注未明确通过

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

SKILL.md 原文

Decision Support System

Business Case

Problem Statement

Construction decision-making challenges:

  • Multiple conflicting criteria
  • Risk and uncertainty
  • Time pressure for decisions
  • Lack of structured analysis

Solution

Multi-criteria decision support system for construction projects with weighted scoring, risk analysis, and scenario comparison.

Technical Implementation

import pandas as pd
from typing import Dict, Any, List, Optional, Callable
from dataclasses import dataclass, field
from datetime import date, datetime
from enum import Enum
import math

class DecisionType(Enum):
    VENDOR_SELECTION = "vendor_selection"
    METHOD_SELECTION = "method_selection"
    SCHEDULE_OPTION = "schedule_option"
    DESIGN_ALTERNATIVE = "design_alternative"
    RISK_RESPONSE = "risk_response"
    RESOURCE_ALLOCATION = "resource_allocation"

class CriterionType(Enum):
    COST = "cost"
    TIME = "time"
    QUALITY = "quality"
    SAFETY = "safety"
    RISK = "risk"
    SUSTAINABILITY = "sustainability"

@dataclass
class Criterion:
    criterion_id: str
    name: str
    criterion_type: CriterionType
    weight: float  # 0-1
    higher_is_better: bool = True
    unit: str = ""

@dataclass
class Alternative:
    alternative_id: str
    name: str
    description: str
    scores: Dict[str, float] = field(default_factory=dict)
    risks: List[str] = field(default_factory=list)

@dataclass
class DecisionResult:
    alternative_id: str
    weighted_score: float
    rank: int
    strengths: List[str]
    weaknesses: List[str]

class DecisionSupportSystem:
    """Multi-criteria decision support for construction projects."""

    def __init__(self, project_name: str):
        self.project_name = project_name
        self.criteria: Dict[str, Criterion] = {}
        self.alternatives: Dict[str, Alternative] = {}
        self.decision_type: DecisionType = DecisionType.METHOD_SELECTION

    def set_decision_type(self, decision_type: DecisionType):
        """Set the type of decision being made."""
        self.decision_type = decision_type

    def add_criterion(self, criterion: Criterion):
        """Add evaluation criterion."""
        self.criteria[criterion.criterion_id] = criterion

    def add_standard_criteria(self, decision_type: DecisionType = None):
        """Add standard criteria based on decision type."""

        dt = decision_type or self.decision_type

        if dt == DecisionType.VENDOR_SELECTION:
            criteria = [
                Criterion("price", "Price", CriterionType.COST, 0.30, False, "$"),
                Criterion("quality", "Quality Rating", CriterionType.QUALITY, 0.25, True, "1-10"),
                Criterion("delivery", "Delivery Time", CriterionType.TIME, 0.20, False, "days"),
                Criterion("experience", "Experience", CriterionType.QUALITY, 0.15, True, "years"),
                Criterion("safety", "Safety Record", CriterionType.SAFETY, 0.10, True, "score"),
            ]
        elif dt == DecisionType.METHOD_SELECTION:
            criteria = [
                Criterion("cost", "Total Cost", CriterionType.COST, 0.25, False, "$"),
                Criterion("duration", "Duration", CriterionType.TIME, 0.25, False, "days"),
                Criterion("quality", "Quality", CriterionType.QUALITY, 0.20, True, "score"),
                Criterion("risk", "Risk Level", CriterionType.RISK, 0.15, False, "1-5"),
                Criterion("sustainability", "Sustainability", CriterionType.SUSTAINABILITY, 0.15, True, "score"),
            ]
        elif dt == DecisionType.RISK_RESPONSE:
            criteria = [
                Criterion("effectiveness", "Effectiveness", CriterionType.QUALITY, 0.35, True, "%"),
                Criterion("cost", "Implementation Cost", CriterionType.COST, 0.25, False, "$"),
                Criterion("time", "Implementation Time", CriterionType.TIME, 0.20, False, "days"),
                Criterion("feasibility", "Feasibility", CriterionType.QUALITY, 0.20, True, "1-10"),
            ]
        else:
            criteria = [
                Criterion("cost", "Cost", CriterionType.COST, 0.30, False, "$"),
                Criterion("time", "Time", CriterionType.TIME, 0.25, False, "days"),
                Criterion("quality", "Quality", CriterionType.QUALITY, 0.25, True, "score"),
                Criterion("risk", "Risk", CriterionType.RISK, 0.20, False, "score"),
            ]

        for c in criteria:
            self.add_criterion(c)

    def add_alternative(self, alternative: Alternative):
        """Add decision alternative."""
        self.alternatives[alternative.alternative_id] = alternative

    def normalize_scores(self) -> Dict[str, Dict[str, float]]:
        """Normalize scores to 0-1 scale."""

        normalized = {}

        for criterion_id, criterion in self.criteria.items():
            values = [alt.scores.get(criterion_id, 0) for alt in self.alternatives.values()]

            if not values or max(values) == min(values):
                for alt_id in self.alternatives:
                    if alt_id not in normalized:
                        normalized[alt_id] = {}
                    normalized[alt_id][criterion_id] = 0.5
                continue

            min_val, max_val = min(values), max(values)
            range_val = max_val - min_val

            for alt_id, alt in self.alternatives.items():
                if alt_id not in normalized:
                    normalized[alt_id] = {}

                raw_score = alt.scores.get(criterion_id, 0)

                # Normalize
                norm_score = (raw_score - min_val) / range_val if range_val > 0 else 0.5

                # Invert if lower is better
                if not criterion.higher_is_better:
                    norm_score = 1 - norm_score

                normalized[alt_id][criterion_id] = round(norm_score, 4)

        return normalized

    def calculate_weighted_scores(self) -> Dict[str, float]:
        """Calculate weighted scores for all alternatives."""

        normalized = self.normalize_scores()
        weighted = {}

        for alt_id, scores in normalized.items():
            total = 0
            for criterion_id, norm_score in scores.items():
                weight = self.criteria[criterion_id].weight
                total += norm_score * weight
            weighted[alt_id] = round(total, 4)

        return weighted

    def analyze_alternatives(self) -> List[DecisionResult]:
        """Analyze and rank all alternatives."""

        weighted_scores = self.calculate_weighted_scores()
        normalized = self.normalize_scores()

        # Rank alternatives
        ranked = sorted(weighted_scores.items(), key=lambda x: x[1], reverse=True)

        results = []
        for rank, (alt_id, score) in enumerate(ranked, 1):
            alt = self.alternatives[alt_id]

            # Identify strengths (top 2 criteria)
            strengths = []
            weaknesses = []

            alt_scores = [(cid, normalized[alt_id][cid]) for cid in self.criteria]
            alt_scores_sorted = sorted(alt_scores, key=lambda x: x[1], reverse=True)

            for cid, nscore in alt_scores_sorted[:2]:
                if nscore >= 0.6:
                    strengths.append(f"{self.criteria[cid].name}: {nscore:.2f}")

            for cid, nscore in alt_scores_sorted[-2:]:
                if nscore <= 0.4:
                    weaknesses.append(f"{self.criteria[cid].name}: {nscore:.2f}")

            results.append(DecisionResult(
                alternative_id=alt_id,
                weighted_score=score,
                rank=rank,
                strengths=strengths,
                weaknesses=weaknesses
            ))

        return results

    def get_recommendation(self) -> Dict[str, Any]:
        """Get decision recommendation."""

        results = self.analyze_alternatives()

        if not results:
            return {"error": "No alternatives to analyze"}

        best = results[0]
        best_alt = self.alternatives[best.alternative_id]

        # Calculate confidence
        if len(results) > 1:
            score_gap = best.weighted_score - results[1].weighted_score
            confidence = min(100, int(score_gap * 200 + 50))
        else:
            confidence = 100

        return {
            'project': self.project_name,
            'decision_type': self.decision_type.value,
            'recommendation': {
                'alternative': best_alt.name,
                'alternative_id': best.alternative_id,
                'score': best.weighted_score,
                'confidence': confidence,
                'strengths': best.strengths,
                'weaknesses': best.weaknesses
            },
            'all_rankings': [
                {
                    'rank': r.rank,
                    'alternative': self.alternatives[r.alternative_id].name,
                    'score': r.weighted_score
                }
                for r in results
            ],
            'criteria_weights': {
                c.name: c.weight for c in self.criteria.values()
            }
        }

    def sensitivity_analysis(self, criterion_id: str,
                             weight_range: tuple = (0.0, 0.5, 0.1)) -> Dict[str, Any]:
        """Perform sensitivity analysis on criterion weight."""

        original_weight = self.criteria[criterion_id].weight
        results = []

        start, end, step = weight_range
        weight = start
        while weight <= end:
            # Adjust weight
            self.criteria[criterion_id].weight = weight

            # Recalculate
            scores = self.calculate_weighted_scores()
            ranked = sorted(scores.items(), key=lambda x: x[1], reverse=True)

            results.append({
                'weight': round(weight, 2),
                'rankings': [
                    {'alternative': self.alternatives[alt_id].name, 'score': score}
                    for alt_id, score in ranked
                ]
            })

            weight += step

        # Restore original
        self.criteria[criterion_id].weight = original_weight

        return {
            'criterion': self.criteria[criterion_id].name,
            'original_weight': original_weight,
            'analysis': results
        }

    def export_to_excel(self, output_path: str) -> str:
        """Export decision analysis to Excel."""

        with pd.ExcelWriter(output_path, engine='openpyxl') as writer:
            # Recommendation
            rec = self.get_recommendation()
            rec_df = pd.DataFrame([{
                'Project': rec['project'],
                'Decision Type': rec['decision_type'],
                'Recommended Alternative': rec['recommendation']['alternative'],
                'Score': rec['recommendation']['score'],
                'Confidence %': rec['recommendation']['confidence']
            }])
            rec_df.to_excel(writer, sheet_name='Recommendation', index=False)

            # All rankings
            rankings_df = pd.DataFrame(rec['all_rankings'])
            rankings_df.to_excel(writer, sheet_name='Rankings', index=False)

            # Detailed scores
            normalized = self.normalize_scores()
            details = []
            for alt_id, alt in self.alternatives.items():
                row = {'Alternative': alt.name}
                for cid, criterion in self.criteria.items():
                    row[f"{criterion.name} (Raw)"] = alt.scores.get(cid, 0)
                    row[f"{criterion.name} (Norm)"] = normalized[alt_id].get(cid, 0)
                details.append(row)
            details_df = pd.DataFrame(details)
            details_df.to_excel(writer, sheet_name='Detailed Scores', index=False)

            # Criteria
            criteria_df = pd.DataFrame([{
                'Criterion': c.name,
                'Type': c.criterion_type.value,
                'Weight': c.weight,
                'Higher is Better': c.higher_is_better,
                'Unit': c.unit
            } for c in self.criteria.values()])
            criteria_df.to_excel(writer, sheet_name='Criteria', index=False)

        return output_path

Quick Start

# Create decision support system
dss = DecisionSupportSystem("Office Building A")
dss.set_decision_type(DecisionType.VENDOR_SELECTION)

# Add standard criteria
dss.add_standard_criteria()

# Add alternatives
dss.add_alternative(Alternative(
    "V1", "Contractor A", "Large regional contractor",
    scores={"price": 500000, "quality": 8, "delivery": 90, "experience": 15, "safety": 9}
))

dss.add_alternative(Alternative(
    "V2", "Contractor B", "Local contractor",
    scores={"price": 450000, "quality": 7, "delivery": 120, "experience": 8, "safety": 8}
))

dss.add_alternative(Alternative(
    "V3", "Contractor C", "National contractor",
    scores={"price": 600000, "quality": 9, "delivery": 75, "experience": 25, "safety": 10}
))

# Get recommendation
recommendation = dss.get_recommendation()
print(f"Recommended: {recommendation['recommendation']['alternative']}")
print(f"Confidence: {recommendation['recommendation']['confidence']}%")

Common Use Cases

1. Method Selection

dss = DecisionSupportSystem("Foundation Work")
dss.set_decision_type(DecisionType.METHOD_SELECTION)
dss.add_standard_criteria()

dss.add_alternative(Alternative("M1", "Cast-in-place", "Traditional method",
    scores={"cost": 200000, "duration": 45, "quality": 9, "risk": 2, "sustainability": 6}))
dss.add_alternative(Alternative("M2", "Precast", "Prefabricated elements",
    scores={"cost": 250000, "duration": 30, "quality": 8, "risk": 3, "sustainability": 8}))

2. Sensitivity Analysis

sensitivity = dss.sensitivity_analysis("cost", (0.1, 0.5, 0.1))
for result in sensitivity['analysis']:
    print(f"Weight {result['weight']}: Top choice = {result['rankings'][0]['alternative']}")

3. Export Analysis

dss.export_to_excel("decision_analysis.xlsx")

Resources

平台分布

Codex

36.69%
按下载量换算52

Claude

30.02%
按下载量换算42

Cursor

19.06%
按下载量换算27

Gemini CLI

9.36%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限未标注

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills