structkit 3.0.0__tar.gz → 3.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. {structkit-3.0.0/structkit.egg-info → structkit-3.2.0}/PKG-INFO +81 -31
  2. {structkit-3.0.0 → structkit-3.2.0}/README.md +65 -25
  3. {structkit-3.0.0 → structkit-3.2.0}/pyproject.toml +31 -6
  4. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/__init__.py +1 -0
  5. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/completion.py +1 -0
  6. structkit-3.2.0/structkit/commands/explain.py +362 -0
  7. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/generate.py +98 -36
  8. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/generate_schema.py +1 -1
  9. structkit-3.2.0/structkit/commands/graph.py +302 -0
  10. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/import.py +1 -3
  11. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/info.py +8 -3
  12. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/init.py +1 -0
  13. structkit-3.2.0/structkit/commands/lint.py +352 -0
  14. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/list.py +13 -5
  15. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/mcp.py +13 -13
  16. structkit-3.2.0/structkit/commands/search.py +86 -0
  17. structkit-3.2.0/structkit/commands/sources.py +88 -0
  18. {structkit-3.0.0 → structkit-3.2.0}/structkit/commands/validate.py +54 -32
  19. structkit-3.2.0/structkit/commands/vars.py +133 -0
  20. {structkit-3.0.0 → structkit-3.2.0}/structkit/completers.py +1 -0
  21. {structkit-3.0.0 → structkit-3.2.0}/structkit/content_fetcher.py +1 -0
  22. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/ansible-playbook.yaml +4 -0
  23. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/chef-cookbook.yaml +4 -0
  24. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/ci-cd-pipelines.yaml +4 -0
  25. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/cloudformation-files.yaml +4 -0
  26. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/configs/chglog.yaml +4 -0
  27. structkit-3.2.0/structkit/contribs/configs/codeowners.yaml +6 -0
  28. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/configs/devcontainer.yaml +4 -0
  29. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/configs/editor-config.yaml +4 -0
  30. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/configs/eslint.yaml +4 -0
  31. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/configs/jshint.yaml +4 -0
  32. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/configs/kubectl.yaml +4 -0
  33. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/configs/prettier.yaml +4 -0
  34. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/docker-files.yaml +4 -0
  35. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/documentation-template.yaml +4 -0
  36. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/git-hooks.yaml +4 -0
  37. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/chatmodes/plan.yaml +4 -0
  38. structkit-3.2.0/structkit/contribs/github/instructions/generic.yaml +9 -0
  39. structkit-3.2.0/structkit/contribs/github/prompts/generic.yaml +8 -0
  40. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/prompts/react-form.yaml +4 -0
  41. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/prompts/security-api.yaml +4 -0
  42. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/prompts/struct.yaml +4 -0
  43. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/templates.yaml +4 -0
  44. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/workflows/codeql.yaml +4 -0
  45. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/workflows/execute-tf-workflow.yaml +5 -0
  46. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/workflows/labeler.yaml +5 -0
  47. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/workflows/pre-commit.yaml +4 -0
  48. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/workflows/release-drafter.yaml +9 -4
  49. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/workflows/run-struct.yaml +4 -0
  50. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/github/workflows/stale.yaml +4 -0
  51. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/helm-chart.yaml +4 -0
  52. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/kubernetes-manifests.yaml +5 -0
  53. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/custom-structures.yaml +5 -0
  54. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/generic.yaml +6 -0
  55. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/go.yaml +4 -0
  56. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/java.yaml +5 -0
  57. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/n8n.yaml +5 -0
  58. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/nodejs.yaml +4 -0
  59. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/python.yaml +5 -0
  60. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/ruby.yaml +5 -0
  61. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/project/rust.yaml +5 -0
  62. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/prompts/run-struct-trigger.yaml +5 -0
  63. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/terraform/apps/aws-accounts.yaml +5 -0
  64. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/terraform/apps/environments.yaml +5 -0
  65. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/terraform/apps/generic.yaml +5 -0
  66. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/terraform/apps/github-organization.yaml +4 -0
  67. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/terraform/apps/init.yaml +4 -0
  68. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/terraform/modules/generic.yaml +5 -0
  69. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/vagrant-files.yaml +4 -0
  70. {structkit-3.0.0 → structkit-3.2.0}/structkit/file_item.py +14 -3
  71. {structkit-3.0.0 → structkit-3.2.0}/structkit/filters.py +5 -0
  72. structkit-3.2.0/structkit/input_store.py +64 -0
  73. {structkit-3.0.0 → structkit-3.2.0}/structkit/logging_config.py +1 -0
  74. {structkit-3.0.0 → structkit-3.2.0}/structkit/main.py +15 -0
  75. structkit-3.2.0/structkit/mcp_server.py +749 -0
  76. {structkit-3.0.0 → structkit-3.2.0}/structkit/model_wrapper.py +1 -0
  77. structkit-3.2.0/structkit/sources.py +371 -0
  78. structkit-3.2.0/structkit/struct_refs.py +140 -0
  79. {structkit-3.0.0 → structkit-3.2.0}/structkit/template_renderer.py +36 -9
  80. {structkit-3.0.0 → structkit-3.2.0}/structkit/utils.py +3 -0
  81. {structkit-3.0.0 → structkit-3.2.0/structkit.egg-info}/PKG-INFO +81 -31
  82. {structkit-3.0.0 → structkit-3.2.0}/structkit.egg-info/SOURCES.txt +14 -0
  83. {structkit-3.0.0 → structkit-3.2.0}/structkit.egg-info/requires.txt +1 -1
  84. {structkit-3.0.0 → structkit-3.2.0}/tests/test_commands.py +140 -1
  85. structkit-3.2.0/tests/test_commands_more.py +534 -0
  86. structkit-3.2.0/tests/test_env_var_cli_args.py +293 -0
  87. structkit-3.2.0/tests/test_env_var_structures_path.py +110 -0
  88. structkit-3.2.0/tests/test_explain_command.py +116 -0
  89. structkit-3.2.0/tests/test_graph_command.py +119 -0
  90. structkit-3.2.0/tests/test_mcp_integration.py +210 -0
  91. structkit-3.2.0/tests/test_search_command.py +154 -0
  92. structkit-3.2.0/tests/test_sources_command.py +304 -0
  93. {structkit-3.0.0 → structkit-3.2.0}/tests/test_template_renderer.py +101 -1
  94. structkit-3.0.0/structkit/contribs/configs/codeowners.yaml +0 -3
  95. structkit-3.0.0/structkit/contribs/github/instructions/generic.yaml +0 -5
  96. structkit-3.0.0/structkit/contribs/github/prompts/generic.yaml +0 -4
  97. structkit-3.0.0/structkit/input_store.py +0 -35
  98. structkit-3.0.0/structkit/mcp_server.py +0 -347
  99. structkit-3.0.0/tests/test_commands_more.py +0 -219
  100. structkit-3.0.0/tests/test_mcp_integration.py +0 -102
  101. {structkit-3.0.0 → structkit-3.2.0}/LICENSE +0 -0
  102. {structkit-3.0.0 → structkit-3.2.0}/MANIFEST.in +0 -0
  103. {structkit-3.0.0 → structkit-3.2.0}/setup.cfg +0 -0
  104. {structkit-3.0.0 → structkit-3.2.0}/setup.py +0 -0
  105. {structkit-3.0.0 → structkit-3.2.0}/structkit/__init__.py +0 -0
  106. {structkit-3.0.0 → structkit-3.2.0}/structkit/contribs/README.md +0 -0
  107. {structkit-3.0.0 → structkit-3.2.0}/structkit.egg-info/dependency_links.txt +0 -0
  108. {structkit-3.0.0 → structkit-3.2.0}/structkit.egg-info/entry_points.txt +0 -0
  109. {structkit-3.0.0 → structkit-3.2.0}/structkit.egg-info/top_level.txt +0 -0
  110. {structkit-3.0.0 → structkit-3.2.0}/tests/test_completers.py +0 -0
  111. {structkit-3.0.0 → structkit-3.2.0}/tests/test_completion_command.py +0 -0
  112. {structkit-3.0.0 → structkit-3.2.0}/tests/test_content_fetcher_more.py +0 -0
  113. {structkit-3.0.0 → structkit-3.2.0}/tests/test_file_item.py +0 -0
  114. {structkit-3.0.0 → structkit-3.2.0}/tests/test_file_item_strategies.py +0 -0
  115. {structkit-3.0.0 → structkit-3.2.0}/tests/test_filters.py +0 -0
  116. {structkit-3.0.0 → structkit-3.2.0}/tests/test_filters_more.py +0 -0
  117. {structkit-3.0.0 → structkit-3.2.0}/tests/test_hooks.py +0 -0
  118. {structkit-3.0.0 → structkit-3.2.0}/tests/test_init_command.py +0 -0
  119. {structkit-3.0.0 → structkit-3.2.0}/tests/test_input_store.py +0 -0
  120. {structkit-3.0.0 → structkit-3.2.0}/tests/test_messages_and_summary.py +0 -0
  121. {structkit-3.0.0 → structkit-3.2.0}/tests/test_model_wrapper.py +0 -0
  122. {structkit-3.0.0 → structkit-3.2.0}/tests/test_template_helpers.py +0 -0
  123. {structkit-3.0.0 → structkit-3.2.0}/tests/test_utils_more.py +0 -0
@@ -1,14 +1,19 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: structkit
3
- Version: 3.0.0
4
- Summary: A structured data processing tool
3
+ Version: 3.2.0
4
+ Summary: YAML-first project scaffolding tool with remote content fetching, AI/MCP integration, and DevOps automation
5
5
  Author: httpdss
6
6
  License: MIT
7
- Project-URL: Homepage, https://github.com/httpdss/structkit
8
- Project-URL: Repository, https://github.com/httpdss/structkit.git
9
- Keywords: data,structure,processing
7
+ Project-URL: Homepage, https://structkit.app/
8
+ Project-URL: Repository, https://github.com/httpdss/structkit
9
+ Project-URL: Issues, https://github.com/httpdss/structkit/issues
10
+ Project-URL: Discussions, https://github.com/httpdss/structkit/discussions
11
+ Project-URL: Documentation, https://structkit.app/docs/
12
+ Project-URL: Funding, https://structkit.app/docs/funding/
13
+ Keywords: project-scaffolding,project-template,scaffolding,cookiecutter-alternative,copier-alternative,yaml-template,code-generation,devops,mcp,model-context-protocol,devex,platform-engineering,project-structure,boilerplate
10
14
  Classifier: Development Status :: 4 - Beta
11
15
  Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: System Administrators
12
17
  Classifier: License :: OSI Approved :: MIT License
13
18
  Classifier: Programming Language :: Python :: 3
14
19
  Classifier: Programming Language :: Python :: 3.8
@@ -16,6 +21,11 @@ Classifier: Programming Language :: Python :: 3.9
16
21
  Classifier: Programming Language :: Python :: 3.10
17
22
  Classifier: Programming Language :: Python :: 3.11
18
23
  Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Environment :: Console
25
+ Classifier: Topic :: Software Development :: Code Generators
26
+ Classifier: Topic :: Software Development :: Build Tools
27
+ Classifier: Topic :: System :: Systems Administration
28
+ Classifier: Topic :: Utilities
19
29
  Requires-Python: >=3.8
20
30
  Description-Content-Type: text/markdown
21
31
  License-File: LICENSE
@@ -27,7 +37,7 @@ Requires-Dist: jinja2>=3.1.0
27
37
  Requires-Dist: PyGithub>=1.58.0
28
38
  Requires-Dist: shtab>=1.6.0
29
39
  Requires-Dist: colorlog>=6.7.0
30
- Requires-Dist: pydantic-ai>=0.1.0
40
+ Requires-Dist: pydantic-ai-slim[anthropic,google,openai]>=0.1.0
31
41
  Requires-Dist: fastmcp>=2.0.0
32
42
  Provides-Extra: s3
33
43
  Requires-Dist: boto3>=1.26.0; extra == "s3"
@@ -45,18 +55,67 @@ Requires-Dist: flake8>=4.0.0; extra == "dev"
45
55
  Requires-Dist: mypy>=0.990; extra == "dev"
46
56
  Dynamic: license-file
47
57
 
48
- # 🚀 StructKit: Automated Project Structure Generator
58
+ # 🚀 StructKit: YAML-first scaffolding for teams and AI agents
49
59
 
50
- ![StructKit Logo](./docs/assets/github-hero.gif)
60
+ > 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.
51
61
 
52
- [![codecov](https://codecov.io/github/httpdss/structkit/graph/badge.svg?token=JL5WIO1C9T)](https://codecov.io/github/httpdss/struct)
53
- ![GitHub issues](https://img.shields.io/github/issues/httpdss/struct)
54
- ![GitHub pull requests](https://img.shields.io/github/issues-pr/httpdss/struct)
55
- ![GitHub stars](https://img.shields.io/github/stars/httpdss/struct?style=social)
62
+ [![codecov](https://codecov.io/github/httpdss/structkit/graph/badge.svg?token=JL5WIO1C9T)](https://codecov.io/github/httpdss/structkit)
63
+ ![GitHub issues](https://img.shields.io/github/issues/httpdss/structkit)
64
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/httpdss/structkit)
65
+ ![GitHub stars](https://img.shields.io/github/stars/httpdss/structkit?style=social)
56
66
 
57
- **StructKit** is a powerful, flexible tool for automating project structure creation through YAML configurations. Generate consistent project layouts, boilerplate code, and configurations with template variables, remote content fetching, and intelligent file handling.
67
+ **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.
58
68
 
59
- > 📚 **[View Complete Documentation](docs/index.md)** | 🚀 **[Quick Start Guide](docs/quickstart.md)** | 🔧 **[Installation](docs/installation.md)**
69
+ > 🚀 **[Quick Start](docs/quickstart.md)** | 📚 **[Docs](docs/index.md)** | 🧩 **[Examples](examples/)** | 🤖 **[MCP / AI Agent Guide](docs/mcp-integration.md)** | 🧠 **[Agent Skills](docs/agent-skills.md)** | 💬 **[Discussions](https://github.com/httpdss/structkit/discussions)**
70
+
71
+ ## ⚡ Try it in 60 seconds
72
+
73
+ ```bash
74
+ # Install the CLI
75
+ pip install structkit
76
+
77
+ # Preview available bundled structures
78
+ structkit list
79
+
80
+ # Generate a ready-made Terraform module scaffold
81
+ structkit generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
82
+ ```
83
+
84
+ Prefer Docker?
85
+
86
+ ```bash
87
+ docker run --rm -v "$(pwd):/workdir" ghcr.io/httpdss/structkit:main \
88
+ generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
89
+ ```
90
+
91
+ ## 👤 Who StructKit is for
92
+
93
+ - **Platform / DevEx teams** standardizing service layouts, CI baselines, and engineering conventions across many repos.
94
+ - **DevOps engineers** generating repeatable Terraform modules, Kubernetes manifests, GitHub Actions workflows, and config bundles.
95
+ - **AI coding workflow users** who want assistants to scaffold from approved templates instead of inventing project structure.
96
+ - **Individual developers** tired of rebuilding the same files, folders, and docs for every new project.
97
+
98
+ ## 🤔 Why StructKit?
99
+
100
+ Project scaffolding tools exist in most ecosystems, but StructKit solves problems the others often leave to copy-paste, template repositories, or custom scripts.
101
+
102
+ | Feature | cookiecutter | copier | **StructKit** |
103
+ |---|---|---|---|
104
+ | Remote content (GitHub, S3, GCS, HTTP) | ❌ | ❌ | ✅ |
105
+ | AI / MCP integration | ❌ | ❌ | ✅ |
106
+ | Pre/post generation hooks | ✅ | ✅ | ✅ |
107
+ | Dry run mode | ❌ | ✅ | ✅ |
108
+ | YAML-first (no template repo required) | ❌ | ❌ | ✅ |
109
+ | Multiple file conflict strategies | ❌ | ✅ | ✅ |
110
+ | IDE schema validation | ❌ | ❌ | ✅ |
111
+
112
+ **Key differentiators:**
113
+
114
+ - **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.
115
+ - **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.
116
+ - **Agent skill ready:** Install the companion [`httpdss/structkit-skills`](https://github.com/httpdss/structkit-skills) workflow skill so AI assistants consistently inspect, preview, generate, and validate StructKit structures.
117
+ - **YAML-first:** Define structures directly in YAML. No separate template repository is required.
118
+ - **Safe by default:** Use dry-run previews and file conflict strategies before writing into existing projects.
60
119
 
61
120
  ## ✨ Key Features
62
121
 
@@ -69,23 +128,11 @@ Dynamic: license-file
69
128
  - **✅ Validation & Schema** - Built-in YAML validation and IDE support
70
129
  - **🤖 MCP Integration** - Model Context Protocol support for AI-assisted development workflows
71
130
 
72
- ## 🚀 Quick Start
73
-
74
- ### Installation
75
-
76
- ```bash
77
- # Install via pip
78
- pip install git+https://github.com/httpdss/structkit.git
79
-
80
- # Or run with Docker
81
- docker run -v $(pwd):/workdir ghcr.io/httpdss/structkit:main generate my-config.yaml ./output
82
- ```
83
-
84
- ### Basic Usage
131
+ ## 🚀 More usage examples
85
132
 
86
133
  ```bash
87
134
  # Generate a Terraform module structure
88
- structkit generate terraform-module ./my-terraform-module
135
+ structkit generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
89
136
 
90
137
  # List available structures
91
138
  structkit list
@@ -95,7 +142,9 @@ structkit validate my-config.yaml
95
142
 
96
143
  # Start MCP server for AI integration
97
144
  structkit mcp --server
98
- ```
145
+ ```
146
+
147
+ If StructKit saves you setup time, **star the repo**, try an [example](examples/), or share your use case in [GitHub Discussions](https://github.com/httpdss/structkit/discussions).
99
148
 
100
149
  ### Example Configuration
101
150
 
@@ -143,7 +192,8 @@ Our comprehensive documentation is organized into the following sections:
143
192
  - **[Hooks](docs/hooks.md)** - Pre and post-generation automation
144
193
  - **[Mappings](docs/mappings.md)** - External data integration
145
194
  - **[GitHub Integration](docs/github-integration.md)** - Automation with GitHub Actions
146
- - **[MCP Integration](docs/mcp-integration.md)** - Model Context Protocol for AI-assisted workflows
195
+ - **[MCP / AI Agent Workflow](docs/mcp-integration.md)** - Model Context Protocol for approved-template scaffolding with AI assistants
196
+ - **[Agent Skills](docs/agent-skills.md)** - Installable StructKit workflow skill for AI assistants
147
197
  - **[Command-Line Completion](docs/completion.md)** - Enhanced CLI experience
148
198
 
149
199
  ### 👩‍💻 Development
@@ -154,7 +204,7 @@ Our comprehensive documentation is organized into the following sections:
154
204
  ### 📖 Resources
155
205
 
156
206
  - **[Articles & Tutorials](docs/articles.md)** - Community content and learning resources
157
- - **[Examples](example/)** - Practical examples and use cases
207
+ - **[Examples](examples/)** - Practical examples and use cases
158
208
 
159
209
  ## 🎯 Use Cases
160
210
 
@@ -1,15 +1,64 @@
1
- # 🚀 StructKit: Automated Project Structure Generator
1
+ # 🚀 StructKit: YAML-first scaffolding for teams and AI agents
2
2
 
3
- ![StructKit Logo](./docs/assets/github-hero.gif)
3
+ > 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.
4
4
 
5
- [![codecov](https://codecov.io/github/httpdss/structkit/graph/badge.svg?token=JL5WIO1C9T)](https://codecov.io/github/httpdss/struct)
6
- ![GitHub issues](https://img.shields.io/github/issues/httpdss/struct)
7
- ![GitHub pull requests](https://img.shields.io/github/issues-pr/httpdss/struct)
8
- ![GitHub stars](https://img.shields.io/github/stars/httpdss/struct?style=social)
5
+ [![codecov](https://codecov.io/github/httpdss/structkit/graph/badge.svg?token=JL5WIO1C9T)](https://codecov.io/github/httpdss/structkit)
6
+ ![GitHub issues](https://img.shields.io/github/issues/httpdss/structkit)
7
+ ![GitHub pull requests](https://img.shields.io/github/issues-pr/httpdss/structkit)
8
+ ![GitHub stars](https://img.shields.io/github/stars/httpdss/structkit?style=social)
9
9
 
10
- **StructKit** is a powerful, flexible tool for automating project structure creation through YAML configurations. Generate consistent project layouts, boilerplate code, and configurations with template variables, remote content fetching, and intelligent file handling.
10
+ **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.
11
11
 
12
- > 📚 **[View Complete Documentation](docs/index.md)** | 🚀 **[Quick Start Guide](docs/quickstart.md)** | 🔧 **[Installation](docs/installation.md)**
12
+ > 🚀 **[Quick Start](docs/quickstart.md)** | 📚 **[Docs](docs/index.md)** | 🧩 **[Examples](examples/)** | 🤖 **[MCP / AI Agent Guide](docs/mcp-integration.md)** | 🧠 **[Agent Skills](docs/agent-skills.md)** | 💬 **[Discussions](https://github.com/httpdss/structkit/discussions)**
13
+
14
+ ## ⚡ Try it in 60 seconds
15
+
16
+ ```bash
17
+ # Install the CLI
18
+ pip install structkit
19
+
20
+ # Preview available bundled structures
21
+ structkit list
22
+
23
+ # Generate a ready-made Terraform module scaffold
24
+ structkit generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
25
+ ```
26
+
27
+ Prefer Docker?
28
+
29
+ ```bash
30
+ docker run --rm -v "$(pwd):/workdir" ghcr.io/httpdss/structkit:main \
31
+ generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
32
+ ```
33
+
34
+ ## 👤 Who StructKit is for
35
+
36
+ - **Platform / DevEx teams** standardizing service layouts, CI baselines, and engineering conventions across many repos.
37
+ - **DevOps engineers** generating repeatable Terraform modules, Kubernetes manifests, GitHub Actions workflows, and config bundles.
38
+ - **AI coding workflow users** who want assistants to scaffold from approved templates instead of inventing project structure.
39
+ - **Individual developers** tired of rebuilding the same files, folders, and docs for every new project.
40
+
41
+ ## 🤔 Why StructKit?
42
+
43
+ Project scaffolding tools exist in most ecosystems, but StructKit solves problems the others often leave to copy-paste, template repositories, or custom scripts.
44
+
45
+ | Feature | cookiecutter | copier | **StructKit** |
46
+ |---|---|---|---|
47
+ | Remote content (GitHub, S3, GCS, HTTP) | ❌ | ❌ | ✅ |
48
+ | AI / MCP integration | ❌ | ❌ | ✅ |
49
+ | Pre/post generation hooks | ✅ | ✅ | ✅ |
50
+ | Dry run mode | ❌ | ✅ | ✅ |
51
+ | YAML-first (no template repo required) | ❌ | ❌ | ✅ |
52
+ | Multiple file conflict strategies | ❌ | ✅ | ✅ |
53
+ | IDE schema validation | ❌ | ❌ | ✅ |
54
+
55
+ **Key differentiators:**
56
+
57
+ - **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.
58
+ - **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.
59
+ - **Agent skill ready:** Install the companion [`httpdss/structkit-skills`](https://github.com/httpdss/structkit-skills) workflow skill so AI assistants consistently inspect, preview, generate, and validate StructKit structures.
60
+ - **YAML-first:** Define structures directly in YAML. No separate template repository is required.
61
+ - **Safe by default:** Use dry-run previews and file conflict strategies before writing into existing projects.
13
62
 
14
63
  ## ✨ Key Features
15
64
 
@@ -22,23 +71,11 @@
22
71
  - **✅ Validation & Schema** - Built-in YAML validation and IDE support
23
72
  - **🤖 MCP Integration** - Model Context Protocol support for AI-assisted development workflows
24
73
 
25
- ## 🚀 Quick Start
26
-
27
- ### Installation
28
-
29
- ```bash
30
- # Install via pip
31
- pip install git+https://github.com/httpdss/structkit.git
32
-
33
- # Or run with Docker
34
- docker run -v $(pwd):/workdir ghcr.io/httpdss/structkit:main generate my-config.yaml ./output
35
- ```
36
-
37
- ### Basic Usage
74
+ ## 🚀 More usage examples
38
75
 
39
76
  ```bash
40
77
  # Generate a Terraform module structure
41
- structkit generate terraform-module ./my-terraform-module
78
+ structkit generate --vars module_name=my-terraform-module terraform/modules/generic ./my-terraform-module
42
79
 
43
80
  # List available structures
44
81
  structkit list
@@ -48,7 +85,9 @@ structkit validate my-config.yaml
48
85
 
49
86
  # Start MCP server for AI integration
50
87
  structkit mcp --server
51
- ```
88
+ ```
89
+
90
+ If StructKit saves you setup time, **star the repo**, try an [example](examples/), or share your use case in [GitHub Discussions](https://github.com/httpdss/structkit/discussions).
52
91
 
53
92
  ### Example Configuration
54
93
 
@@ -96,7 +135,8 @@ Our comprehensive documentation is organized into the following sections:
96
135
  - **[Hooks](docs/hooks.md)** - Pre and post-generation automation
97
136
  - **[Mappings](docs/mappings.md)** - External data integration
98
137
  - **[GitHub Integration](docs/github-integration.md)** - Automation with GitHub Actions
99
- - **[MCP Integration](docs/mcp-integration.md)** - Model Context Protocol for AI-assisted workflows
138
+ - **[MCP / AI Agent Workflow](docs/mcp-integration.md)** - Model Context Protocol for approved-template scaffolding with AI assistants
139
+ - **[Agent Skills](docs/agent-skills.md)** - Installable StructKit workflow skill for AI assistants
100
140
  - **[Command-Line Completion](docs/completion.md)** - Enhanced CLI experience
101
141
 
102
142
  ### 👩‍💻 Development
@@ -107,7 +147,7 @@ Our comprehensive documentation is organized into the following sections:
107
147
  ### 📖 Resources
108
148
 
109
149
  - **[Articles & Tutorials](docs/articles.md)** - Community content and learning resources
110
- - **[Examples](example/)** - Practical examples and use cases
150
+ - **[Examples](examples/)** - Practical examples and use cases
111
151
 
112
152
  ## 🎯 Use Cases
113
153
 
@@ -4,14 +4,15 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "structkit"
7
- version = "3.0.0"
8
- description = "A structured data processing tool"
7
+ version = "3.2.0"
8
+ description = "YAML-first project scaffolding tool with remote content fetching, AI/MCP integration, and DevOps automation"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
11
11
  authors = [{name = "httpdss"}]
12
12
  classifiers = [
13
13
  "Development Status :: 4 - Beta",
14
14
  "Intended Audience :: Developers",
15
+ "Intended Audience :: System Administrators",
15
16
  "License :: OSI Approved :: MIT License",
16
17
  "Programming Language :: Python :: 3",
17
18
  "Programming Language :: Python :: 3.8",
@@ -19,9 +20,29 @@ classifiers = [
19
20
  "Programming Language :: Python :: 3.10",
20
21
  "Programming Language :: Python :: 3.11",
21
22
  "Programming Language :: Python :: 3.12",
23
+ "Environment :: Console",
24
+ "Topic :: Software Development :: Code Generators",
25
+ "Topic :: Software Development :: Build Tools",
26
+ "Topic :: System :: Systems Administration",
27
+ "Topic :: Utilities",
22
28
  ]
23
29
  requires-python = ">=3.8"
24
- keywords = ["data", "structure", "processing"]
30
+ keywords = [
31
+ "project-scaffolding",
32
+ "project-template",
33
+ "scaffolding",
34
+ "cookiecutter-alternative",
35
+ "copier-alternative",
36
+ "yaml-template",
37
+ "code-generation",
38
+ "devops",
39
+ "mcp",
40
+ "model-context-protocol",
41
+ "devex",
42
+ "platform-engineering",
43
+ "project-structure",
44
+ "boilerplate",
45
+ ]
25
46
 
26
47
  dependencies = [
27
48
  "PyYAML>=6.0",
@@ -32,7 +53,7 @@ dependencies = [
32
53
  "PyGithub>=1.58.0",
33
54
  "shtab>=1.6.0",
34
55
  "colorlog>=6.7.0",
35
- "pydantic-ai>=0.1.0",
56
+ "pydantic-ai-slim[openai,google,anthropic]>=0.1.0",
36
57
  "fastmcp>=2.0.0",
37
58
  ]
38
59
 
@@ -57,8 +78,12 @@ dev = [
57
78
  ]
58
79
 
59
80
  [project.urls]
60
- Homepage = "https://github.com/httpdss/structkit"
61
- Repository = "https://github.com/httpdss/structkit.git"
81
+ Homepage = "https://structkit.app/"
82
+ Repository = "https://github.com/httpdss/structkit"
83
+ Issues = "https://github.com/httpdss/structkit/issues"
84
+ Discussions = "https://github.com/httpdss/structkit/discussions"
85
+ Documentation = "https://structkit.app/docs/"
86
+ Funding = "https://structkit.app/docs/funding/"
62
87
 
63
88
  [project.scripts]
64
89
  structkit = "structkit.main:main"
@@ -1,6 +1,7 @@
1
1
  import logging
2
2
  from structkit.completers import log_level_completer
3
3
 
4
+
4
5
  # Base command class
5
6
  class Command:
6
7
  def __init__(self, parser):
@@ -3,6 +3,7 @@ import os
3
3
 
4
4
  SUPPORTED_SHELLS = ["bash", "zsh", "fish"]
5
5
 
6
+
6
7
  class CompletionCommand(Command):
7
8
  def __init__(self, parser):
8
9
  super().__init__(parser)