Examples
Example 1: Video Game with Multiplayer
specbase query video_game --features multiplayer --format table
This returns the full set of required documents for a video game project with multiplayer support, including networking specs, anti-cheat design, and latency budgets — in addition to the base game documents.
Example 2: Backend Service with GDPR
specbase query backend_service --features gdpr,async_jobs --format json
When you select the gdpr feature, SpecBase automatically adds GDPR
compliance checklists and data subject request flow documentation.
Example 3: CLI Tool
specbase query cli_tool --format prompt
Even with no optional features, the base documents for a CLI tool include architecture decision records, a CLI reference, and a man page template.
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 — auth adds security-focused docs (OAuth flow, session
management) while i18n adds localization guides and translation workflow
specs. The composition algorithm automatically deduplicates and sorts by
priority.
Example 5: Mobile App for App Store
specbase query mobile_app --features offline,push_notifications --format json
Mobile apps have unique requirements like offline-first architecture,
push notification design, and app store metadata. With offline and
push_notifications features enabled, SpecBase generates documents
covering local storage strategy, sync conflict resolution, and
notification permission flows.
Example 6: MCP Integration (Agent-Native)
# In your AI agent's MCP config, add:
{
"mcpServers": {
"specbase": {
"command": "specbase",
"args": ["mcp", "--transport", "stdio"]
}
}
}
# Then your agent can call:
# get_standard_docs(type="data_pipeline", features=["streaming", "ml_pipeline"])
AI agents connect to SpecBase via MCP (Model Context Protocol) and call
get_standard_docs with a project type and features. The response includes
structured JSON with required documents, rationale, and starter templates —
no CLI needed.
Try it yourself
Use the interactive runner to explore all 11 archetypes and their features without installing anything. Or browse the Document Library to see all 214 specification documents.