FreeCAD-MCP-For-YDGA: Command for Claude Code

.claude/commands/freecad-doc.md

freecad-doc is a command for Claude Code from Yaeshio/FreeCAD-MCP-For-YDGA. It costs 0 tokens per session (594 once invoked), scanned A, original, MIT.

A command that creates a Markdown design document from changes to Python scripts in a FreeCAD project. FreeCAD is software for designing 3D models with computer-aided design tools.

In plain words
What is it for?
Use it to document one or more FreeCAD projects after editing their scripts.
Why use it?
It turns script changes into a documented record of what the project contains and how it changed.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is Yaeshio/FreeCAD-MCP-For-YDGA's own configuration. It tells Claude Code how to work on FreeCAD-MCP-For-YDGA itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything FreeCAD-MCP-For-YDGA configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Yaeshio/FreeCAD-MCP-For-YDGA. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Yaeshio/FreeCAD-MCP-For-YDGA/main/.claude/commands/freecad-doc.md
Clone the repo
git clone --depth 1 https://github.com/Yaeshio/FreeCAD-MCP-For-YDGA

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for freecad-doc

README.md
[![agentmods](https://agentmods.dev/badge/commands/yaeshio/freecad-mcp-for-ydga/freecad-doc/github.svg)](https://agentmods.dev/commands/yaeshio/freecad-mcp-for-ydga/freecad-doc)
Your own site
<a href="https://agentmods.dev/commands/yaeshio/freecad-mcp-for-ydga/freecad-doc"><img src="https://agentmods.dev/badge/commands/yaeshio/freecad-mcp-for-ydga/freecad-doc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for freecad-doc

Your own site · 80×15
<a href="https://agentmods.dev/commands/yaeshio/freecad-mcp-for-ydga/freecad-doc"><img src="https://agentmods.dev/badge/commands/yaeshio/freecad-mcp-for-ydga/freecad-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 594 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00594
Opus 5 $0.00000 $0.00297
Sonnet 5 $0.00000 $0.00119
Haiku 4.5 $0.00000 $0.00059

Measured 11d ago against content hash 3ca511b8aeee, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

freecad-doc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/freecad-doc.md · 57 lines

What it actually says

Generate a design document from Python script changes in a FreeCAD project.

Usage: /freecad-doc [project_name]

Steps

  1. Determine the project name

    • If an argument was provided (e.g., /freecad-doc my_project), use that as the project name.
    • If no argument, list the directories under projects/ and ask the user which project to document, or document all projects.
  2. Get the Python script diff

    • Run: git diff HEAD~1 -- projects/{project_name}/scripts/
    • If the output is empty (no committed changes), run: git diff -- projects/{project_name}/scripts/
    • If still empty, run: git diff HEAD -- projects/{project_name}/scripts/ and check if there are any scripts at all with Get-ChildItem projects/{project_name}/scripts/
    • If there are scripts but no diff (first commit or untracked), read the script files directly instead.
  3. Analyze the diff and generate the design document

    Based on the diff (or the full script content if no diff), generate a Markdown design document that includes:

    Document structure:

    # {Project Name} 設計ドキュメント
    
    **作成日:** {YYYY-MM-DD}
    **ベースコミット:** {git short hash if available}
    
    ## 変更概要
    何が追加・変更・削除されたかを1〜3文で説明
    
    ## FreeCADオブジェクト一覧
    作成・変更されたオブジェクトをリスト形式で記載
    各オブジェクトに: 名前、種類、寸法/プロパティ、位置
    
    ## 設計の意図
    このスクリプトが何を作ろうとしているか、用途や目的
    
    ## パラメータ・定数
    スクリプト内の重要な数値やパラメータ(変数名と値)
    
    ## 依存関係・前提条件
    他のオブジェクトへの参照、必要なFreeCAD機能など
    
    ## 今後の変更候補
    改善可能な点や次のステップ
    
  4. Save the document

    • Determine today's date in YYYYMMDD format.
    • Save the document to: projects/{project_name}/docs/{YYYYMMDD}_design.md
    • Create the docs/ directory if it doesn't exist.
    • If a document for the same date already exists, append a suffix like _2, _3, etc.
  5. Confirm to the user

    • Report the path of the saved document.
    • Show a brief summary of what was documented.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 57 lines · 0 tokens per session scan A 3ca511b8aeee

Subscribe to this mod's changes

freecad-doc is a command published in the GitHub repository Yaeshio/FreeCAD-MCP-For-YDGA (0 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 594 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.