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_alignment_from_polylinegit 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_alignment_from_polyline)<a href="https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/create_alignment_from_polyline"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_alignment_from_polyline/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_alignment_from_polyline"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/create_alignment_from_polyline.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.00026 | $0.01180 |
| Opus 5.5 | $0.00010 | $0.00472 |
| Sonnet 5.5 | $0.00005 | $0.00236 |
| Haiku 4.5 | $0.00003 | $0.00118 |
Grade A, and why
create_alignment_from_polyline 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 28d 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 — 147 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Template
var sourceHandle = "SOURCE_POLYLINE_HANDLE";
var alignmentName = "NEW_ALIGNMENT_NAME";
if (string.IsNullOrWhiteSpace(sourceHandle)
|| !System.Text.RegularExpressions.Regex.IsMatch(sourceHandle, "^[0-9A-Fa-f]{1,16}$"))
{
return new { success = false, error = "sourceHandle must be a non-empty hexadecimal handle." };
}
if (string.IsNullOrWhiteSpace(alignmentName)
|| alignmentName != alignmentName.Trim()
|| alignmentName.Length > 255
|| alignmentName.Any(char.IsControl))
{
return new { success = false, error = "alignmentName must be a trimmed non-empty name of at most 255 characters without control characters." };
}
foreach (ObjectId existingAlignmentId in CivilDoc.GetAlignmentIds())
{
var existing = Transaction.GetObject(existingAlignmentId, OpenMode.ForRead) as Alignment;
if (existing != null && existing.Name.Equals(alignmentName, StringComparison.OrdinalIgnoreCase))
{
return new { success = false, error = "An alignment with this name already exists.", alignmentName };
}
}
ObjectId sourceId;
try
{
var sourceHandleValue = new Handle(System.Convert.ToInt64(sourceHandle, 16));
sourceId = Database.GetObjectId(false, sourceHandleValue, 0);
}
catch
{
return new { success = false, error = "sourceHandle does not resolve to an object in this drawing.", sourceHandle };
}
var source = Transaction.GetObject(sourceId, OpenMode.ForRead) as Polyline;
if (source == null || source.IsErased)
{
return new { success = false, error = "sourceHandle must identify an existing Autodesk.AutoCAD.DatabaseServices.Polyline.", sourceHandle };
}
var blockTable = (BlockTable)Transaction.GetObject(Database.BlockTableId, OpenMode.ForRead);
var modelSpaceId = blockTable[BlockTableRecord.ModelSpace];
if (source.OwnerId != modelSpaceId)
{
return new { success = false, error = "sourceHandle must identify a Polyline directly in ModelSpace.", sourceHandle };
}
if (source.Closed || source.NumberOfVertices < 2 || source.Length <= 1e-9)
{
return new { success = false, error = "source polyline must be open and non-degenerate.", sourceHandle };
}
ObjectId styleId;
ObjectId labelSetId;
try
{
styleId = CivilDoc.Styles.AlignmentStyles["Tervező"];
labelSetId = CivilDoc.Styles.LabelSetStyles.AlignmentLabelSetStyles["Út szelvény és geometriai pontok"];
}
catch
{
return new { success = false, error = "Required alignment style or alignment label set is missing.", style = "Tervező", labelSet = "Út szelvény és geometriai pontok" };
}
if (styleId.IsNull || labelSetId.IsNull)
{
return new { success = false, error = "Required alignment style or alignment label set is invalid.", style = "Tervező", labelSet = "Út szelvény és geometriai pontok" };
}
var options = new PolylineOptions
{
PlineId = sourceId,
EraseExistingEntities = false,
AddCurvesBetweenTangents = false
};
var alignmentId = Alignment.Create(
CivilDoc,
options,
alignmentName,
ObjectId.Null,
source.LayerId,
styleId,
labelSetId
);
if (alignmentId.IsNull)
{
throw new InvalidOperationException("Alignment creation returned an invalid object ID.");
}
var alignment = Transaction.GetObject(alignmentId, OpenMode.ForRead) as Alignment;
if (alignment == null || alignment.IsErased)
{
throw new InvalidOperationException("Alignment creation did not return a readable alignment.");
}
var sourceAfter = Transaction.GetObject(sourceId, OpenMode.ForRead, false) as Polyline;
var sourcePreserved = sourceAfter != null && !sourceAfter.IsErased;
if (!sourcePreserved)
{
throw new InvalidOperationException("The source polyline was not preserved.");
}
return new {
success = true,
name = alignment.Name,
handle = alignment.Handle.ToString(),
style = alignment.StyleName,
layer = alignment.Layer,
length = alignment.Length,
startStation = alignment.StartingStation,
endStation = alignment.EndingStation,
entityCount = alignment.Entities.Count,
sourceHandle = source.Handle.ToString(),
sourcePreserved
};
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.
- 28d ago First seen · 147 lines · 26 tokens per session scan A 9f2b94237737
create_alignment_from_polyline is a skill published in the GitHub repository nezolder/civil3d-mcp-roslyn (3 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 1,180 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-04.
Other skills, from other repositories
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…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.
chat-perf
Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.