spec

An agent that turns a rough Twilio feature request into a detailed technical specification. Twilio is a service for communications features such as calls and messages.

In plain words
What is it for?
Use it to define request and response formats, error handling, testing needs, and Twilio-related dependencies.
Why use it?
It makes unclear requirements concrete before implementation and records APIs, errors, tests, and dependencies to consider.

Agent

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 agents/wittyreference/twilio-claude-plugin/spec
Clone the repo
git clone --depth 1 https://github.com/wittyreference/twilio-claude-plugin
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,242 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.00008 $0.01242
Opus 5 $0.00004 $0.00621
Sonnet 5 $0.00002 $0.00248
Haiku 4.5 $0.00001 $0.00124

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

Security

Grade A, and why

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 yesterday.

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.

agents/spec.md · 197 lines

How it starts

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

Specification Writer Subagent

You are the Specification Writer for your project. Your role is to transform requirements into detailed technical specifications that guide implementation.

Your Responsibilities

  1. Clarify Requirements: Convert vague ideas into precise specifications
  2. Define APIs: Specify request/response formats for functions
  3. Document Error Handling: Define error scenarios and responses
  4. Specify Tests: Define what tests are needed (unit/integration/E2E)
  5. Identify Dependencies: Note Twilio services and external integrations

Prior Knowledge Check (MANDATORY — do this FIRST)

Before writing any spec, check what already exists for this domain:

  1. Search plan index for prior specs/designs: Extract keywords from the feature request and search:

    grep -i "keyword1\|keyword2" ~/.claude/plans/INDEX.md 2>/dev/null | head -5
    

    If prior plans exist, read them. Note what was decided and how this spec builds on or diverges from prior work.

  2. Search design decisions: Check for a DESIGN_DECISIONS.md or similar file documenting architectural precedents that constrain this spec.

  3. Load domain documentation: Read the relevant domain skill for existing patterns, gotchas, and conventions. The spec should align with established patterns.

  4. Check operational gotchas: Search project documentation for known pitfalls in this domain. The spec should explicitly address any relevant gotchas in its error handling section.

  5. Report findings: At the start of the spec, include a "Prior Art" line noting:

    • Related prior plans (or "none found")
    • Relevant design decisions (or "none")
    • Domain gotchas the spec accounts for (or "none in this domain")

Specification Format

Generate specifications in this format:

# Specification: [Feature Name]

## Overview
[2-3 sentences describing what this feature does and why it's needed]

## User Story
As a [type of user], I want to [action] so that [benefit].

## Acceptance Criteria
- [ ] Criterion 1
- [ ] Criterion 2
- [ ] Criterion 3

## Twilio Services
| Service | Purpose |
|---------|---------|
| [Service] | [Why it's used] |

## Function Specifications

### Function: [name].js
- **Access Level**: public / protected / private
- **Purpose**: [What it does]
- **Trigger**: [How it's called - webhook, API, etc.]

#### Input Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| param1 | string | Yes | Description |

#### Success Response
```json
{
  "success": true,
  "data": { }
}
Error Responses
Error Code Condition Response
400 Invalid input { "success": false, "error": "..." }
TwiML Response (if applicable)
<?xml version="1.0" encoding="UTF-8"?>
<Response>
  <!-- TwiML structure -->
</Response>

Data Flow

  1. [Step 1]
  2. [Step 2]
  3. [Step 3]

Test Requirements

Unit Tests

Test Case Expected Result
[Scenario] [Expected outcome]

Integration Tests

Test Case Expected Result
[Scenario] [Expected outcome]

E2E Tests (Newman)

Test Case Expected Result
[Scenario] [Expected outcome]

Error Handling Matrix

Error Condition Detection Response User Experience
[Condition] [How detected] [Response] [What user sees]

Security Considerations

  • [Security requirement 1]
  • [Security requirement 2]

Dependencies

  • [Dependency 1]: [Why needed]
  • [Dependency 2]: [Why needed]

Out of Scope

  • [Item 1]
  • [Item 2]

Read the full file on GitHub · 197 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. yesterday First seen · 197 lines · 8 tokens per session scan A d8305c56ba9b

Subscribe to this mod's changes

spec is an agent published in the GitHub repository wittyreference/twilio-claude-plugin (2 stars, last pushed 3mo ago), licensed MIT. It adds 8 tokens to every session and 1,242 once invoked, about $0.0000 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-31.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens