Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Compare and analyze contractor bids. Score proposals, identify scope gaps, and recommend selections.
.claude/skills/datadrivenconstruction-bid-analysis-comparator/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 34% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 114% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 2% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 65% | 0% |
Bid evaluation requires systematic comparison across multiple criteria. This skill provides structured bid analysis and scoring.
pythonimport pandas as pd from datetime import date from typing import Dict, Any, List from dataclasses import dataclass, field from enum import Enum class BidStatus(Enum): RECEIVED = "received" UNDER_REVIEW = "under_review" SHORTLISTED = "shortlisted" AWARDED = "awarded" REJECTED = "rejected" @dataclass class EvaluationCriteria: name: str weight: float # 0-1 max_score: int = 10 @dataclass class BidScore: criteria: str score: int notes: str = "" @dataclass class Bid: bid_id: str bidder_name: str bid_package: str submitted_date: date base_bid: float alternates: Dict[str, float] status: BidStatus scores: List[BidScore] = field(default_factory=list) qualifications: List[str] = field(default_factory=list) exclusions: List[str] = field(default_factory=list) @property def total_weighted_score(self) -> float: return sum(s.score for s in self.scores) class BidAnalysisComparator: def __init__(self, project_name: str, bid_package: str): self.project_name = project_name self.bid_package = bid_package self.bids: Dict[str, Bid] = {} self.criteria: List[EvaluationCriteria] = [] self._setup_default_criteria() self._counter = 0 def _setup_default_criteria(self): self.criteria = [ EvaluationCriteria("Price", 0.35), EvaluationCriteria("Experience", 0.20), EvaluationCriteria("Schedule", 0.15), EvaluationCriteria("Safety Record", 0.10), EvaluationCriteria("References", 0.10), EvaluationCriteria("Capacity", 0.10) ] def add_bid(self, bidder_name: str, base_bid: float, submitted_date: date = None, alternates: Dict[str, float] = None) -> Bid: self._counter += 1 bid_id = f"BID-{self._counter:03d}" bid = Bid( bid_id=bid_id, bidder_name=bidder_name, bid_package=self.bid_package, submitted_date=submitted_date or date.today(), base_bid=base_bid, alternates=alternates or {}, status=BidStatus.RECEIVED ) self.bids[bid_id] = bid return bid def score_bid(self, bid_id: str, scores: Dict[str, int]): """Score bid on criteria. scores = {'Price': 8, 'Experience': 7, ...}""" if bid_id not in self.bids: return bid = self.bids[bid_id] bid.scores = [] for criteria, score in scores.items(): bid.scores.append(BidScore(criteria, score)) bid.status = BidStatus.UNDER_REVIEW def calculate_weighted_scores(self) -> pd.DataFrame: """Calculate weighted scores for all bids.""" results = [] criteria_weights = {c.name: c.weight for c in self.criteria} for bid in self.bids.values(): row = { 'Bidder': bid.bidder_name, 'Base Bid': bid.base_bid, 'Status': bid.status.value } total = 0 for score in bid.scores: weight = criteria_weights.get(score.criteria, 0) weighted = score.score * weight * 10 row[score.criteria] = score.score row[f'{score.criteria} (W)'] = round(weighted, 1) total += weighted row['Total Score'] = round(total, 1) results.append(row) return pd.DataFrame(results).sort_values('Total Score', ascending=False) def get_recommendation(self) -> Dict[str, Any]: """Get bid recommendation.""" df = self.calculate_weighted_scores() if df.empty: return {'recommendation': 'No bids to evaluate'} top = df.iloc[0] lowest = df.sort_values('Base Bid').iloc[0] return { 'highest_score': { 'bidder': top['Bidder'], 'score': top['Total Score'], 'bid': top['Base Bid'] }, 'lowest_price': { 'bidder': lowest['Bidder'], 'bid': lowest['Base Bid'] }, 'total_bids': len(self.bids), 'recommendation': top['Bidder'] } def export_analysis(self, output_path: str): df = self.calculate_weighted_scores() with pd.ExcelWriter(output_path, engine='openpyxl') as writer: df.to_excel(writer, sheet_name='Comparison', index=False) # Bid details details = [{ 'Bidder': b.bidder_name, 'Bid': b.base_bid, 'Exclusions': '; '.join(b.exclusions), 'Qualifications': '; '.join(b.qualifications) } for b in self.bids.values()] pd.DataFrame(details).to_excel(writer, sheet_name='Details', index=False)
pythoncomparator = BidAnalysisComparator("Office Tower", "Electrical") bid1 = comparator.add_bid("ABC Electric", 850000) bid2 = comparator.add_bid("XYZ Electric", 920000) comparator.score_bid(bid1.bid_id, {'Price': 9, 'Experience': 7, 'Schedule': 8, 'Safety Record': 8, 'References': 7, 'Capacity': 8}) comparator.score_bid(bid2.bid_id, {'Price': 7, 'Experience': 9, 'Schedule': 7, 'Safety Record': 9, 'References': 9, 'Capacity': 9}) recommendation = comparator.get_recommendation() print(f"Recommended: {recommendation['recommendation']}")
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 28,273 | 17,408 | -38% | 1 | 1 | 0% | 6,218 | 5,572 | -10% | 0 | 0 | — |
case-02 | fail→fail | 10,776 | 9,749 | -10% | 1 | 1 | 0% | 2,429 | 3,741 | +54% | 0 | 0 | — |
case-03 | fail→pass | 18,065 | 15,853 | -12% | 1 | 1 | 0% | 3,607 | 4,841 | +34% | 0 | 0 | — |
case-04 | fail→pass | 5,269 | 3,310 | -37% | 1 | 1 | 0% | 1,071 | 2,296 | +114% | 0 | 0 | — |
case-05 | fail→pass | 12,185 | 3,286 | -73% | 1 | 1 | 0% | 2,162 | 2,200 | +2% | 0 | 0 | — |
case-06 | fail→pass | 7,162 | 1,902 | -73% | 1 | 1 | 0% | 1,164 | 1,919 | +65% | 0 | 0 | — |
case-07 | fail→pass | 11,608 | 2,159 | -81% | 1 | 1 | 0% | 1,697 | 1,992 | +17% | 0 | 0 | — |
case-17 | fail→pass | 15,853 | 1,420 | -91% | 1 | 1 | 0% | 2,613 | 1,776 | -32% | 0 | 0 | — |
case-08 | fail→pass | 11,189 | 6,097 | -46% | 1 | 1 | 0% | 1,876 | 2,861 | +53% | 0 | 0 | — |
case-09 | fail→pass | 10,347 | 6,794 | -34% | 1 | 1 | 0% | 1,766 | 2,920 | +65% | 0 | 0 | — |
case-10 | fail→pass | 6,054 | 1,546 | -74% | 1 | 1 | 0% | 969 | 1,873 | +93% | 0 | 0 | — |
case-11 | fail→pass | 10,084 | 1,467 | -85% | 1 | 1 | 0% | 1,579 | 1,878 | +19% | 0 | 0 | — |
case-12 | fail→pass | 7,252 | 2,037 | -72% | 1 | 1 | 0% | 1,174 | 1,942 | +65% | 0 | 0 | — |
case-13 | fail→pass | 8,150 | 2,227 | -73% | 1 | 1 | 0% | 1,235 | 1,935 | +57% | 0 | 0 | — |
case-14 | fail→pass | 9,763 | 3,553 | -64% | 1 | 1 | 0% | 1,504 | 2,268 | +51% | 0 | 0 | — |
case-15 | fail→pass | 7,786 | 2,269 | -71% | 1 | 1 | 0% | 1,118 | 2,002 | +79% | 0 | 0 | — |
case-16 | fail→pass | 5,614 | 3,353 | -40% | 1 | 1 | 0% | 987 | 2,272 | +130% | 0 | 0 | — |
case-18 | pass→pass | 9,007 | 3,387 | -62% | 1 | 1 | 0% | 1,519 | 2,258 | +49% | 0 | 0 | — |
case-19 | fail→pass | 6,335 | 3,735 | -41% | 1 | 1 | 0% | 1,161 | 2,319 | +100% | 0 | 0 | — |
case-20 | pass→pass | 19,120 | 18,227 | -5% | 1 | 1 | 0% | 3,585 | 5,019 | +40% | 0 | 0 | — |
case-21 | pass→pass | 18,195 | 19,697 | +8% | 1 | 1 | 0% | 3,486 | 5,304 | +52% | 0 | 0 | — |
case-22 | pass→pass | 4,077 | 4,272 | +5% | 1 | 1 | 0% | 929 | 2,493 | +168% | 0 | 0 | — |
case-23 | fail→pass | 11,241 | 12,079 | +7% | 1 | 1 | 0% | 2,393 | 4,248 | +78% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +78 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.