corridor_target_audit

corridor_target_audit is a skill for Claude Code, Codex from nezolder/civil3d-mcp-roslyn. It costs 20 tokens per session (3,028 once invoked), scanned A, original, MIT.

Audit target mappings for one corridor handle with optional baseline and region name filters.

Skill for Claude CodeCodex

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

Install with agentmods
npx agentmods add skills/nezolder/civil3d-mcp-roslyn/corridor_target_audit
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 corridor_target_audit
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 corridor_target_audit

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nezolder/civil3d-mcp-roslyn/corridor_target_audit"><img src="https://agentmods.dev/badge/skills/nezolder/civil3d-mcp-roslyn/corridor_target_audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,028 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.00020 $0.03028
Opus 5.5 $0.00008 $0.01211
Sonnet 5.5 $0.00004 $0.00606
Haiku 4.5 $0.00002 $0.00303

Measured today against content hash d5d44e2f9a69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-02, from the pricing page.

Security

Grade A, and why

corridor_target_audit 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 today.

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/corridors/corridor_target_audit.skill.md · 317 lines

How it starts

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

Code Template

string corridorHandle = "CORRIDOR_HANDLE";
string baselineNameFilter = "";
string regionNameFilter = "";
int targetLimit = 100;
int targetObjectLimit = 20;

if (string.IsNullOrWhiteSpace(corridorHandle)
    || !System.Text.RegularExpressions.Regex.IsMatch(corridorHandle, "^[0-9A-Fa-f]{1,16}$")
    || !long.TryParse(corridorHandle, System.Globalization.NumberStyles.HexNumber,
        System.Globalization.CultureInfo.InvariantCulture, out var parsedHandle) || parsedHandle <= 0)
    return new { success = false, error = "corridorHandle must be a positive hexadecimal handle." };
if (targetLimit < 1 || targetLimit > 100 || targetObjectLimit < 1 || targetObjectLimit > 25)
    return new { success = false, error = "targetLimit must be 1-100 and targetObjectLimit must be 1-25." };
if (baselineNameFilter == null || regionNameFilter == null
    || baselineNameFilter.Length > 256 || regionNameFilter.Length > 256)
    return new { success = false, error = "Name filters must be strings no longer than 256 characters." };

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

Corridor corridor;
try
{
    corridor = Transaction.GetObject(corridorId, OpenMode.ForRead) as Corridor;
}
catch (System.Exception error)
{
    return new { success = false, error = "corridorHandle could not be opened in this drawing.", errorType = error.GetType().Name, corridorHandle };
}
if (corridor == null || corridor.IsErased)
    return new { success = false, error = "corridorHandle must identify an existing Corridor.", corridorHandle };

var ownSurfaceIds = new HashSet<ObjectId>();
var ownSurfaceCount = 0;
var selfSurfaceCheckStatus = "complete";
try
{
    var ownSurfaces = corridor.CorridorSurfaces;
    ownSurfaceCount = ownSurfaces.Count;
    foreach (CorridorSurface ownSurface in ownSurfaces)
    {
        if (!ownSurface.SurfaceId.IsNull)
            ownSurfaceIds.Add(ownSurface.SurfaceId);
    }
}
catch (System.Exception error)
{
    selfSurfaceCheckStatus = "unknown";
}

var targetMappings = new List<object>();
var diagnostics = new List<object>();
var warnings = new List<object>();
var diagnosticCount = 0;
var warningCount = 0;
var targetMappingTotal = 0;
var targetIdsInReturnedMappings = 0;
var targetIdsInspectedInReturnedMappings = 0;
var targetObjectOpenErrorCount = 0;
var targetEnumerationErrorCount = 0;
var warningCounts = new Dictionary<string, int>(StringComparer.Ordinal);

Action<string, string, string> addWarning = (code, baselineName, regionName) =>
{
    warningCount++;
    warningCounts[code] = warningCounts.TryGetValue(code, out var previous) ? previous + 1 : 1;
    if (warnings.Count < 50)
        warnings.Add(new { code, baselineName, regionName });
};

Action<string, string, string, System.Exception> addDiagnostic = (code, baselineName, regionName, error) =>
{
    diagnosticCount++;
    if (diagnostics.Count < 50)
        diagnostics.Add(new { code, baselineName, regionName, errorType = error?.GetType().Name });
};

if (selfSurfaceCheckStatus == "unknown")
    addWarning("CORRIDOR_SURFACE_SCAN_FAILED", corridor.Name, null);

var baselineTotal = corridor.Baselines.Count;
var baselineMatched = 0;
var regionsInMatchedBaselines = 0;
var regionMatched = 0;
var matchingRegionCountComplete = true;

foreach (Baseline baseline in corridor.Baselines)
{
    var baselineName = baseline.Name;
    if (!string.IsNullOrWhiteSpace(baselineNameFilter)
        && !baselineName.Equals(baselineNameFilter, StringComparison.OrdinalIgnoreCase))
        continue;
    baselineMatched++;

    foreach (BaselineRegion region in baseline.BaselineRegions)
    {
        regionsInMatchedBaselines++;
        var regionName = region.Name;
        if (!string.IsNullOrWhiteSpace(regionNameFilter)
            && !regionName.Equals(regionNameFilter, StringComparison.OrdinalIgnoreCase))
            continue;
        regionMatched++;

        SubassemblyTargetInfoCollection targetInfos;
        try
        {
            targetInfos = region.GetTargets();
        }
        catch (System.Exception error)
        {
            targetEnumerationErrorCount++;
            matchingRegionCountComplete = false;
            addDiagnostic("REGION_TARGETS_UNAVAILABLE", baselineName, regionName, error);
            continue;
        }

        foreach (SubassemblyTargetInfo targetInfo in targetInfos)
        {
            targetMappingTotal++;
            if (targetMappings.Count >= targetLimit) continue;

            ObjectIdCollection targetIds;
            try
            {
                targetIds = targetInfo.TargetIds;
                if (targetIds == null) throw new System.InvalidOperationException();
            }
            catch (System.Exception error)
            {
                targetEnumerationErrorCount++;
                matchingRegionCountComplete = false;
                addDiagnostic("TARGET_IDS_UNAVAILABLE", baselineName, regionName, error);
                continue;
            }
            targetIdsInReturnedMappings += targetIds.Count;
            var targetObjects = new List<object>();
            var mappingWarningCodes = new List<string>();
            var inspectedTargetIds = 0;
            foreach (ObjectId targetId in targetIds)
            {
                if (inspectedTargetIds >= targetObjectLimit) break;
                inspectedTargetIds++;
                targetIdsInspectedInReturnedMappings++;

                string targetHandle = null;
                try
                {
                    if (!targetId.IsNull) targetHandle = targetId.Handle.ToString();
                }
                catch
                {
                }

                bool? matchesOwnCorridorSurface = null;
                if (selfSurfaceCheckStatus == "complete")
                    matchesOwnCorridorSurface = !targetId.IsNull && ownSurfaceIds.Contains(targetId);
                else if (!mappingWarningCodes.Contains("SELF_SURFACE_CHECK_UNKNOWN"))
                    mappingWarningCodes.Add("SELF_SURFACE_CHECK_UNKNOWN");

                if (matchesOwnCorridorSurface == true)
                {
                    const string selfWarning = "POTENTIAL_SELF_CORRIDOR_SURFACE_TARGET";
                    mappingWarningCodes.Add(selfWarning);
                    addWarning(selfWarning, baselineName, regionName);
                }

                try
                {
                    if (targetId.IsNull)
                    {
                        targetObjectOpenErrorCount++;
                        targetObjects.Add(new { handle = (string)null, objectType = (string)null, name = (string)null, matchesOwnCorridorSurface, openErrorType = "NullObjectId" });
                        addWarning("NULL_TARGET_OBJECT_ID", baselineName, regionName);
                        continue;
                    }

                    var targetObject = Transaction.GetObject(targetId, OpenMode.ForRead);
                    var targetCivilEntity = targetObject as Autodesk.Civil.DatabaseServices.Entity;
                    targetObjects.Add(new
                    {
                        handle = targetHandle,
                        objectType = targetObject.GetType().FullName,
                        name = targetCivilEntity?.Name,
                        matchesOwnCorridorSurface,
                        openErrorType = (string)null
                    });
                }
                catch (System.Exception error)
                {
                    targetObjectOpenErrorCount++;
                    targetObjects.Add(new { handle = targetHandle, objectType = (string)null, name = (string)null, matchesOwnCorridorSurface, openErrorType = error.GetType().Name });
                    addWarning("TARGET_OBJECT_OPEN_FAILED", baselineName, regionName);
                }
            }

            targetMappings.Add(new
            {
                baselineName,
                regionName,
                startStation = region.StartStation,
                endStation = region.EndStation,
                parameterLogicalName = targetInfo.LogicalName,
                parameterDisplayName = targetInfo.DisplayName,
                targetType = targetInfo.TargetType.ToString(),
                targetToOption = targetInfo.TargetToOption.ToString(),
                subassemblyName = targetInfo.SubassemblyName,
                assemblyGroupName = targetInfo.AssemblyGroupName,
                targetIdCount = targetIds.Count,
                targetObjectsInspected = inspectedTargetIds,
                targetObjectsReturned = targetObjects.Count,
                targetObjectsTruncated = targetIds.Count > inspectedTargetIds,
                warningCodes = mappingWarningCodes,
                targets = targetObjects
            });
        }
    }
}

if (!string.IsNullOrWhiteSpace(baselineNameFilter) && baselineMatched == 0)
    addWarning("BASELINE_FILTER_NO_MATCH", baselineNameFilter, null);
else if (!string.IsNullOrWhiteSpace(regionNameFilter) && regionMatched == 0)
    addWarning("REGION_FILTER_NO_MATCH", baselineNameFilter, regionNameFilter);

return new
{
    success = true,
    corridorName = corridor.Name,
    corridorHandle = corridor.Handle.ToString(),
    baselineNameFilter = string.IsNullOrWhiteSpace(baselineNameFilter) ? null : baselineNameFilter,
    regionNameFilter = string.IsNullOrWhiteSpace(regionNameFilter) ? null : regionNameFilter,
    baselineCount = baselineTotal,
    baselineMatched,
    regionsInMatchedBaselines,
    regionMatched,
    targetMappingTotal,
    targetMappingsReturned = targetMappings.Count,
    targetMappingsTruncated = targetMappingTotal > targetMappings.Count,
    targetIdsInReturnedMappings,
    targetIdsInspectedInReturnedMappings,
    targetIdsUninspectedInReturnedMappings = targetIdsInReturnedMappings - targetIdsInspectedInReturnedMappings,
    targetObjectOpenErrorCount,
    warningObjectScope = "ObjectIds in returned mappings, limited by targetObjectLimit per mapping",
    allMatchedTargetsInspected = targetMappingTotal == targetMappings.Count
        && targetIdsInspectedInReturnedMappings == targetIdsInReturnedMappings
        && targetObjectOpenErrorCount == 0
        && targetEnumerationErrorCount == 0
        && selfSurfaceCheckStatus == "complete",
    targetLimit,
    targetObjectLimit,
    targetEnumerationErrorCount,
    targetEnumerationComplete = matchingRegionCountComplete,
    ownCorridorSurfaceCount = ownSurfaceCount,
    selfSurfaceCheckStatus,
    warningCount,
    warningCounts,
    warningsReturned = warnings.Count,
    warningsTruncated = warningCount > warnings.Count,
    warnings,
    diagnosticCount,
    diagnosticsReturned = diagnostics.Count,
    diagnosticsTruncated = diagnosticCount > diagnostics.Count,
    diagnostics,
    targetMappings
};

Read the full file on GitHub · 317 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. today First seen · 317 lines · 20 tokens per session scan A d5d44e2f9a69

Subscribe to this mod's changes

corridor_target_audit is a skill published in the GitHub repository nezolder/civil3d-mcp-roslyn (3 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 3,028 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-02.

Related

Other skills, from other repositories

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

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…

vercel/next.js · 103 tokens

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…

microsoft/vscode · 72 tokens

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.

microsoft/vscode · 62 tokens

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.

microsoft/vscode · 51 tokens