Rail-Connector-MCP: Skill for Codex

.agents/skills/rail-debugger/SKILL.md

rail-debugger is a skill for Codex from SNComrade/Rail-Connector-MCP. It costs 87 tokens per session (1,460 once invoked), scanned A, original, MIT.

A troubleshooting guide for Rail Connector, an MCP connection system involving Claude Code sessions and their control tools.

In plain words
What is it for?
Use it to diagnose missing tools, connection and broker failures, session searches, transcript waits, permissions, renaming, archiving, resuming, forking, and cleanup issues.
Why use it?
It helps separate configuration, installation, operating-system, authentication, session, and workflow problems before changes are made.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

This is SNComrade/Rail-Connector-MCP's own configuration. It tells Codex how to work on Rail-Connector-MCP itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Rail-Connector-MCP configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SNComrade/Rail-Connector-MCP. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SNComrade/Rail-Connector-MCP/main/.agents/skills/rail-debugger/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SNComrade/Rail-Connector-MCP

Made for: 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 rail-debugger

README.md
[![agentmods](https://agentmods.dev/badge/skills/sncomrade/rail-connector-mcp/rail-debugger.svg)](https://agentmods.dev/skills/sncomrade/rail-connector-mcp/rail-debugger)
Your own site
<a href="https://agentmods.dev/skills/sncomrade/rail-connector-mcp/rail-debugger"><img src="https://agentmods.dev/badge/skills/sncomrade/rail-connector-mcp/rail-debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,460 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.00087 $0.01460
Opus 5 $0.00044 $0.00730
Sonnet 5 $0.00017 $0.00292
Haiku 4.5 $0.00009 $0.00146

Measured 2d ago against content hash 3b5973ec979a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

rail-debugger 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 2d 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.

.agents/skills/rail-debugger/SKILL.md · 115 lines

How it starts

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

Rail Connector Debugger

Move from symptom to evidence before changing configuration, processes, or repo files. Read debugging-playbook.md for exact checks.

Diagnostic Layers

  1. Codex tool exposure
  2. MCP registration and process environment
  3. installed Claude executable and capabilities
  4. Windows broker or tmux ownership/lifecycle
  5. Claude authentication, trust, and terminal state
  6. session-log identity and transcript completion
  7. caller workflow and concurrency

Do not reinstall before identifying the failed layer.

Core Rules

  • Treat diagnose, inspect, list, and report-only requests as non-mutating. Stop before installation, process termination, configuration, or file edits unless the user asked for a fix.
  • Enforce the same-OS contract. Native Windows Codex controls native Windows Claude; WSL is separate.
  • On Windows, the broker owns Claude Code ConPTY sessions across MCP task refreshes. Distinguish Claude Desktop processes, MCP stdio clients, broker, and Claude Code children.
  • If tools are missing after code/config changes, verify registration and use a fresh Codex task before diagnosing runtime behavior.
  • Prefer the platform installer or codex mcp add plus codex mcp get over direct configuration edits. If a fallback edit is unavoidable, back up config.toml first and parse it afterward.
  • Call status and get_claude_capabilities; do not infer permission or Ultracode support from stale docs.
  • Request status.includeAgentDetails only when machine-wide Claude process inventory is necessary; managed-session status is the privacy-safe default.
  • Compare posture.requested, posture.resolved, posture.observed, posture.ultracodeAssessment, and evidence sources. Missing observation is unknown, not proof of failure.
  • Separate terminalState from the combined state; workflow activity can make the latter busy without inventing terminal-busy evidence. On Unix, inspect tmuxCompatibility and require tmux 3.2 or newer for a new or replacement launch.
  • For bypass failures, verify both policy enabled: true and confirmBypassPermissions: true. Local-host and isolated policies are both supported. Compare the policy fields and status.mcpProcess identity after registration changes. Inspect posture.audit.securityBoundary: isolated is an operator assertion, osIsolationVerified remains false, and allowed roots are not a Claude filesystem sandbox. Never silently downgrade an explicit bypass request.
  • For Ultracode failures, verify the dedicated booleans, omitted ordinary effort, calibrated probe exit status, MCP-process environment blockers, chosen launch mechanism, runtime effort, and sanitized workflow activity. advertisedAsEffort: false and helpListsUltracode: false mean only that CLI help did not list the literal value; check supportedByInstalledVersion, launchArgument, and the probe before calling the capability unavailable. Timeout or terminated probes are inconclusive. Compare the persisted child launchEnvironment with currentMcpEnvironment after refresh; do not use the new process to rewrite an existing session's launch evidence. xhigh alone is correlated evidence, not confirmed Ultracode. Treat bound high or max as conflicting effort evidence; leave unknown labels unmapped. Inspect the bound attachment lifecycle: current enter is active, a later exit is inactive, and skipped or partial history stays labeled even when a later complete transition restores current state. Inspect attentionStatus for a blocking environment, effort conflict, or terminal-rejection conflict. These records prove a client-side transition, not server-side orchestration.
  • For an explicit deep diagnostic, launch with debug: true and an optional debugFilter. Verify debugLog.status, identity, launch binding, and growth without returning its sensitive contents. On Windows, ready_acl_unverified is the expected success-with-ACL-caveat state. Debug capture can prove local argv and event timing; it cannot prove Anthropic's effective server-side effort.
  • For report-only posture, remember that built-in tool flags do not remove MCP or connector tools. The current MCP does not provide a verified strict MCP-config roster; inspect the effective roster and use filesystem isolation when connector-level writes must be impossible.
  • Before comparing Claude Desktop or CLI visuals, bind the view to the same managed name, conversation UUID, generation, and time window. An unbound screenshot cannot prove or disprove the MCP session's posture.
  • Prefer the transcript returned by wait_for_claude_turn over animated terminal capture. When textTruncated is true, use get_claude_result with the returned opaque, record-scoped resultId and verify the separate textSha256 content digest after the last chunk.
  • Distinguish needs_attention from a completed result with additive attention; the latter still contains a valid completed transcript plus a weaker warning to surface or resolve.
  • Treat renderer, parser, and composer mistakes as testable defects. Add a focused regression fixture before broad heuristic changes.
  • Treat spinner wording as variable Claude UI. Diagnose from animation glyphs, timing/interrupt markers, completion ordering, composer state, and transcript evidence rather than a fixed phrase list or a bare prose phrase.
  • Treat non-idle stop/replacement refusal and mutation leases as protective lifecycle behavior, not random failure.
  • A current MCP launch blocker must stop a new or replacement child, but it must not prevent read-only reconnection to an already-running managed child.

Read the full file on GitHub · 115 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2d ago Changed · +23 lines 3b5973ec979a
  2. 6d ago First seen · 92 lines · 87 tokens per session scan A 0f0d245dec10

Subscribe to this mod's changes

rail-debugger is a skill published in the GitHub repository SNComrade/Rail-Connector-MCP (0 stars, last pushed 3d ago), licensed MIT. It adds 87 tokens to every session and 1,460 once invoked, about $0.0004 per session on Opus 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-08-31.

Related

Other skills, from other repositories

geargrafx-debugging

Debug and trace TurboGrafx-16 / PC Engine / SuperGrafx games using the Geargrafx emulator MCP server. Provides workflows for HuC6280 CPU debugging, breakpoint management, hardware inspection, disassembly analysis, and execution tracing. Use when the user wants to debug a PC Engine game, trace code execution, inspect…

drhelius/Geargrafx · 164 tokens

root-cause-first

Use whenever something is broken and you are about to fix it - a failing test, a bug report, a crash, wrong output, flaky behavior. Forces reproduce -> isolate -> fix the cause -> re-run the repro, and bans fixes without a failing observation. Do NOT use for building new features or for changes where nothing is broken…

Hawkynt/ClaudeCodePortable · 79 tokens

create-skill

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

warpdotdev/warp · 64 tokens

figma-create-design-system-rules

Generates custom design system rules for the user's codebase. Use when user says "create design system rules", "generate rules for my project", "set up design rules", "customize design system guidelines", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server…

warpdotdev/warp · 71 tokens

figma-generate-library

Build or update a professional-grade design system in Figma from a codebase. Use when the user wants to create variables/tokens, build component libraries, set up theming (light/dark modes), document foundations, or reconcile gaps between code and Figma. This skill teaches WHAT to build and in WHAT ORDER — it…

warpdotdev/warp · 95 tokens

figma-implement-design

Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions "implement design", "generate code", "implement component", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via…

warpdotdev/warp · 81 tokens