spec-splitter

spec-splitter is a skill for Claude Code, Codex from dleerdefi/claude-code-construction. It costs 57 tokens per session (2,201 once invoked), scanned A, original, MIT.

A document-processing tool that separates a bound project manual PDF into individual specification-section PDFs and extracts their text.

In plain words
What is it for?
Use it to split specification manuals, create an index, extract searchable text, and repair poor text extraction.
Why use it?
It avoids searching through one large manual and creates text files that other project tools can use.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/dleerdefi/claude-code-construction/spec-splitter
Any agent
npx skills add dleerdefi/claude-code-construction --skill spec-splitter
Clone the repo
git clone --depth 1 https://github.com/dleerdefi/claude-code-construction

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-splitter

README.md
[![agentmods](https://agentmods.dev/badge/skills/dleerdefi/claude-code-construction/spec-splitter.svg)](https://agentmods.dev/skills/dleerdefi/claude-code-construction/spec-splitter)
Your own site
<a href="https://agentmods.dev/skills/dleerdefi/claude-code-construction/spec-splitter"><img src="https://agentmods.dev/badge/skills/dleerdefi/claude-code-construction/spec-splitter.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,201 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00057 $0.02201
Opus 5 $0.00028 $0.01100
Sonnet 5 $0.00011 $0.00440
Haiku 4.5 $0.00006 $0.00220

Measured 4d ago against content hash 33e2172409ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spec-splitter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract_spec_text.py, scripts/split_spec_manual.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/spec-splitter/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spec Splitter

Two functions for specification processing:

  1. Split: Break a bound project manual PDF into individual spec section PDFs — navigable files the project team can use directly
  2. Extract: Pull searchable text from each section PDF into persistent .txt files — enables downstream skills (submittal-log-generator, spec-parser) to work from text without re-extracting from PDFs

Pipeline Position

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

Workflow

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)

Step 1: Check Current State

Check what already exists:

Split PDFs present?

  • Look for individual spec section PDFs with CSI section numbers in filenames (e.g., 03 30 00 - Cast-in-Place Concrete.pdf)
  • Check for spec_index.yaml
  • If found, report count and skip to Step 7 (text extraction)

Text already extracted?

  • Check .construction/spec_text/manifest.json
  • If manifest exists and covers all sections, report and skip Step 7

Step 2: Discover Specifications Directory

Determine where split spec PDFs should go. Search for an existing Specifications directory (case-insensitive):

  1. 02 - Specifications/ (numbered project folder convention)
  2. Specifications/
  3. Any folder with "specification" in the name

Output directory resolution:

  • If Specifications directory found → output to {specs_dir}/Specification Sections/
  • If not found → output to Specification Sections/ in project root

Read the full file on GitHub · 196 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 196 lines · 57 tokens per session scan A 33e2172409ff

Subscribe to this mod's changes

spec-splitter is a skill published in the GitHub repository dleerdefi/claude-code-construction (35 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 2,201 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nature-reader

Build full-paper Chinese-English side-by-side, figure/table/equation-aware, source-grounded Markdown readers for journal or conference papers from PDF, DOI, arXiv, publisher HTML, or pasted text. Use whenever the user asks to translate or read a paper, make 中英文对照/原文对照/全文翻译解读, render equations instead of exposing raw…

Yuan1z0825/nature-skills · 206 tokens

download-fulltext-pdf

当用户明确要求"下载文献全文"或"获取论文PDF"时使用。通过 DOI 号下载学术论文全文 PDF,支持 arXiv、Sci-Hub、Unpaywall、期刊官网等多源策略。⚠️ 不适用:用户只是想解析或处理已有的 PDF 文件(应使用 pdf skill)、只是想搜索论文信息而无需下载全文、没有提供 DOI/标题/BibTeX 任何标识符。.

huangwb8/skills · 105 tokens

document-parser

Parse and extract structured content from PDFs, Word documents, and other file formats. Converts documents into clean, machine-readable text for analysis, summarization, data extraction, and content processing workflows.

sandbaseai/sandbase-skills · 41 tokens

report-helper

当用户说「深度研究 X」「深入研究 X」或要求生成某产品、公司、概念、人物、产业链、政策、趋势的深度研究/发展研究报告时触发,自动进行联网搜索和研究,产出排版后的 PDF 文档,总字数通常 1-3 万字。 作者:嘉然 | GitHub: https://github.com/Jiaranbb/report-helper.

Jiaranbb/report-helper · 92 tokens

markdown-to-pdf

Convert Markdown (.md) files to a polished PDF with ALL images preserved and scaled to the page. Use whenever the user asks to "save this markdown as a PDF", "convert README.md to pdf", "export the .md as a pdf", "turn these notes/docs into a PDF", or wants a PDF deliverable of any GitHub-flavored Markdown document…

kennethkhoocy/applied-micro-skills · 188 tokens

download-gated-pdfs

Download the actual PDF binary from bot-gated sites (taxpolicycenter.org, urban.org, SSRN-hosted mirrors, think-tank/publisher sites) via the Wayback Machine id URL form. Use when: (1) curl/WebFetch of a .pdf URL returns HTML instead of a PDF even with a browser User-Agent, (2) pypdf fails with "invalid pdf header…

kennethkhoocy/applied-micro-skills · 137 tokens