Логотип Drawing Takeoff

Drawing Takeoff

Спільнота
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.

Огляд

Видавецьhamzaabduljabbar
РепозиторійautoConst-drawing-takeoff-claude
Назва навичкиdrawing-takeoff
Зірки
29
Форки
9
Файли в пакеті
8
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 8

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: hamzaabduljabbar. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Drawing Takeoff у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude.git \
  .claude/skills/drawing-takeoff
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Drawing Takeoff в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Drawing Takeoff, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Drawing Takeoff не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Drawing Takeoff у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Drawing Takeoff — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Drawing Takeoff у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Drawing Takeoff?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Drawing Takeoff?

Зі скількома забажаєте. У TypingMind ви можете використовувати Drawing Takeoff із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Drawing Takeoff?

На GitHub цю навичку публікує hamzaabduljabbar. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇