amq-spec

amq-spec is a skill for Claude Code, Codex from avivsinai/agent-message-queue. It costs 150 tokens per session (1,874 once invoked), scanned A, original, MIT.

A two-agent workflow for designing a technical specification: each agent researches independently, then they discuss, draft, review, present, and execute the result.

In plain words
What is it for?
Use it to brainstorm architecture, compare design approaches, and produce a shared specification with another agent.
Why use it?
It reduces the chance that one agent's first idea becomes the plan without comparison or review.

Skill for Claude CodeCodex

Part of the amq-cli plugin — 2 skills shipped together

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/avivsinai/agent-message-queue/amq-spec
Any agent
npx skills add avivsinai/agent-message-queue --skill amq-spec
Clone the repo
git clone --depth 1 https://github.com/avivsinai/agent-message-queue

Made for: Claude Code, Codex.

Or install amq-cli, the plugin that ships this one along with the rest of its 2 skills.

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 amq-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/avivsinai/agent-message-queue/amq-spec.svg)](https://agentmods.dev/skills/avivsinai/agent-message-queue/amq-spec)
Your own site
<a href="https://agentmods.dev/skills/avivsinai/agent-message-queue/amq-spec"><img src="https://agentmods.dev/badge/skills/avivsinai/agent-message-queue/amq-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,874 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00150 $0.01874
Opus 5 $0.00075 $0.00937
Sonnet 5 $0.00030 $0.00375
Haiku 4.5 $0.00015 $0.00187

Measured today against content hash 50c379204054, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

amq-spec 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 today.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • amq-spec — 100% identical, 0 lines differ
skills/amq-spec/SKILL.md · 150 lines

How it starts

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

/amq-spec — Collaborative Specification Workflow

This skill defines a structured two-agent specification flow.

Use canonical phases in order: Research -> Discuss -> Draft -> Review -> Present -> Execute

Detailed step-by-step protocol lives in references/spec-workflow.md. This file is the concise operational entrypoint.

Parse Input

From the user prompt, extract:

  • topic: short kebab-case spec name (e.g., auth-token-rotation)
  • partner: partner agent handle (default: codex)
  • problem: the full design problem statement

If topic/problem are unclear, ask for clarification.

Pre-flight

  1. Verify AMQ is available: which amq
  2. Verify the AMQ root is discoverable (.amqrc, AMQ env vars, or the default .agent-mail layout); otherwise run: amq coop init
  3. Use thread name: spec/<topic>

First Action: Send problem to partner IMMEDIATELY

The entire point of the spec workflow is parallel research — both agents exploring the problem independently, then comparing notes. Every second you spend researching before sending is a second your partner sits idle waiting for the problem statement. That's why the send comes first, even though your instinct might be to "research first to give better context."

amq send --to <partner> --kind question \
  --labels workflow:spec,phase:request \
  --thread spec/<topic> --subject "Spec: <topic>" --body "<problem>"

Send the user's problem description verbatim — your own analysis goes in the research phase, not the kickoff. If you pre-analyze, you bias the partner's independent research, which defeats the purpose of having two perspectives.

Label Convention

Labels are how both agents and the receiver-side protocol table know which phase the conversation is in. Use existing AMQ kinds plus labels to express spec workflow semantics:

Phase Kind Labels
Problem statement question workflow:spec,phase:request
Research findings brainstorm workflow:spec,phase:research
Discussion brainstorm workflow:spec,phase:discuss
Plan draft review_request workflow:spec,phase:draft
Plan feedback review_response workflow:spec,phase:review
Final decision decision workflow:spec,phase:decision
Progress/ETA status workflow:spec

Read the full file on GitHub · 150 lines

Files

What ships with it

1 file 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. today Changed 50c379204054
  2. yesterday Changed 28bf56359cd6
  3. 5d ago First seen · 150 lines · 150 tokens per session scan A f74ed31c6def

Subscribe to this mod's changes

amq-spec is a skill published in the GitHub repository avivsinai/agent-message-queue (85 stars, last pushed today), licensed MIT. It adds 150 tokens to every session and 1,874 once invoked, about $0.0007 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-30.

Related

Other skills, from other repositories

craft-transactional-emails

Use when creating, restyling, reviewing, validating, or previewing Gram/Speakeasy transactional emails in LMX or MJML, including branded email, email screenshots, desktop/mobile QA, or files under server/internal/email/loops/.

speakeasy-api/gram · 56 tokens

datadog-insights

Investigate Gram production health and post a digest to Slack.

speakeasy-api/gram · 17 tokens

authoring-platform-mcp-skills

Use when adding, editing, reviewing, testing, or locating a reviewed skill distributed with the Platform MCP plugin; triggers include "Platform MCP skill", "platformmcpskills", "add a catalog workflow", "bundle a skill with Platform MCP", and "where should this Platform skill live?".

speakeasy-api/gram · 67 tokens

agent-self-scheduling

Schedule AI agent runs with cron, loops, or external clocks while avoiding unsafe tight autonomous timers.

sickn33/agentic-awesome-skills · 24 tokens

conventional-commit

Workflow for generating conventional commit messages following the Conventional Commits specification. MUST be invoked every time a commit is created. Guides construction of standardized commit messages with correct type, scope, description, body, and footer.

JanDeDobbeleer/oh-my-posh · 47 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens