Skip to content

Examples

Example 1: Video Game with Multiplayer

specbase query video_game --features multiplayer --format table

Returns 10 required and recommended documents. The multiplayer feature adds Networking Specification, Server Architecture, Anti-Cheat Design, and Matchmaking Specification on top of the base game documents.

PriorityDocumentCategoryRationale
RequiredGame Design DocumentproductA game design document captures the core mechanics, player experience goals, progression…
RequiredTechnical Design DocumentengineeringThe technical design document defines the engine architecture, rendering pipeline, physics…
RequiredArt BibledesignAn art bible establishes the visual style, color palette, character design guidelines, and…
RequiredNetworking SpecificationengineeringA networking specification defines the netcode architecture, protocol selection, latency b…
RequiredServer ArchitectureengineeringA server architecture document describes the game server topology, scaling strategy, regio…
RecommendedAnti-Cheat DesignengineeringAnti-cheat design documents detection methods, enforcement actions, appeal flows, and the …

Open in Runner →


Example 2: Backend Service with GDPR and Async Jobs

specbase query backend_service --features gdpr,async_jobs --format table

Returns 9 documents. The gdpr feature adds GDPR Compliance Checklist, Data Subject Request Flow, and Data Processing Agreement. The async_jobs feature adds Job Queue Specification, Retry and Backoff Policy, and Dead Letter Handling.

PriorityDocumentCategoryRationale
RequiredArchitecture Decision Record LogengineeringAn ADR log captures every significant architecture choice, its context, alternatives considered…
RequiredJob Queue SpecificationengineeringThe job queue specification defines the message broker, serialization format, ordering guarantees…
RequiredGDPR Compliance ChecklistlegalA GDPR compliance checklist ensures that lawful basis, consent mechanisms, data minimization…
RequiredService Level AgreementoperationsAn SLA definition establishes measurable uptime, latency, throughput, and error rate commitments…
RecommendedData Subject Request FlowengineeringThe data subject request flow documents the technical implementation for access, rectification…
RecommendedRetry and Backoff PolicyengineeringA retry and backoff policy specifies the maximum retry count, exponential backoff intervals…

Open in Runner →


Example 3: CLI Tool (no features)

specbase query cli_tool --format prompt

Even with no optional features, the base documents for a CLI tool cover installation, configuration, performance, and distribution. The --format prompt output is ready to paste into your AI agent as a system prompt.

PriorityDocumentCategoryRationale
RequiredConfiguration SpecificationengineeringA configuration specification defines all config file formats, environment variables, and flag…
RequiredInstallation GuideoperationsAn installation guide documents supported platforms, package manager commands, binary distribution…
RequiredREADMEproductA README provides the essential first-contact documentation including purpose, installation, quick…
RecommendedPerformance BenchmarksengineeringPerformance benchmarks establish baseline execution times, memory usage profiles, and throughput…
RecommendedPackaging GuideoperationsA packaging guide describes how to build release artifacts for Homebrew, APT, RPM, Chocolatey…

Open in Runner →


Example 4: Web App with Auth and i18n

specbase query web_app --features auth,i18n --format table

Combining auth and i18n features shows how SpecBase handles feature composition — 12 documents total. Auth adds Authentication Design, Session Management Spec, and RBAC Spec; i18n adds Internationalization Strategy, Locale Management Spec, and Translation Workflow.

PriorityDocumentCategoryRationale
RequiredInternationalization StrategydesignAn internationalization strategy defines locale detection logic, string externalization, pluralization…
RequiredUI/UX SpecificationdesignA UI/UX specification defines wireframes, interaction flows, design system tokens, and accessibility…
RequiredAPI ContractengineeringAn API contract specifies endpoint schemas, request and response formats, authentication requirements…
RequiredAuthentication DesignsecurityAn authentication design document specifies identity provider integration, credential storage, MFA flows…
RequiredSecurity & Privacy PlansecurityA security and privacy plan identifies threat vectors, data classification levels, encryption requirements…
RequiredProduct Requirements DocumentproductA product requirements document captures user needs, business objectives, feature scope, and success metrics…

Open in Runner →


Example 5: Mobile App with Push Notifications and Deep Linking

specbase query mobile_app --features push,deep_linking --format json

Mobile apps have platform-specific requirements. With push and deep_linking enabled, SpecBase generates 7 documents covering notification payload formats, URL routing to in-app screens, privacy policy requirements, and app store submission metadata.

PriorityDocumentCategoryRationale
RequiredDeep Link Routing SpecificationengineeringA deep link routing specification maps URL patterns to in-app screens, defining parameter extraction…
RequiredPush Notification SpecificationengineeringA push notification specification defines payload formats, delivery channels, and platform-specific…
RequiredPrivacy PolicylegalA privacy policy discloses what user data is collected, how it is stored and shared, and what rights…
RequiredApp Store MetadataproductApp store metadata defines the title, description, screenshots, keywords, and category selections…
RecommendedUniversal Links SpecificationengineeringA universal links specification documents the Apple Associated Domains and Android App Links config…
RecommendedCrash Reporting PlanoperationsA crash reporting plan defines the crash analytics service, symbolication pipeline, and triage process…

Open in Runner →


Example 6: Data Pipeline with Streaming and Quality (MCP agent workflow)

# In your AI agent's MCP config:
{
  "mcpServers": {
    "specbase": {
      "command": "specbase",
      "args": ["mcp", "--transport", "stdio"]
    }
  }
}

# Then your agent can call:
# get_standard_docs(type="data_pipeline", features=["streaming", "data_quality"])

AI agents connect to SpecBase via MCP and call get_standard_docs. The response includes structured JSON with required documents, rationale, and starter templates — no CLI needed. This query returns 8 documents.

PriorityDocumentCategoryRationale
RequiredData Quality FrameworkdataThe data quality framework defines the dimensions measured such as completeness, accuracy, freshness…
RequiredETL SpecificationdataThe ETL specification defines the extraction sources, transformation rules, loading targets…
RequiredStreaming Architecture SpecificationengineeringThe streaming architecture specification defines the event broker, partitioning scheme, consumer groups…
RecommendedAnomaly Detection SpecificationdataThe anomaly detection specification covers the statistical methods, lookback windows, and alerting thresholds…
RecommendedEvent Schema SpecificationdataThe event schema specification standardizes the envelope format, payload structure, versioning strategy…
RecommendedSchema Evolution PlandataA schema evolution plan documents how backward and forward compatible schema changes are handled…

Open in Runner →


Try it yourself

Use the interactive runner to explore all 11 software types and their features without installing anything. Or browse the Document Library to see all 214 specification documents.