SkillsReviewed · datadrivenconstruction

CWICR Waste Calculator

CWICR Waste Calculator is an AI assistant skill for construction estimators and developers, but its fixed waste percentages need validation for each project. It supplies Python examples for material allowances, waste costs, cutting estimates and Excel reports using CWICR material descriptions and prices.

Researched 17 Nov 2026

In short.

CWICR Waste Calculator is an AI assistant skill for construction estimators and developers, but its default allowances and project totals need validation before procurement use. The Python implementation applies fixed percentages, estimates extra quantities and material costs, approximates one-dimensional cutting needs, and exports Excel reports. Its waste percentages are embedded constants rather than values retrieved from CWICR norms. Code inspection also exposes mixed-unit aggregation and inconsistent project cost calculations. Installation, host compatibility, dataset integration and runtime behavior are untested.

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

Covers SKILL.md, claw.json and instructions.md in 1_DDC_Toolkit/CWICR-Database/cwicr-waste-calculator at revision 410ed1e71e4a5c6fd231afd0c8d1e586a9f546e8, together with the repository-root LICENSE and NOTICE.md. The linked CWICR database, underlying national price sources, DDC book, other skills and assistant-host implementations are excluded. Nothing was executed. Installation, dataset integration, numerical behavior, cutting results, exports and host compatibility remain untested.

The overview

Identity

cwicr-waste-calculator is published by datadrivenconstruction within DDC Skills for AI Agents in Construction. It consists of SKILL.md with embedded Python code, instructions.md describing assistant behavior, and claw.json declaring version 2.0.0. It is an assistant skill with example implementation code; the selected folder contains no standalone Python package or application.

Assessment

The skill offers a transparent starting point for adding waste allowances to material estimates. Its small factor table and explicit formulas make assumptions easy to inspect and replace. However, the document calls the defaults industry-standard factors without identifying the underlying norm, edition, jurisdiction or supporting measurements.

Despite the CWICR naming, the implementation reads material names, units and prices from the supplied table; it does not retrieve waste percentages from that table. Its usefulness therefore depends on whether the embedded or custom factors fit the actual materials and project conditions. No accuracy benchmark or completed project outcome is supplied.

Users

The intended users are construction estimators and procurement teams working with material quantities, alongside developers connecting an assistant to construction cost data. A beginner can follow the allowance calculations, but using the implementation requires Python support and a suitable material table. Experienced developers can adapt the factor table, data mapping and reporting methods.

For binding estimates, the repository notice calls for qualified professional review and verification of quantities, prices and classifications against authoritative sources.

Capabilities

The supplied methods calculate waste for one material or a list of project materials, accept custom factors, estimate waste-related material cost, and produce an Excel workbook with Summary and Materials sheets. A separate method estimates stock-piece counts and unused length for one-dimensional cutting.

The factor table covers 20 named material types plus a fallback. Only cutting, spillage, breakage and installation overrun contribute to calculations; theft and weather appear as category labels but have no implemented allowance.

The companion instructions describe CSV, Excel, JSON and direct inputs, plus several export formats. The shown calculator accepts a pandas DataFrame and Python dictionaries, and implements Excel export only. Other file readers and export adapters are not supplied.

Using it

Requirements

The metadata requires python3 and lists macOS, Linux and Windows. The example imports pandas and numpy; Excel export additionally uses openpyxl. The quick start reads an external Parquet file, so it also needs pandas Parquet support. Dependency versions and a Parquet engine are not specified.

Material lookup uses material_code, falling back to work_item_code. It reads description or material_description, unit or material_unit, and material_cost or unit_cost. Without a matching row, the material code becomes the description and the unit defaults to unit.

claw.json declares filesystem permission, instructions.md as its entry, OpenClaw 0.8.0 or later, and claude-* and gpt-* model patterns. These are compatibility declarations; actual host and model compatibility is untested.

Mechanism

Material classification uses lowercase substring matching against the factor-table keys, followed by a short synonym list. Unmatched descriptions receive the default factors. This is a text heuristic, not a trained classifier.

The calculator adds four fractional allowances and multiplies their sum by the base quantity. Order quantity is base quantity plus waste quantity, and waste cost is waste quantity multiplied by unit cost. The embedded factors total 7% for concrete and 12% for an unmatched material. Custom factors replace the defaults; omitted categories become zero, while an empty dictionary falls back to the defaults.

Cutting uses first-fit decreasing: it sorts required lengths from longest to shortest and places each in the first stock piece with enough remaining length. The numerical code contains no model API calls; the companion assistant instructions concern gathering inputs and presenting results.

Setup

For Python use, place the implementation from SKILL.md in a module or notebook, provide its dependencies, and load a suitable material table into a pandas DataFrame. The documented example loads TR_workitems_costs_resources_DDC_CWICR.parquet and passes the table to CWICRWasteCalculator.

Before calculating, check that identifiers resolve to the intended material descriptions, units and prices. The folder does not contain the referenced database, a dependency lockfile or a documented dataset preparation procedure. For assistant-host use, claw.json identifies instructions.md as the entry file, which in turn references SKILL.md; a complete installation procedure is not supplied.

Example

The documented custom tile example supplies base quantity 500, unit cost 25, and factors of 0.15 for cutting, 0 for spillage, 0.05 for breakage and 0.05 for overrun. These inputs represent a combined 25% allowance. By arithmetic, the formula implies 125 extra units, an order quantity of 625 and waste cost of 3,125 in the input cost's currency. This is an illustration of the formula, not an executed result.

Factors are fractions: 0.15 means 15%. The example does not establish the correct tile allowance for a real project. Its quantity unit and currency must be supplied consistently by the user.

Assessment & evidence

Limitations

Project cost totals have an inconsistency visible in the code. An individual calculation can obtain unit cost from the material table when its supplied cost is zero, but total_base_cost still uses the original project-entry cost. Omitting project prices can therefore leave base cost and the reported waste_percentage at zero despite nonzero calculated waste costs. The project percentage is a cost ratio, not a physical waste rate.

Project by_category totals and order_quantity_increase add quantities without grouping by unit. Combining materials measured in different units makes these totals unsuitable as physical procurement quantities. Results are also rounded to two decimal places for quantities and costs, without unit-specific precision rules.

Substring classification can misidentify ambiguous descriptions, and unmatched material codes silently receive the default allowance. The methods show no explicit validation for negative quantities, invalid factors, duplicate lookup codes or inconsistent units, although instructions.md asks for input validation.

The cutting method does not reject lengths exceeding stock length; its arithmetic can then produce negative waste or efficiency above 100%. It has no cutting-width allowance and returns aggregate totals without a cut allocation for each stock piece. The supplied heuristic does not establish an optimal cutting solution.

Reasoning

The strongest practical benefit is inspectable arithmetic that a developer can adapt to approved project assumptions. Custom factors allow those assumptions to be explicit rather than dependent on description matching.

The source's claims about accurate ordering, cost control, sustainability and benchmarking describe intended benefits. No measured outcomes substantiate them. An allowance estimate also does not measure actual site waste, so sustainability tracking would require additional records and comparison against real consumption.

Alternatives

For a small estimate, a spreadsheet using approved factors is a plausible alternative because the core calculation is a simple additive allowance. This is an inference from the supplied formula, not a comparative test.

Projects requiring cut allocations, cutting-width constraints or totals grouped by unit should compare tools against those specific requirements. The supplied material names no competing calculator and provides no evidence that this skill outperforms another approach.

Evidence

The implementation is available in the original SKILL.md at [https://raw.githubusercontent.com/datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction/410ed1e71e4a5c6fd231afd0c8d1e586a9f546e8/1_DDC_Toolkit/CWICR-Database/cwicr-waste-calculator/SKILL.md]. Companion evidence consists of claw.json, instructions.md, the repository LICENSE and NOTICE.md.

These files establish the documented interfaces, formulas, declared compatibility and licensing distinctions. They provide no executed tests, sample input dataset, generated workbook or benchmark results. Runtime correctness, host loading and integration with the referenced database remain unassessed.

Access & freshness

Costs

The supplied MIT licence grants permission free of charge for the covered software and documentation. Total operating cost is unknown: no assistant-host pricing, model usage charges or commercial CWICR database licence price is provided. Integration effort is also unknown. Unit prices in the calculator's examples are calculation inputs, not prices for this skill.

Rights

The repository NOTICE identifies skill instructions and documentation as MIT licensed, consistent with claw.json. The licence permits use, modification and redistribution, including commercial use, provided the copyright and permission notice accompany copies or substantial portions. It supplies no warranty.

The referenced CWICR database has separate terms. NOTICE identifies the DDC compilation as CC BY-NC 4.0 and requires a separate DDC commercial licence for commercial use. Underlying national price data remains subject to its issuers' terms. The skill's MIT licence does not grant commercial rights to that database; the database licence documents and any commercial agreement are outside the supplied evidence.

Freshness

The supplied snapshot was captured on 17 November 2026 at source revision 410ed1e71e4a5c6fd231afd0c8d1e586a9f546e8. claw.json declares version 2.0.0, but the folder supplies no dated release notes or revision history. The capture date does not establish when the code or waste factors were updated. The latest upstream version and current dependency compatibility are unknown.

Actions

Before using the calculator for an estimate, verify material identifiers, descriptions, units and prices, and replace default percentages with documented factors appropriate to the project. Confirm rights to any CWICR data used, particularly for commercial work.

Before relying on project reports, make base-cost and waste-cost calculations use the same resolved price, group quantity totals by unit, and add validation for missing, duplicate and invalid inputs. For cutting, validate stock and required lengths and account for cutting width where relevant.

Check the adapted calculations against independently worked examples and project records, then obtain the qualified review required by the repository notice before binding procurement use. These are recommended next steps; no execution or validation results are supplied.

Evidence for this report

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