decision-support
БесплатноБез исполняемых скриптовНе проверенProvide data-driven decision support for construction. Analyze multiple factors and recommend optimal project decisions.
от datadrivenconstruction★ 461 звезда на GitHubОб этом скилле
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
Установить decision-support в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл decision-support?
Provide data-driven decision support for construction. Analyze multiple factors and recommend optimal project decisions.
Как установить скилл decision-support?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл decision-support запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic