api-gateway: Skill for Claude Code

.claude/skills/membrane-config/SKILL.md

membrane-config is a skill for Claude Code from membrane/api-gateway. It costs 167 tokens per session (1,514 once invoked), scanned A, original, Apache-2.0.

A configuration generator for Membrane API Gateway, a tool that routes and processes API traffic. It produces modern apis.yaml files or legacy proxies.xml files when requested.

In plain words
What is it for?
Use it to configure routes, backend forwarding, headers, rate limiting, authentication, OpenAPI-related flows, and other Membrane gateway behavior.
Why use it?
It reduces errors in gateway configuration by grounding examples in working files and the allowed configuration schema.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to membrane/api-gateway. 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/membrane/api-gateway/master/.claude/skills/membrane-config/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/membrane/api-gateway

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 membrane-config

README.md
[![agentmods](https://agentmods.dev/badge/skills/membrane/api-gateway/membrane-config/github.svg)](https://agentmods.dev/skills/membrane/api-gateway/membrane-config)
Your own site
<a href="https://agentmods.dev/skills/membrane/api-gateway/membrane-config"><img src="https://agentmods.dev/badge/skills/membrane/api-gateway/membrane-config/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 membrane-config

Your own site · 80×15
<a href="https://agentmods.dev/skills/membrane/api-gateway/membrane-config"><img src="https://agentmods.dev/badge/skills/membrane/api-gateway/membrane-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00167 $0.01514
Opus 5.5 $0.00067 $0.00606
Sonnet 5.5 $0.00033 $0.00303
Haiku 4.5 $0.00017 $0.00151

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

Security

Grade A, and why

membrane-config scanned grade A with 1 finding 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 2mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/describe_element.py, scripts/validate_config.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

useful, a `curl` line to try it. Add short comments in that spirit — explain
.claude/skills/membrane-config/SKILL.md · 119 lines

How it starts

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

Membrane configuration generator

Membrane is configured declaratively. The modern format is apis.yaml; a legacy Spring proxies.xml format also exists. This skill produces correct, idiomatic config by doing what a careful engineer does: copy the shape from a real working example, confirm exact attribute names against the schema, and validate before handing it over.

Two sources of truth, and they play different roles:

  • distribution/tutorials/**/*.yaml — idiom and style. Heavily commented, curated, and the best examples in the repo. Treat these as gold. distribution/examples/** adds more (including proxies.xml).
  • membrane.schema.json — what's actually allowed: every element, its exact attribute names, enum values, and nesting. The model's main failure mode is inventing plausible-but-wrong attribute names; the schema is how you avoid that.

Don't generate config from memory alone. The element set is large (~255 elements) and evolves; ground every snippet.

Workflow

  1. Clarify intent only if needed. What should the gateway do? Default to one api on port 2000 forwarding to a target.url unless the request implies otherwise. Don't over-ask — most requests map cleanly onto a known pattern.

  2. Find a close example. Skim references/cheatsheet.md for the matching pattern, then look at the real tutorial for the live version:

    grep -rl "rateLimiter:" distribution/tutorials distribution/examples
    

    Reading the closest tutorial is the single highest-leverage step — it carries ordering, nesting, and conventions you'd otherwise guess at.

  3. Confirm exact attributes against the schema for every non-trivial element. Guessing attribute names is the main way these configs go wrong:

    python3 scripts/describe_element.py rateLimiter   # attributes + enums + children
    python3 scripts/describe_element.py --grep auth   # discover element names
    python3 scripts/describe_element.py --list        # all element ids
    

Read the full file on GitHub · 119 lines

Files

What ships with it

4 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. 2mo ago First seen · 119 lines · 167 tokens per session scan A 62b00ff8e510

Subscribe to this mod's changes

membrane-config is a skill published in the GitHub repository membrane/api-gateway (656 stars, last pushed yesterday), licensed Apache-2.0. It adds 167 tokens to every session and 1,514 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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