create_tin_volume_surface

create_tin_volume_surface is a skill for Claude Code, Codex from nezolder/civil3d-mcp-roslyn. It costs 25 tokens per session (1,597 once invoked), scanned A, original, MIT.

A coding skill for creating a persistent TIN volume surface from two existing terrain surfaces. A TIN, or triangulated irregular network, represents a surface with connected triangles.

In plain words
What is it for?
It is for earthwork and site-design jobs that compare a base surface with a proposed or comparison surface to calculate cut and fill.
Why use it?
It avoids manually comparing terrain surfaces and setting cut and fill factors. The result can be reused as a named volume surface.

Skill for Claude CodeCodex

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

Good fit It is for earthwork and site-design jobs that compare a base surface with a proposed or comparison surface to calculate cut and fill.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface
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 nezolder/civil3d-mcp-roslyn --skill create_tin_volume_surface
Clone the repo
git clone --depth 1 https://github.com/nezolder/civil3d-mcp-roslyn

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 create_tin_volume_surface

README.md
[![agentmods](https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface/github.svg)](https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_tin_volume_surface)
Your own site
<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.

agentmods 80×15 button for create_tin_volume_surface

Your own site · 80×15
<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>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,597 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.00025 $0.01597
Opus 5.5 $0.00010 $0.00639
Sonnet 5.5 $0.00005 $0.00319
Haiku 4.5 $0.00003 $0.00160

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

Security

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.

skills/surfaces/create_tin_volume_surface.skill.md · 160 lines

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
};

Read the full file on GitHub · 160 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. 19d ago First seen · 160 lines · 25 tokens per session scan A 361683cb715c

Subscribe to this mod's changes

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.

Related

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.

Abhinavbwj/Claude-skills-for-Computational-Designers · 32 tokens

computational-geometry

NURBS curves and surfaces, mesh geometry, boolean operations, subdivision surfaces, tessellation methods, surface analysis, and point cloud processing for AEC computational design.

marcinfinitesimal533/Claude-skills-for-Computational-Designers · 32 tokens

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.

LuuOW/meridian-mcp · 46 tokens

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…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

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…

vercel/next.js · 95 tokens