dev-ready 0.1.0__tar.gz → 0.1.1__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 (63) hide show
  1. dev_ready-0.1.1/.bob/qa.md +17 -0
  2. dev_ready-0.1.1/.bob/security.md +19 -0
  3. dev_ready-0.1.1/.bob/sre.md +17 -0
  4. dev_ready-0.1.1/.github/workflows/ci.yml +21 -0
  5. dev_ready-0.1.1/.github/workflows/release.yml +20 -0
  6. dev_ready-0.1.1/.github/workflows/upstream-bump.yml +19 -0
  7. dev_ready-0.1.1/.gitignore +218 -0
  8. dev_ready-0.1.1/CLAUDE.md +34 -0
  9. dev_ready-0.1.1/LICENSE +21 -0
  10. dev_ready-0.1.1/PKG-INFO +78 -0
  11. dev_ready-0.1.1/README.md +49 -0
  12. dev_ready-0.1.1/dist_check/.gitignore +1 -0
  13. dev_ready-0.1.1/dist_check/dev_ready-0.1.0-py3-none-any.whl +0 -0
  14. dev_ready-0.1.1/dist_check/dev_ready-0.1.0-py3-none-any.zip +0 -0
  15. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/__init__.py +7 -0
  16. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/__main__.py +6 -0
  17. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/cli.py +108 -0
  18. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/errors.py +35 -0
  19. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/fetch/__init__.py +5 -0
  20. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/manifest/__init__.py +21 -0
  21. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/manifest/loader.py +109 -0
  22. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/manifest/models.py +23 -0
  23. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/manifest.json +13 -0
  24. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/overlay/__init__.py +5 -0
  25. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/prompts/__init__.py +10 -0
  26. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/prompts/answers.py +16 -0
  27. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready/report/__init__.py +4 -0
  28. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready-0.1.0.dist-info/METADATA +78 -0
  29. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready-0.1.0.dist-info/RECORD +18 -0
  30. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready-0.1.0.dist-info/WHEEL +4 -0
  31. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready-0.1.0.dist-info/entry_points.txt +2 -0
  32. dev_ready-0.1.1/dist_check/wheel_contents/dev_ready-0.1.0.dist-info/licenses/LICENSE +21 -0
  33. dev_ready-0.1.1/docs/architecture.md +100 -0
  34. dev_ready-0.1.1/docs/cli-spec.md +36 -0
  35. dev_ready-0.1.1/docs/requirements.md +53 -0
  36. dev_ready-0.1.1/pyproject.toml +31 -0
  37. dev_ready-0.1.1/src/README.md +12 -0
  38. dev_ready-0.1.1/src/dev_ready/__init__.py +7 -0
  39. dev_ready-0.1.1/src/dev_ready/__main__.py +6 -0
  40. dev_ready-0.1.1/src/dev_ready/cli.py +108 -0
  41. dev_ready-0.1.1/src/dev_ready/errors.py +35 -0
  42. dev_ready-0.1.1/src/dev_ready/fetch/__init__.py +5 -0
  43. dev_ready-0.1.1/src/dev_ready/manifest/__init__.py +21 -0
  44. dev_ready-0.1.1/src/dev_ready/manifest/loader.py +109 -0
  45. dev_ready-0.1.1/src/dev_ready/manifest/models.py +23 -0
  46. dev_ready-0.1.1/src/dev_ready/manifest.json +13 -0
  47. dev_ready-0.1.1/src/dev_ready/overlay/__init__.py +5 -0
  48. dev_ready-0.1.1/src/dev_ready/prompts/__init__.py +10 -0
  49. dev_ready-0.1.1/src/dev_ready/prompts/answers.py +16 -0
  50. dev_ready-0.1.1/src/dev_ready/report/__init__.py +4 -0
  51. dev_ready-0.1.1/templates/README.md +14 -0
  52. dev_ready-0.1.1/tests/README.md +9 -0
  53. dev_ready-0.1.1/tests/unit/test_cli.py +95 -0
  54. dev_ready-0.1.1/tests/unit/test_manifest.py +116 -0
  55. dev_ready-0.1.1/uv.lock +108 -0
  56. dev_ready-0.1.0/.gitignore +0 -10
  57. dev_ready-0.1.0/PKG-INFO +0 -5
  58. dev_ready-0.1.0/pyproject.toml +0 -17
  59. dev_ready-0.1.0/src/dev_ready_placeholder/__init__.py +0 -2
  60. dev_ready-0.1.0/src/dev_ready_placeholder/main.py +0 -2
  61. {dev_ready-0.1.0 → dev_ready-0.1.1}/.python-version +0 -0
  62. /dev_ready-0.1.0/README.md → /dev_ready-0.1.1/tests/e2e/.gitkeep +0 -0
  63. /dev_ready-0.1.0/src/dev_ready_placeholder/py.typed → /dev_ready-0.1.1/tests/integration/.gitkeep +0 -0
@@ -0,0 +1,17 @@
1
+ # IBM Bob — QA Agent
2
+
3
+ Role: review every change for test quality before merge.
4
+
5
+ ## Responsibilities
6
+
7
+ - Unit test review: every new public function in `src/dev_ready` has unit tests covering the happy path and at least one failure path.
8
+ - Integration test review: changes touching `fetch`, `overlay`, or `manifest` require integration tests against fixtures, not live network.
9
+ - Edge case detection: empty/invalid project names, existing non-empty target directory, corrupted manifest, interrupted fetch, Windows path handling.
10
+ - Regression checking: confirm the placeholder e2e flow (`init --yes` on a fixture) still produces a bootable project after any generation-path change.
11
+
12
+ ## Checklist per PR
13
+
14
+ 1. Do tests exist for the change, at the right tier (see tests/README.md)?
15
+ 2. Do unit tests avoid network and real filesystem outside tmp_path?
16
+ 3. Are error paths asserted (exit codes per docs/cli-spec.md), not just happy paths?
17
+ 4. Does `uv run pytest` pass locally and in CI?
@@ -0,0 +1,19 @@
1
+ # IBM Bob — Security Reviewer
2
+
3
+ Role: security review of every change, with focus on the risks specific to a scaffolding CLI.
4
+
5
+ ## Responsibilities
6
+
7
+ - OWASP-aligned review adapted to a CLI context: injection via project name into paths/templates, path traversal when writing generated files, unsafe archive extraction (zip-slip) in `fetch`.
8
+ - Secrets scanning: no tokens or credentials in repo, templates, or generated output; generated projects must ship `.env.example`, never `.env`.
9
+ - Prompt injection: overlay content (CLAUDE.md, skills) ships to end users' AI tools — review that templates cannot be abused to smuggle instructions, and that user input is never interpolated into agent instruction files unescaped.
10
+ - Dependency vulnerabilities: minimal dependency policy (docs/architecture.md); new dependencies need justification; enable GitHub Dependabot/audit in CI.
11
+ - Supply chain: upstream is only ever fetched at the manifest-pinned commit over HTTPS; verify archive integrity; release via PyPI trusted publishing (no long-lived tokens).
12
+ - RBAC review: GitHub Actions workflows use least-privilege `permissions:` blocks; no `pull_request_target` without justification.
13
+
14
+ ## Checklist per PR
15
+
16
+ 1. Any user-controlled string reaching filesystem paths or shell? Sanitized?
17
+ 2. Any archive extraction? Zip-slip safe?
18
+ 3. Any new dependency? Justified and pinned?
19
+ 4. Any workflow permission expansion? Justified?
@@ -0,0 +1,17 @@
1
+ # IBM Bob — SRE / Reliability Reviewer
2
+
3
+ Role: reliability review. dev-ready has no servers, so "SRE" here means CLI operational quality plus the reliability of generated projects and CI automation.
4
+
5
+ ## Responsibilities
6
+
7
+ - Observability: CLI output is clear at each stage (prompt, fetch, overlay, verify); `--verbose` flag planned; errors state what failed and what to do next.
8
+ - Logging: no silent failures; network errors map to exit code 3 with actionable messages (docs/cli-spec.md).
9
+ - Health check: e2e verification confirms the generated project's health endpoint responds — this is the release gate.
10
+ - Rollback: generation is all-or-nothing — never leave a partial project directory on failure (write to temp, move on success). Release rollback = yank on PyPI + revert tag.
11
+ - Scalability review: n/a for runtime; applies to maintenance — weekly upstream-bump automation must stay green without manual babysitting (ADR-002).
12
+
13
+ ## Checklist per PR
14
+
15
+ 1. Can this change leave a partial/corrupt generated project on failure?
16
+ 2. Are new failure modes reported with clear messages and correct exit codes?
17
+ 3. Does this add manual maintenance work that should be automated in CI instead?
@@ -0,0 +1,21 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches: [main]
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - uses: astral-sh/setup-uv@v5
14
+ - name: Sync dependencies
15
+ run: uv sync --dev
16
+ - name: Lint
17
+ run: uv run ruff check .
18
+ - name: Test
19
+ run: uv run pytest
20
+ # Phase 4 TODO: generate a project with `uv run dev-ready init --yes`
21
+ # and verify it (docker compose up + health check)
@@ -0,0 +1,20 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ # Phase 5 TODO: configure PyPI trusted publishing for this repo first
11
+ permissions:
12
+ id-token: write
13
+ contents: read
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: astral-sh/setup-uv@v5
17
+ - name: Build
18
+ run: uv build
19
+ - name: Placeholder publish
20
+ run: echo "Enable pypa/gh-action-pypi-publish once trusted publishing is configured"
@@ -0,0 +1,19 @@
1
+ name: Weekly upstream bump
2
+
3
+ on:
4
+ schedule:
5
+ - cron: "0 6 * * 1" # Mondays 06:00 UTC
6
+ workflow_dispatch:
7
+
8
+ jobs:
9
+ bump:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ # Phase 5 TODO:
14
+ # 1. Resolve latest upstream commit of fastapi/full-stack-fastapi-template
15
+ # 2. Update manifest.json pin
16
+ # 3. Regenerate a project and run verification
17
+ # 4. Open a PR with the bump (peter-evans/create-pull-request)
18
+ - name: Placeholder
19
+ run: echo "upstream-bump not yet implemented (see docs/architecture.md ADR-002)"
@@ -0,0 +1,218 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ /MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
@@ -0,0 +1,34 @@
1
+ # CLAUDE.md — dev-ready
2
+
3
+ Guidance for AI agents (Claude Code, GPT, IBM Bob) working in this repo.
4
+
5
+ ## What this project is
6
+
7
+ dev-ready is a Python CLI (`uvx dev-ready`) that scaffolds FastAPI projects pre-configured for AI-assisted development: base template from fastapi/full-stack-fastapi-template at a manifest-pinned commit, plus an overlay of CLAUDE.md, Claude Code skills, MCP config, and design docs.
8
+
9
+ Current phase: bootstrap. Structure and docs exist; no business logic is implemented yet.
10
+
11
+ ## Read before writing code
12
+
13
+ 1. `docs/requirements.md` — what to build and what is out of scope
14
+ 2. `docs/architecture.md` — ADRs, module boundaries, dependency rules (binding, not suggestions)
15
+ 3. `docs/cli-spec.md` — command interface and exit codes
16
+
17
+ ## Commands
18
+
19
+ - `uv sync --dev` — install
20
+ - `uv run dev-ready` — run CLI
21
+ - `uv run pytest` — tests
22
+ - `uv run ruff check .` — lint
23
+
24
+ ## Hard rules
25
+
26
+ - Never fetch upstream "latest" at generation time; pins live in `src/dev_ready/manifest.json` only (ADR-002).
27
+ - Network calls only in `src/dev_ready/fetch/` (module boundary table in architecture.md).
28
+ - Generation must be all-or-nothing: no partial output directories on failure.
29
+ - Unit tests: no network, no filesystem outside tmp_path.
30
+ - Conventional Commits.
31
+
32
+ ## Multi-agent workflow
33
+
34
+ Architect (design docs) -> Engineer (implement) -> QA (`.bob/qa.md`) -> Security (`.bob/security.md`) -> SRE/Release (`.bob/sre.md`). Reviewer expectations are defined in `.bob/`.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Moofon Li
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,78 @@
1
+ Metadata-Version: 2.4
2
+ Name: dev-ready
3
+ Version: 0.1.1
4
+ Summary: Scaffold AI-development-ready FastAPI projects: pinned upstream template plus Claude Code skills, MCP config, and design docs
5
+ License: MIT License
6
+
7
+ Copyright (c) 2026 Moofon Li
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+ License-File: LICENSE
27
+ Requires-Python: >=3.12
28
+ Description-Content-Type: text/markdown
29
+
30
+ # dev-ready
31
+
32
+ Scaffold a production-grade, AI-development-ready FastAPI project in one command:
33
+
34
+ ```bash
35
+ uvx dev-ready init my-app
36
+ ```
37
+
38
+ > Status: bootstrap phase. Repository structure and design docs are in place; the CLI is not yet implemented.
39
+
40
+ ## What it generates
41
+
42
+ - Base: [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template) at a pinned, CI-verified commit (never untested "latest")
43
+ - Overlay: CLAUDE.md, Claude Code skills, MCP server configuration, and design-doc templates so the generated project is immediately workable with AI coding agents
44
+
45
+ ## Tech stack
46
+
47
+ Python >= 3.12, uv/uvx for distribution, questionary for prompts, GitHub Actions for upstream tracking and releases. Design details and ADRs: [docs/architecture.md](docs/architecture.md).
48
+
49
+ ## Development
50
+
51
+ ```bash
52
+ uv sync --dev
53
+ uv run dev-ready # run the CLI
54
+ uv run pytest # tests
55
+ uv run ruff check . # lint
56
+ ```
57
+
58
+ ## Development workflow (multi-agent)
59
+
60
+ This repo is developed with an AI-agent workflow: Architect -> Engineer -> QA -> Security -> Release. Agent instructions live in [CLAUDE.md](CLAUDE.md) and reviewer roles in [.bob/](.bob/).
61
+
62
+ ## Repository layout
63
+
64
+ ```
65
+ docs/ requirements, architecture (ADRs), CLI spec
66
+ src/dev_ready cli / prompts / fetch / overlay / manifest / report
67
+ templates/ overlay assets copied into generated projects
68
+ tests/ unit / integration / e2e
69
+ .bob/ IBM Bob reviewer role definitions (QA, Security, SRE)
70
+ .github/ CI, weekly upstream bump, release workflows
71
+
72
+ Upstream pins live in src/dev_ready/manifest.json (bundled with the package,
73
+ so a released CLI always carries the pin it was tested with).
74
+ ```
75
+
76
+ ## License
77
+
78
+ MIT — see [LICENSE](LICENSE). Generated projects include content derived from fastapi/full-stack-fastapi-template (MIT).
@@ -0,0 +1,49 @@
1
+ # dev-ready
2
+
3
+ Scaffold a production-grade, AI-development-ready FastAPI project in one command:
4
+
5
+ ```bash
6
+ uvx dev-ready init my-app
7
+ ```
8
+
9
+ > Status: bootstrap phase. Repository structure and design docs are in place; the CLI is not yet implemented.
10
+
11
+ ## What it generates
12
+
13
+ - Base: [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template) at a pinned, CI-verified commit (never untested "latest")
14
+ - Overlay: CLAUDE.md, Claude Code skills, MCP server configuration, and design-doc templates so the generated project is immediately workable with AI coding agents
15
+
16
+ ## Tech stack
17
+
18
+ Python >= 3.12, uv/uvx for distribution, questionary for prompts, GitHub Actions for upstream tracking and releases. Design details and ADRs: [docs/architecture.md](docs/architecture.md).
19
+
20
+ ## Development
21
+
22
+ ```bash
23
+ uv sync --dev
24
+ uv run dev-ready # run the CLI
25
+ uv run pytest # tests
26
+ uv run ruff check . # lint
27
+ ```
28
+
29
+ ## Development workflow (multi-agent)
30
+
31
+ This repo is developed with an AI-agent workflow: Architect -> Engineer -> QA -> Security -> Release. Agent instructions live in [CLAUDE.md](CLAUDE.md) and reviewer roles in [.bob/](.bob/).
32
+
33
+ ## Repository layout
34
+
35
+ ```
36
+ docs/ requirements, architecture (ADRs), CLI spec
37
+ src/dev_ready cli / prompts / fetch / overlay / manifest / report
38
+ templates/ overlay assets copied into generated projects
39
+ tests/ unit / integration / e2e
40
+ .bob/ IBM Bob reviewer role definitions (QA, Security, SRE)
41
+ .github/ CI, weekly upstream bump, release workflows
42
+
43
+ Upstream pins live in src/dev_ready/manifest.json (bundled with the package,
44
+ so a released CLI always carries the pin it was tested with).
45
+ ```
46
+
47
+ ## License
48
+
49
+ MIT — see [LICENSE](LICENSE). Generated projects include content derived from fastapi/full-stack-fastapi-template (MIT).
@@ -0,0 +1 @@
1
+ *
@@ -0,0 +1,7 @@
1
+ """dev-ready: scaffold AI-development-ready FastAPI projects via uvx.
2
+
3
+ Bootstrap phase: package structure only, no business logic yet.
4
+ See docs/architecture.md for module boundaries.
5
+ """
6
+
7
+ __version__ = "0.1.0"
@@ -0,0 +1,6 @@
1
+ """Allow `python -m dev_ready`."""
2
+
3
+ from dev_ready.cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())
@@ -0,0 +1,108 @@
1
+ """CLI entry point. Wiring only — no generation logic lives here.
2
+
3
+ Responsibilities (see docs/architecture.md, Module Boundary):
4
+ - argument parsing and command dispatch (docs/cli-spec.md)
5
+ - mapping typed exceptions to exit codes and messages
6
+ """
7
+
8
+ import argparse
9
+ import re
10
+ import sys
11
+ from pathlib import Path
12
+
13
+ from dev_ready import __version__
14
+ from dev_ready.errors import DevReadyError, InvalidArgumentsError
15
+ from dev_ready.manifest import load_default_manifest
16
+ from dev_ready.prompts import Answers
17
+
18
+ _PROJECT_NAME_PATTERN = re.compile(r"^[a-zA-Z0-9][a-zA-Z0-9._-]*$")
19
+
20
+
21
+ def build_parser() -> argparse.ArgumentParser:
22
+ parser = argparse.ArgumentParser(
23
+ prog="dev-ready",
24
+ description="Scaffold AI-development-ready FastAPI projects.",
25
+ )
26
+ parser.add_argument(
27
+ "--version", action="version", version=f"dev-ready {__version__}"
28
+ )
29
+ subparsers = parser.add_subparsers(dest="command")
30
+
31
+ init_parser = subparsers.add_parser("init", help="Generate a new project")
32
+ init_parser.add_argument(
33
+ "project_name", nargs="?", help="Name of the project to generate"
34
+ )
35
+ init_parser.add_argument(
36
+ "-y", "--yes", action="store_true", help="Accept all defaults, no prompts"
37
+ )
38
+ init_parser.add_argument(
39
+ "--dir",
40
+ dest="target_dir",
41
+ type=Path,
42
+ default=None,
43
+ help="Target directory (default: ./PROJECT_NAME)",
44
+ )
45
+ init_parser.add_argument(
46
+ "--no-skills", action="store_true", help="Skip Claude Code skills overlay"
47
+ )
48
+ init_parser.add_argument(
49
+ "--no-mcp", action="store_true", help="Skip MCP server configuration overlay"
50
+ )
51
+ init_parser.add_argument(
52
+ "--no-docs", action="store_true", help="Skip design-doc templates overlay"
53
+ )
54
+ return parser
55
+
56
+
57
+ def build_answers(args: argparse.Namespace) -> Answers:
58
+ """Turn parsed flags into the shared Answers model.
59
+
60
+ Interactive prompting for missing values lands in a later phase; until
61
+ then the project name is required on the command line.
62
+ """
63
+ name = args.project_name
64
+ if not name:
65
+ raise InvalidArgumentsError(
66
+ "project name is required: dev-ready init <project-name>"
67
+ )
68
+ if not _PROJECT_NAME_PATTERN.fullmatch(name):
69
+ raise InvalidArgumentsError(
70
+ f"invalid project name {name!r}: use letters, digits, '.', '_', '-',"
71
+ " starting with a letter or digit"
72
+ )
73
+ target_dir = args.target_dir if args.target_dir is not None else Path.cwd() / name
74
+ return Answers(
75
+ project_name=name,
76
+ target_dir=target_dir,
77
+ include_skills=not args.no_skills,
78
+ include_mcp=not args.no_mcp,
79
+ include_docs=not args.no_docs,
80
+ assume_yes=args.yes,
81
+ )
82
+
83
+
84
+ def _run_init(args: argparse.Namespace) -> int:
85
+ answers = build_answers(args)
86
+ manifest = load_default_manifest()
87
+ pin = manifest.upstream["base_template"]
88
+ print(f"project: {answers.project_name}")
89
+ print(f"target: {answers.target_dir}")
90
+ print(f"upstream: {pin.repo}@{pin.commit[:12]} ({pin.ref})")
91
+ print()
92
+ print("init is not implemented yet: fetch and overlay land in Phase 2 and 3.")
93
+ return 1
94
+
95
+
96
+ def main(argv: list[str] | None = None) -> int:
97
+ parser = build_parser()
98
+ args = parser.parse_args(argv)
99
+ if args.command is None:
100
+ parser.print_help()
101
+ return 0
102
+ try:
103
+ if args.command == "init":
104
+ return _run_init(args)
105
+ raise InvalidArgumentsError(f"unknown command: {args.command}")
106
+ except DevReadyError as error:
107
+ print(f"error: {error}", file=sys.stderr)
108
+ return error.exit_code