Test Glazing.
Check a window against the energy table for your zone
$ npx archtmpl@latest --command test-glazing --global─ paste in terminal · restart claude code
Test Glazing
Single-window / fenestration prescriptive gut-check — U-factor, SHGC, VT, frame type, fixed vs operable, and window-to-wall ratio (WWR) — against IECC Table C402.4 (commercial) or Table R402.1.3 (residential) text the user supplies.
This command does not carry IECC values. Every limit cited in the output is a verbatim quote from text the user pasted, or text the command fetched from an explicitly-named official URL with the user's authorization.
For a multi-window envelope sweep, use energy-compliance skill. For interpretation use /explain-u-value. For opaque assemblies use /test-energy.
Inputs the command needs
- Fenestration type — name one:
- Vertical fenestration — fixed
- Vertical fenestration — operable
- Skylight
- Storefront / curtain wall
- Door — half glazed / fully glazed
- Frame type —
vinyl,aluminum thermally broken,aluminum without thermal break,fiberglass,wood,wood-clad. Source tables sometimes split by frame. - Proposed properties — provide all known:
- U-factor (
U-0.XX, NFRC-rated) - SHGC (Solar Heat Gain Coefficient, NFRC-rated)
- VT (Visible Transmittance, NFRC-rated)
- Window-to-wall ratio (% of gross above-grade wall)
- U-factor (
- Climate zone —
1A,2A,2B,3A–3C,4A–4C,5A–5C,6A–6B,7,8. Confirm via/climate-zone-mapperif uncertain. - Project type —
commercial(IECC Ch. C—Table C402.4) vsresidential(IECC Ch. R—Table R402.1.3). - Compliance path —
prescriptive(this command's scope) orperformance/ECB/outcome-based(out of scope — flag and route toenergy-compliance). - Jurisdiction — base IECC always applies. Stricter overlays:
CA Title 24 Part 6(substantially stricter on SHGC and U-factor)- NYC Energy Conservation Code +
Local Law 97 - DSA (CA K-12)
- CA HCAI (CA hospitals)
- OBC SB-10 (Toronto)
- Boston Stretch Energy Code
- Source for the operative table text — paste / fetch /
arch-rag:- Paste verbatim row from
IECC Table C402.4orTable R402.1.3, including header. - Fetch from AHJ amendment / state energy code page.
arch-ragif IECC PDF indexed locally.
- Paste verbatim row from
The command refuses to compute against recalled fenestration values.
Workflow
- Echo parsed inputs: fenestration type / frame / proposed properties / climate zone / project type / jurisdiction.
- Identify reference area:
IECC Ch. C — Table C402.4 — Building Envelope Requirements: FenestrationorCh. R — Table R402.1.3. Do not claim values from recall. - Acquire source text.
- For overlay jurisdictions (
CA Title 24 Part 6especially), require overlay text or stop. - Math against verbatim source per property (U-factor, SHGC, VT if listed, WWR if applicable).
- Output the table + attribution + caveats.
Output template
# Test Glazing — [Fenestration, CZ, plain title]
**Fenestration type:** [Vertical fixed / operable / skylight / storefront]
**Frame:** [Vinyl / aluminum thermally broken / fiberglass]
**Proposed:** [U-0.32 / SHGC 0.40 / VT 0.50 / WWR 32%]
**Climate zone:** [4A — NYC]
**Project type:** [commercial — IECC Ch. C / residential — IECC Ch. R]
**Path:** [prescriptive — this command's scope]
**Jurisdiction:** [base IECC 2024 / + CA Title 24 Part 6 / + NYECCC / + OBC SB-10]
## Reference area
IECC Ch. C — `Table C402.4` (commercial fenestration); Ch. R — `Table R402.1.3` (residential fenestration); WWR limits per `IECC §C402.4.1`.
## Source text under test
> [Verbatim quote of the table row for the fenestration type + CZ.]
(Source: pasted by user / fetched from <URL> on <YYYY-MM-DD>)
## Comparison
| Property | Provided | Required (per quoted source) | Verdict | Margin |
|---|---|---|---|---|
| U-factor | ... | "<verbatim limit>" | PASS / FAIL / MARGINAL | ... |
| SHGC | ... | ... | ... | ... |
| WWR | ... | ... | ... | ... |
## Jurisdictional flags
- [If overlay in scope and overlay source provided: include overlay rows.]
- [If overlay in scope but overlay source missing: list the overlay text the user must paste / fetch.]
- [WWR > IECC `§C402.4.1` cap (typ. 30–40%) triggers performance path — flag and route to `energy-compliance`.]
- [North-glazing / dynamic-glazing / projection-factor (PF) credits per `IECC §C402.4.3` — flag if claimed.]
## Caveats
- Single-window prescriptive gut-check; not a stamped energy compliance report.
- Use NFRC-rated values only — manufacturer center-of-glass values are not equivalent. Verify the proposed values are whole-window NFRC.
- All limit values come from the source the user pasted or the URL fetched on <date>. The command did not recall any IECC value from training.
- WWR > prescriptive cap requires either modeling or alternative-path qualification. Flag to `energy-compliance`.
- `CA Title 24 Part 6` SHGC and U-factor caps are substantially stricter than IECC for CA projects.
- Binding interpretation is the AOR / MEP Engineer stamp plus AHJ review.
NA AEC conventions (enforce)
- English only.
- Imperial-first; SHGC and VT dimensionless; WWR in %. Never lead with
W/m²K. - Codes: IECC, ASHRAE 90.1, ASHRAE 90.2, NBC Sec. 9.36, OBC SB-10, CA Title 24 Part 6. Reject
KBC,KS,EN,BS,JIS,DIN. - AHJs named: NYC DOB, LADBS, DSA, CA HCAI, Toronto Building, Boston ISD, Chicago DOB. Never
the AHJorthe city. - Floors: Level 3 / L3 / 3rd floor. Never
3F. - Roles: Architect of Record (AOR), MEP Engineer, Energy Modeler, Curtain-Wall Consultant. Never
Directoras a project role.
Constraints
- Never invent fenestration values from recall.
- Never paraphrase
Table C402.4/R402.1.3— verbatim only. - Never claim a specific table number / row from recall.
- Distinguish whole-window NFRC vs center-of-glass — only NFRC counts for compliance.
- Distinguish prescriptive vs performance vs PF-credit paths.
- Single fenestration / system, single shot. Multi-window scoping →
energy-compliance. - No
docs/artifact, no Word / PDF, noaec-doc-gen. - Caveat block always present.
- Fetch only after explicit user authorization.
Anti-patterns (never do)
- Stating values inline ("U-0.32 / SHGC 0.40 for CZ 4A commercial") — never. Numbers live only in the quoted source.
- Claiming
Table C402.4row from recall — never. - Using center-of-glass U-factor as if it were NFRC whole-window.
- Treating CA projects as base-IECC only —
Title 24 Part 6overlay required. - Auto-fetching without explicit authorization.
- Hedging — verdicts are PASS / FAIL / MARGINAL.
- Running
energy-compliancefrom inside this command — pointer-only.