3d Printのロゴ

3d Print

コミュニティ
EdwinjJ1
3d-print

Search-first 3D printing workflow — finds real specs before modeling, generates manifold-safe models for Bambu Studio / PrusaSlicer / Cura / Fusion 360

概要

公開者EdwinjJ1
リポジトリ3d-print-skill
スキル名3d-print
スター
29
フォーク
1
同梱ファイル
8
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

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

  • 8個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

3D Print Skill

Purpose

Generate physically accurate, print-ready 3D models without fabricating dimensions. Always search for real specs first. Never guess measurements.


Workflow

Step 1 — Search for real specs

First, try the local search script:

bash
python3 scripts/search_specs.py "Canon EF 40mm f2.8 lens outer diameter"

If the script returns no concrete millimeter values (status: no_instant_answer or vague text), do NOT stop. Use your own search_web tool to query the product's official datasheet, spec page, or Wikipedia. Extract the three key numbers: outer dimension, inner dimension, height. Only proceed to Step 2 once you have real numbers with a source you can cite.

All results are cached to specs_cache.json. On a cache hit, read the cached result and extract dimensions directly — no re-search needed.

Step 2 — Decide: preset or custom script

Check if the request matches a preset:

bash
python3 scripts/generate_model.py --preset cube     # 20mm calibration cube
python3 scripts/generate_model.py --preset tube     # hollow cylinder
python3 scripts/generate_model.py --preset bracket  # box with through-hole

If the request does NOT match a preset (e.g. "lens cap with snap-fit tabs", "hook with chamfer", "enclosure with lip", "multi-part assembly"), write a custom Python script on the fly. Use the pattern:

python
import sys
sys.path.insert(0, "scripts")
import manifold3d as m3d
from generate_model import export_3mf, export_stl
from pathlib import Path

# --- build geometry using manifold3d primitives ---
# See references/manifold-examples.md for API reference:
# extrusion, revolve, hull, chamfer, loft, snap-fit tabs, threads

body = m3d.Manifold.cylinder(height=8.0, radius_low=34.0, circular_segments=64)
inner = m3d.Manifold.cylinder(height=8.2, radius_low=33.0, circular_segments=64)
result = body - inner.translate([0, 0, -0.1])

# --- export ---
out = Path("output")
export_3mf(result, out / "lens_cap.3mf", name="lens_cap")
export_stl(result, out / "lens_cap.stl")

Save the script as output/<name>_build.py, run it, then proceed to Step 3. The export_3mf and export_stl functions from generate_model.py handle all file-format details — just call them with the final Manifold object.

Step 3 — Validate the mesh

bash
python3 scripts/validate_mesh.py output/lens_cap.stl

If validation fails, do NOT just run --fix and move on. Read the specific failing checks, trace them back to the geometry construction, and fix the root cause in the build script. Common fixes:

  • watertight: FAIL → a boolean operation left an open edge; add a small Z-offset (e.g. translate([0, 0, -0.1])) on the subtracted body so it protrudes past the face
  • positive_volume: FAIL → normals are inverted; the outer shell may be smaller than the inner — check radii
  • no_degenerate_faces: FAIL → a zero-thickness wall from a tight boolean; add at least 0.4mm clearance between faces

After fixing, re-run the build script and re-validate. Repeat until all critical checks pass.

Step 4 — Slice

Import .3mf into Bambu Studio / PrusaSlicer / Cura. Expected: 0 non-manifold errors, 0 open edges.


Spec Extraction from Cache

When specs_cache.json already contains an entry for the target part, load and extract dimensions directly instead of re-running search:

python
import json
cache = json.load(open("specs_cache.json"))
# find the entry whose query matches your part
# read result["answer"] or result["abstract"]
# parse out numeric values (mm) using your own reasoning
# map to: outer_diameter, inner_diameter, height, wall_thickness, etc.

Use your reasoning to map prose descriptions ("67.5mm filter thread") to the correct variable in the build script. Do not ask the user to do this mapping manually.


Reference Files

FileContents
references/formats.mdSTL vs 3MF vs STEP — when to use each
references/tolerances.mdFDM accuracy, shrinkage, fit clearances
references/design-rules.mdManifold rules, wall thickness, overhang limits
references/manifold-examples.mdmanifold3d API: extrusion, revolve, hull, chamfer, snap-fit, threads

Key Constraints

  • No fabricated dimensions — search first, use real numbers with a cited source
  • manifold3d for all geometry — guarantees no non-manifold edges
  • Custom script when no preset fits — generate_model.py is a reference, not a limit
  • 3MF primary output — ISO/IEC 25422:2025, manifold-safe, Bambu/Prusa/Cura compatible
  • Fix root cause on validation failure — do not rely on --fix alone

Common Errors

ErrorCauseFix
"244 non-manifold edges" in Bambunumpy-stl or bad booleanRegenerate with manifold3d
Hole too tightFDM shrinks holesAdd +0.1–0.2mm radius compensation (tolerances.md)
Part snaps during press fitNo interference margin0.1–0.3mm interference (tolerances.md)
Overhangs fail>45° without supportsRedesign or add supports in slicer
watertight: FAILSubtracted body flush with faceAdd Z-offset of 0.1mm on subtracted body
search_specs.py returns emptyDuckDuckGo Instant Answer has no entryUse search_web tool on manufacturer datasheet

Install

bash
ln -sf /path/to/3d-print-skill ~/.claude/skills/3d-print

Dependencies

bash
pip install manifold3d trimesh numpy requests

同梱ファイル

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

よくある質問

AIスキル「3d Print」では何ができますか?

Search-first 3D printing workflow — finds real specs before modeling, generates manifold-safe models for Bambu Studio / PrusaSlicer / Cura / Fusion 360

TypingMindで3d Printを使うメリットは何ですか?

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

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

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

3d Printを使えるAIモデルはどれですか?

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

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

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

AIスキル「3d Print」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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