warranty-tracker
Track and manage construction warranties. Monitor expiration dates, claims, and manufacturer documentation.
git clone --depth 1 https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction /tmp/warranty-tracker && cp -r /tmp/warranty-tracker/1_DDC_Toolkit/Closeout/warranty-tracker ~/.claude/skills/warranty-trackerSKILL.md
# Warranty Tracker
## Business Case
### Problem Statement
Warranty management is often neglected:
- Missing warranty documentation
- Expired warranties untracked
- Difficult to file claims
- Scattered across multiple files
### Solution
Centralized warranty tracking system that monitors expiration dates, stores documentation, and manages claims.
### Business Value
- **Cost savings** - File claims before expiration
- **Organization** - Central warranty repository
- **Compliance** - Meet handover requirements
- **Proactive** - Automatic expiration alerts
## Technical Implementation
```python
import pandas as pd
from datetime import datetime, date, timedelta
from typing import Dict, Any, List, Optional
from dataclasses import dataclass, field
from enum import Enum
class WarrantyType(Enum):
"""Types of warranties."""
MANUFACTURER = "manufacturer"
CONTRACTOR = "contractor"
INSTALLER = "installer"
EXTENDED = "extended"
PERFORMANCE = "performance"
class WarrantyStatus(Enum):
"""Warranty status."""
ACTIVE = "active"
EXPIRING_SOON = "expiring_soon" # Within 90 days
EXPIRED = "expired"
CLAIMED = "claimed"
VOID = "void"
class ClaimStatus(Enum):
"""Warranty claim status."""
DRAFT = "draft"
SUBMITTED = "submitted"
UNDER_REVIEW = "under_review"
APPROVED = "approved"
DENIED = "denied"
RESOLVED = "resolved"
class BuildingSystem(Enum):
"""Building systems."""
STRUCTURAL = "structural"
ROOFING = "roofing"
HVAC = "hvac"
ELECTRICAL = "electrical"
PLUMBING = "plumbing"
ELEVATORS = "elevators"
FIRE_PROTECTION = "fire_protection"
GLAZING = "glazing"
FLOORING = "flooring"
PAINTING = "painting"
APPLIANCES = "appliances"
EXTERIOR = "exterior"
OTHER = "other"
@dataclass
class WarrantyDocument:
"""Warranty document reference."""
document_id: str
filename: str
document_type: str # certificate, manual, conditions
upload_date: date
file_path: str
@dataclass
class Warranty:
"""Warranty record."""
warranty_id: str
item_description: str
system: BuildingSystem
warranty_type: WarrantyType
manufacturer: str
contractor: str
start_date: date
end_date: date
duration_years: int
coverage_details: str
exclusions: str
contact_name: str
contact_phone: str
contact_email: str
location: str
documents: List[WarrantyDocument] = field(default_factory=list)
notes: str = ""
@property
def status(self) -> WarrantyStatus:
"""Calculate current warranty status."""
today = date.today()
if today > self.end_date:
return WarrantyStatus.EXPIRED
elif (self.end_date - today).days <= 90:
return WarrantyStatus.EXPIRING_SOON
else:
return WarrantyStatus.ACTIVE
@property
def days_remaining(self) -> int:
"""Days until warranty expires."""
return (self.end_date - date.today()).days
def to_dict(self) -> Dict[str, Any]:
return {
'warranty_id': self.warranty_id,
'item': self.item_description,
'system': self.system.value,
'type': self.warranty_type.value,
'manufacturer': self.manufacturer,
'contractor': self.contractor,
'start_date': self.start_date.isoformat(),
'end_date': self.end_date.isoformat(),
'duration_years': self.duration_years,
'status': self.status.value,
'days_remaining': self.days_remaining,
'contact': self.contact_email
}
@dataclass
class WarrantyClaim:
"""Warranty claim record."""
claim_id: str
warranty_id: str
issue_description: str
issue_date: date
reported_date: date
status: ClaimStatus
reported_by: str
resolution: str = ""
resolution_date: Optional[date] = None
cost_covered: float = 0.0
documents: List[str] = field(default_factory=list)
notes: str = ""
class WarrantyTracker:
"""Track and manage construction warranties."""
EXPIRING_THRESHOLD_DAYS = 90
def __init__(self, project_name: str, substantial_completion_date: date):
self.project_name = project_name
self.completion_date = substantial_completion_date
self.warranties: Dict[str, Warranty] = {}
self.claims: Dict[str, WarrantyClaim] = {}
self._warranty_counter = 0
self._claim_counter = 0
def add_warranty(self,
item_description: str,
system: BuildingSystem,
warranty_type: WarrantyType,
manufacturer: str,
contractor: str,
duration_years: int,
coverage_details: str,
contact_email: str,
start_date: date = None,
contact_name: str = "",
contact_phone: str = "",
exclusions: str = "",
location: str = "") -> Warranty:
"""Add new warranty record."""
self._warranty_counter += 1
warranty_id = f"WRT-{self._warranty_counter:04d}"
start = start_date or self.completion_date
end = start + timedelta(days=duration_years * 365)
warranty = Warranty(
warranty_id=warranty_id,
item_description=item_description,
system=system,
warranty_type=warranty_type,
manufacturer=manufacturer,
contractor=contractor,
start_date=start,
end_date=end,
duration_years=duration_years,
coverage_details=coverage_details,
exclusions=exclusions,
contact_name=contact_name,
contact_phone=contact_phone,
contact_email=contact_email,
location=location
)
self.warranties[warranty_id] = warranty
return warranGenerate automated daily progress reports from site data. Track work completed, labor hours, equipment usage, and weather conditions.
Analyze labor productivity from site data. Compare planned vs actual, identify trends, benchmark against industry standards.
Create interactive KPI dashboards for construction projects. Track schedule, cost, quality, and safety metrics in real-time.
Detect and analyze geometric clashes in BIM models. Identify MEP, structural, and architectural conflicts before construction.
Classify BIM elements using AI and standard classification systems. Map elements to UniFormat, MasterFormat, OmniClass, and CWICR codes.
Generate comprehensive BIM model validation reports. Check data quality, completeness, and compliance with standards.
Calculate CO2 emissions and carbon footprint from BIM model data. Analyze embodied carbon by material, element, and building system.
Extract quantities from IFC/Revit models for quantity takeoff. Uses DDC converters to get element counts, areas, volumes, lengths with grouping and reporting.