ifoxcad

ifoxcad is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 44 tokens per session (4,351 once invoked), scanned A, original, MIT.

A .NET/C# framework for building plugins that extend AutoCAD and compatible CAD programs. It provides wrappers for drawing objects, layers, blocks, commands, geometry, and database transactions.

In plain words
What is it for?
Creating AutoCAD plugins that draw entities, manage layers and blocks, register commands, handle user selections, and transform coordinates.
Why use it?
It reduces the repetitive code needed to work safely with CAD databases and user commands.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Creating AutoCAD plugins that draw entities, manage layers and blocks, register commands, handle user selections, and transform coordinates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/znlgis/opengis-skills/ifoxcad
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add znlgis/opengis-skills --skill ifoxcad
Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills

Made for: Claude Code, Codex.

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 ifoxcad

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/ifoxcad/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/ifoxcad)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/ifoxcad"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/ifoxcad/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 ifoxcad

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/ifoxcad"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/ifoxcad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,351 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.04351
Opus 5.5 $0.00018 $0.01740
Sonnet 5.5 $0.00009 $0.00870
Haiku 4.5 $0.00004 $0.00435

Measured 12d ago against content hash c41066f7637e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ifoxcad 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 12d 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.

cad/ifoxcad/SKILL.md · 347 lines

How it starts

The opening of the file, as written. The whole thing — 347 lines — stays where its author put it; the contents beside it link to each section on GitHub.

项目地址: https://gitee.com/inspirefunction/ifoxcad

GitHub 镜像: https://github.com/inspirefunction/ifoxcad

NuGet: IFox.CAD.ACAD(AutoCAD)|IFox.CAD.ZCAD(中望)|IFox.CAD.GCAD(浩辰)

许可证: MIT

版本: 仓库默认分支为 v0.9(src/Directory.Build.props 中 <Version>0.9.9.1</Version>),NuGet 上 IFox.CAD.ACAD / IFox.CAD.ZCAD 已发到 0.9.12;旧包 IFoxCAD.Cad 停在 0.4.0,GitHub tag 只到 v0.7.3-beta8——tag 不是 v0.9 线的发布信号,以默认分支与 NuGet 版本为准

概述

IFoxCAD 通过统一的事务封装和大量扩展方法,让 AutoCAD .NET API 的开发体验大幅提升:

  • 统一事务:using var tr = new DBTrans();
  • 链式扩展:tr.CurrentSpace.AddEntity(line, circle, ...) 一次加入多个实体
  • 多 CAD 兼容:src/ 下按平台分工程(IFoxCAD.AutoCad / IFoxCAD.ZwCad / IFoxCAD.GstarCad),共享代码在 CADShared,平台差异靠各自工程的 GlobalUsings.cs 与少量条件编译消化
  • 常用工具:选择集、用户交互、图层、块与属性、文字、标注、坐标变换、几何
  • 符号表泛型封装:tr.LayerTable.AddOrChange("name", l => ...)
  • 菜单与命令:[CommandMethod] 声明式注册

安装

NuGet(推荐)

dotnet add package IFox.CAD.ACAD    # AutoCAD
dotnet add package IFox.CAD.ZCAD    # 中望CAD
dotnet add package IFox.CAD.GCAD    # 浩辰CAD

旧包名 IFoxCAD.Cad 对应 0.7 及更早版本,0.9 线已按平台拆包。

CAD 依赖 DLL 推荐用官方 NuGet 包,带 ExcludeAssets="runtime"(等价于「Copy Local=false」,不把 CAD 程序集拷进输出目录):

<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-windows'">
  <PackageReference Include="AutoCAD.NET" Version="25.0.1" ExcludeAssets="runtime" />
</ItemGroup>

仓库自身的组合:AutoCAD 目标 net8.0-windows(AutoCAD.NET 25.0.1,条件编译符号 acad;a2025)与 net48(AutoCAD.NET 20.0.0,符号 acad;a2024);中望目标 net48;net472(符号 zcad;z2025)。

项目模板

参考官方仓库工程结构:https://gitee.com/inspirefunction/ifoxcad


项目骨架

using IFoxCAD.Cad;
using Autodesk.AutoCAD.DatabaseServices;
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;

[assembly: ExtensionApplication(typeof(MyApp))]
[assembly: CommandClass(typeof(MyCommands))]

public class MyApp : IExtensionApplication
{
    public void Initialize() { /* 加载时执行 */ }
    public void Terminate()  { /* 卸载时执行 */ }
}

Read the full file on GitHub · 347 lines

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. 12d ago Changed · +41 lines c41066f7637e
  2. 1mo ago Changed e1e7f18f397a
  3. 1mo ago Changed e1c25ca813f3
  4. 1mo ago Changed bddcb33f5d19
  5. 1mo ago First seen · 306 lines · 44 tokens per session scan A f58a504b9ab7

Subscribe to this mod's changes

ifoxcad is a skill published in the GitHub repository znlgis/opengis-skills (75 stars, last pushed 7d ago), licensed MIT. It adds 44 tokens to every session and 4,351 once invoked, about $0.0002 per session on Opus 5.5. 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-30.

Related

Other skills, from other repositories

solidworks-automation

An automation skill for SolidWorks, a computer-aided design program used to create 3D parts, assemblies, and engineering drawings. It covers verified CAD operations and marks less-tested operations for human review.

wzyn20051216/solidworks-automation-skill · 56 tokens

autocad-automation

An automation skill for AutoCAD, a computer-aided design program commonly used for 2D technical drawings. It works with drawing formats such as DWG and DXF and can use Windows automation or other supported scripting routes.

wzyn20051216/solidworks-automation-skill · 151 tokens

solidworks-fillet-chamfer-cnc

A SolidWorks skill for creating CNC parts with multiple rounded edges and chamfers, which are angled or softened edges used in manufacturing. It includes parameter checks, edge selection, and evidence after rebuilding the model.

wzyn20051216/solidworks-automation-skill · 107 tokens

solidworks-threaded-holes

A SolidWorks skill for creating and checking ISO metric internal threaded holes, such as M6, in new parts. It covers supported blind and through holes, chamfers, thread direction, and delivery evidence.

wzyn20051216/solidworks-automation-skill · 150 tokens

solidworks-vibecad

A planning guide for turning natural-language mechanical design requests into structured, parameterized SolidWorks plans that can be reviewed before execution.

wzyn20051216/solidworks-automation-skill · 96 tokens

solidworks-engineering-drawing

A SolidWorks skill for creating and reviewing engineering drawings, which are manufacturing documents showing views, measurements, holes, parts lists, and title-block information.

wzyn20051216/solidworks-automation-skill · 58 tokens