Platform / 04 Stackbilder Platform

Stackbilder Platform

Architect v2 — Active Build. The platform is in its v2 build cycle. Docs reflect the current stable surface; new capabilities are landing continuously.

Stackbilder is a governance-enforced architecture planning tool that produces sprint-ready ADRs, deployable scaffolds, and structured artifacts — not vague suggestions.

The 6-Mode Pipeline

Architecture generation runs through six sequential modes. Each mode builds on the previous, with cross-references via sequential IDs.

PhaseModeOutputIDs
DefinitionPRODUCTProduct Requirements DocumentREQ-001, SLA-001, CON-001
DefinitionUXUser journey maps and experience flowsUJ-001
DefinitionRISKRisk assessment and value modelRISK-001
ArchitectureARCHITECTTechnical blueprint: services, schemas, boundariesCOMP-001, DS-001
ExecutionTDDTest strategy per componentTS-001
ExecutionSPRINTSprint-ready ADRs with dependency graphADR-001

Structured Artifacts (v2)

Every mode emits a typed JSON artifact alongside prose. These artifacts use sequential, referenceable IDs that chain across modes:

  • PRODUCT defines REQ-001, SLA-001, CON-001
  • ARCHITECT references reqRefs: ["REQ-001"], riskRefs: ["RISK-001"]
  • TDD validates slaRefs: ["SLA-001"]
  • SPRINT produces ADRs that trace back to components and requirements

Each artifact includes a confidence field with an overall score (0-100) and a missing[] array surfacing what the AI was not told.

Cross-Mode Contradiction Checker

After each mode completes, an incremental checker runs 8 validation rules:

  • Every MUST requirement has a component covering it
  • Every SLA has a validation entry in TDD
  • Every CRITICAL/HIGH risk has a test scenario
  • ARCHITECT doesn’t use technologies RISK marked as blocked
  • Named events appear consistently across modes
  • SPRINT surfaces requirements with no ADR

Results are available via the API as a contradictionReport.

Scaffold Engine

Completed flows can generate a deployable Cloudflare Workers project (9-15 files). The scaffold engine uses category-aware routing:

Component CategoryGenerated File
compute / data / integrationroutes/*.ts (CRUD stubs)
asyncworker/*-queue.ts (queue handlers)
securityworker/middleware/*.ts (auth middleware)
frontendskipped

Template types: workers-crud-api, workers-queue-consumer, workers-durable-object, workers-websocket, workers-cron, pages-static.

Scaffolds include scaffoldHints (template classification + confidence score) and nextSteps (deployment commands).

Governance Integration

Governance is embedded directly in the scaffold pipeline rather than a separate service binding. Architecture decisions are validated against blessed patterns inline as each mode runs; violations are flagged depending on governance mode.

ModeBehaviorPlan Tier
PASSIVELog only — never blocksFree
ADVISORYWarn on issues, flow continuesPro
ENFORCEDBlock on FAIL, require remediationTeam

Blessed-pattern enforcement runs as part of the ARCHITECT mode. Governance results (validations, persisted ADR IDs, warnings) are available via getGovernanceStatus on the flow response.

Advanced Governance Configurations

Team plans unlock additional governance options:

  • Domain Locking (domainLock) — Locks domain entities after PRODUCT mode to prevent drift. Supports strictness levels, entity creation controls, and vendor allow/block lists.
  • Per-Mode Quality Thresholds (qualityByMode) — Set different minimum quality scores per execution mode.

Plan Tiers & Quotas

Every account is associated with a plan tier that determines rate limits and feature access.

QuotaFreeProTeam
Scaffolds per month35050/seat
Images per month5100Pooled

AI Model Routing

The platform applies a model policy per request. Provider/model selection is tier-aware. Phase 1 scaffolds use deterministic TarotScript (no LLM). Phase 2 (Pro/Team) adds an LLM polish pass via Cerebras.

Output Artifacts

Each completed flow produces:

  • PRD — structured product requirements with REQ-001 IDs
  • Experience Maps — user journeys and touchpoints
  • Risk Model — value assessment, compliance flags, blocked patterns
  • Architecture Blueprint — services, data contracts, component tree with cross-refs
  • TDD Strategy — test surface per component with SLA validation
  • Sprint ADRs — executable sprint plan with Architecture Decision Records
  • Scaffold — deployable Workers project (on demand)
  • Contradiction Report — cross-mode consistency validation

Access

Access Stackbilder via three sibling consumers — same backends, different transports:

  • Browser UI at stackbilder.com — interactive flow builder for human users
  • REST API at stackbilder.com/api/* — direct HTTP integration (Charter CLI, server-to-server, CI; see API Reference). Same Worker serves both the UI and the API.
  • MCP gateway at mcp.stackbilt.dev/mcp — OAuth-authenticated MCP Worker for AI agents (Claude Code, Claude Desktop, custom MCP clients). Sibling deployable that proxies to the same backend product workers (TarotScript, img-forge, stackbilt-engine, stackbilt-deployer). See MCP Gateway.