/quickstart

Development L2+ Production low usage

/quickstart

Overview

/quickstart is a production command in the Development category of the Prismatic Platform. It generates complete, production-ready scaffolding for new umbrella applications, modules, LiveView pages, API endpoints, and other common platform components. Every generated artifact complies with the platform's quality standards from the moment of creation: typespecs are present, tests are included, documentation is written, Credo passes, and the code compiles with zero warnings. The command eliminates the gap between "new file created" and "file meets platform standards."

This command operates under the L2+ authority level and is executed by the quickstart-generator agent. It is part of the platform's 216-command slash command registry, built on the AIAD (Autonomous Intelligence Agent Design) standard. The L2+ authority level allows any developer to scaffold new components without elevated permissions, while the generated code automatically inherits platform-wide quality enforcement.

In a platform with 90+ umbrella applications and strict quality gates, manually creating new components requires knowledge of dozens of conventions: file locations, module naming, supervision tree integration, test structure, quality DNA initialization, and CLAUDE.md documentation. /quickstart encodes all of this institutional knowledge into templates that produce correct, complete scaffolding every time. This encoding of institutional knowledge into executable templates is a key productivity multiplier: it reduces the time from "I need a new component" to "I have a fully compliant component" from hours to seconds.

Syntax and Usage

/quickstart --type=<component_type> --name=<name> [options]

The command requires a component type and name, with optional parameters for customization.

# Create a new umbrella application
/quickstart --type app --name prismatic_analytics

# Create a new Elixir module
/quickstart --type module --name PrismaticAnalytics.Aggregator

# Create a LiveView page
/quickstart --type liveview --name Analytics --path /analytics

# Create a GenServer
/quickstart --type genserver --name PrismaticAnalytics.Worker

# Create an API endpoint
/quickstart --type api-endpoint --name analytics --actions list,show,create

# Create an AIAD agent
/quickstart --type agent --name analytics-specialist

# Dry run (show what would be generated)
/quickstart --type app --name prismatic_test --dry-run

# Generate with verbose output
/quickstart --type module --name PrismaticTest.Foo --verbose

# Create a context with schema and migration
/quickstart --type context --name Analytics --schema Metric --fields "name:string,value:float,timestamp:utc_datetime_usec"

# Create a Mix task for data export
/quickstart --type mix-task --name analytics.export --description "Export analytics data to CSV"

Parameters and Options

OptionTypeDefaultDescription
--typeenumrequiredComponent type (see supported types)
--namestringrequiredComponent name (module name or app name)
--descriptionstringautoDescription for documentation
--pathstringautoRoute path (for LiveView/controller)
--layoutenumdefaultLayout template: default, sidebar, dashboard
--actionsstringindex,showController/API actions to generate
--fieldsstringnoneSchema fields (name:type format)
--appstringautoTarget umbrella application
--dry-runflagfalsePreview generated files without writing
--verboseflagfalseShow detailed generation progress
--no-testsflagfalseSkip test file generation
--no-docsflagfalseSkip documentation generation
--forceflagfalseOverwrite existing files
--templatestringdefaultCustom template name

Supported Component Types

ComponentGenerated FilesDescription
appmix.exs, application.ex, supervisor, CLAUDE.md, quality DNAComplete umbrella application
module.ex, _test.exsElixir module with typespecs and tests
liveviewlive.ex, live.html.heex, _test.exsPhoenix LiveView page
controllercontroller.ex, view.ex, templates, _test.exsPhoenix controller stack
contextcontext.ex, schema.ex, migration, _test.exsPhoenix context with schema
genservergenserver.ex, _test.exsOTP GenServer with supervision
agent.agent.md, .cmd.mdAIAD agent and command specification
api-endpointcontroller.ex, schema.ex, _test.exsREST API endpoint with OpenApiSpex
mix-tasktask.ex, _test.exsMix task with help text and tests

Implementation Architecture

The quickstart system is template-driven with configurable generators for each component type.

             /quickstart
                   |
          Component Classifier
                   |
          +--------+--------+
          |        |        |
       Template  Context   Validator
       Selector  Builder   Engine
          |        |        |
          +--------+--------+
                   |
           Template Renderer
                   |
          +--------+--------+
          |        |        |
       File      Config   Integration
       Writer    Updater   Linker
          |        |        |
          +--------+--------+
                   |
           Quality Validator
                   |
           Output Summary

Execution Phases

Phase 1 -- Input Validation: The command validates all inputs: component type is supported, name follows platform conventions (PascalCase for modules, snake_case for applications), path does not conflict with existing routes, and target location is correct.

Phase 2 -- Context Building: A template context is assembled containing: module names, file paths, application configuration, test module names, documentation templates, and platform-specific metadata (quality DNA defaults, AIAD compliance markers).

Phase 3 -- Template Rendering: Templates are rendered with the context. Each template produces one or more files. Templates include conditional sections based on options (e.g., sidebar layout includes navigation components).

Phase 4 -- File Writing: Generated files are written to the filesystem. For umbrella applications, this includes creating directory structures, updating the umbrella mix.exs, and initializing git tracking. Existing files are never overwritten unless --force is specified.

Phase 5 -- Integration Linking: The generated component is integrated into the platform: umbrella applications are added to the workspace, routes are registered in the router, supervision trees are updated, and Quality DNA is initialized.

Phase 6 -- Quality Validation: The generated code is immediately validated through the quality gate pipeline. Every generated file must pass compilation, Credo, and typespec checks. If validation fails, the generation is rolled back and the template bug is reported.

Examples

Complete Application Scaffold

/quickstart --type app --name prismatic_analytics --description "Real-time analytics engine"
# Creates:
#   apps/prismatic_analytics/mix.exs
#   apps/prismatic_analytics/lib/prismatic_analytics.ex
#   apps/prismatic_analytics/lib/prismatic_analytics/application.ex
#   apps/prismatic_analytics/lib/prismatic_analytics/supervisor.ex
#   apps/prismatic_analytics/test/prismatic_analytics_test.exs
#   apps/prismatic_analytics/test/test_helper.exs
#   apps/prismatic_analytics/CLAUDE.md
#   apps/prismatic_analytics/.claude/quality-dna/current-state.json
# All files compile with zero warnings, pass Credo, include typespecs

LiveView Dashboard with Sidebar

/quickstart --type liveview --name AnalyticsDashboard --path /analytics --layout sidebar
# Creates LiveView module, template, and test with sidebar navigation
# pre-configured for TailwindCSS and Flowbite components

AIAD Agent Specification

/quickstart --type agent --name analytics-specialist
# Creates:
#   .aiad/agents/analytics-specialist.agent.md
#   .aiad/commands/analytics.cmd.md
# Both files follow AIAD standard format with enforcement blocks

Integration with Platform

ComponentIntegration TypeDescription
/codeDownstreamScaffolded code is then developed via /code
/testDownstreamGenerated tests are run via /test
/quality-gatesValidationGenerated code must pass quality gates
Quality DNAInitializationQuality DNA created for new applications
AIAD RegistryRegistrationGenerated agents registered in AIAD index
TelemetryMonitoringGeneration metrics tracked
Umbrella Mix.exsConfigurationNew applications added to umbrella deps
Phoenix RouterRoute registrationNew LiveViews/controllers registered

Workflow Integration

The /quickstart command serves as the starting point for all new component development:

  1. New Feature Development: Begin by scaffolding the required components (module, LiveView, context), then implement business logic using /code. The scaffold ensures the correct structure exists before development begins.

  2. New Application Creation: When a feature set grows large enough to warrant its own umbrella application, /quickstart --type app creates the complete application structure with all platform conventions pre-applied.

  3. API Expansion: Adding new API endpoints follows the pattern: scaffold with /quickstart --type api-endpoint, implement business logic, verify with /test, then deploy.

  4. Agent Registration: New AIAD agents are scaffolded with /quickstart --type agent, ensuring they follow the standard specification format and are immediately discoverable by the agent registry.

  5. TDD Workflow: Generated test files include basic structure and edge case placeholders. Fill in the test cases before implementing the actual logic (Test-Driven Development approach).

NABLA Compliance

All commands operate under the NO MERCY, NO DOUBTS doctrine:

  • NO MERCY: Zero tolerance for incomplete execution or quality violations. Generated code meets 100% quality standards from creation. No placeholder implementations, no TODO stubs, no missing typespecs.
  • NO DOUBTS: Full investigation before action, evidence-based results. Generated scaffolding is validated through the quality gate pipeline before delivery. Any generation failure is rolled back completely.

NABLA axiom compliance:

AxiomEnforcement
Provenance MandatoryEvery generated file includes generation metadata (template, version, timestamp)
Signal PluralityMultiple validation checks (compile, Credo, typespec) confirm quality
Evidence-BasedQuality gate results provide empirical evidence of scaffold correctness

Performance

MetricTargetTypical
Input validation< 1s~100ms
Template rendering< 5s~1s
File writing< 3s~500ms
Quality validation< 30s~10s
Total (module)< 15s~5s
Total (application)< 60s~20s
Total (LiveView)< 30s~10s

The quality validation phase dominates execution time for new applications, as it requires compilation of the newly generated code. For simpler components (modules, mix tasks), the total execution time is under 5 seconds.


Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL