SkillsReviewed · datadrivenconstruction

CWICR Crew Optimizer

CWICR Crew Optimizer is an AI-assistant skill for construction planners and developers comparing crews, but its fixed assumptions and calculation issues need review before practical use. Its Python reference code uses CWICR labor norms to estimate duration and labor cost for three predefined crews, with overtime analysis and Excel export.

Researched 17 Nov 2026

In short.

CWICR Crew Optimizer is an AI-assistant skill for construction teams comparing crew costs and schedules, but its reference implementation needs correction and local calibration before estimates guide work. It compares fixed crews of four, six and nine workers rather than searching arbitrary compositions. The crew-size limit is unused, overtime calculations are inconsistent with the main estimate, and the conversion from labor norms to crew duration needs clarification. The instructions and documentation carry an MIT license; the referenced CWICR database has separate commercial-use restrictions. Runtime correctness and real-project accuracy are unverified.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is limited to SKILL.md, claw.json and instructions.md in 1_DDC_Toolkit/CWICR-Database/cwicr-crew-optimizer at commit 410ed1e71e4a5c6fd231afd0c8d1e586a9f546e8, plus the repository root LICENSE and NOTICE.md. The external CWICR database, construction book, other skills and assistant-host implementation are outside this scope. Findings about calculations come from the supplied code text. No installation, execution, export, model integration or real-project estimate was performed.

The overview

Identity

CWICR Crew Optimizer is published by datadrivenconstruction as an AI-assistant skill. The folder contains SKILL.md with embedded Python reference code, instructions.md with assistant guidance, and claw.json with package metadata. The manifest declares version 2.0.0, instructions.md as the entry point, filesystem permission and minimum OpenClaw version 0.8.0.

The source folder at the supplied revision is [https://github.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/tree/410ed1e71e4a5c6fd231afd0c8d1e586a9f546e8/1_DDC_Toolkit/CWICR-Database/cwicr-crew-optimizer]. The publisher lists [https://datadrivenconstruction.io] as its homepage.

Assessment

The strongest fit is a developer-led prototype for comparing a few crew scenarios using supplied labor norms and local rates. The code exposes its formulas and assumptions, making them available for inspection and adaptation.

The implementation does not establish the advertised optimal productivity or skill matching. It evaluates three fixed candidates, uses hard-coded productivity adjustments and does not enforce several practical constraints. No benchmark, validated estimate or construction outcome is supplied.

Users

Construction estimators, planners and project engineers could use the proposed comparisons to explore how crew assumptions affect a work item's duration and labor cost. Developers integrating construction data with an assistant are the most direct users of the supplied Python material.

Beginners would need help preparing the database, configuring the assistant host and checking the calculations. The repository notice requires qualified human review of estimates and construction decisions; the files do not establish that generated recommendations satisfy site requirements.

Capabilities

The reference code looks up a work item's labor norm and unit, calculates crew hourly costs, compares duration and total labor cost, and returns a recommended crew with alternatives. A target duration changes the choice to the cheapest candidate meeting that target; when none qualifies, the code returns the fastest candidate.

Additional methods build a custom crew object, estimate overtime and export Crew Plan and Totals worksheets to Excel. Custom crew objects are not accepted by the optimization method, so building one does not add it to the comparison.

The assistant guidance describes CSV, Excel, JSON and direct input, plus possible CSV or JSON exports. The supplied implementation accepts a pandas DataFrame, demonstrates loading Parquet and implements an Excel exporter; the other format adapters are not supplied.

Using it

Requirements

The metadata lists Python 3 and macOS, Linux and Windows. The code imports pandas and NumPy, uses openpyxl for Excel export, and demonstrates a Parquet read that requires a compatible pandas Parquet engine. Dependency versions, a precise Python minimum and hardware requirements are unspecified.

Meaningful estimates require suitable work-item data and locally appropriate rates. The lookup expects work_item_code and reads labor_norm, falling back to labor_hours, with an optional unit field. Code uniqueness, norm meaning and unit consistency need confirmation.

The manifest lists claude-* and gpt-* model patterns. Actual model and host compatibility are unverified. The Python calculations contain no model API calls.

Mechanism

For each work item, the code multiplies quantity by its labor norm. It evaluates four-worker, six-worker and nine-worker crews, each containing a foreman, journeymen and laborers. Their base productivity factors are 1.0, 1.4 and 2.0, reduced by a crew-size efficiency rule. Duration equals the resulting hours divided by an eight-hour day; labor cost equals those hours multiplied by the whole crew's hourly cost.

Without a target, the lowest calculated total cost wins. With a target, the cheapest qualifying crew wins, or the fastest crew is returned if all miss it. Trade detection uses substrings in the work-item code and assigns a label; it does not change the candidate worker mix.

These are deterministic calculations. The assistant instructions describe gathering inputs and presenting results, while the supplied code performs the arithmetic.

Setup

For assistant use, retain the three folder files and applicable license notices. The manifest identifies instructions.md as the entry point, which refers to SKILL.md for implementation details. Exact host installation and registration commands are not documented.

For Python adaptation, the classes must be made available from the code embedded in SKILL.md, dependencies prepared and a suitable DataFrame supplied to CWICRCrewOptimizer. The quick start names TR_workitems_costs_resources_DDC_CWICR.parquet, but that database file is outside the supplied folder.

Supply data when constructing the optimizer: although the constructor permits no data, that path leaves _code_index undefined and a later labor-norm lookup would raise an AttributeError. Installation success is unverified.

Example

The documented example loads the named Parquet file and requests work item CONC-SLAB-001 with quantity 500 and target_days set to 10. Its comment labels the quantity as square metres, while the returned unit actually comes from the database. A follow-up example analyzes overtime with eight available days.

The relevant database row and labor norm are not supplied, so the recommended crew, duration and total cost for this scenario are unknown. If the code is absent from an initialized index, the lookup silently substitutes a norm of 1.0 and the generic unit label, making confirmation of a real data match essential.

Assessment & evidence

Limitations

The max_crew_size argument is unused, so a recommendation can exceed the requested limit. The separate STANDARD_CREWS table is also unused by optimization. Worker availability, trade qualifications, equipment constraints and job dependencies are not modeled, and an infeasible target has no explicit failure flag.

Labor norms are described as labor-hours per unit, but the duration formula divides them only by productivity and efficiency factors, without explicitly accounting for headcount. The documentation does not explain whether those factors convert person-hours into elapsed crew hours. That interpretation needs validation before trusting either duration or cost.

Overtime analysis omits the efficiency reduction used in the main estimate and adds a full 1.5-times overtime charge to a total already pricing all work at regular rates. Its schedule and cost results therefore require correction. It also uses an already rounded duration to decide whether overtime is needed.

Missing work codes can silently use generic values, zero norms are replaced by 1, and the code lacks explicit validation for negative or non-finite inputs. Exported total duration is the maximum item duration, which represents an assumed parallel span rather than a resource-constrained project schedule. Reported daily crew output also excludes the efficiency reduction used in duration calculations.

Reasoning

The useful feature is the explicit comparison of labor cost and duration under visible assumptions. The main constraint is that the search space and productivity relationships are fixed: changing a trade label does not produce a trade-specific staffing solution.

A recommendation establishes only which of the three candidates wins under the encoded formulas. It does not establish an optimal crew across other compositions, safe staffing, a feasible project schedule or savings on a real site. The unused size constraint and inconsistent overtime formulas further limit practical confidence.

Alternatives

The files provide no comparison with other products. For a few approved crew scenarios, a spreadsheet using verified norms and local rates is an approach to consider. For staffing across multiple tasks, consider a planning system that explicitly represents worker availability, qualifications and task dependencies.

Specific competing products, their prices and their relative accuracy are not assessed. The decision turns on whether a fixed per-item comparison is sufficient or broader scheduling constraints must be represented.

Evidence

The supplied source consists of SKILL.md, claw.json and instructions.md from the crew-optimizer folder, together with the repository's root LICENSE and NOTICE.md. SKILL.md supplies the formulas and examples; the manifest supplies declared compatibility and version information; the notices distinguish software rights from database rights.

The original reference document is available at [https://raw.githubusercontent.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/410ed1e71e4a5c6fd231afd0c8d1e586a9f546e8/1_DDC_Toolkit/CWICR-Database/cwicr-crew-optimizer/SKILL.md]. Its supplied SHA-256 is 05220feb78273271a8f302403557e4dde5cd01c1ca723f2936bf0e82b8bf94ff.

The folder contains no standalone Python module, dependency lock file, test suite or actual CWICR dataset. No code was executed. Installation, model compatibility, runtime correctness and field accuracy remain unverified.

Access & freshness

Costs

The reference rates are 65 for a foreman, 55 for a journeyman, 35 for an apprentice, 30 for a laborer, 60 for an operator and 28 for a helper per hour. Examples display dollar signs, but currency, location, rate date and included employment costs are unspecified. These constants do not establish current market wages.

Custom rates can be supplied, but a nonempty custom dictionary replaces the defaults. Worker types omitted from it receive the separate fallback rate of 40.

The software license permits use without a license fee under MIT terms. The referenced database requires a separate DDC commercial license for commercial use, according to NOTICE.md; its price is unknown. Assistant-host charges, model charges, integration effort and operating costs are also unknown.

Rights

The repository LICENSE grants MIT rights to use, modify and redistribute the software and associated documentation, including commercially, provided the copyright and permission notice accompany copies or substantial portions. It names DataDrivenConstruction as the 2026 copyright holder and provides no warranty. NOTICE.md explicitly identifies skill instructions and documentation as MIT licensed.

The referenced CWICR database has separate terms: NOTICE.md identifies the DDC compilation as CC BY-NC 4.0 and requires a DDC commercial license for commercial use. Underlying national price data remains subject to its issuers' terms. The MIT license for the skill does not establish permission to use that database commercially.

The linked construction book is identified as all rights reserved and is outside this folder. Database and book redistribution rights are not established by the skill's MIT license.

Freshness

The supplied snapshot was captured on 17 November 2026 at 11:24:02.195 UTC from commit 410ed1e71e4a5c6fd231afd0c8d1e586a9f546e8. The manifest declares version 2.0.0 and minimum OpenClaw version 0.8.0.

A release date, maintenance history and changes after that commit are unknown. The snapshot also provides no date or geographic basis for its default rates or productivity factors.

Actions

Before using estimates, confirm the work-item match, units, labor-norm interpretation and local rates. Have a developer enforce the crew-size limit, make missing data explicit, reconcile person-hours with crew duration and correct the overtime formulas. Independently check representative calculations and infeasible-target behavior before relying on recommendations.

If custom or trade-specific crews are needed, connect them to the candidate comparison rather than only constructing separate crew objects. Obtain the appropriate rights for the actual database, and have qualified construction professionals review estimates against site conditions.

Evidence for this report

LICENSEnotice · checked 2026-11-17
NOTICE.mdnotice · checked 2026-11-17