code-mode

code-mode is a skill for Claude Code, Codex from paiml/rust-mcp-sdk. It costs 13 tokens per session (249 once invoked), scanned A, original, MIT.

Instructions for generating and running GraphQL queries against a server’s defined data schema. GraphQL is a way to request specific data from an API; these instructions require checking the schema and policies before validation and execution.

In plain words
What is it for?
Finding the right data types and query patterns, validating a generated query, showing its approval explanation, and executing it after approval.
Why use it?
They provide a controlled process for complex data lookups, including an approval step before a query is run.

Skill for Claude CodeCodex

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

Good fit Finding the right data types and query patterns, validating a generated query, showing its approval explanation, and executing it after approval.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paiml/rust-mcp-sdk/code-mode
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 paiml/rust-mcp-sdk --skill code-mode
Clone the repo
git clone --depth 1 https://github.com/paiml/rust-mcp-sdk

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 code-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/paiml/rust-mcp-sdk/code-mode/github.svg)](https://agentmods.dev/skills/paiml/rust-mcp-sdk/code-mode)
Your own site
<a href="https://agentmods.dev/skills/paiml/rust-mcp-sdk/code-mode"><img src="https://agentmods.dev/badge/skills/paiml/rust-mcp-sdk/code-mode/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 code-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/paiml/rust-mcp-sdk/code-mode"><img src="https://agentmods.dev/badge/skills/paiml/rust-mcp-sdk/code-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 249 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.00013 $0.00249
Opus 5.5 $0.00005 $0.00100
Sonnet 5.5 $0.00003 $0.00050
Haiku 4.5 $0.00001 $0.00025

Measured 1mo ago against content hash 661238390392, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-mode 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 1mo 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.

examples/skills/code-mode/SKILL.md · 31 lines

What it actually says

Code Mode

This server exposes validate_code and execute_code tools for running LLM-generated GraphQL queries with cryptographically signed approval tokens.

Before you generate a query

  1. Read skill://code-mode/references/schema.graphql for available types.
  2. Read skill://code-mode/references/examples.md for canonical patterns.
  3. Read skill://code-mode/references/policies.md for what's allowed.

Round-trip

  1. Generate a GraphQL query that satisfies the user's request.
  2. Call validate_code(code: "<your query>"). You'll get back an approval_token plus a human-readable explanation. Show the explanation to the user.
  3. After user approval, call execute_code(code, token). Any modification to code between validate and execute invalidates the token.

When NOT to use code mode

For simple lookups that match a curated tool (e.g. get_user_by_id), prefer that tool. Code mode is for the long tail of compositions that don't have dedicated tools.

Files

What ships with it

3 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. 1mo ago First seen · 31 lines · 13 tokens per session scan A 661238390392

Subscribe to this mod's changes

code-mode is a skill published in the GitHub repository paiml/rust-mcp-sdk (52 stars, last pushed 4d ago), licensed MIT. It adds 13 tokens to every session and 249 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-08-30.

Related

Other skills, from other repositories

azure-eventhub-rust

Azure Event Hubs library for Rust. Send and receive events for streaming data ingestion and batch processing. Triggers: "event hubs rust", "ProducerClient rust", "ConsumerClient rust", "send event rust", "streaming rust", "eventhub rust".

microsoft/skills · 58 tokens

mcp-builder

Design, build, configure, or debug Model Context Protocol servers for codewhale, including stdio and HTTP/SSE transports.

Hmbown/CodeWhale · 30 tokens

wxjava-module-selector

A decision guide for choosing the correct WxJava Maven module, dependency management file, and example for a WeChat use case. WxJava is a Java software development kit for services such as official accounts, mini programs, and payments.

binarywang/WxJava · 86 tokens

azure-maps-search-dotnet

Azure Maps SDK for .NET. Location-based services including geocoding, routing, rendering, geolocation, and weather. Use for address search, directions, map tiles, IP geolocation, and weather data. Triggers: "Azure Maps", "MapsSearchClient", "MapsRoutingClient", "MapsRenderingClient", "geocoding .NET", "route…

microsoft/skills · 91 tokens

azure-storage-queue-ts

Azure Queue Storage JavaScript/TypeScript SDK (@azure/storage-queue) for message queue operations. Use for sending, receiving, peeking, and deleting messages in queues. Supports visibility timeout, message encoding, and batch operations. Triggers: "queue storage", "@azure/storage-queue", "QueueServiceClient"…

microsoft/skills · 90 tokens

wxjava-api-contributor

A contributor guide for adding or maintaining official WeChat API support in WxJava, a Java software development kit. It covers services, request and response data objects, data conversion, HTTP handling, starter configuration, and regression tests.

binarywang/WxJava · 68 tokens