Blueprint Schema & Packs
Blueprints are TOML files that define guided workflows. Packs are curated sets of blueprints for a product.
Schema overview
Section titled “Schema overview”A minimal blueprint:
schema_version = "0.1.0"smith = "your-org/hacksmith-blueprints"
[overview]enabled = trueTitle = "Onboard to Your Product"description = "Set up and integrate Your Product"
[variables.api_key]description = "API key from dashboard"required = truesensitive = true
[slugs]base_url = "https://app.yourproduct.com"
[[flows]]id = "your-product"title = "Onboard to Your Product"Sections
Section titled “Sections”- Metadata:
schema_version,smith - Overview: optional intro shown before flows
- Variables: values to capture (mark secrets with
sensitive = true) - Context: docs/links for AI agents
- Slugs: URL templates for navigation
- Agent: AI prompt template
- Flows: step-by-step interactive experience
A pack is a GitHub repo containing one or more blueprint files and docs, e.g. your-org/hacksmith-blueprints. The CLI supports GitHub shorthand for discovery:
hacksmith plan --github your-org/hacksmith-blueprints# or shorthandhacksmith your-org/hacksmith-blueprintsIf a repo contains multiple blueprints, Hacksmith will list them and prompt you to choose.
Validation
Section titled “Validation”Blueprints are validated on load. Invalid combinations (e.g., both --blueprint and --github) or missing values are surfaced with actionable errors. Use predictable identifiers and add regex validation for formats specific to your product.
Environment
Section titled “Environment”Hacksmith respects:
DEBUG=1for verbose errorsNO_COLORto disable colors
Use project-local .hacksmith/ for captured variables and session state, and ~/.hacksmith/ for system-level preferences.