Examples

June 27, 2026 ยท View on GitHub

StructKit's polished examples live in the repository-level examples/ directory so they can be copied, generated, tested, and improved like normal templates.

Example pack

ExampleUse caseSource
Python CLISmall Python command-line tool with tests and package metadataexamples/python-cli/.struct.yaml
FastAPI serviceAPI service with tests, Dockerfile, and environment exampleexamples/fastapi-service/.struct.yaml
Terraform moduleReusable infrastructure module skeletonexamples/terraform-module/.struct.yaml
GitHub Actions CI baselineStandard Python CI workflow and pre-commit setupexamples/github-actions-ci/.struct.yaml
AI agent / MCP scaffoldAgent-friendly repository structure and instructionsexamples/ai-agent-mcp/.struct.yaml

Start with the examples index for copy-paste commands, expected output, and customization notes.

Preview before writing

Every example can be previewed with --dry-run --diff:

structkit generate --vars "project_name=DemoCLI,package_name=demo_cli,cli_command=demo-cli,description=A small Python CLI generated by StructKit." examples/python-cli/.struct.yaml /tmp/structkit-python-cli-demo --dry-run --diff

Then remove --dry-run --diff when you're ready to write files.