Drawing Takeoff logo

Drawing Takeoff

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

Overview

Publisherhamzaabduljabbar
RepositoryautoConst-drawing-takeoff-claude
Skill namedrawing-takeoff
Stars
29
Forks
9
Bundled files
8
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 8 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by hamzaabduljabbar on GitHub. Read the source before you install it.

Installation

Install the Drawing Takeoff AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude.git \
  .claude/skills/drawing-takeoff
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Drawing Takeoff in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Drawing Takeoff on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Drawing Takeoff is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Drawing Takeoff AI skill do?

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.

Why use Drawing Takeoff on TypingMind?

Because you install it once and use it with any model. Drawing Takeoff is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Drawing Takeoff in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Drawing Takeoff?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Drawing Takeoff?

As many as you like. As long as a model supports skills, you can use Drawing Takeoff with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Drawing Takeoff AI skill free?

It is published on GitHub by hamzaabduljabbar. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇