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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 8個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    hamzaabduljabbarがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Drawing Takeoff」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude.git \
  .claude/skills/drawing-takeoff
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDrawing Takeoffを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にDrawing Takeoffを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Drawing Takeoffは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでDrawing Takeoffを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Drawing Takeoffはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDrawing Takeoffをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/hamzaabduljabbar/autoConst-drawing-takeoff-claude/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Drawing Takeoffを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Drawing Takeoffで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDrawing Takeoffを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Drawing Takeoff」は無料ですか?

hamzaabduljabbarがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇