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 shift_section_view_elevationsgit 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/shift_section_view_elevations)<a href="https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/shift_section_view_elevations"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/shift_section_view_elevations/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/shift_section_view_elevations"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/shift_section_view_elevations.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.00046 | $0.02913 |
| Opus 5.5 | $0.00018 | $0.01165 |
| Sonnet 5.5 | $0.00009 | $0.00583 |
| Haiku 4.5 | $0.00005 | $0.00291 |
Grade A, and why
shift_section_view_elevations 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 16d 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 — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Template
var sampleLineGroupHandle = "SAMPLE_LINE_GROUP_HANDLE";
var sectionViewGroupName = "";
var mode = "shift";
var delta = 0.0;
var clearance = 0.0;
var referenceSourceHandle = "";
var height = 0.0;
var startStation = double.NaN;
var endStation = double.NaN;
var isHandle = new Func<string, bool>(value =>
!string.IsNullOrWhiteSpace(value)
&& System.Text.RegularExpressions.Regex.IsMatch(value, "^[0-9A-Fa-f]{1,16}$"));
if (!isHandle(sampleLineGroupHandle))
return new { success = false, error = "sampleLineGroupHandle must be a hexadecimal handle." };
if (mode != "shift" && mode != "belowLowest")
return new { success = false, error = "mode must be \"shift\" or \"belowLowest\"." };
if (mode == "shift" && (!double.IsFinite(delta) || delta == 0 || Math.Abs(delta) > 1000))
return new { success = false, error = "Shift mode needs a nonzero delta of at most 1000." };
if (mode == "belowLowest" && (!double.IsFinite(clearance) || clearance < 0 || clearance > 1000 || !isHandle(referenceSourceHandle)))
return new { success = false, error = "belowLowest mode needs a clearance of 0..1000 and a referenceSourceHandle." };
if (!double.IsFinite(height) || height < 0 || height > 1000 || (height > 0 && mode != "belowLowest"))
return new { success = false, error = "height must be 0..1000 and is only used in belowLowest mode." };
if (double.IsInfinity(startStation) || double.IsInfinity(endStation) || sectionViewGroupName == null)
return new { success = false, error = "startStation and endStation must be finite or NaN." };
ObjectId? ResolveId(string handle)
{
try { return Database.GetObjectId(false, new Handle(System.Convert.ToInt64(handle, 16)), 0); }
catch { return null; }
}
var groupId = ResolveId(sampleLineGroupHandle);
var group = groupId.HasValue ? Transaction.GetObject(groupId.Value, OpenMode.ForRead) as SampleLineGroup : null;
if (group == null || group.IsErased)
return new { success = false, error = "sampleLineGroupHandle must identify an existing sample line group." };
var viewGroups = group.SectionViewGroups.Cast<SectionViewGroup>().ToList();
var matching = sectionViewGroupName == ""
? viewGroups
: viewGroups.Where(g => g.Name.Equals(sectionViewGroupName, StringComparison.OrdinalIgnoreCase)).ToList();
if (matching.Count != 1)
return new {
success = false,
error = sectionViewGroupName == "" ? "The sample line group has several section view groups; name one." : "No single section view group has this name.",
available = viewGroups.Select(g => new { g.Name, g.IsIndividual, viewCount = g.GetSectionViewIds().Count }).ToList()
};
var viewGroup = matching[0];
ObjectId referenceSourceId = ObjectId.Null;
if (mode == "belowLowest")
{
var id = ResolveId(referenceSourceHandle);
// GetSectionSources needs the group open for write; on a read-open group
// Civil 3D 2025 ends with a fatal eNotOpenForWrite. Nothing is changed.
group.UpgradeOpen();
foreach (SectionSource source in group.GetSectionSources())
if (id.HasValue && source.SourceId == id.Value && source.IsSampled) referenceSourceId = id.Value;
if (referenceSourceId.IsNull)
return new { success = false, error = "referenceSourceHandle must be a sampled section source of this sample line group." };
}
// Plan every view first; nothing is written unless all can be changed.
var plan = new List<(ObjectId viewId, string name, double station, double oldMin, double oldMax, double newMin, double newMax, double referenceTop, bool wasAutomatic)>();
foreach (ObjectId viewId in viewGroup.GetSectionViewIds())
{
var view = (SectionView)Transaction.GetObject(viewId, OpenMode.ForRead);
var line = (SampleLine)Transaction.GetObject(view.SampleLineId, OpenMode.ForRead);
if ((!double.IsNaN(startStation) && line.Station < startStation - 1e-6)
|| (!double.IsNaN(endStation) && line.Station > endStation + 1e-6)) continue;
var oldHeight = view.ElevationMax - view.ElevationMin;
if (!double.IsFinite(oldHeight) || oldHeight <= 0)
return new { success = false, error = $"View '{view.Name}' has no valid elevation range." };
double newMin;
var referenceTop = double.NaN;
if (mode == "shift")
{
newMin = view.ElevationMin + delta;
}
else
{
var sectionId = line.GetSectionId(referenceSourceId);
var section = sectionId.IsNull ? null : Transaction.GetObject(sectionId, OpenMode.ForRead) as Autodesk.Civil.DatabaseServices.Section;
if (section == null || !double.IsFinite(section.MinmumElevation) || Math.Abs(section.MinmumElevation) > 1e6
|| !double.IsFinite(section.MaximumElevation) || Math.Abs(section.MaximumElevation) > 1e6)
return new { success = false, error = $"View '{view.Name}': the reference section has no usable elevation range.", station = line.Station };
newMin = section.MinmumElevation - clearance;
referenceTop = section.MaximumElevation;
}
// A sheet height replaces the view's own height; otherwise the height is kept.
var newMax = newMin + (height > 0 ? height : oldHeight);
plan.Add((viewId, view.Name, line.Station, view.ElevationMin, view.ElevationMax, newMin, newMax, referenceTop, view.IsElevationRangeAutomatic));
}
if (plan.Count == 0)
return new { success = false, error = "No section views in the given station range." };
var changed = new List<object>();
foreach (var item in plan.OrderBy(p => p.station))
{
var view = (SectionView)Transaction.GetObject(item.viewId, OpenMode.ForWrite);
view.IsElevationRangeAutomatic = false;
// Move the limit in the direction of travel first so min stays below max.
if (item.newMin > item.oldMin)
{
view.ElevationMax = item.newMax;
view.ElevationMin = item.newMin;
}
else
{
view.ElevationMin = item.newMin;
view.ElevationMax = item.newMax;
}
if (Math.Abs(view.ElevationMin - item.newMin) > 1e-6 || Math.Abs(view.ElevationMax - item.newMax) > 1e-6)
throw new InvalidOperationException($"View '{item.name}' did not accept the new elevation range.");
changed.Add(new {
item.name,
handle = view.Handle.ToString(),
item.station,
oldMin = item.oldMin,
oldMax = item.oldMax,
newMin = view.ElevationMin,
newMax = view.ElevationMax,
height = view.ElevationMax - view.ElevationMin,
referenceTop = double.IsNaN(item.referenceTop) ? (double?)null : item.referenceTop,
referenceFits = double.IsNaN(item.referenceTop) ? (bool?)null : item.referenceTop <= view.ElevationMax + 1e-6,
item.wasAutomatic
});
}
// Views whose reference section rises above the new top; written anyway, reported for review.
var notFitting = plan.Where(p => !double.IsNaN(p.referenceTop) && p.referenceTop > p.newMax + 1e-6)
.OrderBy(p => p.station)
.Select(p => new { p.name, p.station, referenceTop = p.referenceTop, top = p.newMax, missing = p.referenceTop - p.newMax })
.ToList();
return new {
success = true,
viewGroup = new { name = viewGroup.Name, viewCount = viewGroup.GetSectionViewIds().Count },
mode,
delta = mode == "shift" ? delta : (double?)null,
clearance = mode == "belowLowest" ? clearance : (double?)null,
height = height > 0 ? height : (double?)null,
changedCount = changed.Count,
notFittingCount = notFitting.Count,
notFitting,
views = changed
};
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.
- 16d ago First seen · 211 lines · 46 tokens per session scan A 6df9f3c3b21a
shift_section_view_elevations is a skill published in the GitHub repository nezolder/civil3d-mcp-roslyn (3 stars, last pushed 16d ago), licensed MIT. It adds 46 tokens to every session and 2,913 once invoked, about $0.0002 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-12.
Other skills, from other repositories
shopify-theme-development
Build and customize Shopify themes using Liquid templating, JSON sections, dynamic blocks, and theme app extensions for added functionality.
web-section-splitter
Breaks a long-form article into web-optimized sections with subheadings, pull-quote suggestions, image placement markers, and reading-time estimates — ready for a web editor to drop into a CMS.
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…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.