todox: Skill for Claude Code

.claude/skills/add-rpc-method/SKILL.md

add-rpc-method is a skill for Claude Code from beydemirfurkan/todox. It costs 48 tokens per session (1,054 once invoked), scanned A, original, MIT.

A development guide for adding, renaming, or removing todox remote procedure call (RPC) methods and agent-callable MCP tools. RPC methods are named operations that another program can request.

In plain words
What is it for?
Changing todox RPC methods or MCP tools, including their input fields, descriptions, handlers, and related registrations.
Why use it?
It reduces mistakes caused by changing only part of the tool's schema, server registration, or handler. It explains the required files and the validation rules that keep the interface consistent.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is beydemirfurkan/todox's own configuration. It tells Claude Code how to work on todox 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 todox configures →

Reuse

Borrowing it

Nothing to install: this file belongs to beydemirfurkan/todox. 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/beydemirfurkan/todox/main/.claude/skills/add-rpc-method/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/beydemirfurkan/todox

Made for: Claude Code.

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 add-rpc-method

README.md
[![agentmods](https://agentmods.dev/badge/skills/beydemirfurkan/todox/add-rpc-method/github.svg)](https://agentmods.dev/skills/beydemirfurkan/todox/add-rpc-method)
Your own site
<a href="https://agentmods.dev/skills/beydemirfurkan/todox/add-rpc-method"><img src="https://agentmods.dev/badge/skills/beydemirfurkan/todox/add-rpc-method/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 add-rpc-method

Your own site · 80×15
<a href="https://agentmods.dev/skills/beydemirfurkan/todox/add-rpc-method"><img src="https://agentmods.dev/badge/skills/beydemirfurkan/todox/add-rpc-method.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,054 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.00048 $0.01054
Opus 5 $0.00024 $0.00527
Sonnet 5 $0.00010 $0.00211
Haiku 4.5 $0.00005 $0.00105

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

Security

Grade A, and why

add-rpc-method 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 9d 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.

.claude/skills/add-rpc-method/SKILL.md · 93 lines

How it starts

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

Adding an RPC method

Every agent-facing capability is the same six-file change. The order matters: the schema is the contract, and the handler will not compile without it.

1. Schema — lib/services/rpc-schemas.ts

Add the parameter shape to SHAPES. This is the runtime contract and the MCP tool surface: mcp/server.ts imports the same object, so a tool cannot advertise an argument the server rejects.

  • .describe() text is read by a model deciding whether to call the tool. Write it for that reader, not for a human skimming types.
  • Objects are built .strict() in OBJECTS, so unknown keys are an error rather than something a repository has to defend against.
  • If the method is a patch, add a .refine() next to updateTask / updateProject requiring at least one field. A patch of nothing used to return the unchanged row, which reads to an agent exactly like a success.
  • Fields a local process can fill in itself (repo_root, tz) go in the schema and are hidden from the model only in local mode (LOCAL_INTERNAL in mcp/tools.ts). Hosted, nobody but the agent knows them, so they are advertised and the .describe() text has to tell it what to send.

2. Handler — lib/services/rpc.ts

Add it to methods. The object is satisfies Record<MethodName, …> and MethodName comes from the keys of SHAPES, so a handler without a schema is a compile error — that is the guardrail, keep it.

The handler signature is TypeScript and is erased at build time. It guards nothing. Validation happened in step 1.

3. Where the work lives

  • One table → a repository in lib/repositories/.
  • More than one table, or anything that must stay consistent across tables (a status change writing a task_events row) → lib/services/.
  • Repositories never call each other.
  • Ownership is asserted in exactly one place: lib/services/ownership.ts. Do not inline WHERE user_id = ? at the call site. A row belonging to somebody else answers 404, never 403.

Read the full file on GitHub · 93 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. 9d ago First seen · 93 lines · 48 tokens per session scan A db75743ceb91

Subscribe to this mod's changes

add-rpc-method is a skill published in the GitHub repository beydemirfurkan/todox (2 stars, last pushed yesterday), licensed MIT. It adds 48 tokens to every session and 1,054 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-31.

Related

Other skills, from other repositories

inbound-email

Handle email arriving at a ServiceNow instance — inbound email action ordering and stop-processing, the real syseventinemailaction column names, and reading sysemail when a message created no record.

serac-labs/serac · 43 tokens

background-script-execution

What actually happens when you call snowexecutescript — the Scripted REST endpoint Serac auto-deploys on first use, the scheduled-job fallback, what scheduledjobpending means, and how to get output back when the call comes home empty.

serac-labs/serac · 54 tokens

csdm-modeling

Pick the right ServiceNow service class under the Common Service Data Model — business service, service offering, application service, business application — and point the CMDB tools at it without creating the records CSDM tells customers to migrate away from.

serac-labs/serac · 53 tokens

mcp-tool-discovery

Find and call tools on this ServiceNow MCP server — the two meta-tools it starts with, why a missing session id makes every other tool unreachable, which queries actually match, and which advertised tools are not on the server at all.

serac-labs/serac · 53 tokens

cmdb-patterns

Create ServiceNow CIs and cmdbrelci relationships, walk upstream/downstream impact, detect orphan/stale CIs, and align discovered CIs with the proper sysclassname hierarchy.

serac-labs/serac · 43 tokens

catalog-items

Build ServiceNow Service Catalog items, variables, variable sets, catalog client scripts, record producers, and order guides with reference qualifiers and dynamic pricing.

serac-labs/serac · 32 tokens