asyncapi-parser

asyncapi-parser is a skill for Claude Code from pactflow/pactflow-agent-skills. It costs 160 tokens per session (2,124 once invoked), scanned A, original, MIT.

A parser for AsyncAPI 3.x files that creates Drift test cases from their message definitions. AsyncAPI is a format for describing event-driven services, and Drift is the testing system these generated cases target.

In plain words
What is it for?
Use it to scaffold Drift tests from AsyncAPI operations, channels, message schemas, references, optional fields, and variants such as one-of or any-of choices.
Why use it?
It turns message schemas and their variations into test inputs, including linked definitions and alternative payload shapes. It stops when given an unsupported AsyncAPI 2.x file instead of treating it as a newer format.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is - ./hooks/trigger-send.py.

Part of the swagger-contract-testing plugin — 6 skills, 6 agents, 2 hooks, 1 MCP server shipped together

Good fit Use it to scaffold Drift tests from AsyncAPI operations, channels, message schemas, references, optional fields, and variants such as one-of or any-of choices.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/pactflow/pactflow-agent-skills
agentmods
npx agentmods add skills/pactflow/pactflow-agent-skills/asyncapi-parser

Made for: Claude Code.

Or install swagger-contract-testing, the plugin that ships this one along with the rest of its 6 skills, 6 agents, 2 hooks, 1 MCP server.

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 asyncapi-parser

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pactflow/pactflow-agent-skills/asyncapi-parser"><img src="https://agentmods.dev/badge/skills/pactflow/pactflow-agent-skills/asyncapi-parser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 160 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,124 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.00160 $0.02124
Opus 5.5 $0.00064 $0.00850
Sonnet 5.5 $0.00032 $0.00425
Haiku 4.5 $0.00016 $0.00212

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

Security

Grade A, and why

asyncapi-parser 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 15d 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.

plugins/swagger-contract-testing/skills/asyncapi-parser/SKILL.md · 193 lines

How it starts

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

AsyncAPI Parser Skill

AsyncAPI version: This skill targets AsyncAPI 3.x (3.0 and 3.1). AsyncAPI 2.x is NOT supported by Drift — if the spec has asyncapi: "2.x.x", tell the user and stop.

Reference files

  • references/asyncapi-schema-patterns.md — how to read and enumerate AsyncAPI 3.x message schemas (oneOf / anyOf / allOf / discriminator / const / correlationId / optional payload fields)
  • references/asyncapi-drift-mapping.md — how to map each execution mode and payload variant to Drift YAML, including trigger/probe patterns, expected structure per mode, and naming conventions

Workflow

0. Navigate large specifications without loading them wholesale

For a specification over 1,000 lines or 100 KB, do not read or paste the whole file. Build a line-number index, then inspect only the operation and definitions that are reachable from it:

# Establish the document size and top-level section boundaries.
wc -l -c asyncapi.yaml
grep -nE '^(operations|channels|components):' asyncapi.yaml

# List AsyncAPI operation IDs without reading their bodies.
awk '/^operations:/{in_operations=1; next} in_operations && /^[^ ]/{exit} in_operations && /^  [A-Za-z0-9._-]+:$/ {print NR ":" $0}' asyncapi.yaml

For a requested operation, locate its line number, then use sed -n to read a bounded range ending at the next operation at the same indentation. Follow the same pattern for the referenced channel, message, and schema definitions. Never expand unrelated operations, channels, or every item under components merely to find a match.

Keep a compact fact ledger while resolving references:

item source line refs still to resolve resolved facts
operation action, channel, messages, reply
channel address
message correlation ID, headers, payload ref
schema variants, required fields, discriminator

Read the full file on GitHub · 193 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. 15d ago First seen · 193 lines · 160 tokens per session scan A a4fa319a5f12

Subscribe to this mod's changes

asyncapi-parser is a skill published in the GitHub repository pactflow/pactflow-agent-skills (7 stars, last pushed yesterday), licensed MIT. It adds 160 tokens to every session and 2,124 once invoked, about $0.0006 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-02.

Related

Other skills, from other repositories