objectarx-cpp-development

objectarx-cpp-development is a skill for Claude Code, Codex from dantte-lp/oarx-docs-mcp. It costs 66 tokens per session (928 once invoked), scanned A, original, MIT.

A development guide for writing and reviewing C++ code for ObjectARX, Autodesk AutoCAD’s programming interface.

In plain words
What is it for?
Use it when working with ObjectARX classes and functions. It requires looking up API items and covers patterns such as opening and closing database objects safely.
Why use it?
It reduces the risk of guessing API names, signatures, return values, or database-object handling rules.

Skill for Claude CodeCodex

Part of the oarx-docs plugin — 4 skills, 2 commands, 1 hook shipped together

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.

agentmods
npx agentmods add skills/dantte-lp/oarx-docs-mcp/objectarx-cpp-development
Any agent
npx skills add dantte-lp/oarx-docs-mcp --skill objectarx-cpp-development
Clone the repo
git clone --depth 1 https://github.com/dantte-lp/oarx-docs-mcp

Made for: Claude Code, Codex.

Or install oarx-docs, the plugin that ships this one along with the rest of its 4 skills, 2 commands, 1 hook.

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 objectarx-cpp-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/dantte-lp/oarx-docs-mcp/objectarx-cpp-development.svg)](https://agentmods.dev/skills/dantte-lp/oarx-docs-mcp/objectarx-cpp-development)
Your own site
<a href="https://agentmods.dev/skills/dantte-lp/oarx-docs-mcp/objectarx-cpp-development"><img src="https://agentmods.dev/badge/skills/dantte-lp/oarx-docs-mcp/objectarx-cpp-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00066 $0.00928
Opus 5 $0.00033 $0.00464
Sonnet 5 $0.00013 $0.00186
Haiku 4.5 $0.00007 $0.00093

Measured 3d ago against content hash 5738ccee41ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

objectarx-cpp-development 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.

plugin/skills/objectarx-cpp-development/SKILL.md · 110 lines

How it starts

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

ObjectARX C++ Development

Guide for writing correct C++ ObjectARX code using the oarx-docs MCP server.

Critical Rule

ALWAYS call lookup_class before using any ObjectARX C++ class or function. Never guess method signatures, parameter types, or return values. The ObjectARX API has 40,000+ documented items — look them up.

Before Writing Code

  1. Look up every ObjectARX class you plan to use:
    lookup_class("AcDbLine", guide="arxref")
    
  2. Check the developer guide for the pattern you need:
    search_docs("creating custom entities", guide="arxdev")
    
  3. If unsure about class hierarchy, look up the base class first:
    lookup_class("AcDbEntity", guide="arxref")
    lookup_class("AcDbObject", guide="arxref")
    

Required Patterns

Open/Close Protocol

Every database object must be opened before access and closed after:

// PREFERRED: Smart pointer (RAII) — AcDbObjectPointer or AcDbSmartObjectPointer
AcDbObjectPointer<AcDbLine> pLine(lineId, AcDb::kForRead);
if (pLine.openStatus() != Acad::eOk) { /* handle error */ }
// pLine auto-closes on scope exit
// AcDbSmartObjectPointer<T> is similar but uses reference counting

// ALTERNATIVE: Manual open/close
AcDbLine* pLine = nullptr;
Acad::ErrorStatus es = acdbOpenObject(pLine, lineId, AcDb::kForRead);
if (es != Acad::eOk) { /* handle error */ }
// ... use pLine ...
pLine->close();

Error Status Checking

Always check Acad::ErrorStatus:

Acad::ErrorStatus es = pEntity->transformBy(xform);
if (es != Acad::eOk) {
    acutPrintf(_T("\nError: %s"), acadErrorStatusText(es));
    return es;
}

Object ID — Never Raw Pointers Across Boundaries

// WRONG: storing raw pointer
AcDbLine* pLine = ...; // pointer invalid after close!

// RIGHT: store ObjectId, reopen when needed
AcDbObjectId lineId = pLine->objectId();
pLine->close();
// later...
AcDbObjectPointer<AcDbLine> pLine2(lineId, AcDb::kForWrite);

Adding Entities to Model Space

Read the full file on GitHub · 110 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. 3d ago First seen · 110 lines · 66 tokens per session scan A 5738ccee41ff

Subscribe to this mod's changes

objectarx-cpp-development is a skill published in the GitHub repository dantte-lp/oarx-docs-mcp (0 stars, last pushed 6mo ago), licensed MIT. It adds 66 tokens to every session and 928 once invoked, about $0.0003 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-31.

Related

Other skills, from other repositories

cpp-pro

Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template metaprogramming, and high-performance systems techniques. Use when building or refactoring C++ code requiring concepts, ranges, coroutines, SIMD optimization, or careful memory management — or when addressing performance…

Jeffallan/claude-skills · 79 tokens

dart-use-ffigen

Guide agents to use package:ffigen to automatically generate FFI bindings instead of writing them manually. Use this skill when a task involves writing new FFI bindings, extending C/Objective-C/Swift integrations, or replacing hand-crafted dart:ffi setups.

flutter/agent-plugins · 61 tokens

add-uint-support

Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.

pytorch/pytorch · 60 tokens

at-dispatch-v2

Convert PyTorch ATDISPATCH macros to ATDISPATCHV2 format in ATen C++ code. Use when porting ATDISPATCHALLTYPESAND, ATDISPATCHFLOATINGTYPES, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.

pytorch/pytorch · 70 tokens

sqlitecpp-doxygen-guide

SQLiteCpp Doxygen standards and templates for public API docs and file headers.

SRombauts/SQLiteCpp · 21 tokens

cuda-index-width

Choose 32-bit vs 64-bit index math in PyTorch CUDA kernels. Use when fixing large-tensor indexing overflows, deciding whether to use int64t, canUse32BitIndexMath, CUDAKERNELLOOPTYPE, or ATDISPATCHINDEXTYPES, and when considering binary-size or performance impact of index-type templating.

pytorch/pytorch · 71 tokens