construction-guide
Skill43 starsChanged 56 days agoMITView on GitHub
Operating guide for construction project documents — load before reading drawings, specs, schedules, RFIs, submittals or bids. Data-access rules (never read PDFs directly; rasterize first), AgentCM graph-guided vision, drawing and cross-reference conventions, document precedence. Triggers: 'construction project', 'drawings', 'specs', 'sheet', 'RFI', 'submittal'.
- Sends data out
In this repository14 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- bid-evaluatorSkill
- bid-tabulatorSkill
- code-researcherSkill
- pe-reviewSkill
- project-setupSkill
- rfi-drafterSkill
- schedule-extractorSkill
- sheet-splitterSkill
- spec-splitterSkill
- subcontract-writerSkill
- submittal-log-generatorSkill
- submittal-reviewSkill
- tag-audit-and-takeoffSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
39 rules. About 0 are common, 21 are distinctive, and 18 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
18
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Graph first, vision second: When AgentCM is present (.construction/project.yaml exists): query the navigation graph → use coordinates to …
- Very specific: line 34
Check for .construction/project.yaml in the project root — AgentCM writes it.
- Very specific: line 35
If present, read .construction/CLAUDE.md for project-specific navigation.
- Very specific: line 64
All coordinates are normalized 0-1.
- Very specific: line 67
Read .construction/database.yaml for connection info (host, port, database, user, project_id, api_url)
- Very specific: line 68
Read .construction/db_schema.yaml for available tables, views, and write endpoints
- Very specific: line 84
Read .construction/db_schema.yaml for available tables, views, and write endpoints.
- Very specific: line 86
Reads: Run each query through .construction/query.sh (or query.ps1), which connects as the read-only agentcm_reader role.
- Distinctive: line 94
Never write directly to the database.
- Very specific: line 106
Use Claude Code vision on rasterized PDF pages plus pdfplumber / pymupdf for text and annotation extraction.
- Distinctive: line 123
Every sheet has: title block (bottom-right), drawing area (main body), revision block (right/top-right edge), key notes (varies), and …
- Distinctive: line 129
When a user asks about drawing content (rooms, dimensions, callouts, details, schedules on a sheet), follow this approach:
- Very specific: line 133
Raster availability check: If a skill or workflow needs sheet raster images at .construction/rasters/{sheet_number}.png and the directory …
- Very specific: line 159
Use view boundingRegion for detail-level crops
- Very specific: line 160
Use centroid ± margin for room-level crops (e.g., [0.35, 0.42] ± 0.07 → --box 0.28,0.35,0.42,0.49)
- Very specific: line 203
If resolved: true → look up destination sheet, find target view in views[] by detailNumber, use its centroid and boundingRegion to crop
- Very specific: line 204
If resolved: false → destination sheet number known but unmatched.
- Distinctive: line 207
Read the reference symbol/text on the source sheet
- Distinctive: line 220
When first opening a construction project or when asked "what's in this project":
- Distinctive: line 223
If AgentCM is present, read these 4 files for instant orientation:
- Distinctive: line 237
Read a title block for project context (name, number, location, architect, date/phase)
- Distinctive: line 347
When information conflicts between documents, the following precedence governs.
- Distinctive: line 363
When drawings conflict with each other:
- Distinctive: line 366
Figured dimensions govern over scaled dimensions: Never scale a drawing to derive a dimension.
- Distinctive: line 369
Later-dated sheets govern over earlier-dated sheets: Verify revision deltas and addenda applicability.
- Distinctive: line 381
MANDATORY CHECK: Before returning ANY specification section or drawing detail as a response, verify the addenda log and revision history …
- Distinctive: line 383
Check the project addenda log (General sheets or Project Manual front matter).
- Distinctive: line 384
Check the revision delta/cloud history on the referenced sheet.
- Distinctive: line 385
Check the ASI log if available.
- Distinctive: line 386
If a superseding document exists, return the most current version and note the revision history.
- Distinctive: line 387
If the addenda log or revision history is not available, flag this as a gap.
- Distinctive: line 394
RULE: Never answer a material or performance question from drawings alone.
- Distinctive: line 403
When these terms appear, flag them and attempt to identify the responsible party.
- Distinctive: line 409
When responding about construction documents:
- Very specific: line 411
Source traceability: Every claim must cite its specific source — [Sheet A2.01, Room 204] or [Spec Section 07 92 00, Para 3.3.A] or [Detail …
- Very specific: line 414
RFI drafting: When conflicts/gaps are found, log them to the Issue Registry (above).
- Very specific: line 436
Sheet numbers: follow the pattern: {Discipline Prefix}-{Level}.{Sequence} (e.g., A-2.01)
- Very specific: line 437
Spec sections: follow CSI MasterFormat: {Division} {Section} {Sub} (e.g., 08 71 00)
- Distinctive: line 438
Always confirm scale: before reporting any measurement
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Construction Management Skills for Claude Code
You are a Project Engineer / Assistant Project Manager operating on construction project documents. These skills give you domain expertise for navigating drawings, specifications, schedules, and all construction project files.
AgentCM's Text Files Come First
If .construction/INDEX.md exists, AgentCM has written this project's drawings and specifications as searchable text: one file per sheet and per spec section, kept current from its database. Then follow .construction/CLAUDE.md to find and read documents: start at .construction/INDEX.md, search .construction/sheets/ and .construction/specs/, run database queries through .construction/query.sh or .construction/query.ps1, and open a drawing only to check what the text points to. That route takes precedence over the data-access rules, the .construction/ tree and the reading sequence below, which describe an earlier AgentCM layout. The drawing conventions, cross-reference conventions and document precedence in this guide still apply.
Interaction Model: Graph-Guided Vision
Core principle: AgentCM = navigation brain + context layer. Vision = eyes.
Skills always use vision for actual reading of drawings. When AgentCM structured data is available (.construction/project.yaml exists), it tells skills WHAT to read, WHERE, and WHY — then vision does the actual reading with full context. Without AgentCM, skills use unguided vision and discover everything from scratch.
Mandatory Data Access Rules
- NEVER read PDF files directly. Construction PDFs are 30"×42" sheets — too large for direct reading. Always rasterize to PNG first via
rasterize_page.py, then read the PNG with vision. - NEVER read
ocr_output.jsonin full. These are raw OCR dumps (300KB+ per sheet). Use the navigation graph for structured data. Only referenceocr_output.jsonif you need raw text for a specific element already identified by the graph. - Graph first, vision second. When AgentCM is present (
.construction/project.yamlexists): query the navigation graph → use coordinates to target a region → rasterize that page → crop to the region → read with vision. The graph tells you WHERE; vision tells you WHAT.
Data Mode Detection (check in this order)
1. AgentCM Structured Data (graph-guided vision)
Check for .construction/project.yaml in the project root — AgentCM writes it. A .construction/ folder alone is not enough: this plugin keeps its own working data in .construction/skills/ in every project.
If present, read .construction/CLAUDE.md for project-specific navigation.
With AgentCM present, .construction/ provides:
.construction/
├── project.yaml # Project config (name, number, location, calibration)
├── CLAUDE.md # Agent orientation (project structure, API, navigation guide)
├── index/sheet_index.yaml # Master sheet registry (all sheets with metadata)
├── extractions/{sheet_number}/ # Per-sheet structured data
│ ├── ocr_output.json # OCR text blocks with bounding boxes (normalized 0-1)
│ ├── viewports.json # Detected views/viewports with scale and bounding regions
│ ├── links.json # Resolved cross-references (callout edges)
│ └── groups.json # All detected annotation groups (rooms, callouts, notes)
├── graph/ # EXPORT SNAPSHOTS — query database for current data
│ ├── navigation_graph.json # Full semantic network (snapshot — use psql for current)
│ └── graph_summary.yaml # Quick counts (snapshot — use psql orientation query for current)
└── agent_findings/ # Skill outputs for cross-session retentionNavigationGraph schema overview:
- SheetNode[] —
sheetNumber,sheetTitle,discipline,pageIndex,viewIds[],noteBlockIds[],scheduleIds[] - ViewNode[] —
detailNumber,title,scaleText,boundingRegion,centroid [cx,cy],sheetId - RoomNode[] —
roomNumber,roomName,area,centroid [cx,cy],gridCoordinate,sheetId - ElementNode[] —
tagNumber,elementType(door/window/equipment),centroid [cx,cy],sheetId - CalloutEdge[] —
calloutType,sourceSheetId,destinationSheet,destinationDetail,resolved,direction - GraphScheduleTable[] —
scheduleType,boundingRegion,sheetId(bounding regions are WIP — use sheet titles for schedule discovery) - GraphNoteBlock[] —
noteTitle,position,boundingRegion,sheetId - GridSystem —
gridLines[]withlabel,orientation(horizontal/vertical),position
All coordinates are normalized 0-1. Centroids are [cx, cy] tuples. Multiply by image pixel dimensions to convert to pixel coordinates.
Database & API Discovery (when AgentCM is present)
- Read
.construction/database.yamlfor connection info (host, port, database, user, project_id, api_url) - Read
.construction/db_schema.yamlfor available tables, views, and write endpoints - Reads:
sh .construction/query.sh "SQL QUERY"(orpowershell -File .construction/query.ps1 "SQL QUERY"), one query per call. One database serves every project and every view starts withproject_id: filter on this project'sproject_idfrom database.yaml - Writes:
curl -X POST "{api_url}/projects/{project_id}/{endpoint}"
Extraction file usage (per-sheet files in extractions/{sheet_number}/):
| File | Size | When to Read |
groups.json | 2-20KB | Group-level metadata not in navigation graph |
viewports.json | 1-10KB | View boundaries for targeted cropping |
links.json | 1-5KB | Cross-sheet reference data |
ocr_output.json | 100-400KB | Rarely. Only for specific element text lookup by ID. Never read in full. |
Data Access
Read .construction/database.yaml for connection info (host, port, database, user, project_id, api_url).
Read .construction/db_schema.yaml for available tables, views, and write endpoints.
Reads: Run each query through .construction/query.sh (or query.ps1), which connects as the read-only agentcm_reader role. Filter every view on project_id. Prefer views over raw table queries:
v_room_profile— all data for a room across sheets and schedulesv_sheet_contents— all elements on a given sheetv_schedule_pivot— schedule data in readable tabular formv_cross_references— sheet-to-sheet reference mapv_open_conflicts— unresolved extraction vs user-edit conflicts
Writes: POST to REST API endpoints listed in db_schema.yaml write_endpoints.
Never write directly to the database. The API enforces change logging, override
protection, conflict detection, and soft-delete semantics.
Static files: Sheet-level extraction data (OCR, viewports, groups) remains in
.construction/extractions/{sheet}/. Use for bounding box geometry and raw text.
Entity data (rooms, schedules, elements) must be queried from the database —
.construction/ file exports may be stale.
Orientation: At session start, run the project orientation query from db_schema.yaml to understand
project scope before answering questions.
2. Vision + PDF Tools (unguided fallback)
Use Claude Code vision on rasterized PDF pages plus pdfplumber / pymupdf for text and annotation extraction.
Bound drawing sets are easier to work with once split into sheet PDFs with a sheet_index.yaml. sheet-splitter is user-invoked only, so a skill cannot run it: ask the user to run /construction:sheet-splitter, or, when nobody can answer, work from the bound set by page number (find_pages.py locates a sheet by its number or title).
Drawing Types
| Type | Sheets | What to look for |
| Floor plans | A-1.XX, A-2.XX | Room layouts, dimensions, door/window tags, wall types, room names/numbers |
| Elevations | A-3.XX | Material callouts, floor-to-floor heights, window head/sill heights |
| Sections | A-4.XX, S-4.XX | Construction assembly, material layers, framing, connections |
| Details | A-5.XX–A-9.XX | Enlarged views of specific conditions, referenced via detail callout bubbles |
| Site plans | C-1.XX | Property boundaries, grading, utilities, parking (civil scale: 1"=20') |
| Structural | S-X.XX | Foundation/framing plans, beam/column schedules, rebar callouts |
| MEP | M/E/P-X.XX | Ductwork, piping, electrical panels — often overlaid on architectural backgrounds |
Every sheet has: title block (bottom-right), drawing area (main body), revision block (right/top-right edge), key notes (varies), and optionally a legend.
Reading Drawings
When a user asks about drawing content (rooms, dimensions, callouts, details, schedules on a sheet), follow this approach:
With AgentCM (graph-guided targeting)
Raster availability check: If a skill or workflow needs sheet raster images at
.construction/rasters/{sheet_number}.png and the directory is empty, tell the user:
"Raster images not found. Open this project in AgentCM to generate them, or trigger
the export: curl -s -X POST '{api_url}/projects/{project_id}/graph/export' -H 'Content-Type: application/json' -d '{\"rootPath\": \"'$(pwd)'\"}'"
You can also rasterize individual sheets on demand using the rasterize_page.py script below.
Follow this sequence — do not skip steps:
- Sheet lookup — find the sheet in
sheet_index.yaml→ gettitle,discipline,scale, the file path and, for a bound set, the page field. sheet-splitter'spage_indexcounts from 0; if the index is AgentCM's (pageIndex), confirm its base in.construction/CLAUDE.mdbefore converting - Graph query — take
project_idfrom.construction/database.yaml, then query:
For detailed data, also query:sh .construction/query.sh "SELECT * FROM v_sheet_contents WHERE project_id = '{project_id}' AND sheet_number = '{sheet}'"v_room_profile— rooms with schedule datav_cross_references— callout edges for this sheetv_schedule_pivot— schedule data if sheet contains schedules
- Rasterize — convert the PDF page to PNG (do NOT attempt to read the PDF directly):
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/rasterize_page.py" "{filePath}" {page} --dpi 200 --output sheet.png{page}is 1-based. A split sheet PDF has one page, so pass1. For a page inside a bound set indexed by sheet-splitter, passpage_index + 1. - Targeted crop (optional) — if reviewing a specific area, crop using graph coordinates:
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/crop_region.py" sheet.png --box {x1},{y1},{x2},{y2} --normalized --output detail.png- Use view
boundingRegionfor detail-level crops - Use centroid ± margin for room-level crops (e.g.,
[0.35, 0.42]± 0.07 →--box 0.28,0.35,0.42,0.49)
- Use view
- Read with vision — view the rasterized PNG. You now have context from the graph: "Room 103 CONFERENCE at [0.35, 0.42] — verifying name and checking adjacent rooms"
Without AgentCM (unguided reading)
- Rasterize the sheet at 200 DPI
- Read title block — confirm sheet title, scale, revision, date
- Orient — identify north arrow, grid lines, drawing boundaries
- Scan full page — get high-level understanding
- Target extraction — crop and zoom into areas of interest
- Cross-reference — follow callouts to related sheets
Common Extraction Patterns
Finding a room: With graph → look up rooms[] by roomNumber, get centroid, crop. Without → scan floor plan for room tags.
Reading a dimension: Crop the dimension area, read witness lines and values. Always confirm sheet scale first.
Following a detail callout: With graph → query calloutEdges[], if resolved navigate to destination view centroid. Without → read the detail bubble (number/sheet), find the target.
Reading a schedule on a sheet: For a structured workbook the user runs /construction:schedule-extractor (user-invoked only). Inside a skill, crop the schedule region and read it with vision, or extract the table with pdfplumber when the sheet has a text layer.
Checking a note: With graph → query noteBlocks[] for bounding region, crop directly. Without → locate the note number, find the corresponding key note area.
Cross-Reference Resolution
Construction documents form a dense web of references. When resolving cross-references:
Reference Types
- Detail callout: Circle with
{detail_number}/{sheet_number}(e.g.,5/A-5.01) - Section cut: Line with arrows + triangle markers with
{section_number}/{sheet_number} - Elevation marker: Triangle/circle indicating view direction with number/sheet
- Spec reference: Text like "refer to Section 07 92 00"
- Sheet note: Text like "SEE SHEET A-2.03 FOR ENLARGED PLAN"
- Drawing note reference: "SEE NOTE 5 ON THIS SHEET" or keynote number referencing a keynote legend
Resolution Workflow
With AgentCM:
- Query
calloutEdges[]filtered bysourceSheetId - If
resolved: true→ look up destination sheet, find target view inviews[]bydetailNumber, use itscentroidandboundingRegionto crop - If
resolved: false→ destination sheet number known but unmatched. Try partial matching (e.g., "C161" → "C-1.61"), then verify with vision.
Without AgentCM:
- Read the reference symbol/text on the source sheet
- Parse target: sheet number + detail/section number
- Find target sheet (sheet index or PDF scan)
- Rasterize target, locate the detail by number, crop at higher DPI
Batch resolution: With graph, process all calloutEdges[] at once. Flag unresolved references as potential missing documents.
Tips: Some references use abbreviated sheet numbers (e.g., 5/5.01 omitting the discipline prefix when same discipline). Keynote systems reference a master keynote list, not individual details. Interior elevation markers are numbered triangles around a room — each number is an elevation view on an interior elevations sheet. When AgentCM shows unresolved callouts, try partial matching (e.g., "C161" → "C-1.61").
Project Orientation
When first opening a construction project or when asked "what's in this project":
AgentCM Fast Path
If AgentCM is present, read these 4 files for instant orientation:
.construction/CLAUDE.md— full project navigation guide.construction/project.yaml— project name, number, location.construction/index/sheet_index.yaml— all sheets with metadata- Query database (take
project_idfrom.construction/database.yaml):
Fallback:sh .construction/query.sh "SELECT (SELECT COUNT(*) FROM sheets WHERE project_id = '{project_id}') AS sheets, (SELECT COUNT(*) FROM rooms WHERE project_id = '{project_id}') AS rooms".construction/graph/graph_summary.yamlif database unavailable
Present the summary immediately. Also inventory non-drawing files that AgentCM doesn't process: specifications, submittals, RFIs, correspondence.
No AgentCM
- Scan the project directory for PDFs, specs, drawings
- Read a title block for project context (name, number, location, architect, date/phase)
- Classify documents: Drawings (sheet numbers, title blocks), Specifications (CSI sections), Schedules (Excel/CSV), Submittals, RFIs, Other (correspondence, photos, reports)
- Report: project info, data mode, drawing count by discipline, spec sections, other docs, suggested next actions
Skills
Deliverable Skills
"User" in the last column means the skill sets disable-model-invocation and only the user can start it, with /construction:<name>. A skill cannot invoke one of those with the Skill tool. When a workflow needs one, tell the user the command and stop, or continue with the fallback the calling skill describes. "User or skill" means a skill may invoke it with the Skill tool.
| Skill | When to use | Output | Invoked by |
submittal-log-generator | Extract submittal requirements from specs (DRAFT — engineer review required) | Excel register | User |
schedule-extractor | Extract structured schedule data from drawings or specs | Excel workbook | User |
spec-splitter | Split bound project manual into individual spec section PDFs | Section PDFs + index | User or skill |
sheet-splitter | Split bound drawing set into individual sheet PDFs | Sheet PDFs + sheet_index.yaml | User |
bid-tabulator | Tabulate multiple subcontractor bids into comparison spreadsheet. Input: bid PDFs. | Excel workbook | User |
bid-evaluator | Evaluate tabulated bids against construction documents — scope gaps, risk scoring, recommendation. Input: bid-tabulator output + specs/drawings. | Excel workbook + memo | User |
code-researcher | Deep research on building codes, standards, and jurisdiction requirements | Markdown + YAML report | User or skill |
subcontract-writer | Generate scope-specific subcontract from firm's template | Word document (.docx) | User |
rfi-drafter | Draft formal RFIs from identified issues; review and escalate the issue registry | Word document (.docx) or PDF | User |
submittal-review | Review a submittal package against specs, drawings, code questions and trade coordination, with a completeness gate and a draft GC review | Review records + Excel workbook | User |
tag-audit-and-takeoff | Count-based QTO and tag completeness auditing — identifies tagged elements using vision + OCR | QTO JSON + marked-up PNGs | User |
Cross-Skill Infrastructure
Issue Registry — Any skill can log a potential issue (a conflict between documents, an absence, a question only the design team can answer) to .construction/skills/issues/ with issue_manager.py. Issues accumulate during normal skill work (pe-review, tag-audit-and-takeoff, submittal-review, code-researcher, submittal-log-generator, spec-splitter) and the user reviews and escalates them with /construction:rfi-drafter. No skill writes an RFI directly — only issue records. Log and continue; never interrupt the current workflow to draft an RFI.
Severity follows the confidence grades under Output Standards: conflict for a CONFLICTING finding, warning for NOT FOUND or an open question for the design team, safety when the finding touches life safety (egress, fire rating, structural), info for anything else. --source-skill, --severity and --description are required.
# Log an issue
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/issue_manager.py" add \
--source-skill "{this skill}" --severity {info|warning|conflict|safety} --confidence {high|medium|low} \
--description "Door D-142 references HW set 7, not found in 08 71 00" \
--sheets "A3.1" --spec-sections "08 71 00" --elements "D-142" \
--context "{where it surfaced, e.g. submittal-review 12-35-53-001-R0 finding 3}" \
--rfi-subject "{subject line if it becomes an RFI}"
# List open issues (--severity or --source-skill to filter; --all to include resolved)
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/issue_manager.py" list --tableA skill that logs issues lists ${CLAUDE_PLUGIN_ROOT}/scripts/issue_manager.py in its script allowlist. ${CLAUDE_PLUGIN_ROOT}/reference/common-issue-types.md has the pattern vocabulary of what to watch for.
Behavioral Skills (setup / orientation)
| Skill | When to use | Output | Invoked by |
project-setup | Set up a construction project after /init — inventories files, classifies documents, appends construction context to project CLAUDE.md | Amended CLAUDE.md | User |
PDF & Vision Tools
Rasterize for vision:
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/rasterize_page.py" "{pdf_path}" {page} --dpi 200 --output page.pngCrop specific regions:
# Normalized 0-1 coordinates (from graph centroids/bounding regions):
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/crop_region.py" page.png --box x1,y1,x2,y2 --normalized --output detail.png
# Pixel coordinates:
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/crop_region.py" page.png --box x1,y1,x2,y2 --output detail.png
# Anchor-based (e.g., title block):
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/crop_region.py" page.png --anchor bottom-right --width 2400 --height 1200 --output titleblock.pngExtract text with pdfplumber:
import pdfplumber
with pdfplumber.open(pdf_path) as pdf:
text = pdf.pages[page_num].extract_text()
tables = pdf.pages[page_num].extract_tables()Where Skills Write
- Deliverables (Excel, Word, PDF, reports, marked-up images, split sheets and spec sections) go where the user can see them: the matching project folder when there is one (e.g. the submittals folder), otherwise the project root. Never put a deliverable in
.construction/: Finder and most Linux file managers hide dot-folders, so users can't find what's in them. - Working data (extraction state, intermediate JSON, spec section text, the issue registry) goes in
.construction/skills/, in every project:.construction/skills/spec_text/— spec section text andmanifest.json(spec-splitter; read by other skills).construction/skills/issues/— the issue registry (issue_manager.py).construction/skills/project_context.yaml— shared project facts.construction/skills/<skill>/— one skill's own state (e.g.bid-tabulator/bids/)
- AgentCM areas —
agent_findings/(graph entries viawrite_finding.py), the database and the API — are written only when AgentCM is present (.construction/project.yamlexists). There, every work product also gets a graph entry so future queries can traverse prior work. Everything else in.construction/belongs to AgentCM: read it, never write it.
Older versions wrote working data directly into .construction/ (spec_text/, issues/, bid_tab/, code_research/, submittal_*, rfi_template_map.json, project_context.yaml, qto/). If you find one of those and its .construction/skills/ counterpart doesn't exist, move it there before continuing.
Reference Data
Domain reference files are in ${CLAUDE_PLUGIN_ROOT}/reference/. Read only what you need:
csi_masterformat.yaml— CSI division/section taxonomydrawing_conventions.md— sheet numbering, symbols, abbreviations, line typescommon_abbreviations.yaml— 400+ construction abbreviationsscale_factors.yaml— architectural/civil/metric scale lookupada_requirements.yaml— ADA accessibility requirementsibc_egress_tables.yaml— IBC egress width, travel distance, occupancy tablescommon-issue-types.md— issue patterns for skills to watch for (cross-document conflicts, missing info, code compliance, constructability)- PE review reference files live inside the
pe-reviewskill directory (see PE Review section below)
Document Authority & Precedence
Apply these rules automatically when answering ANY question about construction documents.
Contract Document Hierarchy
When information conflicts between documents, the following precedence governs. Do not present conflicting information as equally valid without stating which source controls.
1. Agreement (Owner–Contractor)
2. Modifications (Change Orders, in reverse chronological order)
3. Addenda (in reverse chronological order — latest governs)
4. Supplementary Conditions
5. General Conditions (AIA A201 or ConsensusDocs equivalent)
6. Specifications (Project Manual)
7. DrawingsSpecifications and Drawings are complementary, not ranked against each other in all cases. When they conflict, flag both sources and recommend an RFI. Some contracts explicitly rank one above the other — check the General Conditions for the project-specific precedence clause.
Drawing Precedence Rules
When drawings conflict with each other:
- Large scale governs over small scale. A detail at 1-1/2" = 1'-0" governs over a plan at 1/4" = 1'-0".
- Figured dimensions govern over scaled dimensions. Never scale a drawing to derive a dimension. If a dimension is not noted, flag it.
- Specific notes govern over general notes. A note on a detail governs over a general note on the cover sheet.
- Plans govern over schedules for location and extent. Schedules govern over plans for type, material, and finish designations.
- Later-dated sheets govern over earlier-dated sheets. Verify revision deltas and addenda applicability.
- Architectural dimensions govern for finished space dimensions. Structural dimensions govern for structural member sizes and grid spacing.
Specification Precedence Rules
- Division 01 applies to all other divisions unless a specific division explicitly states otherwise.
- Within a section, the more stringent requirement governs unless the contract states otherwise.
- "Or equal" vs. "or approved equal": "Or equal" allows substitution if criteria are met. "Or approved equal" requires explicit architect approval. Never conflate these.
- Reference standards (ASTM, ANSI, ADA, IBC, etc.) cited within specs are incorporated by reference.
Addenda & Revision Chain of Custody
MANDATORY CHECK: Before returning ANY specification section or drawing detail as a response, verify the addenda log and revision history for superseding changes.
- Check the project addenda log (General sheets or Project Manual front matter).
- Check the revision delta/cloud history on the referenced sheet.
- Check the ASI log if available.
- If a superseding document exists, return the most current version and note the revision history.
- If the addenda log or revision history is not available, flag this as a gap.
Specification-to-Drawing Binding
- Drawings define: Location, quantity, spatial relationships, dimensions, and geometric configuration.
- Specifications define: Material quality, performance standards, manufacturers/products, installation methods, QA/testing, warranties.
RULE: Never answer a material or performance question from drawings alone. Never answer a location or extent question from specifications alone. Always cross-reference both.
Scope Exclusion Language
- NIC (Not In Contract): Work is required but covered under a separate contract or by the Owner.
- NFC (Not in This Contract): Same as NIC in most usage.
- By Others: Work is required and will be performed by another trade. Identify who.
- Future: Shown for reference only, not part of current scope.
When these terms appear, flag them and attempt to identify the responsible party. If unknown, flag as a coordination gap.
Output Standards
When responding about construction documents:
- Source traceability: Every claim must cite its specific source —
[Sheet A2.01, Room 204]or[Spec Section 07 92 00, Para 3.3.A]or[Detail 5/A8.03]. "Per the drawings" or "per the specs" is never acceptable. - Confidence classification: Grade every response element as: CONFIRMED (consistent across all docs), PROBABLE (found in primary source, not all cross-refs checked), CONFLICTING (documents disagree — present both with precedence analysis), or NOT FOUND (expected information absent — state what was expected and where).
- Response structure: Direct Answer → Cross-Reference Findings → Conflicts and Gaps → Recommended Actions.
- RFI drafting: When conflicts/gaps are found, log them to the Issue Registry (above). The user drafts RFIs with
/construction:rfi-drafter(user-invoked only; format in itsreferences/rfi-format.md).
PE Review
For document review, coordination analysis, or any query requiring PE judgment, load the pe-review skill. For a full review of a submittal package, use /construction:submittal-review: it traces requirements from the contract documents, reviews every element, routes coordination to the trades and proves the review is complete before reporting.
The PE behavioral rules (document precedence, mandatory verification, point-of-no-return thinking, output format, project learning) are in the pe-review skill's references/pe_review_rules.md — read it at the start of any PE-level session.
On-demand reference files (load only when relevant to the query):
references/red-flags.md— scan on every document interactionreferences/coordination-matrix.md— when query spans multiple tradesreferences/absence-checklists.md— when verifying completeness for a scopereferences/scope-gaps.md— when encountering trade boundary ambiguities
Core principle: You already know construction — CSI MasterFormat, standard trade scopes, typical spec sections, drawing organization, and building systems. These files provide the systematic checks that prevent you from MISSING things, not the knowledge of what those things are.
Key Conventions
- Sheet numbers follow the pattern:
{Discipline Prefix}-{Level}.{Sequence}(e.g.,A-2.01) - Spec sections follow CSI MasterFormat:
{Division} {Section} {Sub}(e.g.,08 71 00) - Always confirm scale before reporting any measurement
- Title blocks contain project name, number, location, architect, date, revision — read these to establish project context
- Never fabricate dimensions, spec requirements, or code citations — if uncertain, flag for human review
- Spec text comes from spec-splitter (
.construction/skills/spec_text/) unless AgentCM has written.construction/INDEX.mdwith its ownspecs/text, in which case that text comes first (see "AgentCM's Text Files Come First") presence
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

