create_surface_profile_view

create_surface_profile_view is a skill for Claude Code, Codex from nezolder/civil3d-mcp-roslyn. It costs 24 tokens per session (2,812 once invoked), scanned A, original, MIT.

A code template for creating a full-length surface profile and a profile view from named local sources. In civil-engineering design, a surface profile shows ground elevation along an alignment, such as a road or pipeline path.

In plain words
What is it for?
Use it to create a dynamic terrain profile and its associated profile view in a compatible design project.
Why use it?
It provides validation for source handles and names before creating the requested profile objects, reducing errors from invalid or placeholder inputs.

Skill for Claude CodeCodex

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

Good fit Use it to create a dynamic terrain profile and its associated profile view in a compatible design project.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nezolder/civil3d-mcp-roslyn/create_surface_profile_view
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_surface_profile_view
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_surface_profile_view

README.md
[![agentmods](https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_surface_profile_view/github.svg)](https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_surface_profile_view)
Your own site
<a href="https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_surface_profile_view"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_surface_profile_view/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_surface_profile_view

Your own site · 80×15
<a href="https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_surface_profile_view"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_surface_profile_view.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,812 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.00024 $0.02812
Opus 5.5 $0.00010 $0.01125
Sonnet 5.5 $0.00005 $0.00562
Haiku 4.5 $0.00002 $0.00281

Measured 3d ago against content hash 379ae420c650, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-02, from the pricing page.

Security

Grade A, and why

create_surface_profile_view 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.

skills/profiles/create_surface_profile_view.skill.md · 243 lines

How it starts

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

Code Template

var alignmentHandle = "ALIGNMENT_HANDLE";
var surfaceHandle = "SURFACE_HANDLE";
var profileName = "NEW_SURFACE_PROFILE_NAME";
var profileViewName = "NEW_PROFILE_VIEW_NAME";
var insertionX = 0.0;
var insertionY = 0.0;
var profileStyleName = "Terep";
var profileViewStyleName = "Út";
var profileLabelSetName = "PROFILE_LABEL_SET_NAME";
var bandSetStyleName = "PROFILE_VIEW_BAND_SET_STYLE_NAME";

var isHexHandle = new Func<string, bool>(value =>
    !string.IsNullOrWhiteSpace(value)
    && System.Text.RegularExpressions.Regex.IsMatch(value, "^[0-9A-Fa-f]{1,16}$"));
var isName = new Func<string, bool>(value =>
    !string.IsNullOrWhiteSpace(value)
    && value == value.Trim()
    && value.Length <= 255
    && !value.Any(char.IsControl));
var isConfiguredName = new Func<string, bool>(value =>
    isName(value)
    && value != "NEW_SURFACE_PROFILE_NAME"
    && value != "NEW_PROFILE_VIEW_NAME"
    && value != "PROFILE_LABEL_SET_NAME"
    && value != "PROFILE_VIEW_BAND_SET_STYLE_NAME");

if (!isHexHandle(alignmentHandle))
    return new { success = false, error = "alignmentHandle must be a non-empty hexadecimal handle." };
if (!isHexHandle(surfaceHandle))
    return new { success = false, error = "surfaceHandle must be a non-empty hexadecimal handle." };
if (!isConfiguredName(profileName) || !isConfiguredName(profileViewName))
    return new { success = false, error = "profileName and profileViewName must be configured trimmed non-empty names of at most 255 characters without control characters." };
if (!Double.IsFinite(insertionX) || !Double.IsFinite(insertionY))
    return new { success = false, error = "insertionX and insertionY must be finite numbers." };
if (!isName(profileStyleName) || !isName(profileViewStyleName))
    return new { success = false, error = "profileStyleName and profileViewStyleName must be trimmed non-empty names of at most 255 characters without control characters." };
if (!isConfiguredName(profileLabelSetName) || !isConfiguredName(bandSetStyleName))
    return new { success = false, error = "profileLabelSetName and bandSetStyleName must be explicitly configured trimmed non-empty names." };

// Host access starts here.
ObjectId alignmentId;
ObjectId surfaceId;
try
{
    alignmentId = Database.GetObjectId(false, new Handle(System.Convert.ToInt64(alignmentHandle, 16)), 0);
    surfaceId = Database.GetObjectId(false, new Handle(System.Convert.ToInt64(surfaceHandle, 16)), 0);
}
catch
{
    return new { success = false, error = "alignmentHandle or surfaceHandle does not resolve to an object in this drawing." };
}

var alignment = Transaction.GetObject(alignmentId, OpenMode.ForRead) as Alignment;
if (alignment == null || alignment.IsErased)
    return new { success = false, error = "alignmentHandle must identify an existing Alignment." };
if (alignment.IsReferenceObject)
    return new { success = false, error = "alignmentHandle must identify a local, non-reference Alignment." };
if (alignment.IsReferenceStale)
    return new { success = false, error = "alignmentHandle identifies a stale Alignment reference and is refused." };

var surface = Transaction.GetObject(surfaceId, OpenMode.ForRead) as TinSurface;
if (surface == null || surface.IsErased || surface is TinVolumeSurface)
    return new { success = false, error = "surfaceHandle must identify an existing TinSurface (not a grid or volume surface)." };
if (surface.IsReferenceObject)
    return new { success = false, error = "surfaceHandle must identify a local, non-reference TinSurface." };
if (surface.IsReferenceStale)
    return new { success = false, error = "surfaceHandle identifies a stale TinSurface reference and is refused." };
var rangeTolerance = 1e-6;
if (!Double.IsFinite(alignment.StartingStation)
    || !Double.IsFinite(alignment.EndingStation)
    || alignment.EndingStation - alignment.StartingStation <= rangeTolerance)
    return new { success = false, error = "The alignment must have a finite, positive parent station range." };
if (alignment.LayerId.IsNull)
    return new { success = false, error = "The alignment has no usable layer to reuse for the new profile." };

foreach (ObjectId existingProfileId in alignment.GetProfileIds())
{
    var existingProfile = Transaction.GetObject(existingProfileId, OpenMode.ForRead) as Profile;
    if (existingProfile != null && !existingProfile.IsErased
        && existingProfile.Name.Equals(profileName, StringComparison.OrdinalIgnoreCase))
        return new { success = false, error = "A profile with this name already exists on the selected alignment.", profileName };
}
foreach (ObjectId existingViewId in alignment.GetProfileViewIds())
{
    var existingView = Transaction.GetObject(existingViewId, OpenMode.ForRead) as ProfileView;
    if (existingView != null && !existingView.IsErased
        && existingView.Name.Equals(profileViewName, StringComparison.OrdinalIgnoreCase))
        return new { success = false, error = "A profile view with this name already exists on the selected alignment.", profileViewName };
}

ObjectId profileStyleId;
ObjectId profileLabelSetId;
ObjectId profileViewStyleId;
ObjectId bandSetStyleId;
try
{
    profileStyleId = CivilDoc.Styles.ProfileStyles[profileStyleName];
    profileLabelSetId = CivilDoc.Styles.LabelSetStyles.ProfileLabelSetStyles[profileLabelSetName];
    profileViewStyleId = CivilDoc.Styles.ProfileViewStyles[profileViewStyleName];
    bandSetStyleId = CivilDoc.Styles.ProfileViewBandSetStyles[bandSetStyleName];
}
catch
{
    return new { success = false, error = "One or more explicitly named profile, profile-label-set, profile-view, or profile-view-band-set styles are unavailable." };
}
if (profileStyleId.IsNull || profileLabelSetId.IsNull || profileViewStyleId.IsNull || bandSetStyleId.IsNull)
    return new { success = false, error = "One or more explicitly named styles resolved to an invalid object ID." };

var profileId = Profile.CreateFromSurface(
    profileName,
    alignmentId,
    surfaceId,
    alignment.LayerId,
    profileStyleId,
    profileLabelSetId
);
if (profileId.IsNull)
    throw new InvalidOperationException("Surface-profile creation returned an invalid object ID.");

var profile = Transaction.GetObject(profileId, OpenMode.ForWrite) as Profile;
if (profile == null || profile.IsErased)
    throw new InvalidOperationException("Surface-profile creation did not return a readable profile.");
profile.UpdateMode = ProfileUpdateType.Dynamic;
if (!profile.Name.Equals(profileName, StringComparison.Ordinal)
    || profile.AlignmentId != alignmentId
    || profile.StyleId != profileStyleId
    || profile.ProfileType != ProfileType.EG
    || profile.UpdateMode != ProfileUpdateType.Dynamic
    || profile.Entities.Count == 0
    || !Double.IsFinite(profile.StartingStation)
    || !Double.IsFinite(profile.EndingStation)
    || Math.Abs(profile.StartingStation - alignment.StartingStation) > rangeTolerance
    || Math.Abs(profile.EndingStation - alignment.EndingStation) > rangeTolerance)
    throw new InvalidOperationException("The created dynamic surface profile did not satisfy its postconditions.");
var startElevation = profile.ElevationAt(profile.StartingStation);
var endElevation = profile.ElevationAt(profile.EndingStation);
if (!Double.IsFinite(startElevation) || !Double.IsFinite(endElevation))
    throw new InvalidOperationException("The created dynamic surface profile does not return finite endpoint elevations.");

// Civil 3D 2025 API lookup proves this overload orders band-set style, then profile-view style.
var viewId = ProfileView.Create(
    alignmentId,
    new Point3d(insertionX, insertionY, 0.0),
    profileViewName,
    profileViewBandSetId: bandSetStyleId,
    profileViewStyleId: profileViewStyleId
);
if (viewId.IsNull)
    throw new InvalidOperationException("Profile-view creation returned an invalid object ID.");

var view = Transaction.GetObject(viewId, OpenMode.ForRead) as ProfileView;
if (view == null || view.IsErased
    || !view.Name.Equals(profileViewName, StringComparison.Ordinal)
    || view.AlignmentId != alignmentId
    || view.StyleId != profileViewStyleId)
    throw new InvalidOperationException("The created profile view did not satisfy its postconditions.");

return new {
    success = true,
    profile = new {
        handle = profile.Handle.ToString(),
        name = profile.Name,
        alignmentHandle = alignment.Handle.ToString(),
        surfaceHandle = surface.Handle.ToString(),
        layer = profile.Layer,
        style = profile.StyleName,
        type = profile.ProfileType.ToString(),
        updateMode = profile.UpdateMode.ToString(),
        startStation = profile.StartingStation,
        endStation = profile.EndingStation,
        startElevation,
        endElevation
    },
    profileView = new {
        handle = view.Handle.ToString(),
        name = view.Name,
        style = view.StyleName,
        requestedInsertion = new { x = insertionX, y = insertionY, z = 0.0 }
    }
};

Read the full file on GitHub · 243 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 · 243 lines · 24 tokens per session scan A 379ae420c650

Subscribe to this mod's changes

create_surface_profile_view is a skill published in the GitHub repository nezolder/civil3d-mcp-roslyn (3 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 2,812 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-09-29.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ultragoal with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 52 tokens

accessibility

Consolidated accessibility skill entrypoint for WCAG 2.2, ARIA Authoring Practices, cognitive accessibility, Section 508, EN 301 549, design intent verification, and the Accessibility Planner workflow.

microsoft/hve-core · 47 tokens

make-resume

A Chinese-language tool for creating editable HTML resumes that can be changed in a browser and printed to PDF. It uses available resume templates when they are installed and otherwise provides a simpler fallback.

Hisn00w/ASu-skills · 119 tokens