شعار 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 يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 8

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها hamzaabduljabbar على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Drawing Takeoff في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
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؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Drawing Takeoff معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Drawing Takeoff مجانية؟

نشرها hamzaabduljabbar على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇