Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jdmorag97-rgb/DDC_Skills_for_AI_Agents_in_Construction --skill decision-supportgit clone --depth 1 https://github.com/jdmorag97-rgb/DDC_Skills_for_AI_Agents_in_ConstructionWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jdmorag97-rgb/ddc_skills_for_ai_agents_in_construction/decision-support)<a href="https://agentmods.dev/skills/jdmorag97-rgb/ddc_skills_for_ai_agents_in_construction/decision-support"><img src="https://agentmods.dev/badge/skills/jdmorag97-rgb/ddc_skills_for_ai_agents_in_construction/decision-support/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jdmorag97-rgb/ddc_skills_for_ai_agents_in_construction/decision-support"><img src="https://agentmods.dev/badge/skills/jdmorag97-rgb/ddc_skills_for_ai_agents_in_construction/decision-support.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.03260 |
| Opus 5 | $0.00010 | $0.01630 |
| Sonnet 5 | $0.00004 | $0.00652 |
| Haiku 4.5 | $0.00002 | $0.00326 |
Grade A, and why
decision-support scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
100% identical to decision-support — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 409 lines — stays where its author put it; the contents beside it link to each section on 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):
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
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 409 lines · 20 tokens per session scan A a7a6012af3cc
decision-support is a skill published in the GitHub repository jdmorag97-rgb/DDC_Skills_for_AI_Agents_in_Construction (2 stars, last pushed 6mo ago), licensed MIT. It adds 20 tokens to every session and 3,260 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to decision-support, differing in 0 lines, and is treated as a copy.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…