speckit.maqa-linear.setup

speckit.maqa-linear.setup is a command for coding agents from Badminton-Apps/badman. It costs 34 tokens per session (565 once invoked), scanned A, original, Apache-2.0.

Bootstrap Linear config for MAQA. Lists your teams and workflow states via the Linear GraphQL API and generates maqa-linear/linear-config.yml. Run once per project.

Command

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 commands/badminton-apps/badman/speckit.maqa-linear.setup
Clone the repo
git clone --depth 1 https://github.com/Badminton-Apps/badman

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 speckit.maqa-linear.setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/badminton-apps/badman/speckit.maqa-linear.setup.svg)](https://agentmods.dev/commands/badminton-apps/badman/speckit.maqa-linear.setup)
Your own site
<a href="https://agentmods.dev/commands/badminton-apps/badman/speckit.maqa-linear.setup"><img src="https://agentmods.dev/badge/commands/badminton-apps/badman/speckit.maqa-linear.setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 565 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.00034 $0.00565
Opus 5 $0.00017 $0.00282
Sonnet 5 $0.00007 $0.00113
Haiku 4.5 $0.00003 $0.00056

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

Security

Grade A, and why

speckit.maqa-linear.setup 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 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.

Makes network callslowCapability

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

curl -s -X POST https://api.linear.app/graphql \
.specify/extensions/maqa-linear/commands/speckit.maqa-linear.setup.md · 70 lines

What it actually says

You are setting up Linear integration for MAQA.

Prerequisites check

[ -n "$LINEAR_API_KEY" ] && echo "LINEAR_API_KEY: set" || echo "ERROR: LINEAR_API_KEY not set — get it from Linear Settings → API → Personal API keys"

Stop if missing.

Step 1 — List teams

curl -s -X POST https://api.linear.app/graphql \
  -H "Authorization: $LINEAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ teams { nodes { id name } } }"}' | \
  python3 -c "
import json,sys
data = json.load(sys.stdin)
for t in data['data']['teams']['nodes']:
    print(f\"{t['id']} — {t['name']}\")
"

Ask user which team to use.

Step 2 — Get workflow states for selected team

TEAM_ID="<selected>"
curl -s -X POST https://api.linear.app/graphql \
  -H "Authorization: $LINEAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"query\":\"{ team(id: \\\"$TEAM_ID\\\") { states { nodes { id name type } } } }\"}" | \
  python3 -c "
import json,sys
data = json.load(sys.stdin)
for s in data['data']['team']['states']['nodes']:
    print(f\"{s['type']:12} {s['id']} — {s['name']}\")
"

Map states to MAQA slots (use type as guide: backlog, unstarted→todo, started→in_progress, completed→done). Ask user to confirm or correct mappings.

Step 3 — Write config

mkdir -p maqa-linear
cat > maqa-linear/linear-config.yml << EOF
# MAQA Linear Configuration — generated $(date -Iseconds)
team_id: "$TEAM_ID"
team_name: "$TEAM_NAME"
backlog_state_id: "$BACKLOG_ID"
todo_state_id: "$TODO_ID"
in_progress_state_id: "$IN_PROGRESS_ID"
in_review_state_id: "$IN_REVIEW_ID"
done_state_id: "$DONE_ID"
assignee_id: ""
EOF

Done

Report mapped states and tell user to run /speckit.maqa.coordinator — Linear integration activates automatically.

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 First seen · 70 lines · 34 tokens per session scan A f11eedaefa33

Subscribe to this mod's changes

speckit.maqa-linear.setup is a command published in the GitHub repository Badminton-Apps/badman (13 stars, last pushed today), licensed Apache-2.0. It adds 34 tokens to every session and 565 once invoked, about $0.0002 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-09-04.