budget-variance-analyzer
Analyze construction budget variances. Compare estimated vs actual costs, identify trends, forecast final costs, and generate variance reports for cost control.
от datadrivenconstruction★ 461 звезда на GitHub
Установить budget-variance-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Budget Variance Analyzer
Overview
Analyze construction budget variances between estimated and actual costs. Track cost performance by category, identify concerning trends, forecast final costs, and provide actionable insights for cost control.
Variance Analysis Framework
┌─────────────────────────────────────────────────────────────────┐
│ BUDGET VARIANCE ANALYSIS │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Budget vs Actual = Variance → Forecast │
│ ────── ────── ──────── ──────── │
│ 📋 Original 💰 Spent 📊 Over/Under 🔮 EAC │
│ 📝 Revised 📈 Committed 📉 Trend 📋 ETC │
│ 🎯 Baseline 🧾 Invoiced ⚠️ Alerts 📊 VAC │
│ │
│ EAC = Estimate at Completion │
│ ETC = Estimate to Complete │
│ VAC = Variance at Completion │
│ │
└─────────────────────────────────────────────────────────────────┘
Technical Implementation
from dataclasses import dataclass, field
from typing import List, Dict, Optional, Tuple
from datetime import datetime, timedelta
from enum import Enum
import statistics
class CostCategory(Enum):
LABOR = "labor"
MATERIALS = "materials"
EQUIPMENT = "equipment"
SUBCONTRACTOR = "subcontractor"
GENERAL_CONDITIONS = "general_conditions"
OVERHEAD = "overhead"
CONTINGENCY = "contingency"
FEE = "fee"
class VarianceStatus(Enum):
ON_BUDGET = "on_budget"
UNDER_BUDGET = "under_budget"
OVER_BUDGET = "over_budget"
CRITICAL = "critical"
@dataclass
class CostCode:
code: str
description: str
category: CostCategory
original_budget: float
revised_budget: float = 0.0
committed: float = 0.0
actual: float = 0.0
forecast: float = 0.0
percent_complete: float = 0.0
@property
def budget(self) -> float:
return self.revised_budget if self.revised_budget else self.original_budget
@property
def variance(self) -> float:
return self.budget - self.actual
@property
def variance_percent(self) -> float:
return (self.variance / self.budget * 100) if self.budget else 0
@property
def committed_variance(self) -> float:
return self.budget - self.committed
@property
def estimate_to_complete(self) -> float:
if self.percent_complete >= 100:
return 0
return self.forecast - self.actual
@property
def variance_at_completion(self) -> float:
return self.budget - self.forecast
@dataclass
class CostSnapshot:
date: datetime
cost_code: str
actual: float
committed: float
forecast: float
@dataclass
class VarianceReport:
report_date: datetime
project_name: str
total_budget: float
total_actual: float
total_committed: float
total_forecast: float
variance: float
variance_percent: float
eac: float
etc: float
vac: float
variances_by_category: Dict[str, Dict]
critical_items: List[CostCode]
trend: str
class BudgetVarianceAnalyzer:
"""Analyze construction budget variances."""
# Thresholds for variance status
VARIANCE_THRESHOLDS = {
"under_budget": 0.05, # 5% under
"on_budget": 0.00,
"over_budget": -0.05, # 5% over
"critical": -0.10 # 10% over
}
def __init__(self, project_name: str, original_budget: float):
self.project_name = project_name
self.original_budget = original_budget
self.cost_codes: Dict[str, CostCode] = {}
self.snapshots: List[CostSnapshot] = []
self.contingency_used = 0.0
def add_cost_code(self, code: str, description: str,
category: CostCategory, budget: float) -> CostCode:
"""Add cost code to budget."""
cost_code = CostCode(
code=code,
description=description,
category=category,
original_budget=budget,
revised_budget=budget,
forecast=budget
)
self.cost_codes[code] = cost_code
return cost_code
def import_budget(self, items: List[Dict]) -> int:
"""Import budget from list of items."""
count = 0
for item in items:
self.add_cost_code(
item['code'],
item['description'],
CostCategory(item.get('category', 'other')),
item['budget']
)
count += 1
return count
def update_actual(self, code: str, actual: float) -> CostCode:
"""Update actual cost for cost code."""
if cod
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- claw.json
- instructions.md
FAQ
Что делает скилл budget-variance-analyzer?
Analyze construction budget variances. Compare estimated vs actual costs, identify trends, forecast final costs, and generate variance reports for cost control.
Как установить скилл budget-variance-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл budget-variance-analyzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…