specsmith 0.1.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 (74) hide show
  1. specsmith-0.1.0/LICENSE +21 -0
  2. specsmith-0.1.0/PKG-INFO +137 -0
  3. specsmith-0.1.0/README.md +96 -0
  4. specsmith-0.1.0/pyproject.toml +80 -0
  5. specsmith-0.1.0/setup.cfg +4 -0
  6. specsmith-0.1.0/src/specsmith/__init__.py +5 -0
  7. specsmith-0.1.0/src/specsmith/__main__.py +7 -0
  8. specsmith-0.1.0/src/specsmith/auditor.py +470 -0
  9. specsmith-0.1.0/src/specsmith/cli.py +592 -0
  10. specsmith-0.1.0/src/specsmith/commands/__init__.py +3 -0
  11. specsmith-0.1.0/src/specsmith/compressor.py +152 -0
  12. specsmith-0.1.0/src/specsmith/config.py +269 -0
  13. specsmith-0.1.0/src/specsmith/differ.py +81 -0
  14. specsmith-0.1.0/src/specsmith/doctor.py +106 -0
  15. specsmith-0.1.0/src/specsmith/exporter.py +150 -0
  16. specsmith-0.1.0/src/specsmith/importer.py +536 -0
  17. specsmith-0.1.0/src/specsmith/integrations/__init__.py +53 -0
  18. specsmith-0.1.0/src/specsmith/integrations/aider.py +38 -0
  19. specsmith-0.1.0/src/specsmith/integrations/base.py +31 -0
  20. specsmith-0.1.0/src/specsmith/integrations/claude_code.py +58 -0
  21. specsmith-0.1.0/src/specsmith/integrations/copilot.py +55 -0
  22. specsmith-0.1.0/src/specsmith/integrations/cursor.py +62 -0
  23. specsmith-0.1.0/src/specsmith/integrations/gemini.py +49 -0
  24. specsmith-0.1.0/src/specsmith/integrations/warp.py +70 -0
  25. specsmith-0.1.0/src/specsmith/integrations/windsurf.py +46 -0
  26. specsmith-0.1.0/src/specsmith/scaffolder.py +372 -0
  27. specsmith-0.1.0/src/specsmith/templates/agents.md.j2 +159 -0
  28. specsmith-0.1.0/src/specsmith/templates/docs/architecture.md.j2 +39 -0
  29. specsmith-0.1.0/src/specsmith/templates/docs/requirements.md.j2 +130 -0
  30. specsmith-0.1.0/src/specsmith/templates/docs/test-spec.md.j2 +42 -0
  31. specsmith-0.1.0/src/specsmith/templates/docs/workflow.md.j2 +15 -0
  32. specsmith-0.1.0/src/specsmith/templates/gitattributes.j2 +15 -0
  33. specsmith-0.1.0/src/specsmith/templates/gitignore.j2 +119 -0
  34. specsmith-0.1.0/src/specsmith/templates/governance/context-budget.md.j2 +50 -0
  35. specsmith-0.1.0/src/specsmith/templates/governance/drift-metrics.md.j2 +54 -0
  36. specsmith-0.1.0/src/specsmith/templates/governance/roles.md.j2 +30 -0
  37. specsmith-0.1.0/src/specsmith/templates/governance/rules.md.j2 +49 -0
  38. specsmith-0.1.0/src/specsmith/templates/governance/verification.md.j2 +59 -0
  39. specsmith-0.1.0/src/specsmith/templates/governance/workflow.md.j2 +80 -0
  40. specsmith-0.1.0/src/specsmith/templates/ledger.md.j2 +27 -0
  41. specsmith-0.1.0/src/specsmith/templates/pyproject.toml.j2 +18 -0
  42. specsmith-0.1.0/src/specsmith/templates/python/cli.py.j2 +13 -0
  43. specsmith-0.1.0/src/specsmith/templates/python/init.py.j2 +3 -0
  44. specsmith-0.1.0/src/specsmith/templates/readme.md.j2 +30 -0
  45. specsmith-0.1.0/src/specsmith/templates/scripts/exec.cmd.j2 +33 -0
  46. specsmith-0.1.0/src/specsmith/templates/scripts/exec.sh.j2 +38 -0
  47. specsmith-0.1.0/src/specsmith/templates/scripts/run.cmd.j2 +14 -0
  48. specsmith-0.1.0/src/specsmith/templates/scripts/run.sh.j2 +7 -0
  49. specsmith-0.1.0/src/specsmith/templates/scripts/setup.cmd.j2 +23 -0
  50. specsmith-0.1.0/src/specsmith/templates/scripts/setup.sh.j2 +12 -0
  51. specsmith-0.1.0/src/specsmith/tools.py +410 -0
  52. specsmith-0.1.0/src/specsmith/upgrader.py +118 -0
  53. specsmith-0.1.0/src/specsmith/validator.py +218 -0
  54. specsmith-0.1.0/src/specsmith/vcs/__init__.py +41 -0
  55. specsmith-0.1.0/src/specsmith/vcs/base.py +122 -0
  56. specsmith-0.1.0/src/specsmith/vcs/bitbucket.py +135 -0
  57. specsmith-0.1.0/src/specsmith/vcs/github.py +261 -0
  58. specsmith-0.1.0/src/specsmith/vcs/gitlab.py +142 -0
  59. specsmith-0.1.0/src/specsmith.egg-info/PKG-INFO +137 -0
  60. specsmith-0.1.0/src/specsmith.egg-info/SOURCES.txt +72 -0
  61. specsmith-0.1.0/src/specsmith.egg-info/dependency_links.txt +1 -0
  62. specsmith-0.1.0/src/specsmith.egg-info/entry_points.txt +2 -0
  63. specsmith-0.1.0/src/specsmith.egg-info/requires.txt +17 -0
  64. specsmith-0.1.0/src/specsmith.egg-info/top_level.txt +1 -0
  65. specsmith-0.1.0/tests/test_auditor.py +81 -0
  66. specsmith-0.1.0/tests/test_cli.py +119 -0
  67. specsmith-0.1.0/tests/test_compressor.py +51 -0
  68. specsmith-0.1.0/tests/test_importer.py +185 -0
  69. specsmith-0.1.0/tests/test_integrations.py +85 -0
  70. specsmith-0.1.0/tests/test_scaffolder.py +139 -0
  71. specsmith-0.1.0/tests/test_smoke.py +33 -0
  72. specsmith-0.1.0/tests/test_tools.py +153 -0
  73. specsmith-0.1.0/tests/test_validator.py +62 -0
  74. specsmith-0.1.0/tests/test_vcs.py +201 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 BitConcepts, LLC.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: specsmith
3
+ Version: 0.1.0
4
+ Summary: Forge governed project scaffolds from the Agentic AI Development Workflow Specification.
5
+ Author: BitConcepts
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/BitConcepts/specsmith
8
+ Project-URL: Repository, https://github.com/BitConcepts/specsmith
9
+ Project-URL: Changelog, https://github.com/BitConcepts/specsmith/blob/main/CHANGELOG.md
10
+ Keywords: agentic,scaffold,governance,agents-md,cli,specification
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Software Development :: Code Generators
21
+ Classifier: Topic :: Software Development :: Build Tools
22
+ Requires-Python: >=3.10
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: click>=8.1
26
+ Requires-Dist: jinja2>=3.1
27
+ Requires-Dist: pyyaml>=6.0
28
+ Requires-Dist: pydantic>=2.0
29
+ Requires-Dist: rich>=13.0
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest>=7.0; extra == "dev"
32
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
33
+ Requires-Dist: ruff>=0.4; extra == "dev"
34
+ Requires-Dist: mypy>=1.10; extra == "dev"
35
+ Requires-Dist: pre-commit>=3.0; extra == "dev"
36
+ Requires-Dist: types-pyyaml>=6.0; extra == "dev"
37
+ Provides-Extra: docs
38
+ Requires-Dist: mkdocs>=1.6; extra == "docs"
39
+ Requires-Dist: mkdocs-material>=9.5; extra == "docs"
40
+ Dynamic: license-file
41
+
42
+ # specsmith
43
+
44
+ [![CI](https://github.com/BitConcepts/specsmith/actions/workflows/ci.yml/badge.svg)](https://github.com/BitConcepts/specsmith/actions/workflows/ci.yml)
45
+ [![Docs](https://readthedocs.org/projects/specsmith/badge/?version=latest)](https://specsmith.readthedocs.io/en/latest/)
46
+ [![PyPI](https://img.shields.io/pypi/v/specsmith.svg)](https://pypi.org/project/specsmith/)
47
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)
48
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
49
+
50
+ **Governed project scaffolds for AI-assisted development.**
51
+
52
+ > Intelligence proposes. Constraints decide. The ledger remembers.
53
+
54
+ ---
55
+
56
+ ## The Problem
57
+
58
+ AI coding agents are powerful but unstructured. Without governance, they skip verification, lose context between sessions, and produce inconsistent results. specsmith generates the governance layer — the rules, verification tools, CI pipelines, and documentation — that makes AI-assisted development auditable and repeatable.
59
+
60
+ ## What specsmith Does
61
+
62
+ **For new projects:** `specsmith init` generates a complete project scaffold with governance files, CI/CD, verification tools, and agent integration files tailored to your project type.
63
+
64
+ **For existing projects:** `specsmith import` detects your project's language, build system, and test framework, then generates governance overlay files without modifying your source code. Existing files are preserved.
65
+
66
+ **For ongoing governance:** `specsmith audit` checks health, `specsmith export` generates compliance reports, `specsmith doctor` verifies your tools are installed.
67
+
68
+ Every governed project follows the closed-loop workflow: **propose → check → execute → verify → record**.
69
+
70
+ ## Install
71
+
72
+ ```bash
73
+ pip install specsmith
74
+ ```
75
+
76
+ ## Quick Start
77
+
78
+ ```bash
79
+ specsmith init # New project (interactive)
80
+ specsmith init --config scaffold.yml # New project (from config)
81
+ specsmith import --project-dir ./my-project # Adopt existing project
82
+ specsmith audit --project-dir ./my-project # Health check
83
+ specsmith export --project-dir ./my-project # Compliance report
84
+ specsmith doctor --project-dir ./my-project # Tool check
85
+ ```
86
+
87
+ ## 30 Project Types
88
+
89
+ **Software:** Python, Rust, Go, C/C++, .NET, JS/TS, mobile, monorepo, microservices, DevOps/IaC, data/ML, browser extensions.
90
+
91
+ **Hardware:** FPGA/RTL, Yocto BSP, PCB design, embedded systems.
92
+
93
+ **Documents:** Technical specifications, user manuals, research papers, API specifications, requirements management.
94
+
95
+ **Business/Legal:** Business plans, patent applications, legal/compliance frameworks.
96
+
97
+ Each type gets: tool-aware CI (correct lint/test/security/build tools), domain-specific directory structure, governance rules in AGENTS.md, and pre-populated requirements and test stubs.
98
+
99
+ ## 11 CLI Commands
100
+
101
+ | Command | Purpose |
102
+ |---------|---------|
103
+ | `init` | Scaffold a new governed project |
104
+ | `import` | Adopt an existing project (merge mode) |
105
+ | `audit` | Drift detection and health checks (`--fix` to auto-repair) |
106
+ | `validate` | Governance file consistency checks |
107
+ | `compress` | Archive old ledger entries |
108
+ | `upgrade` | Update governance to new spec version |
109
+ | `status` | CI/PR/alert status from VCS platform |
110
+ | `diff` | Compare governance against templates |
111
+ | `export` | Compliance report with REQ↔TEST coverage |
112
+ | `doctor` | Check if verification tools are installed |
113
+
114
+ ## 7 Agent Integrations
115
+
116
+ AGENTS.md (cross-platform standard), Warp/Oz, Claude Code, GitHub Copilot, Cursor, Gemini CLI, Windsurf, Aider.
117
+
118
+ ## 3 VCS Platforms
119
+
120
+ GitHub Actions, GitLab CI, Bitbucket Pipelines — all with tool-aware CI generated from the verification tool registry. Dependabot/Renovate configured per language ecosystem.
121
+
122
+ ## Documentation
123
+
124
+ **[specsmith.readthedocs.io](https://specsmith.readthedocs.io)** — Full user manual with tutorials, command reference, project type details, tool registry, governance model, troubleshooting.
125
+
126
+ ## Links
127
+
128
+ - [PyPI](https://pypi.org/project/specsmith/)
129
+ - [Documentation](https://specsmith.readthedocs.io)
130
+ - [Changelog](CHANGELOG.md)
131
+ - [Contributing](CONTRIBUTING.md)
132
+ - [Specification](docs/AGENT-WORKFLOW-SPEC.md)
133
+ - [Security](SECURITY.md)
134
+
135
+ ## License
136
+
137
+ MIT — Copyright (c) 2026 BitConcepts, LLC.
@@ -0,0 +1,96 @@
1
+ # specsmith
2
+
3
+ [![CI](https://github.com/BitConcepts/specsmith/actions/workflows/ci.yml/badge.svg)](https://github.com/BitConcepts/specsmith/actions/workflows/ci.yml)
4
+ [![Docs](https://readthedocs.org/projects/specsmith/badge/?version=latest)](https://specsmith.readthedocs.io/en/latest/)
5
+ [![PyPI](https://img.shields.io/pypi/v/specsmith.svg)](https://pypi.org/project/specsmith/)
6
+ [![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)
7
+ [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
8
+
9
+ **Governed project scaffolds for AI-assisted development.**
10
+
11
+ > Intelligence proposes. Constraints decide. The ledger remembers.
12
+
13
+ ---
14
+
15
+ ## The Problem
16
+
17
+ AI coding agents are powerful but unstructured. Without governance, they skip verification, lose context between sessions, and produce inconsistent results. specsmith generates the governance layer — the rules, verification tools, CI pipelines, and documentation — that makes AI-assisted development auditable and repeatable.
18
+
19
+ ## What specsmith Does
20
+
21
+ **For new projects:** `specsmith init` generates a complete project scaffold with governance files, CI/CD, verification tools, and agent integration files tailored to your project type.
22
+
23
+ **For existing projects:** `specsmith import` detects your project's language, build system, and test framework, then generates governance overlay files without modifying your source code. Existing files are preserved.
24
+
25
+ **For ongoing governance:** `specsmith audit` checks health, `specsmith export` generates compliance reports, `specsmith doctor` verifies your tools are installed.
26
+
27
+ Every governed project follows the closed-loop workflow: **propose → check → execute → verify → record**.
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ pip install specsmith
33
+ ```
34
+
35
+ ## Quick Start
36
+
37
+ ```bash
38
+ specsmith init # New project (interactive)
39
+ specsmith init --config scaffold.yml # New project (from config)
40
+ specsmith import --project-dir ./my-project # Adopt existing project
41
+ specsmith audit --project-dir ./my-project # Health check
42
+ specsmith export --project-dir ./my-project # Compliance report
43
+ specsmith doctor --project-dir ./my-project # Tool check
44
+ ```
45
+
46
+ ## 30 Project Types
47
+
48
+ **Software:** Python, Rust, Go, C/C++, .NET, JS/TS, mobile, monorepo, microservices, DevOps/IaC, data/ML, browser extensions.
49
+
50
+ **Hardware:** FPGA/RTL, Yocto BSP, PCB design, embedded systems.
51
+
52
+ **Documents:** Technical specifications, user manuals, research papers, API specifications, requirements management.
53
+
54
+ **Business/Legal:** Business plans, patent applications, legal/compliance frameworks.
55
+
56
+ Each type gets: tool-aware CI (correct lint/test/security/build tools), domain-specific directory structure, governance rules in AGENTS.md, and pre-populated requirements and test stubs.
57
+
58
+ ## 11 CLI Commands
59
+
60
+ | Command | Purpose |
61
+ |---------|---------|
62
+ | `init` | Scaffold a new governed project |
63
+ | `import` | Adopt an existing project (merge mode) |
64
+ | `audit` | Drift detection and health checks (`--fix` to auto-repair) |
65
+ | `validate` | Governance file consistency checks |
66
+ | `compress` | Archive old ledger entries |
67
+ | `upgrade` | Update governance to new spec version |
68
+ | `status` | CI/PR/alert status from VCS platform |
69
+ | `diff` | Compare governance against templates |
70
+ | `export` | Compliance report with REQ↔TEST coverage |
71
+ | `doctor` | Check if verification tools are installed |
72
+
73
+ ## 7 Agent Integrations
74
+
75
+ AGENTS.md (cross-platform standard), Warp/Oz, Claude Code, GitHub Copilot, Cursor, Gemini CLI, Windsurf, Aider.
76
+
77
+ ## 3 VCS Platforms
78
+
79
+ GitHub Actions, GitLab CI, Bitbucket Pipelines — all with tool-aware CI generated from the verification tool registry. Dependabot/Renovate configured per language ecosystem.
80
+
81
+ ## Documentation
82
+
83
+ **[specsmith.readthedocs.io](https://specsmith.readthedocs.io)** — Full user manual with tutorials, command reference, project type details, tool registry, governance model, troubleshooting.
84
+
85
+ ## Links
86
+
87
+ - [PyPI](https://pypi.org/project/specsmith/)
88
+ - [Documentation](https://specsmith.readthedocs.io)
89
+ - [Changelog](CHANGELOG.md)
90
+ - [Contributing](CONTRIBUTING.md)
91
+ - [Specification](docs/AGENT-WORKFLOW-SPEC.md)
92
+ - [Security](SECURITY.md)
93
+
94
+ ## License
95
+
96
+ MIT — Copyright (c) 2026 BitConcepts, LLC.
@@ -0,0 +1,80 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "specsmith"
7
+ version = "0.1.0"
8
+ description = "Forge governed project scaffolds from the Agentic AI Development Workflow Specification."
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.10"
12
+ authors = [
13
+ {name = "BitConcepts"},
14
+ ]
15
+ keywords = ["agentic", "scaffold", "governance", "agents-md", "cli", "specification"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Environment :: Console",
19
+ "Intended Audience :: Developers",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Topic :: Software Development :: Code Generators",
27
+ "Topic :: Software Development :: Build Tools",
28
+ ]
29
+
30
+ dependencies = [
31
+ "click>=8.1",
32
+ "jinja2>=3.1",
33
+ "pyyaml>=6.0",
34
+ "pydantic>=2.0",
35
+ "rich>=13.0",
36
+ ]
37
+
38
+ [project.optional-dependencies]
39
+ dev = [
40
+ "pytest>=7.0",
41
+ "pytest-cov>=4.0",
42
+ "ruff>=0.4",
43
+ "mypy>=1.10",
44
+ "pre-commit>=3.0",
45
+ "types-pyyaml>=6.0",
46
+ ]
47
+ docs = [
48
+ "mkdocs>=1.6",
49
+ "mkdocs-material>=9.5",
50
+ ]
51
+
52
+ [project.scripts]
53
+ specsmith = "specsmith.cli:main"
54
+
55
+ [project.urls]
56
+ Homepage = "https://github.com/BitConcepts/specsmith"
57
+ Repository = "https://github.com/BitConcepts/specsmith"
58
+ Changelog = "https://github.com/BitConcepts/specsmith/blob/main/CHANGELOG.md"
59
+
60
+ [tool.setuptools.packages.find]
61
+ where = ["src"]
62
+
63
+ [tool.setuptools.package-data]
64
+ specsmith = ["templates/**/*.j2"]
65
+
66
+ [tool.ruff]
67
+ target-version = "py310"
68
+ line-length = 100
69
+
70
+ [tool.ruff.lint]
71
+ select = ["E", "F", "W", "I", "UP", "B", "SIM"]
72
+
73
+ [tool.mypy]
74
+ python_version = "3.10"
75
+ strict = true
76
+ warn_return_any = true
77
+ warn_unused_configs = true
78
+
79
+ [tool.pytest.ini_options]
80
+ testpaths = ["tests"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,5 @@
1
+ # SPDX-License-Identifier: MIT
2
+ # Copyright (c) 2026 BitConcepts, LLC. All rights reserved.
3
+ """specsmith — Forge governed project scaffolds."""
4
+
5
+ __version__ = "0.1.0"
@@ -0,0 +1,7 @@
1
+ # SPDX-License-Identifier: MIT
2
+ # Copyright (c) 2026 BitConcepts, LLC. All rights reserved.
3
+ """Allow running specsmith as ``python -m specsmith``."""
4
+
5
+ from specsmith.cli import main
6
+
7
+ main()