Generates AI-ready technical specifications with API contracts, data models, requirements, evaluation criteria, and acceptance criteria. Delegated via @fai-specification-writer.
Ships in frootai-deploy-infra-skills. Installing the plugin adds it to Claude Code.
Specification writer that generates AI-ready technical specifications with requirements, evaluation criteria, WAF alignment, API contracts, data models, and acceptance criteria.
# Technical Specification: {Feature Name}
## 1. Overview
Brief description of what this feature does and why.
## 2. Architecture
```mermaid
sequenceDiagram
User->>API: POST /api/chat
API->>Search: Hybrid search
Search-->>API: Top 5 chunks
API->>OpenAI: Generate (grounded)
OpenAI-->>API: Stream tokens
API->>Safety: Content check
API-->>User: SSE stream
POST /api/chat
Request: { message: string, sessionId?: string }
Response: SSE stream { token: string, done: boolean, usage?: TokenUsage }
Errors: 400 (invalid), 429 (rate limit), 500 (internal)
ChatSession: { id, userId, tenantId, messages[], createdAt, ttl }
Message: { role, content, citations[], tokens, timestamp }
Document: { id, chunkIndex, content, embedding, category, tenantId }
| ID | Requirement | Type | Priority | WAF Pillar |
|---|---|---|---|---|
| R1 | Hybrid search (BM25+vector) | Functional | Must | Performance |
| R2 | Groundedness ≥ 0.8 | AI Quality | Must | Reliability |
| R3 | P95 latency < 5s | Non-Functional | Must | Performance |
| R4 | Content Safety on output | AI Safety | Must | Security |
| R5 | Multi-tenant isolation | Security | Must | Security |
| ID | Given | When | Then |
|---|---|---|---|
| AC1 | Relevant docs exist | User asks question | Answer cites sources, groundedness ≥ 0.8 |
| AC2 | No relevant docs | User asks question | Response: "I don't have that information" |
| AC3 | Prompt injection attempt | Malicious input | Blocked by Prompt Shield, safe rejection |
| AC4 | 100 concurrent users | Load test | P95 < 5s, no errors |
python evaluation/eval.py --test-set evaluation/test-set.jsonl
## What the Model Gets Wrong
| Mistake | Why Wrong | Correct Approach |
|---------|----------|-----------------|
| Vague requirements ("AI should be good") | Untestable | SMART: "groundedness ≥ 0.8 measured by Azure AI Evaluation" |
| No API contract | Frontend/backend mismatch | OpenAPI spec or YAML contract in spec |
| Missing data model | Schema discovered during implementation | Entity definitions with relationships before coding |
| No evaluation criteria | Quality unmeasurable | Specific metrics + thresholds + measurement method |
| Acceptance criteria without edge cases | Happy path only | Include: empty results, injection, timeout, concurrent load |
## Anti-Patterns
- **Vague requirements**: Untestable → SMART with measurable thresholds
- **No API contract**: Mismatch → define contract before implementation
- **Missing data model**: Late discovery → entity design in spec phase
- **Happy-path-only AC**: Missing edge cases → injection, timeout, load, empty results
- **No evaluation section**: Quality invisible → metrics + thresholds + pipeline
## When to Use This Agent
| Scenario | Use This Agent | Don't Use |
|----------|---------------|-----------|
| Technical specification writing | ✅ | |
| API + data model design | ✅ | |
| PRD (product-level) | | ❌ Use fai-prd-writer |
| Architecture decisions | | ❌ Use fai-solutions-architect |
## Compatible Solution Plays
| Play | How This Agent Helps |
|------|---------------------|
| All plays | Technical specifications with evaluation criteria and WAF alignment |
| 01 — Enterprise RAG | RAG API contract, search schema, chunking spec |
| 03 — Deterministic Agent | Determinism requirements, confidence thresholds, guardrail spec |
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
@agent-frootai-deploy-infra-skills:FAI Specification Writerfrom frootai-deploy-infra-skills
npx claudepluginhub frootai/frootai --plugin frootai-deploy-infra-skills327 agents in this plugin
AGENTSAGENTS.md — FrootAI Standalone Agents (Auto-Generated Catalog)> **GENERATED FILE — DO NOT EDIT BY HAND.** Re-run `node scripts/generate-agents-md.js` to refresh.FAI A2A ExpertAgent-to-Agent (A2A) protocol specialist — Google's agent interop standard, AgentCard discovery, task lifecycle, streaming artifacts, push notifications, and multi-agent communication patterns.FAI Accessibility ExpertAccessibility specialist — WCAG 2.2 AA/AAA compliance, ARIA 1.2 patterns, screen reader optimization, keyboard navigation, focus management, and inclusive design for AI chatbots and dashboards.Other plugins' agents for the same job