Logo: Drawing Takeoff

Drawing Takeoff

Communautéit
hamzaabduljabbar
drawing-takeoff

Turn a construction PDF drawing set into a structured, queryable SQLite database, then answer quantity/dimension questions from the database instead of re-reading the raw PDF every time. Use when a user wants to count objects (doors, windows, columns, fixtures), pull dimensions, do a takeoff, or ask repeated questions about a drawing set. Cuts token cost by 40-70x versus feeding raw drawings into the prompt, and tags every number with a confidence level and a sanity check.

Iwwersiicht

Editeurhamzaabduljabbar
RepositoryautoConst-drawing-takeoff-claude
Skill-Nummdrawing-takeoff
Stären
29
Forks
9
Matgeliwwert Dateien
8
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 8 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    hamzaabduljabbar huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Drawing Takeoff an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude.git \
  .claude/skills/drawing-takeoff
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Drawing Takeoff an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Drawing Takeoff automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Drawing Takeoff net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Drawing Takeoff

Contractors get flattened PDF drawings, not the BIM model. The structured data that was in the model gets thrown away on export — but a construction PDF still carries a hidden vector text layer with the real tags, schedules and dimensions. This skill reads that layer once, builds a SQLite database, and then answers questions from the database.

Why this beats re-reading the PDF each time

  • Reading raw drawing images into the prompt is the most expensive path and the least reliable — the model guesses from pixels and mis-weights detail buried in a huge context.
  • Reading the vector text is cheaper and more accurate.
  • Querying a finished database is cheapest of all and deterministic.

The reliability rule (do not skip)

Not every question is equally trustworthy. Say so, every time.

Question typeHow it's answeredConfidence
Counting objects (columns, doors, fixtures)reads schedule rows / tag callouts from the text layerhigh (schedule) / medium (tag)
Dimensions printed on the sheet (205'-6")reads the number the designer wrotehigh
Measuring an unlabeled distancescaled from pixels via the scale barlow — must pass a sanity check

Every measurement in the DB is tagged confidence and sanity_status. A run longer than the whole building footprint is flagged automatically. When you hand a number to the user, state its confidence and whether it passed sanity checks.

Workflow

Scripts live in scripts/. Run with the py launcher on Windows (or python3).

  1. Build the database once from the PDF (fast, ~seconds/100 pages):

    py scripts/takeoff.py build "SET.pdf" --db set.db

    Reads the vector text of every sheet: sheet numbers, disciplines, scales, printed dimensions (high confidence), and tag-callout counts (medium). It also writes drawing.md — a one-page index of every sheet and what's on it that sits on top of the database. Read drawing.md first on any question: it tells you which sheet holds the answer so you query straight to it.

  2. Add high-confidence schedule counts (opt-in second pass). Table detection is slow on large-format sheets (~30s/page), so point it only at the schedule sheets — either --auto (every page whose text says "schedule") or a page list you already know:

    py scripts/takeoff.py schedules "SET.pdf" --db set.db --pages 12,56,67
    py scripts/takeoff.py schedules "SET.pdf" --db set.db --auto

    Each schedule row becomes one high-confidence object (e.g. 147 doors from the door schedule, with their marks).

  3. Answer questions from the DB (cheap, repeatable):

    py scripts/takeoff.py query count                 # all object types
    py scripts/takeoff.py query count --type door     # one type, by confidence
    py scripts/takeoff.py query list  --type door     # each object + its attributes + sheet
    py scripts/takeoff.py query sheets                 # sheet index + scale + discipline
    py scripts/takeoff.py query dims --sheet A-101     # dimensions on a sheet
    py scripts/takeoff.py query flags                  # measurements that failed sanity
    py scripts/takeoff.py query sql "SELECT ..."       # any read-only SQL

    drawing.md is regenerated by build and schedules; recreate it any time with py scripts/takeoff.py summary --db set.db.

  4. Re-run cross-checks after tuning:

    py scripts/takeoff.py check --db set.db

How to use this as Claude

  • When asked a quantity/dimension question about a drawing set, check whether a .db already exists. If yes, read drawing.md first to locate the right sheet, then query the database — do not re-read the PDF.
  • If no DB exists, build one first (and run schedules for counts), then query.
  • For a count, report the number and its confidence and source (schedule vs tag). For a dimension, report the number, that it was read from an annotation (high) or scaled (low), and its sanity status.
  • Only open the raw PDF page when the DB genuinely can't answer (e.g. a visual detail with no text). Pull the single page, not the whole set.

Tuning per client (important, not fluff)

Tagging conventions differ between drawing sets. Object counting from plan callouts is only as good as the regexes in scripts/patterns.py:

  • TAG_PATTERNS — how doors/windows/columns/grids are labelled on plans.
  • SCHEDULE_KEYWORDS — header words that mark a table as a schedule.
  • DISCIPLINE_MAP / scale patterns — sheet-number and scale conventions.

Schedule row-counts and printed dimensions are reliable across sets. Tag-based plan counts depend entirely on TAG_PATTERNS matching your set's labels, so spot-check them against one sheet before trusting them on a bid.

See SETUP.md for install and a worked example.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Drawing Takeoff?

Turn a construction PDF drawing set into a structured, queryable SQLite database, then answer quantity/dimension questions from the database instead of re-reading the raw PDF every time. Use when a user wants to count objects (doors, windows, columns, fixtures), pull dimensions, do a takeoff, or ask repeated questions about a drawing set. Cuts token cost by 40-70x versus feeding raw drawings into the prompt, and tags every number with a confidence level and a sanity check.

Firwat Drawing Takeoff op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Drawing Takeoff besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Drawing Takeoff an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Drawing Takeoff benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Drawing Takeoff benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Drawing Takeoff domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Drawing Takeoff gratis?

hamzaabduljabbar huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇