YAML-first project scaffolding tool with remote content fetching, AI/MCP integration, and DevOps automation
Project description
๐ StructKit: YAML-first scaffolding for teams and AI agents
Define project structures once in YAML, then generate consistent repos, CI files, docs, Terraform modules, and app layouts locally, in CI, or through an AI assistant via MCP.
StructKit replaces copy-pasted boilerplate and aging "golden repos" with reusable YAML structures. It can render template variables, fetch canonical files from remote sources, preview changes before writing, and expose your scaffolds to AI assistants through the Model Context Protocol.
๐ Quick Start | ๐ Docs | ๐งฉ Examples | ๐ค MCP / AI Agent Guide | ๐ง Agent Skills | ๐ฌ Discussions
โก Try it in 60 seconds
# Install the CLI
pip install structkit
# Preview available bundled structures
structkit list
# Generate a ready-made Terraform module scaffold
structkit generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
Prefer Docker?
docker run --rm -v "$(pwd):/workdir" ghcr.io/httpdss/structkit:main \
generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
๐ค Who StructKit is for
- Platform / DevEx teams standardizing service layouts, CI baselines, and engineering conventions across many repos.
- DevOps engineers generating repeatable Terraform modules, Kubernetes manifests, GitHub Actions workflows, and config bundles.
- AI coding workflow users who want assistants to scaffold from approved templates instead of inventing project structure.
- Individual developers tired of rebuilding the same files, folders, and docs for every new project.
๐ค Why StructKit?
Project scaffolding tools exist in most ecosystems, but StructKit solves problems the others often leave to copy-paste, template repositories, or custom scripts.
| Feature | cookiecutter | copier | StructKit |
|---|---|---|---|
| Remote content (GitHub, S3, GCS, HTTP) | โ | โ | โ |
| AI / MCP integration | โ | โ | โ |
| Pre/post generation hooks | โ | โ | โ |
| Dry run mode | โ | โ | โ |
| YAML-first (no template repo required) | โ | โ | โ |
| Multiple file conflict strategies | โ | โ | โ |
| IDE schema validation | โ | โ | โ |
Key differentiators:
- Remote-first content: Reference your organization's canonical CI template from GitHub directly in your StructKit config. When the template updates, all new projects get the update โ no copy-paste maintenance.
- AI-native via MCP: Start the StructKit MCP server so your AI assistant can generate project scaffolds from natural language using your templates as the source of truth.
- Agent skill ready: Install the companion
httpdss/structkit-skillsworkflow skill so AI assistants consistently inspect, preview, generate, and validate StructKit structures. - YAML-first: Define structures directly in YAML. No separate template repository is required.
- Safe by default: Use dry-run previews and file conflict strategies before writing into existing projects.
โจ Key Features
- ๐ YAML-Based Configuration - Define project structures in simple, readable YAML
- ๐ง Template Variables - Dynamic content with Jinja2 templating and interactive prompts
- ๐ Remote Content - Fetch files from GitHub, HTTP/HTTPS, S3, and Google Cloud Storage
- ๐ก๏ธ Smart File Handling - Multiple strategies for managing existing files (overwrite, skip, backup, etc.)
- ๐ช Automation Hooks - Pre and post-generation shell commands
- ๐ฏ Dry Run Mode - Preview changes before applying them
- โ Validation & Schema - Built-in YAML validation and IDE support
- ๐ค MCP Integration - Model Context Protocol support for AI-assisted development workflows
๐ More usage examples
# Generate a Terraform module structure
structkit generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
# List available structures
structkit list
# Validate a configuration
structkit validate my-config.yaml
# Start MCP server for AI integration
structkit mcp --server
If StructKit saves you setup time, star the repo, try an example, or share your use case in GitHub Discussions.
Example Configuration
files:
- README.md:
content: |
# {{@ project_name @}}
Generated with StructKit
- .gitignore:
file: github://github/gitignore/main/Python.gitignore
folders:
- src/:
struct: project/python
with:
app_name: "{{@ project_name | slugify @}}"
variables:
- project_name:
description: "Name of your project"
type: string
default: "MyProject"
๐ Documentation
Our comprehensive documentation is organized into the following sections:
๐ Getting Started
- Installation Guide - Multiple installation methods
- Quick Start - Get up and running in minutes
- Basic Usage - Core commands and options
โ๏ธ Configuration
- YAML Configuration - Complete configuration reference
- Template Variables - Dynamic content and Jinja2 features
- File Handling - Managing files, permissions, and remote content
- Schema Reference - YAML validation and IDE support
๐ง Advanced Features
- Hooks - Pre and post-generation automation
- Mappings - External data integration
- GitHub Integration - Automation with GitHub Actions
- MCP / AI Agent Workflow - Model Context Protocol for approved-template scaffolding with AI assistants
- Agent Skills - Installable StructKit workflow skill for AI assistants
- Command-Line Completion - Enhanced CLI experience
๐ฉโ๐ป Development
- Development Setup - Contributing to StructKit
- Known Issues - Current limitations and workarounds
๐ Resources
- Articles & Tutorials - Community content and learning resources
- Examples - Practical examples and use cases
๐ฏ Use Cases
- Infrastructure as Code - Generate Terraform modules, Kubernetes manifests
- Application Scaffolding - Bootstrap microservices, APIs, frontend projects
- DevOps Automation - CI/CD pipeline templates, configuration management
- Documentation - Consistent project documentation and compliance templates
๐ค Community
- Contributing Guidelines - How to contribute
- GitHub Discussions - Community support
- Articles & Tutorials - Learning resources
๐ License
MIT License - see LICENSE for details.
๐ฐ Support
If StructKit helps your workflow, consider supporting the project: patreon/structproject
๐ Complete Documentation | ๐ Report Issues | ๐ฌ Discussions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file structkit-3.2.0.tar.gz.
File metadata
- Download URL: structkit-3.2.0.tar.gz
- Upload date:
- Size: 113.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fa73a9ad148223a67490f4c6807435af29820001dc72c2505cf38de4af5b66a
|
|
| MD5 |
2d46f00b687c0793be14f882680f93bd
|
|
| BLAKE2b-256 |
2a48ab822b70e69290574444c35afb938cfd92359f342d0419d56f6422bc9ee3
|
File details
Details for the file structkit-3.2.0-py3-none-any.whl.
File metadata
- Download URL: structkit-3.2.0-py3-none-any.whl
- Upload date:
- Size: 112.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afa147a9da72f10a50043b1d79caa97d5ab2405ffea7bd2882c89bb804b58574
|
|
| MD5 |
152e74a926b84bfbcb8ac2968928ef2d
|
|
| BLAKE2b-256 |
cebdfb51766e1a52beac4eb62d9c7d4de906b0727688ff73dcc61b33a48bef31
|