membrane-config

membrane-config is a skill for Claude Code, Codex 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 CodeCodex

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.

agentmods
npx agentmods add skills/membrane/api-gateway/membrane-config
Any agent
npx skills add membrane/api-gateway --skill membrane-config
Clone the repo
git clone --depth 1 https://github.com/membrane/api-gateway

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/membrane/api-gateway/membrane-config.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00167 $0.01514
Opus 5 $0.00084 $0.00757
Sonnet 5 $0.00033 $0.00303
Haiku 4.5 $0.00017 $0.00151

Measured 4d ago against content hash 62b00ff8e510, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (640 stars, last pushed today), licensed Apache-2.0. It adds 167 tokens to every session and 1,514 once invoked, about $0.0008 per session on Opus 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

api-design-patterns

Design robust APIs with RESTful patterns, GraphQL schemas, versioning strategies, and error handling conventions. Supports OpenAPI/Swagger documentation and SDK generation patterns. Triggers on API design, schema definition, endpoint architecture, or developer experience requests.

organvm-iv-taxis/a-i--skills · 54 tokens

api-designer

Designs production-grade APIs — REST, GraphQL, gRPC, and AsyncAPI patterns including pagination, versioning, error handling, rate limiting, and API governance. Use when the user asks to design APIs, create endpoints, build an API layer, write OpenAPI specs, or needs help with REST/GraphQL/gRPC service design.

buiphucminhtam/forgewright · 73 tokens

api-design

Design and implement RESTful APIs with proper routing, validation, error handling, and documentation. Use when building new API endpoints, designing API architecture, or improving existing APIs.

asgarovf/locusai · 37 tokens

api-design-first

Design-first API development skill. Generates OpenAPI 3.1 specifications, enforces REST design best practices, validates endpoints, handles versioning, pagination, error formatting, authentication patterns, rate limiting, and idempotency. Activates when users say "design an API", "create OpenAPI spec", "API endpoint"…

JPeetz/agent-skills · 117 tokens

construtor-de-api

Construção e documentação de APIs REST e GraphQL: design de endpoints, versionamento, autenticação, tratamento de erros, documentação OpenAPI 3.0 e boas práticas de segurança e performance.

ricneves-ai/flowgrammers-skills · 46 tokens

lap

LAP CLI -- compile, search, and manage API specs for AI agents. Use when working with API specifications (OpenAPI, GraphQL, AsyncAPI, Protobuf, Postman), compiling specs to LAP format, searching the LAP registry, generating skills from API specs, or publishing APIs. Commands: init, compile, search, get, skill…

Lap-Platform/LAP · 89 tokens