spec-splitter — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited spec-splitter (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Two functions for specification processing:
.txt files — enables downstream skills (submittal-log-generator, spec-parser) 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.
Spec Split Progress:
- [ ] Step 1: Check 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
- [ ] Step 9: Write graph entry (AgentCM only)Check what already exists:
Split PDFs present?
03 30 00 - Cast-in-Place Concrete.pdf)spec_index.yamlText already extracted?
.construction/spec_text/manifest.jsonDetermine 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_SKILL_DIR}/../../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.After splitting (or if specs are already split), extract searchable text from every section:
${CLAUDE_SKILL_DIR}/../../bin/construction-python ${CLAUDE_SKILL_DIR}/scripts/extract_spec_text.py \
--specs-dir "{resolved_spec_sections_dir}" \
--output-dir ".construction/spec_text"The script:
.txt file per section to .construction/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, spec-parser) 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:
${CLAUDE_SKILL_DIR}/../../bin/construction-python ${CLAUDE_SKILL_DIR}/../../scripts/pdf/rasterize_page.py "{section.pdf}" {page} --dpi 200 --output 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/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):
{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/spec_text/
01_10_00.txt
03_30_00.txt
08_71_00.txt
...
manifest.jsonIf .construction/ directory exists, write a graph entry:
${CLAUDE_SKILL_DIR}/../../bin/construction-python ${CLAUDE_SKILL_DIR}/../../scripts/graph/write_finding.py \
--type "specs_split" \
--title "Spec sections split: {N} sections from {source_pdf}" \
--data '{"section_count": N, "source_pdf": "...", "output_dir": "...", "quality_summary": {"good": X, "degraded": Y, "poor": Z}}'If no .construction/ directory exists, skip this step — the spec_index.yaml and manifest.json files serve as the local record.
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 PDFsscripts/extract_spec_text.py — extract searchable text from section PDFs../../scripts/pdf/rasterize_page.py — rasterize PDF pages for vision fallback../../scripts/graph/write_finding.py — graph entry (Step 9)~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.