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.
npx agentmods add skills/nijingzhe/simplecadapi/simplecadapinpx skills add NiJingzhe/SimpleCADAPI --skill simplecadapigit clone --depth 1 https://github.com/NiJingzhe/SimpleCADAPIWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00025 | $0.02544 |
| Opus 5 | $0.00013 | $0.01272 |
| Sonnet 5 | $0.00005 | $0.00509 |
| Haiku 4.5 | $0.00003 | $0.00254 |
Grade A, and why
simplecadapi 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SimpleCAD SDK Skill
Philosophy
- This is a thin SDK reference skill: docs only.
- SDK source code is not bundled in this skill.
Working From Repo Root
- Tool calls run from the repo root.
- Use one explicit skill root:
./skills/simplecadapi/or./workspace/skills/simplecadapi/. - Main doc paths:
<skill_root>/SKILL.md<skill_root>/references/docs/api/README.md<skill_root>/references/docs/api/<api_name>.md<skill_root>/references/docs/stdlib/README.md<skill_root>/references/docs/stdlib/<stdlib_api_name>.md<skill_root>/references/docs/core/<type_name>.md<skill_root>/references/SDK_OVERVIEW.md<skill_root>/references/SDK_SURFACES.md<skill_root>/references/MODELING_WORKFLOWS.md<skill_root>/references/inspect/brep-reverse-engineering.md
MUST Requirements
- Read
SKILL.md,references/docs/api/README.md, andreferences/docs/stdlib/README.mdbefore choosing APIs. - Read the exact API Markdown page for every API you use.
- Read the needed
core/or exactapi/docs when an API needsEdge,Face,Wire,Solid,GraphSession,Sketch, or expression types. - Prefer the standard parts library for standard parts before hand-modeling with core geometry APIs.
- Follow the documented API signatures exactly.
- When calling any SimpleCAD public API or standard-library function, use keyword arguments for every documented parameter; do not use positional arguments.
- Use one
@modelentry point for replayable tasks,@requires_sessionfor child builders,capture_result(...)for explicit outputs, and the returnedModelResultfor model/session JSON and replay. - Use geometry APIs for integrated parts: profiles, features, booleans, transforms, tagging, QL inspection, serialization, and exports.
- Use tags consistently through
apply_tag(shape=..., tag=...)andlist_tags(shape=...); do not call shape member tag mutators. - Build and validate incrementally. Each step MUST include a small grounding
print, and grounding MUST use QL where possible. - For inspection/debugging, query geometry with QL and print only the queried facts you need; do not print whole solids or full model objects.
- Boolean operations return a single
Solid. - Use
union_rsolid(...)for boolean union. - For automated example/test harnesses, prefer the repo-local examples in
examples/and avoid scratch scripts insandbox/. - If union cannot produce exactly one merged solid, it fails explicitly; do not silently pick one piece.
- If a single merged solid is required and union fails, slightly adjust part placement so intended bodies overlap/embed, then recompute.
- If a task depends on model replay or interchange, prefer
ModelResult.model_jsonorexport_model_json()output over hand-written payloads. - For STEP/BREP inspection or target/candidate comparison, read
references/inspect/brep-reverse-engineering.mdcompletely. - Use
simplecadapi.inspect.breponly outsideGraphSessionand@model; inspection functions are diagnostic tools, not modeling operations. - Reverse engineering is case-by-case: the built-in inspection primitives are tools, not a pipeline — write ad hoc inspection code for the specific model when built-ins do not answer the question. Acceptance hierarchy: BREP topology identity is the best endpoint (complete reverse engineering); identical structure with minor float-level parameter drift from export is acceptable; a visually-close but structurally different result is a valid stop only when no better feature operation order/combination exists or the SDK lacks the required operation type.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/docs/api/add_arc_rsketch.md 383 B
- references/docs/api/add_belt_constraint_rassembly.md 530 B
- references/docs/api/add_bspline_rsketch.md 711 B
- references/docs/api/add_circle_rsketch.md 388 B
- references/docs/api/add_component_rassembly.md 412 B
- references/docs/api/add_connector_rassembly.md 326 B
- references/docs/api/add_connector_rpart.md 297 B
- references/docs/api/add_fixed_constraint_rassembly.md 423 B
- references/docs/api/add_gear_constraint_rassembly.md 515 B
- references/docs/api/add_line_rsketch.md 387 B
- references/docs/api/add_point_rsketch.md 331 B
- references/docs/api/add_prismatic_constraint_rassembly.md 520 B
- references/docs/api/add_rack_pinion_constraint_rassembly.md 510 B
- references/docs/api/add_revolute_constraint_rassembly.md 516 B
- references/docs/api/analyze_tolerance.md 871 B
- references/docs/api/and_.md 261 B
- references/docs/api/apply_tag_rselection.md 509 B
- references/docs/api/apply_tag.md 278 B
- references/docs/api/Assembly.md 452 B
- references/docs/api/assign_material_rpart.md 305 B
- references/docs/api/BRepComparison.md 683 B
- references/docs/api/BRepEntityError.md 352 B
- references/docs/api/BRepInspection.md 620 B
- references/docs/api/BRepModel.md 544 B
- references/docs/api/BSplineFitResult.md 659 B
- references/docs/api/canonical_unit_for_dimension.md 398 B
- references/docs/api/capture_result.md 271 B
- references/docs/api/chamfer_rsolid.md 425 B
- references/docs/api/check_tolerance.md 648 B
- references/docs/api/clear_step_model_cache_rnone.md 371 B
- references/docs/api/compare_boundary_distance_rdescriptor.md 661 B
- references/docs/api/compare_entities_rdescriptor.md 499 B
- references/docs/api/compare_global_properties_rdescriptor.md 478 B
- references/docs/api/compare_inspections_rinspectionsummarycomparison.md 535 B
- references/docs/api/compare_material_rdescriptor.md 569 B
- references/docs/api/compare_model_to_inspection_rentityinspectionparity.md 600 B
- references/docs/api/compare_sections_rdescriptor.md 569 B
- references/docs/api/compare_shape_slices_rslicecomparison.md 947 B
- references/docs/api/compare_shapes_rbrepcomparison.md 858 B
- references/docs/api/compare_step_slices_rslicecomparison.md 485 B
- references/docs/api/compare_step_to_inspection_rentityinspectionparity.md 605 B
- references/docs/api/compare_steps_rbrepcomparison.md 460 B
- references/docs/api/Component.md 312 B
- references/docs/api/Connector.md 592 B
- references/docs/api/ConnectorAnchor.md 541 B
- references/docs/api/ConnectorRef.md 275 B
- references/docs/api/const_function.md 241 B
- references/docs/api/Const.md 300 B
- references/docs/api/constrain_angle_rsketch.md 430 B
- references/docs/api/constrain_coincident_rsketch.md 393 B
- references/docs/api/constrain_collinear_rsketch.md 405 B
- references/docs/api/constrain_concentric_rsketch.md 395 B
- references/docs/api/constrain_connect_rsketch.md 405 B
- references/docs/api/constrain_diameter_rsketch.md 410 B
- references/docs/api/constrain_distance_rsketch.md 432 B
- references/docs/api/constrain_distance_x_rsketch.md 434 B
- references/docs/api/constrain_distance_y_rsketch.md 432 B
- references/docs/api/constrain_equal_length_rsketch.md 402 B
- references/docs/api/constrain_equal_radius_rsketch.md 402 B
- references/docs/api/constrain_fix_rsketch.md 362 B
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.
- 3d ago First seen · 146 lines · 25 tokens per session scan A 19bbc3d492f2
simplecadapi is a skill published in the GitHub repository NiJingzhe/SimpleCADAPI (105 stars, last pushed 8d ago), licensed Apache-2.0. It adds 25 tokens to every session and 2,544 once invoked, about $0.0001 per session on Opus 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.
Other skills, from other repositories
opengis-skills
Use when AI coding assistant needs GIS/CAD/C#/AI/IoT/3D domain expertise for 72+ open-source projects. One-stop skill index with tag-based search and on-demand loading for GDAL, GeoServer, QGIS, PostGIS, JTS, CesiumJS, FreeCAD, OpenSCAD, OCCT, NPOI, SqlSugar, Furion, Dify, SuperSplat, Go and more.
cadquery
Use when scripting parametric 3D CAD models in Python — programmatic part generation, parametric design optimization, STEP export. CadQuery: Python-based parametric CAD built on OCCT kernel with a fluent API.
cad
Use when doing parametric 3D modeling, 2D drafting, geometric kernel development, BIM/IFC processing, PCB design, or AutoCAD .NET development. Index of 19 skills: FreeCAD, OpenSCAD, OCCT, CadQuery, KiCad, SolveSpace, QCAD, xBIM, Clipper2, TongWen and more.
cadquery-modeling
Generate CAD models with CadQuery using an adaptive CAD Compiler workflow: plan-mode skill constraint handoff, focused iteration scopes, fail-first challenge review, compact review packets, real-product reference fidelity, visual/functional audits, source-first repair, and STEP/STL export. Use for CadQuery, CQ, 建模…
aieng-cad-authoring
Active MCP-first CAD authoring skill for AIENG Workbench. Use when the user asks to create, design, draft, model, or iteratively build CAD geometry through the active cad. MCP tools. Do not use for solver/result review, schema/library implementation, or editing legacy IR plans.
kernelcad-authoring
Author or modify kernelCAD models in TypeScript. Scripts live in .kcad.ts files; the kernelCAD CLI (kernelcad evaluate and kernelcad export stl|step|dxf|3mf|glb -o ) executes them via an OpenCASCADE WASM kernel.