rpc-messaging-and-webhooks

rpc-messaging-and-webhooks is a skill for Claude Code, Codex from makifbaysal/tasktrooper. It costs 83 tokens per session (1,883 once invoked), scanned A, original, Apache-2.0.

A security review guide for services that communicate through gRPC, GraphQL, message queues, publish-subscribe systems, or webhooks. It checks who sent each message, what identity the handler uses, and whether each message or event is authorized and current.

In plain words
What is it for?
Use it when changing RPC methods, GraphQL resolvers or subscriptions, protobuf or Thrift schemas, queue consumers or producers, event handlers, or inbound webhooks.
Why use it?
Internal services and valid message formats do not prove that the sender is trusted or allowed to act. Missing checks can let callers impersonate users, bypass authorization, replay events, or use an unprotected streaming or callback path.

Skill for Claude CodeCodex

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

Good fit Use it when changing RPC methods, GraphQL resolvers or subscriptions, protobuf or Thrift schemas, queue consumers or producers, event handlers, or inbound webhooks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/makifbaysal/tasktrooper/rpc-messaging-and-webhooks
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 makifbaysal/tasktrooper --skill rpc-messaging-and-webhooks
Clone the repo
git clone --depth 1 https://github.com/makifbaysal/tasktrooper

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 rpc-messaging-and-webhooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/rpc-messaging-and-webhooks/github.svg)](https://agentmods.dev/skills/makifbaysal/tasktrooper/rpc-messaging-and-webhooks)
Your own site
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/rpc-messaging-and-webhooks"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/rpc-messaging-and-webhooks/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 rpc-messaging-and-webhooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/rpc-messaging-and-webhooks"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/rpc-messaging-and-webhooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,883 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.00083 $0.01883
Opus 5.5 $0.00033 $0.00753
Sonnet 5.5 $0.00017 $0.00377
Haiku 4.5 $0.00008 $0.00188

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

Security

Grade A, and why

rpc-messaging-and-webhooks 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 10d 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.

catalog/agents/security-agent/skills/rpc-messaging-and-webhooks/SKILL.md · 117 lines

How it starts

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

RPC, Messaging and Webhooks

Overview

Behind the HTTP edge, services talk through RPC calls, queues and callbacks, and two beliefs keep failing there: "it is internal, so it is authenticated" and "it passed the schema, so it is safe". A schema proves a message's shape — not who sent it, which tenant it may touch, whether it was already processed, or whether it is still current.

Core principle: at every hop, name the authenticated peer and show how it becomes the principal the handler authorizes. A field inside the message that names a user or tenant is a claim, not an identity.

1. gRPC Interceptors and Method Coverage (CWE-306, CWE-862)

// ❌ only unary calls are authenticated; every streaming method is open
srv := grpc.NewServer(grpc.UnaryInterceptor(authUnary))

// ✅ both kinds, and the skip list is exact method names, not prefixes
srv := grpc.NewServer(
	grpc.ChainUnaryInterceptor(authUnary),
	grpc.ChainStreamInterceptor(authStream),
)

Also: a skip list matched with strings.HasPrefix(info.FullMethod, "/pkg.Health") that also matches /pkg.HealthAdmin/…; server reflection registered on a public listener next to unauthenticated methods; grpc-gateway or Connect transcoding that reaches the same handler through an HTTP route the interceptor does not see; identity read from metadata such as x-user-id that any client can send.

2. Per-Item and Streaming Authorization

A stream, subscription or batch is authorized once, then later items name different resources:

  • a bidirectional stream checks the first message's project and trusts the rest;
  • a GraphQL subscription authorized at connect keeps delivering after the user's role is revoked;
  • a batch RPC with repeated string ids checks ids[0];
  • a WebSocket that subscribes by channel name builds the channel from client input ("org." + msg.org).

Re-check where the scope can change, and bind a subscription to the principal and resources it started with.

3. GraphQL Specifics

  • Authorization in a field resolver, not only on the root query: the parent was checked, the nested resolver loads by raw id (access-control-and-idor §4).
  • A directive or middleware applied to Query but not to Mutation or Subscription.
  • Node or id lookups (node(id:)) that resolve any type by global id without the type's own check.
  • Introspection enabled is not a finding by itself; query depth and cost limits are availability (excluded).

Read the full file on GitHub · 117 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. 10d ago First seen · 117 lines · 83 tokens per session scan A e2f2ee9e7713

Subscribe to this mod's changes

rpc-messaging-and-webhooks is a skill published in the GitHub repository makifbaysal/tasktrooper (118 stars, last pushed 4d ago), licensed Apache-2.0. It adds 83 tokens to every session and 1,883 once invoked, about $0.0003 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-15.