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 skills add nezolder/civil3d-mcp-roslyn --skill create_tin_volume_surfacegit clone --depth 1 https://github.com/nezolder/civil3d-mcp-roslynWrote 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.
[](https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface)<a href="https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface/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.
<a href="https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00025 | $0.01597 |
| Opus 5.5 | $0.00010 | $0.00639 |
| Sonnet 5.5 | $0.00005 | $0.00319 |
| Haiku 4.5 | $0.00003 | $0.00160 |
Grade A, and why
create_tin_volume_surface 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 19d 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 — 160 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Template
var baseSurfaceHandle = "BASE_SURFACE_HANDLE";
var comparisonSurfaceHandle = "COMPARISON_SURFACE_HANDLE";
var volumeSurfaceName = "NEW_VOLUME_SURFACE_NAME";
var cutFactor = 1.0;
var fillFactor = 1.0;
var styleName = "";
var isHandle = new Func<string, bool>(value =>
!string.IsNullOrWhiteSpace(value)
&& System.Text.RegularExpressions.Regex.IsMatch(value, "^[0-9A-Fa-f]{1,16}$"));
if (!isHandle(baseSurfaceHandle) || !isHandle(comparisonSurfaceHandle)
|| baseSurfaceHandle.Equals(comparisonSurfaceHandle, StringComparison.OrdinalIgnoreCase))
{
return new { success = false, error = "Supply two distinct hexadecimal surface handles." };
}
if (string.IsNullOrWhiteSpace(volumeSurfaceName)
|| volumeSurfaceName != volumeSurfaceName.Trim()
|| volumeSurfaceName.Length > 255
|| volumeSurfaceName.Any(char.IsControl))
{
return new { success = false, error = "volumeSurfaceName must be a trimmed non-empty name of at most 255 characters without control characters." };
}
if (!double.IsFinite(cutFactor) || !double.IsFinite(fillFactor)
|| cutFactor <= 0 || fillFactor <= 0 || cutFactor > 10 || fillFactor > 10)
{
return new { success = false, error = "cutFactor and fillFactor must be finite, greater than 0 and at most 10." };
}
foreach (ObjectId existingId in CivilDoc.GetSurfaceIds())
{
var existing = Transaction.GetObject(existingId, OpenMode.ForRead) as Autodesk.Civil.DatabaseServices.Surface;
if (existing != null && existing.Name.Equals(volumeSurfaceName, StringComparison.OrdinalIgnoreCase))
{
return new { success = false, error = "A surface with this name already exists.", volumeSurfaceName };
}
}
Autodesk.Civil.DatabaseServices.Surface ResolveSurface(string handle)
{
try
{
var id = Database.GetObjectId(false, new Handle(System.Convert.ToInt64(handle, 16)), 0);
var surface = Transaction.GetObject(id, OpenMode.ForRead) as Autodesk.Civil.DatabaseServices.Surface;
return surface == null || surface.IsErased || surface is TinVolumeSurface || surface is GridVolumeSurface ? null : surface;
}
catch
{
return null;
}
}
var baseSurface = ResolveSurface(baseSurfaceHandle);
var comparisonSurface = ResolveSurface(comparisonSurfaceHandle);
if (baseSurface == null || comparisonSurface == null)
{
return new {
success = false,
error = "Both handles must identify existing non-volume Civil 3D surfaces in this drawing.",
baseFound = baseSurface != null,
comparisonFound = comparisonSurface != null
};
}
ObjectId styleId = ObjectId.Null;
if (styleName.Length > 0)
{
try
{
styleId = CivilDoc.Styles.SurfaceStyles[styleName];
}
catch
{
styleId = ObjectId.Null;
}
if (styleId.IsNull)
{
return new { success = false, error = "The requested surface style does not exist.", styleName };
}
}
var volumeSurfaceId = styleId.IsNull
? TinVolumeSurface.Create(volumeSurfaceName, baseSurface.ObjectId, comparisonSurface.ObjectId)
: TinVolumeSurface.Create(volumeSurfaceName, baseSurface.ObjectId, comparisonSurface.ObjectId, styleId);
if (volumeSurfaceId.IsNull)
{
throw new InvalidOperationException("TIN volume surface creation returned an invalid object ID.");
}
var volumeSurface = (TinVolumeSurface)Transaction.GetObject(volumeSurfaceId, OpenMode.ForWrite);
volumeSurface.CutFactor = cutFactor;
volumeSurface.FillFactor = fillFactor;
var volumes = volumeSurface.GetVolumeProperties();
return new {
success = true,
name = volumeSurface.Name,
handle = volumeSurface.Handle.ToString(),
style = volumeSurface.StyleName,
baseSurface = new { name = baseSurface.Name, handle = baseSurface.Handle.ToString() },
comparisonSurface = new { name = comparisonSurface.Name, handle = comparisonSurface.Handle.ToString() },
cutFactor = volumeSurface.CutFactor,
fillFactor = volumeSurface.FillFactor,
unadjustedCut = volumes.UnadjustedCutVolume,
unadjustedFill = volumes.UnadjustedFillVolume,
unadjustedNet = volumes.UnadjustedNetVolume,
adjustedCut = volumes.AdjustedCutVolume,
adjustedFill = volumes.AdjustedFillVolume,
adjustedNet = volumes.AdjustedNetVolume
};
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.
- 19d ago First seen · 160 lines · 25 tokens per session scan A 361683cb715c
create_tin_volume_surface is a skill published in the GitHub repository nezolder/civil3d-mcp-roslyn (3 stars, last pushed 16d ago), licensed MIT. It adds 25 tokens to every session and 1,597 once invoked, about $0.0001 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-10-09.
Other skills, from other repositories
computational-geometry
NURBS curves and surfaces, mesh geometry, boolean operations, subdivision surfaces, tessellation methods, surface analysis, and point cloud processing for AEC computational design.
computational-geometry
NURBS curves and surfaces, mesh geometry, boolean operations, subdivision surfaces, tessellation methods, surface analysis, and point cloud processing for AEC computational design.
internal-docs-operator
Use when working against the internal documentation surfaces on :4401 and :4400, especially for target-specific doc updates, source-of-truth checks, verification of live state, and preventing false completion claims.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…