solana-developer-platform: Skill for Claude Code

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

rail-discovery is a skill for Claude Code, Codex from solana-foundation/solana-developer-platform. It costs 42 tokens per session (1,962 once invoked), scanned A, original, MIT.

A development skill for declaring which fiat currencies and cryptocurrencies a payment provider supports for buying or selling crypto. Fiat means government-issued money such as euros or dollars.

In plain words
What is it for?
Use it when adding or updating a provider’s on-ramp or off-ramp currency support in a payments platform.
Why use it?
It keeps provider support data consistent and prevents developers from manually editing generated support tables.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is solana-foundation/solana-developer-platform's own configuration. It tells Claude Code and Codex how to work on solana-developer-platform 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 solana-developer-platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to solana-foundation/solana-developer-platform. 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/solana-foundation/solana-developer-platform/main/.agents/skills/rail-discovery/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/solana-foundation/solana-developer-platform

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 rail-discovery

README.md
[![agentmods](https://agentmods.dev/badge/skills/solana-foundation/solana-developer-platform/rail-discovery/github.svg)](https://agentmods.dev/skills/solana-foundation/solana-developer-platform/rail-discovery)
Your own site
<a href="https://agentmods.dev/skills/solana-foundation/solana-developer-platform/rail-discovery"><img src="https://agentmods.dev/badge/skills/solana-foundation/solana-developer-platform/rail-discovery/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 rail-discovery

Your own site · 80×15
<a href="https://agentmods.dev/skills/solana-foundation/solana-developer-platform/rail-discovery"><img src="https://agentmods.dev/badge/skills/solana-foundation/solana-developer-platform/rail-discovery.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,962 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00042 $0.01962
Opus 5 $0.00021 $0.00981
Sonnet 5 $0.00008 $0.00392
Haiku 4.5 $0.00004 $0.00196

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

Security

Grade A, and why

rail-discovery 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 5d 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-discovery/SKILL.md · 140 lines

How it starts

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

Rail discovery

The platform serves a generated support matrix — which (fiat, crypto) pairs each provider can on/off-ramp — from packages/sdp-types/src/generated/ramp.generated.ts (ONRAMP_SUPPORT, OFFRAMP_SUPPORT, RAMP_FIAT_CURRENCIES). You do not hand-edit that file. You teach your provider to report its rails, then a script distills live provider responses into a committed per-provider snapshot and merges every provider's snapshot into the matrix.

Implement rail support in packages/sdp-payments; the codegen (apps/sdp-api/scripts/ramp-support.ts) owns snapshots and the generated matrix. Choose one source:

  1. Upstream discovery API: add RAMP_RAIL_DUMPS.<id> in packages/sdp-payments/src/ramps/shared.ts; _discoverRails writes raw responses; distillRailSupport reads and normalizes them.
  2. No discovery API: make _discoverRails a no-op and return an explicit, tested snapshot from distillRailSupport. Do not invent a network endpoint or dump.

Both paths declare <PROVIDER>_DECLARED_RAIL_SUPPORT for entity types and country support not discovered in the snapshot. Reference the existing providers under packages/sdp-payments/src/ramps/providers/ — single-dump, multi-endpoint, discovered-country-support, and static-support variants are all represented.

The data flow

_discoverRails ──fetch──▶ .ramp-support/raw/<id>/*.json        (gitignored raw dumps)
distillRailSupport ──parse──▶ .ramp-support/<id>.currency.json  (committed snapshot)
ramp-support:generate ──merge snapshots + declared consts──▶ ramp.generated.ts  (committed)

Raw dumps under .ramp-support/raw/ are gitignored — network scratch, safe to delete and re-fetch. The snapshot (.ramp-support/<id>.currency.json) and the generated .ts are both committed and must be regenerated together when your support changes.

Step 1 — choose the source

For discovery-backed support, add an entry to RAMP_RAIL_DUMPS in packages/sdp-payments/src/ramps/shared.ts, one per upstream response:

Read the full file on GitHub · 140 lines

Files

What ships with it

1 file 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. 5d ago Changed 3ebae1f18fa6
  2. 9d ago First seen · 140 lines · 42 tokens per session scan A 0b2c7bb48e01

Subscribe to this mod's changes

rail-discovery is a skill published in the GitHub repository solana-foundation/solana-developer-platform (52 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,962 once invoked, about $0.0002 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-30.