Construction Management Skills for Claude Code

SkillDocs & knowledge

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'.

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Then ask your AI: use the Construction Management Skills for Claude Code skill

What this skill tells your AI

The instructions your AI receives, as published by dleerdefi/claude-code-construction in skills/construction-guide/SKILL.md and read by ahel’s review.

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.

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/ directory), 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

  1. 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.
  2. NEVER read ocr_output.json in full. These are raw OCR dumps (300KB+ per sheet). Use the navigation graph for structured data. Only reference ocr_output.json if you need raw text for a specific element already identified by the graph.
  3. Graph first, vision second. When AgentCM is present (.construction/project.yaml exists): 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.

The .construction/ directory 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 retention

NavigationGraph 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[] with label, 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)

  1. Read .construction/database.yaml for connection info (host, port, database, user, project_id, api_url)
  2. Read .construction/db_schema.yaml for available tables, views, and write endpoints
  3. Reads: {query_command} -c "SQL QUERY" (where query_command is from database.yaml)
  4. Writes: curl -X POST "{api_url}/projects/{project_id}/{endpoint}"

Extraction file usage (per-sheet files in extractions/{sheet_number}/):

FileSizeWhen to Read
groups.json2-20KBGroup-level metadata not in navigation graph
viewports.json1-10KBView boundaries for targeted cropping
links.json1-5KBCross-sheet reference data
ocr_output.json100-400KBRarely. 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: Use psql with the agentcm_reader role. Prefer views over raw table queries:

  • v_room_profile — all data for a room across sheets and schedules
  • v_sheet_contents — all elements on a given sheet
  • v_schedule_pivot — schedule data in readable tabular form
  • v_cross_references — sheet-to-sheet reference map
  • v_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. Run /sheet-splitter first to split bound drawing sets into individual sheet PDFs.


Drawing Types

TypeSheetsWhat to look for
Floor plansA-1.XX, A-2.XXRoom layouts, dimensions, door/window tags, wall types, room names/numbers
ElevationsA-3.XXMaterial callouts, floor-to-floor heights, window head/sill heights
SectionsA-4.XX, S-4.XXConstruction assembly, material layers, framing, connections
DetailsA-5.XX–A-9.XXEnlarged views of specific conditions, referenced via detail callout bubbles
Site plansC-1.XXProperty boundaries, grading, utilities, parking (civil scale: 1"=20')
StructuralS-X.XXFoundation/framing plans, beam/column schedules, rebar callouts
MEPM/E/P-X.XXDuctwork, 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:

  1. Sheet lookup — find the sheet in sheet_index.yaml → get title, discipline, scale, pageIndex, filePath
  2. Graph query — read query_command from .construction/database.yaml, then query:
    {query_command} -c "SELECT * FROM v_sheet_contents WHERE sheet_number = '{sheet}'"
    
    For detailed data, also query:
    • v_room_profile — rooms with schedule data
    • v_cross_references — callout edges for this sheet
    • v_schedule_pivot — schedule data if sheet contains schedules
  3. 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}" {pageIndex} --dpi 200 --output sheet.png
    
  4. 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 boundingRegion for 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)
  5. 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)

  1. Rasterize the sheet at 200 DPI
  2. Read title block — confirm sheet title, scale, revision, date
  3. Orient — identify north arrow, grid lines, drawing boundaries
  4. Scan full page — get high-level understanding
  5. Target extraction — crop and zoom into areas of interest
  6. 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: Use schedule-extractor skill for structured extraction.

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:

  1. Query calloutEdges[] filtered by sourceSheetId
  2. If resolved: true → look up destination sheet, find target view in views[] by detailNumber, use its centroid and boundingRegion to crop
  3. If resolved: false → destination sheet number known but unmatched. Try partial matching (e.g., "C161" → "C-1.61"), then verify with vision.

Without AgentCM:

  1. Read the reference symbol/text on the source sheet
  2. Parse target: sheet number + detail/section number
  3. Find target sheet (sheet index or PDF scan)
  4. 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:

  1. .construction/CLAUDE.md — full project navigation guide
  2. .construction/project.yaml — project name, number, location
  3. .construction/index/sheet_index.yaml — all sheets with metadata
  4. Query database (read query_command from .construction/database.yaml):
    {query_command} -c "SELECT (SELECT COUNT(*) FROM sheets WHERE project_id = '{id}') AS sheets, (SELECT COUNT(*) FROM rooms WHERE project_id = '{id}') AS rooms"
    
    Fallback: .construction/graph/graph_summary.yaml if database unavailable

Present the summary immediately. Also inventory non-drawing files that AgentCM doesn't process: specifications, submittals, RFIs, correspondence.

No AgentCM

  1. Scan the project directory for PDFs, specs, drawings
  2. Read a title block for project context (name, number, location, architect, date/phase)
  3. Classify documents: Drawings (sheet numbers, title blocks), Specifications (CSI sections), Schedules (Excel/CSV), Submittals, RFIs, Other (correspondence, photos, reports)
  4. Report: project info, data mode, drawing count by discipline, spec sections, other docs, suggested next actions

Skills

Critical Skills (invocable — produce deliverables)

SkillWhen to useOutput
submittal-log-generatorExtract submittal requirements from specs (DRAFT — engineer review required)Excel register
schedule-extractorExtract structured schedule data from drawings or specsExcel workbook
spec-splitterSplit bound project manual into individual spec section PDFsSection PDFs + index
sheet-splitterSplit bound drawing set into individual sheet PDFsSheet PDFs + sheet_index.yaml
bid-tabulatorTabulate multiple subcontractor bids into comparison spreadsheet. Input: bid PDFs.Excel workbook
bid-evaluatorEvaluate tabulated bids against construction documents — scope gaps, risk scoring, recommendation. Input: bid-tabulator output + specs/drawings.Excel workbook + memo
code-researcherDeep research on building codes, standards, and jurisdiction requirementsMarkdown + YAML report
subcontract-writerGenerate scope-specific subcontract from firm's templateWord document (.docx)
rfi-drafterDraft formal RFIs from identified issues; manage ambient issue detection registryWord document (.docx) or PDF
viewport-highlighterAuto-identify and highlight viewports on drawing sheets using vision — titles, detail numbers, scales, typesViewports via API + marked-up PNGs
tag-audit-and-takeoffCount-based QTO and tag completeness auditing — identifies tagged elements using vision + OCRQTO JSON + marked-up PNGs

Cross-Skill Infrastructure

Issue Registry — Any skill can log potential issues to .construction/skills/issues/ via ${CLAUDE_PLUGIN_ROOT}/scripts/issue_manager.py. Issues accumulate during normal skill work (pe-review, tag-audit-and-takeoff, spec-parser, etc.) and are reviewed/escalated by the user through rfi-drafter. No skill writes an RFI directly — only issue records.

Behavioral Skills (setup / orientation)

SkillWhen to useOutput
project-setupSet up a construction project after /init — inventories files, classifies documents, appends construction context to project CLAUDE.mdAmended CLAUDE.md

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.png

Crop 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.png

Extract 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 and manifest.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 via write_finding.py), the database and the API — are written only when AgentCM is present (.construction/project.yaml exists). 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 taxonomy
  • drawing_conventions.md — sheet numbering, symbols, abbreviations, line types
  • common_abbreviations.yaml — 400+ construction abbreviations
  • scale_factors.yaml — architectural/civil/metric scale lookup
  • ada_requirements.yaml — ADA accessibility requirements
  • ibc_egress_tables.yaml — IBC egress width, travel distance, occupancy tables
  • common-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-review skill 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. Drawings

Specifications 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.

  1. Check the project addenda log (General sheets or Project Manual front matter).
  2. Check the revision delta/cloud history on the referenced sheet.
  3. Check the ASI log if available.
  4. If a superseding document exists, return the most current version and note the revision history.
  5. 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:

Shortened here. Read the whole file on GitHub.

Signals

GitHub stars
43
Forks
13
Last commit
Oct 2026
Advanced
Item type
skill
Key
construction-guide
Source
github.com/dleerdefi/claude-code-construction