industryby datadrivenconstruction
CWICR Crew Optimizer
datadrivenconstruction/cwicr-crew-optimizer
Optimize crew composition using CWICR labor norms. Balance productivity, cost, and skill requirements for construction crews.
What it changes
Passed 20 of 23 test cases with the skill, and 11 of 23 without it.
Without skill48%
With skill87%
Checks it passed that the model alone missed
- Assigns 100 percent efficiency for crew sizes up to 4 workers.
- Assigns 95 percent efficiency for crew sizes of 5 to 6 workers.
- Assigns 85 percent efficiency for crew sizes of 9 to 10 workers.
and 14 more in the full report
9 fixed11 passed either way3 still failing0 broke
- Pass-rate lift
- +39 pp
- Tokens
- +163%
- Agent turns
- 0%
- Response time
- -5%
Model gemini-3.6-flashMeasured 8/27/2026v220 of 23 cases passed with skill
See it in action
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
PromptIn an Excel report of crew optimization results, what summary fields are included on the 'Totals' sheet?
What was checked, without and with the skill| Checked | Without skill | With skill |
|---|
| Aggregates project total duration as maximum duration across work items on Totals sheet. | Missed | Passed |
|---|
| Aggregates project total labor cost as sum of all item labor costs on Totals sheet. | Missed | Passed |
|---|
What's inside
The instructions your model reads when the skill loads.
SKILL.md436 linessingle file
CWICR Crew Optimizer
Business Case
Problem Statement
Crew planning challenges:
- Right mix of workers?
- Optimal crew size?
- Balance cost vs productivity?
- Match skills to work?
Solution
Optimize crew composition using CWICR labor productivity data to balance cost, output, and skill requirements.
Business Value
- Optimal productivity - Right-sized crews
- Cost efficiency - No overstaffing
- Skill matching - Proper worker mix
- Schedule support - Meet deadlines
Technical Implementation
import pandas as pd
import numpy as np
from typing import Dict, Any, List, Optional, Tuple
from dataclasses import dataclass, field
from enum import Enum
from datetime import date, timedelta
class WorkerType(Enum):
"""Types of workers."""
FOREMAN = "foreman"
JOURNEYMAN = "journeyman"
APPRENTICE = "apprentice"
LABORER = "laborer"
OPERATOR = "operator"
HELPER = "helper"
Track record
Benchmark
20 / 23
test cases passed, vs 11 / 23 without
Adoption
- Users
- 0
- Times used
- 0
Safety and source details
SkillSafety
✓ 3 of 3 passed✓Code scan15 of 15 checks clean
0 critical · 0 warning · 0 info — scanner v5 — 8/26/2026
View 15 scanner checks
live_secretremote_code_executionreverse_shelldata_exfiltrationssrf_metadataagent_snoopinganti_refusaldestructive_commandsobfuscated_unicodeunicode_homoglyphopaque_blobsuspicious_urltool_overreachtrigger_abuseprompt_injection_phrasing
✓IntentSafe
LLM judge · does the skill do what it claims
✓ContentClean
LLM judge · policy & harmful-content review
Source
Importeddatadrivenconstruction / ddc_skills_for_ai_agents_in_construction
1_DDC_Toolkit/CWICR-Database/cwicr-crew-optimizer/SKILL.md
View on GitHub ↗License MITImported 8/26/2026Version v2