Evaluate tabulated subcontractor bids against specs and drawings — scope gap analysis, exclusion risk scoring, award recommendation. Triggers: 'evaluate bids', 'bid evaluation', 'lowest responsible bidder'.
中文简介正在准备中。当前显示原文说明。
Split a bound project manual PDF into individual spec section PDFs and extract searchable text. Triggers: 'split specs', 'break up the project manual', 'separate spec sections', 'extract spec text'. Prerequisite for /submittal-log-generator.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Two functions for specification processing:
.txt files — enables downstream skills (submittal-log-generator, submittal-review, bid-evaluator) to work from text without re-extracting from PDFsRun after /project-setup identifies bound spec manuals. Produces split PDFs, spec_index.yaml, and extracted text consumed by /submittal-log-generator and /code-researcher.
Either function can run independently. For example, specs may already be split but text has not yet been extracted.
In an AgentCM project, AgentCM has already read the manuals: each section's text is in .construction/specs/, listed in .construction/INDEX.md. There this skill does only what AgentCM could not (Step 1).
Spec Split Progress:
- [ ] Step 1: Check the mode, then the current state (split? text extracted?)
- [ ] Step 2: Discover Specifications directory
- [ ] Step 3: Find ALL spec PDFs (bound manuals)
- [ ] Step 4-5: Split PDF into individual section files
- [ ] Step 6: Write spec index
- [ ] Step 7: Extract text from all sections
- [ ] Step 8: Repair degraded/poor text quality
Read .construction/project.yaml first.
AgentCM mode (the file exists). AgentCM has read the project manuals' text layer: every section it found has its text in .construction/specs/<section>.txt (08-71-00.txt for 08 71 00), each line prefixed with its page. Never split or extract a manual AgentCM has read; the other skills read specs/ here. Read .construction/INDEX.md; if it is missing, say that AgentCM has not written its index for this folder, and stop.
## Specification sections (N), a table of Section | Title | Division | Agent file | PDF | Pages: report how many sections AgentCM holds, by division and manual, and that their text is in .construction/specs/.## Spec manuals not read (N), when present, a table of PDF | Pages | Why (a scan with no text layer, or no SECTION headings): for each manual listed there, and only those, run Steps 2–8 for that manual alone, and say so: "AgentCM could not read {PDF} ({Why}), so I am splitting and extracting it here. Its section PDFs go to the specs folder, which AgentCM's Rescan will index; its text goes to .construction/skills/spec_text/." Its boundaries come from Boundaries without SECTION headings: what AgentCM reports means the split script cannot find them itself.Then stop. Nothing else in this skill runs in AgentCM mode.
Flat-file mode (no .construction/project.yaml). Check what already exists:
Split PDFs present?
03 30 00 - Cast-in-Place Concrete.pdf)spec_index.yamlText already extracted?
.construction/skills/spec_text/manifest.json. Older versions wrote it to .construction/spec_text/: if only that exists, copy the folder to .construction/skills/spec_text/ and leave the old one as it isDetermine where split spec PDFs should go. Search for an existing Specifications directory (case-insensitive):
02 - Specifications/ (numbered project folder convention)Specifications/Output directory resolution:
{specs_dir}/Specification Sections/Specification Sections/ in project rootSearch the project directory for ALL PDFs that are specifications. Many projects have multiple spec PDFs:
Search in:
Process EACH PDF found. All split sections go to the same output directory.
If the user specifies a single file (/spec-splitter path/to/specific-volume.pdf), process only that file.
Run the split script with the resolved output directory:
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_SKILL_DIR}/scripts/split_spec_manual.py" \
"{project_manual.pdf}" \
--output-dir "{resolved_spec_sections_dir}"
The script:
SECTION XX XX XX headers to find exact page boundaries — this is the primary method and does NOT depend on a Table of Contents{section_number} - {SECTION TITLE}.pdfspec_index.yaml with section metadataToC edge cases handled:
SECTION headers. Titles are extracted directly from each section's title page. The split still succeeds — titles may be slightly less polished than ToC-enriched versions.If the script stops with No SECTION headers found (a scan, or headings in another form), find the boundaries as Boundaries without SECTION headings says, and split from a sections file.
After splitting (or if specs are already split), extract searchable text from every section:
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_SKILL_DIR}/scripts/extract_spec_text.py" \
--specs-dir "{resolved_spec_sections_dir}" \
--output-dir ".construction/skills/spec_text"
The script:
.txt file per section to .construction/skills/spec_text/manifest.json with quality metadata per section.txt files (use --force to re-extract all)After extraction, check manifest.json for sections rated DEGRADED or POOR. Spec-splitter owns text quality — downstream skills (submittal-log-generator, submittal-review, bid-evaluator) expect clean, repaired text.
For DEGRADED sections — attempt repair:
.txt file and identify failure modes from the manifesté → é, ligature breakage).txt file and update the manifest with "repair_attempted": true and the new quality rating.For POOR sections — vision extraction fallback. A scanned manual is POOR on every page, and this reads every page of it: before reading the pages of a scan, tell the PE how many pages that is and the rough cost (each page image at 200 DPI is about 1,600 tokens), offer to extract only the sections they need, and wait for a yes.
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/rasterize_page.py" "{section.pdf}" {page} --dpi 200 --output ".construction/skills/spec-splitter/spec_page.png"
Extract all text from this construction specification page.
Preserve paragraph structure, numbering (A, B, C, 1, 2, 3),
and indentation hierarchy. This is CSI-formatted specification
section [SECTION NUMBER] - [SECTION TITLE].
.construction/skills/spec_text/, overwriting the POOR pdfplumber output"extraction_method": "vision", "repair_attempted": true, new quality ratingKnown abbreviation preservation list (do not merge these during repair):
A sections file tells the split script exactly where each section is, so it reads nothing from the pages. It is tab-separated text, the same format the script's docstring defines:
# manual: 02 - Specifications/Project Manual VOL-2.pdf
# pages: 1-based
section title first last
08 71 00 DOOR HARDWARE 412 431
09 65 13 RESILIENT BASE AND ACCESSORIES 455 460
# manual: names the PDF being split; # pages: 1-based states the page base. Page 1 is the manual's first page, as INDEX.md and specs/ give pages; convert nothing..construction/skills/spec-splitter/sections-{manual file stem}.tsv. It is a data file, not a script.Split from it:
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_SKILL_DIR}/scripts/split_spec_manual.py" \
"{manual.pdf}" \
--sections-file ".construction/skills/spec-splitter/sections-{manual file stem}.tsv" \
--output-dir "{resolved_spec_sections_dir}"
AgentCM mode, only when the PE asks for section PDFs of a manual AgentCM has read. Build the sections file from the rows of INDEX.md's ## Specification sections table whose PDF is that manual: Section, Title and Pages (412-431, or 412 for a one-page section; 1-based). Take only the sections the PE asked for, or all of them if they asked for all. A row with no Pages cannot be split from the index: list it for the PE and leave it out. Read no pages and use no vision. After the split, tell the PE where the files are and that AgentCM's Rescan will index them.
For a manual AgentCM lists as not read, or one the split script found no headings in. First see what the manual holds:
"${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/pdf_text.py" "{manual.pdf}" --summary
SECTION 08710, or only footers like 08 71 00 - 1): dump the text with pdf_text.py "{manual.pdf}" --pages {range} and find each section's first page from its heading, its footer's page 1 or the Table of Contents."${CLAUDE_PLUGIN_ROOT}/bin/construction-python" "${CLAUDE_PLUGIN_ROOT}/scripts/pdf/rasterize_page.py" "{manual.pdf}" {page} --dpi 100 --crop 0,90,100,100 --output ".construction/skills/spec-splitter/strip.png"
--crop is x1,y1,x2,y2 in percent of the page (0,0,100,8 for the header). A section starts on its page 1 (08 71 00 - 1), which also carries its title.Write what you found as a sections file, show the PE the list, and split from it.
{Specifications dir}/Specification Sections/
01 10 00 - SUMMARY.pdf
03 30 00 - CAST-IN-PLACE CONCRETE.pdf
08 71 00 - DOOR HARDWARE.pdf
...
spec_index.yaml
.construction/skills/spec_text/
01_10_00.txt
03_30_00.txt
08_71_00.txt
...
manifest.json
.construction/skills/spec-splitter/
sections-{manual file stem}.tsv ← only when a split used a sections file
The spec_index.yaml and manifest.json files are the record of the split and the extraction.
Report to user: number of sections split, total pages, text extraction quality summary (GOOD/DEGRADED/POOR counts), and output locations.
Never overwrite existing split spec PDFs or extracted text. The split script skips existing sections. Text extraction overwrites only with --force. The spec_index.yaml merge is additive.
Allowed scripts — exhaustive list. Only execute these scripts during this skill:
scripts/split_spec_manual.py — split bound PDF into per-section PDFs, from SECTION headings or a sections filescripts/extract_spec_text.py — extract searchable text from section PDFs${CLAUDE_PLUGIN_ROOT}/scripts/pdf/pdf_text.py — see which pages have a text layer, and read it, to find section boundaries${CLAUDE_PLUGIN_ROOT}/scripts/pdf/rasterize_page.py — rasterize pages for the vision fallback and for a scan's footer strips${CLAUDE_PLUGIN_ROOT}/scripts/issue_manager.py — log a referenced spec section that does not exist to the Issue Registry (command and severity mapping in construction-guide)还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Evaluate tabulated subcontractor bids against specs and drawings — scope gap analysis, exclusion risk scoring, award recommendation. Triggers: 'evaluate bids', 'bid evaluation', 'lowest responsible bidder'.
中文简介正在准备中。当前显示原文说明。
Extract data from subcontractor bid PDFs and produce a comparison spreadsheet. Feeds into /bid-evaluator. Triggers: 'tabulate bids', 'bid comparison', 'compare bids', 'buyout analysis', 'bid tab'.
中文简介正在准备中。当前显示原文说明。
Researches which building codes, accessibility standards and authority requirements (health department, fire marshal, state agency) apply to a scope or spec section, and which the project documents miss. Use for 'what codes apply', 'code check', 'ADA requirements', 'egress', 'health department'. Not for reading what the drawings or specs say (construction-guide).
中文简介正在准备中。当前显示原文说明。
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'.
中文简介正在准备中。当前显示原文说明。
Checks construction drawings and specs for what's missing, cross-trade coordination conflicts and scope gaps, with PE judgment. Use for 'what's missing', 'check coordination', 'scope gap', or researching an RFI before answering it. Not for drafting RFIs (rfi-drafter), code research (code-researcher) or reviewing a submittal package (the user runs /construction:submittal-review).
中文简介正在准备中。当前显示原文说明。
Set up a construction project — inventories files, classifies drawings/specs/schedules/registers and appends construction context to CLAUDE.md; in an AgentCM project, prints AgentCM's orientation instead. Triggers: 'set up project', 'construction setup', 'classify documents'.
中文简介正在准备中。当前显示原文说明。