dev-ready 0.1.3__tar.gz → 0.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.
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.github/workflows/upstream-bump.yml +11 -1
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.gitignore +2 -0
- dev_ready-0.2.0/CLAUDE.md +44 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/PKG-INFO +1 -1
- {dev_ready-0.1.3 → dev_ready-0.2.0}/docs/architecture.md +21 -1
- dev_ready-0.2.0/docs/requirements.md +73 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/pyproject.toml +1 -1
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/__init__.py +1 -1
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/fetch/snapshot.py +12 -5
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/manifest/loader.py +9 -7
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/manifest/models.py +4 -0
- dev_ready-0.2.0/src/dev_ready/manifest.json +40 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/templates/claude/CLAUDE.md.tmpl +3 -3
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/verify.py +11 -1
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_fetch.py +15 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_manifest.py +37 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_verify.py +20 -1
- {dev_ready-0.1.3 → dev_ready-0.2.0}/uv.lock +1 -1
- dev_ready-0.1.3/CLAUDE.md +0 -34
- dev_ready-0.1.3/docs/requirements.md +0 -53
- dev_ready-0.1.3/src/dev_ready/manifest.json +0 -19
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.bob/qa.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.bob/security.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.bob/sre.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.github/dependabot.yml +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.github/workflows/ci.yml +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.github/workflows/release.yml +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/.python-version +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/LICENSE +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/README-pypi.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/THIRD_PARTY_NOTICES.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/docs/cli-spec.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/docs/releasing.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/docs/v0.1-overview.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/scripts/bump_upstream.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/__main__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/cli.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/errors.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/fetch/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/generate.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/manifest/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/overlay/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/prompts/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/prompts/_questionary_asker.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/prompts/answers.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/prompts/asker.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/prompts/collect.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/report/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/report/render.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/templates/claude/skills/project-orientation/SKILL.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/templates/docs/architecture.md.tmpl +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/templates/docs/requirements.md.tmpl +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/src/dev_ready/templates/mcp/mcp.json +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/templates/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/e2e/.gitkeep +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/e2e/test_init_real.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/integration/.gitkeep +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/integration/test_fetch_real.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_bump_upstream.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_cli.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_generate.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_overlay.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_prompts.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.2.0}/tests/unit/test_report.py +0 -0
|
@@ -10,6 +10,16 @@ on:
|
|
|
10
10
|
# ci.yml, whose generate-and-verify job regenerates a project against the
|
|
11
11
|
# new pin and runs the full docker-compose health check — that is the
|
|
12
12
|
# actual gate for the bump (ADR-002).
|
|
13
|
+
#
|
|
14
|
+
# IMPORTANT: for that gate to fire automatically, the PR must be opened
|
|
15
|
+
# with a token OTHER than the default GITHUB_TOKEN. GitHub deliberately
|
|
16
|
+
# does not run `on: pull_request` workflows for PRs created with the
|
|
17
|
+
# default GITHUB_TOKEN (recursion protection), so a PR opened with it
|
|
18
|
+
# would sit with NO checks at all. Set up a fine-grained PAT with
|
|
19
|
+
# contents:write + pull-requests:write on this repo and save it as the
|
|
20
|
+
# `BUMP_PR_TOKEN` repository secret. If the secret is missing, this falls
|
|
21
|
+
# back to GITHUB_TOKEN and the PR must be closed and reopened manually
|
|
22
|
+
# (or pushed to) to trigger CI.
|
|
13
23
|
permissions:
|
|
14
24
|
contents: write
|
|
15
25
|
pull-requests: write
|
|
@@ -32,7 +42,7 @@ jobs:
|
|
|
32
42
|
if: steps.bump.outputs.changed == 'true'
|
|
33
43
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
34
44
|
with:
|
|
35
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
45
|
+
token: ${{ secrets.BUMP_PR_TOKEN || secrets.GITHUB_TOKEN }}
|
|
36
46
|
commit-message: "chore: bump upstream pin to ${{ steps.bump.outputs.new_commit_short }}"
|
|
37
47
|
title: "chore: bump upstream pin to ${{ steps.bump.outputs.new_commit_short }}"
|
|
38
48
|
branch: chore/upstream-bump
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# CLAUDE.md — dev-ready
|
|
2
|
+
|
|
3
|
+
Guidance for AI agents (Claude, Gemini/Antigravity, 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: v0.1 complete (v0.1.4 fixes pending release); v0.2 in progress — see `docs/v0.2-plan.md` and ADR-006/ADR-007 in `docs/architecture.md`.
|
|
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 (ADR-007)
|
|
33
|
+
|
|
34
|
+
Roles are fixed. Agents communicate ONLY through on-disk handoff documents in `handoff/<version>/phaseN/` (gitignored — handoffs are working files, never committed; code is committed normally) — never assume chat context from another agent.
|
|
35
|
+
|
|
36
|
+
| Role | Agent | Does | Never does |
|
|
37
|
+
|---|---|---|---|
|
|
38
|
+
| CEO | Moofon | Sets goals, approves plans, merges | — |
|
|
39
|
+
| Tech Lead | Claude Fable 5 (Cowork) | Decisions, plans, handoff docs | Write or edit code |
|
|
40
|
+
| Senior Engineer | Claude Opus 4.8 | Task breakdown for the junior, code review (logic + architecture), fixes escalated hard bugs | Write code the junior can handle |
|
|
41
|
+
| Junior Engineer | Gemini 3.1 Pro (Antigravity) | Implements tasks in the working tree — writes most of the code; execution report per phase | Run state-changing git (commit/branch/push — only the CEO commits, after reviews); keep grinding on a hard bug (STOP, log it in `reports/problems.md`, move to next task) |
|
|
42
|
+
| QA / Security / SRE | IBM Bob | Reviews per `.bob/qa.md`, `.bob/security.md`, `.bob/sre.md` | — |
|
|
43
|
+
|
|
44
|
+
Handoff files per phase: `01-opus-plan.md`, `02-gemini-implementation.md`, `03-opus-review.md`, `04-bob-qa.md`, `05-bob-security.md`, `06-bob-sre.md`; junior outputs in `reports/`.
|
|
@@ -67,7 +67,27 @@ uvx dev-ready init my-app
|
|
|
67
67
|
- New runtime dependency (copier, which brings jinja2/pydantic/plumbum) and a new host requirement: git must be installed (Copier clones; checked up front, mapped to FetchError/exit 3).
|
|
68
68
|
- `unsafe=True` executes the template's `_tasks` (`.copier/update_dotenv.py`) at generation time. Accepted because the executed code is pinned to a CI-verified commit (ADR-002), never floating "latest".
|
|
69
69
|
- Template question names are coupled to the pinned commit; an upstream rename is caught by the bump PR's generate-and-verify job, not by end users.
|
|
70
|
-
- Unwanted template-repo metadata files (upstream `.github/` workflows, SECURITY.md, release-notes.md) are NOT excluded by the template's `_exclude`; a manifest-driven prune list remains future work.
|
|
70
|
+
- Unwanted template-repo metadata files (upstream `.github/` workflows, SECURITY.md, release-notes.md) are NOT excluded by the template's `_exclude`; a manifest-driven prune list remains future work (now ADR-006, v0.2).
|
|
71
|
+
|
|
72
|
+
### ADR-006: Manifest-driven prune list, separate from exclude (v0.2)
|
|
73
|
+
|
|
74
|
+
- Status: Accepted (2026-07-16)
|
|
75
|
+
- Context: A real generation (my-app, v0.1.3) contains upstream repo-maintenance files that are useless or misleading in a user project: upstream deploy/issue-triage workflows, CONTRIBUTING.md, release-notes.md, README screenshots (`img/`), release tooling, and a dead cookiecutter-era hook. Additionally, the template defines its own `_exclude`, which REPLACES Copier's DEFAULT_EXCLUDE — this is how `.git` and `copier.yml` leaked into v0.1.3 output. The full audited list is in requirements.md FR-7.
|
|
76
|
+
- Decision: `manifest.json` gains a `prune` key next to `exclude`, with identical validation (relative paths, no `..`). Both are merged into Copier's `exclude=` parameter at fetch time. The split is semantic, for bump-review clarity: `exclude` = broken-by-design, generation fails or output is corrupted without it (dangling symlinks, `.git`, `copier.yml`); `prune` = generates fine but does not belong in a user project (curated, revisited at bump time). JSON has no comments, so the two keys ARE the documentation.
|
|
77
|
+
- Consequences: One trivial loader/model change; no new fetch logic. The weekly bump PR reviews both lists against the new upstream commit. `verify_project` gains a forbidden-paths check (FR-9) as the enforcement backstop: if upstream restructures and a pruned/excluded path reappears, CI fails at bump time, never at the user's machine... with one caveat — verify runs at generation time too, so users are equally protected.
|
|
78
|
+
|
|
79
|
+
### ADR-007: Multi-agent development team and handoff protocol (v0.2)
|
|
80
|
+
|
|
81
|
+
- Status: Accepted (2026-07-16); amended (2026-07-16): handoffs live under `handoff/<version>/phaseN/` and are gitignored — they are working artifacts of the dev process, not repo content. "Committed" in the original decision is replaced by "on-disk": agents still start from a written document, never from chat history; only source code and docs are committed.
|
|
82
|
+
- Context: dev-ready is developed by one human with several AI agents. v0.1 used a loose Architect -> Engineer -> reviewers flow. Adding Antigravity (Gemini) as a code-writing agent requires explicit roles and explicit handoff artifacts, or agents duplicate work and burn tokens re-deriving context.
|
|
83
|
+
- Decision: fixed roles, communicating only through on-disk markdown handoffs under `handoff/<version>/`:
|
|
84
|
+
- CEO (Moofon): sets goals, approves plans, merges.
|
|
85
|
+
- Tech Lead (Claude Fable 5, Cowork): talks with the CEO; writes decisions, plans, and handoff documents ONLY — never writes or edits code.
|
|
86
|
+
- Senior Engineer (Claude Opus 4.8): reads the tech lead's phase plan, breaks it into implementation tasks with acceptance criteria (a handoff for the junior), reviews the junior's code for logic and architecture, and personally fixes hard bugs the junior escalates.
|
|
87
|
+
- Junior Engineer (Gemini 3.1 Pro, Antigravity): implements the senior's tasks in the working tree — writes most of the code, but NEVER runs state-changing git (no commit/branch/push; only the CEO commits, after all reviews pass). On completion ALWAYS writes an execution report (md). On a hard bug or an unimplementable task: STOP generating code (do not thrash tokens), log the bug in `reports/problems.md` (where, what happened, suspected cause), and move to the next task. The presence of `problems.md` blocks the phase on the senior; the senior deletes it when all bugs are fixed, or marks it ESCALATED-TO-CEO if unfixable.
|
|
88
|
+
- IBM Bob (QA / Security / SRE): unchanged; reviewer expectations stay in `.bob/qa.md`, `.bob/security.md`, `.bob/sre.md`.
|
|
89
|
+
- Handoff artifacts per phase, under `handoff/<version>/phaseN/`: `01-opus-plan.md` (tech lead's brief to the senior; the senior writes his task breakdown + implementation details into 02's designated section), `02-gemini-implementation.md` (the single file the junior receives: working rules from the tech lead + the senior's task breakdown), `03-opus-review.md` (senior's review brief: entry check on `reports/problems.md` — if present, fix mode from problems.md + 02; if absent, review the branch, and write problems.md for any non-trivial finding), `04-bob-qa.md`, `05-bob-security.md`, `06-bob-sre.md`. The junior's outputs go to `handoff/<version>/phaseN/reports/` (`execution-report.md` always; `problems.md` when hard bugs exist).
|
|
90
|
+
- Consequences: Every agent starts from a written on-disk document, not from chat history; token spend concentrates in the cheapest capable agent (junior writes most code, senior only reviews and unblocks); the tech lead's no-code rule keeps decisions and implementation auditable separately. FR-10 ships the same scaffold to generated projects as an optional overlay component, so dev-ready users get this workflow for free.
|
|
71
91
|
|
|
72
92
|
## Module Boundary
|
|
73
93
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Requirements — dev-ready
|
|
2
|
+
|
|
3
|
+
Status: Draft v0.1 (2026-07-13); v0.2 scope added (2026-07-16)
|
|
4
|
+
|
|
5
|
+
## Problem Statement
|
|
6
|
+
|
|
7
|
+
Starting a production-grade FastAPI project that is ready for AI-assisted development requires assembling many pieces by hand: the base template, Claude Code configuration (CLAUDE.md, skills), MCP server setup, and design documentation. dev-ready is a CLI, run via `uvx dev-ready`, that scaffolds all of this in one command.
|
|
8
|
+
|
|
9
|
+
## Functional Requirements
|
|
10
|
+
|
|
11
|
+
FR-1. The user can run `uvx dev-ready` (or `uvx dev-ready init <project-name>`) to generate a new project in a target directory.
|
|
12
|
+
|
|
13
|
+
FR-2. Generation uses a two-stage approach:
|
|
14
|
+
- Stage 1: fetch the upstream base template (fastapi/full-stack-fastapi-template) at the exact commit pinned in `manifest.json`.
|
|
15
|
+
- Stage 2: apply the dev-ready overlay on top: CLAUDE.md, Claude Code skills, MCP server configuration, and design-doc templates.
|
|
16
|
+
|
|
17
|
+
FR-3. The CLI prompts interactively for project name, and which optional overlay components to include. A non-interactive mode (`--yes` with defaults, flags for each choice) must exist for CI and scripted use.
|
|
18
|
+
|
|
19
|
+
FR-4. All upstream content is fetched at a pinned commit recorded in `manifest.json`. The CLI never fetches "latest" at generation time.
|
|
20
|
+
|
|
21
|
+
FR-5. The generated project must work immediately: dependencies resolvable, containers buildable, health check endpoint reachable, without manual fixes.
|
|
22
|
+
|
|
23
|
+
FR-6. The CLI reports clearly what was generated and what the user should do next.
|
|
24
|
+
|
|
25
|
+
## Functional Requirements — v0.2
|
|
26
|
+
|
|
27
|
+
FR-7. Prune upstream repo-maintenance files. The generated project must not contain files that only make sense inside the upstream template's own repository. A `prune` list in `manifest.json` (separate from `exclude` — see ADR-006) removes them at generation time. Initial list, audited against a real v0.1.3 generation:
|
|
28
|
+
|
|
29
|
+
- `.github/workflows/` repo-maintenance workflows: `deploy-production.yml`, `deploy-staging.yml` (reference upstream's own servers and secrets), `issue-manager.yml`, `labeler.yml`, `add-to-project.yml`, `latest-changes.yml`, `smokeshow.yml`, `detect-conflicts.yml`, `zizmor.yml`, `guard-dependencies.yml`, and the `.github/labeler.yml` config. KEEP the workflows that test the user's own app: `test-backend.yml`, `test-docker-compose.yml`, `playwright.yml`, `pre-commit.yml`, plus `dependabot.yml`.
|
|
30
|
+
- `CONTRIBUTING.md` (contributing to the template, not to the user's project)
|
|
31
|
+
- `release-notes.md` (upstream's release history)
|
|
32
|
+
- `img/` (upstream README screenshots and GitHub social-preview images, ~7 files)
|
|
33
|
+
- `scripts/add_latest_release_date.py` (upstream release tooling; other scripts stay)
|
|
34
|
+
- `hooks/post_gen_project.py` (dead file: cookiecutter-era hook, not referenced by the template's `copier.yml` — its `_tasks` only runs `.copier/update_dotenv.py`)
|
|
35
|
+
- `README.md` (upstream's template README; replaced per FR-8)
|
|
36
|
+
|
|
37
|
+
KEEP even though they look upstream-ish: `development.md`, `deployment.md` (genuinely useful to the user), `.pre-commit-config.yaml`, root `package.json`/`bun.lock` (bun workspace wiring), `.copier/` (enables `copier update`), `.gitattributes`, `.agents/` and `.claude/` skill content not already excluded.
|
|
38
|
+
|
|
39
|
+
FR-8. Project README. Because FR-7 prunes the upstream `README.md`, the overlay writes a project-specific `README.md` (templated with the project name, brief stack summary, and the same commands as CLAUDE.md). The overlay's no-overwrite rule is preserved: prune removes the upstream file first, so there is no collision.
|
|
40
|
+
|
|
41
|
+
FR-9. Leak guard in verify. `verify_project` gains a forbidden-paths check (at minimum `.git`, `copier.yml`, `copier.yaml`) so a future upstream or Copier behavior change that reintroduces the v0.1.3 `.git`/`copier.yml` leak fails generation loudly — in CI at bump time, before it ever reaches users.
|
|
42
|
+
|
|
43
|
+
FR-10. Agent-team overlay (optional component, alongside skills/mcp/docs). Generated projects can include a multi-agent handoff scaffold: a `docs/handoffs/` directory with role and handoff templates (tech lead -> senior engineer -> junior engineer -> QA/Security/SRE, see ADR-007), and an agent-roles section in the generated CLAUDE.md. Selected like the other components (`--no-agents` flag, checkbox in the interactive flow).
|
|
44
|
+
|
|
45
|
+
## Non-functional Requirements
|
|
46
|
+
|
|
47
|
+
NFR-1. Reproducibility: two runs of the same dev-ready version produce identical output (modulo user inputs).
|
|
48
|
+
|
|
49
|
+
NFR-2. Maintainability: designed for a solo maintainer. Upstream tracking is automated (weekly CI bump PR); no fork of upstream is maintained.
|
|
50
|
+
|
|
51
|
+
NFR-3. Distribution: installable and runnable via `uvx` with zero prior setup beyond uv itself. Python >= 3.12.
|
|
52
|
+
|
|
53
|
+
NFR-4. Offline behavior: fail fast with a clear message when the network is unavailable; never generate a partial project.
|
|
54
|
+
|
|
55
|
+
NFR-5. Cross-platform: macOS, Linux, Windows.
|
|
56
|
+
|
|
57
|
+
## Out of Scope (current phase)
|
|
58
|
+
|
|
59
|
+
- Web UI companion (deferred, see roadmap)
|
|
60
|
+
- Support for base templates other than fastapi/full-stack-fastapi-template
|
|
61
|
+
- Post-generation project upgrade/migration commands
|
|
62
|
+
|
|
63
|
+
## Future Roadmap
|
|
64
|
+
|
|
65
|
+
1. v0.1: single template, interactive init, pinned manifest, three CI workflows (upstream bump, PR validation, release). DONE (v0.1.3 + pending v0.1.4 fixes: `.git`/`copier.yml` exclude, bump-PR token, CLAUDE.md template corrections).
|
|
66
|
+
2. v0.2: prune list (FR-7), project README (FR-8), verify leak guard (FR-9), agent-team overlay (FR-10). Component selection matrix shipped in v0.1 (skills/mcp/docs flags); v0.2 adds the fourth component. See docs/v0.2-plan.md for phases.
|
|
67
|
+
3. v0.x: `dev-ready check` / `dev-ready upgrade` commands; additional base templates; possible Web UI companion (decision deferred).
|
|
68
|
+
|
|
69
|
+
## Pre-start Checklist (carried from planning)
|
|
70
|
+
|
|
71
|
+
- [ ] Package name availability on PyPI (`dev-ready`)
|
|
72
|
+
- [ ] License verification for redistributing upstream snapshots (upstream is MIT — confirm attribution requirements)
|
|
73
|
+
- [ ] Confirm upstream health check endpoint used for post-generation verification
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dev-ready"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0"
|
|
4
4
|
description = "Scaffold AI-development-ready FastAPI projects: pinned upstream template plus Claude Code skills, MCP config, and design docs"
|
|
5
5
|
readme = "README-pypi.md"
|
|
6
6
|
license = { file = "LICENSE" }
|
|
@@ -63,11 +63,18 @@ def _run_copier(pin: UpstreamPin, staging_dir: Path, data: dict[str, Any]) -> No
|
|
|
63
63
|
data=data,
|
|
64
64
|
vcs_ref=pin.commit,
|
|
65
65
|
# Per-pin source paths Copier must skip, merged with the
|
|
66
|
-
# template's own _exclude.
|
|
67
|
-
# into .venv/ that dangle
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
|
|
66
|
+
# template's own _exclude. Two reasons entries live here:
|
|
67
|
+
# (1) the pinned template ships symlinks into .venv/ that dangle
|
|
68
|
+
# until the user creates the venv; Copier follows symlinks
|
|
69
|
+
# and crashes on them;
|
|
70
|
+
# (2) the template defines its own _exclude, which REPLACES
|
|
71
|
+
# Copier's DEFAULT_EXCLUDE entirely — so .git and
|
|
72
|
+
# copier.yml/.yaml would otherwise be copied into the
|
|
73
|
+
# generated project (the .git worktree file makes the output
|
|
74
|
+
# look like a checkout of the upstream template).
|
|
75
|
+
# See manifest.json and UpstreamPin.exclude. `pin.prune`
|
|
76
|
+
# (curated repo-maintenance files, ADR-006) is merged in alongside `pin.exclude`.
|
|
77
|
+
exclude=pin.exclude + pin.prune,
|
|
71
78
|
# Unanswered template questions take the template's defaults;
|
|
72
79
|
# dev-ready's own prompting happens in `prompts`, never here.
|
|
73
80
|
defaults=True,
|
|
@@ -105,7 +105,8 @@ def _parse_pin(name: str, entry: object, source: str) -> UpstreamPin:
|
|
|
105
105
|
f"{source}: upstream '{name}' field 'verified_at' must be a string or null"
|
|
106
106
|
)
|
|
107
107
|
|
|
108
|
-
exclude =
|
|
108
|
+
exclude = _parse_path_list(name, entry, source, "exclude")
|
|
109
|
+
prune = _parse_path_list(name, entry, source, "prune")
|
|
109
110
|
|
|
110
111
|
return UpstreamPin(
|
|
111
112
|
repo=values["repo"],
|
|
@@ -114,25 +115,26 @@ def _parse_pin(name: str, entry: object, source: str) -> UpstreamPin:
|
|
|
114
115
|
license=values["license"],
|
|
115
116
|
verified_at=verified_at,
|
|
116
117
|
exclude=exclude,
|
|
118
|
+
prune=prune,
|
|
117
119
|
)
|
|
118
120
|
|
|
119
121
|
|
|
120
|
-
def
|
|
121
|
-
"""Validate
|
|
122
|
-
raw = entry.get(
|
|
122
|
+
def _parse_path_list(name: str, entry: dict, source: str, field: str) -> tuple[str, ...]:
|
|
123
|
+
"""Validate optional per-pin path lists (exclude or prune)."""
|
|
124
|
+
raw = entry.get(field)
|
|
123
125
|
if raw is None:
|
|
124
126
|
return ()
|
|
125
127
|
if not isinstance(raw, list):
|
|
126
|
-
raise ManifestError(f"{source}: upstream '{name}' field '
|
|
128
|
+
raise ManifestError(f"{source}: upstream '{name}' field '{field}' must be a list")
|
|
127
129
|
patterns: list[str] = []
|
|
128
130
|
for item in raw:
|
|
129
131
|
if not isinstance(item, str) or not item:
|
|
130
132
|
raise ManifestError(
|
|
131
|
-
f"{source}: upstream '{name}' '
|
|
133
|
+
f"{source}: upstream '{name}' '{field}' entries must be non-empty strings"
|
|
132
134
|
)
|
|
133
135
|
if item.startswith(("/", "\\")) or ".." in item.split("/"):
|
|
134
136
|
raise ManifestError(
|
|
135
|
-
f"{source}: upstream '{name}' '
|
|
137
|
+
f"{source}: upstream '{name}' '{field}' entries must be relative"
|
|
136
138
|
f" paths without '..', got {item!r}"
|
|
137
139
|
)
|
|
138
140
|
patterns.append(item)
|
|
@@ -14,6 +14,9 @@ class UpstreamPin:
|
|
|
14
14
|
Copier follows symlinks by default. The list lives next to the pin so a
|
|
15
15
|
weekly bump PR that hits new dangling entries fails CI loudly and gets
|
|
16
16
|
fixed here, in one reviewed place (ADR-002/ADR-005).
|
|
17
|
+
|
|
18
|
+
`prune` = paths that generate fine but do not belong in a user project
|
|
19
|
+
(curated, reviewed at bump time), vs `exclude` = broken-by-design paths (ADR-006).
|
|
17
20
|
"""
|
|
18
21
|
|
|
19
22
|
repo: str
|
|
@@ -22,6 +25,7 @@ class UpstreamPin:
|
|
|
22
25
|
license: str
|
|
23
26
|
verified_at: str | None = None
|
|
24
27
|
exclude: tuple[str, ...] = ()
|
|
28
|
+
prune: tuple[str, ...] = ()
|
|
25
29
|
|
|
26
30
|
|
|
27
31
|
@dataclass(frozen=True)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"manifest_version": 1,
|
|
3
|
+
"upstream": {
|
|
4
|
+
"base_template": {
|
|
5
|
+
"repo": "fastapi/full-stack-fastapi-template",
|
|
6
|
+
"ref": "master",
|
|
7
|
+
"commit": "4cd0d9e51aebd1af6f82d91ad0df4c9e41f4dea2",
|
|
8
|
+
"verified_at": "2026-07-04",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"exclude": [
|
|
11
|
+
".git",
|
|
12
|
+
"copier.yml",
|
|
13
|
+
"copier.yaml",
|
|
14
|
+
".agents/skills/fastapi",
|
|
15
|
+
".agents/skills/sqlmodel",
|
|
16
|
+
".claude/skills/fastapi",
|
|
17
|
+
".claude/skills/sqlmodel"
|
|
18
|
+
],
|
|
19
|
+
"prune": [
|
|
20
|
+
".github/workflows/deploy-production.yml",
|
|
21
|
+
".github/workflows/deploy-staging.yml",
|
|
22
|
+
".github/workflows/issue-manager.yml",
|
|
23
|
+
".github/workflows/labeler.yml",
|
|
24
|
+
".github/workflows/add-to-project.yml",
|
|
25
|
+
".github/workflows/latest-changes.yml",
|
|
26
|
+
".github/workflows/smokeshow.yml",
|
|
27
|
+
".github/workflows/detect-conflicts.yml",
|
|
28
|
+
".github/workflows/zizmor.yml",
|
|
29
|
+
".github/workflows/guard-dependencies.yml",
|
|
30
|
+
".github/labeler.yml",
|
|
31
|
+
"CONTRIBUTING.md",
|
|
32
|
+
"release-notes.md",
|
|
33
|
+
"img/**",
|
|
34
|
+
"scripts/add_latest_release_date.py",
|
|
35
|
+
"hooks/**"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"overlay_version": "0.1.0"
|
|
40
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# {{project_name}}
|
|
2
2
|
|
|
3
|
-
{{project_name}} is a FastAPI full-stack project, scaffolded by [dev-ready](https://github.com/) on top of [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template): a FastAPI + SQLModel + PostgreSQL backend and a React + TypeScript + Vite frontend, wired together with Docker Compose.
|
|
3
|
+
{{project_name}} is a FastAPI full-stack project, scaffolded by [dev-ready](https://github.com/MoofonLi/dev-ready) on top of [fastapi/full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template): a FastAPI + SQLModel + PostgreSQL backend and a React + TypeScript + Vite frontend, wired together with Docker Compose.
|
|
4
4
|
|
|
5
5
|
## Stack
|
|
6
6
|
|
|
7
7
|
- **Backend**: FastAPI, SQLModel, PostgreSQL, Pydantic — `backend/`
|
|
8
8
|
- **Frontend**: React, TypeScript, Vite — `frontend/`
|
|
9
|
-
- **Infra**: Docker Compose, Traefik reverse proxy — `
|
|
9
|
+
- **Infra**: Docker Compose, Traefik reverse proxy — `compose.yml`
|
|
10
10
|
|
|
11
11
|
## Commands
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
- `backend/` — FastAPI application, SQLModel models, Alembic migrations
|
|
23
23
|
- `frontend/` — React application
|
|
24
|
-
- `
|
|
24
|
+
- `compose.yml` — local development orchestration (`compose.override.yml` adds the local-dev overrides)
|
|
25
25
|
- `docs/` — design docs for this project, if generated with the docs overlay
|
|
26
26
|
|
|
27
27
|
## Working with this repo
|
|
@@ -12,7 +12,7 @@ from pathlib import Path
|
|
|
12
12
|
|
|
13
13
|
from dev_ready.errors import VerificationError
|
|
14
14
|
|
|
15
|
-
__all__ = ["verify_project", "REQUIRED_UPSTREAM_PATHS"]
|
|
15
|
+
__all__ = ["verify_project", "REQUIRED_UPSTREAM_PATHS", "FORBIDDEN_PATHS"]
|
|
16
16
|
|
|
17
17
|
# Derived from a real fetch of the manifest-pinned commit
|
|
18
18
|
# (fastapi/full-stack-fastapi-template @ 4cd0d9e51aebd1af6f82d91ad0df4c9e41f4dea2).
|
|
@@ -28,6 +28,8 @@ REQUIRED_UPSTREAM_PATHS: tuple[str, ...] = (
|
|
|
28
28
|
"LICENSE",
|
|
29
29
|
)
|
|
30
30
|
|
|
31
|
+
FORBIDDEN_PATHS: tuple[str, ...] = (".git", "copier.yml", "copier.yaml")
|
|
32
|
+
|
|
31
33
|
|
|
32
34
|
def verify_project(project_dir: Path) -> None:
|
|
33
35
|
"""Check that `project_dir` has the upstream paths dev-ready depends on.
|
|
@@ -43,3 +45,11 @@ def verify_project(project_dir: Path) -> None:
|
|
|
43
45
|
"commit. Action: file an issue against dev-ready, or do not use "
|
|
44
46
|
"this pin."
|
|
45
47
|
)
|
|
48
|
+
|
|
49
|
+
for path in FORBIDDEN_PATHS:
|
|
50
|
+
if (project_dir / path).exists():
|
|
51
|
+
raise VerificationError(
|
|
52
|
+
f"generated project contains forbidden path {path!r} — an upstream/Copier change "
|
|
53
|
+
"reintroduced a template-repo leak (.git worktree or copier.yml). Action: "
|
|
54
|
+
"file an issue against dev-ready; do not use this pin."
|
|
55
|
+
)
|
|
@@ -98,6 +98,21 @@ def test_pin_without_exclude_passes_empty_exclude(
|
|
|
98
98
|
assert recorded["kwargs"]["exclude"] == ()
|
|
99
99
|
|
|
100
100
|
|
|
101
|
+
def test_pin_with_exclude_and_prune_merges_them(
|
|
102
|
+
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
|
103
|
+
) -> None:
|
|
104
|
+
recorded: dict[str, Any] = {}
|
|
105
|
+
_install_fake_run_copy(monkeypatch, recorded)
|
|
106
|
+
pin = UpstreamPin(
|
|
107
|
+
repo=PIN.repo, ref=PIN.ref, commit=PIN.commit, license=PIN.license,
|
|
108
|
+
exclude=(".agents/skills/fastapi",), prune=("CONTRIBUTING.md", "img")
|
|
109
|
+
)
|
|
110
|
+
|
|
111
|
+
fetch_snapshot(pin, tmp_path / "snapshot")
|
|
112
|
+
|
|
113
|
+
assert recorded["kwargs"]["exclude"] == pin.exclude + pin.prune
|
|
114
|
+
|
|
115
|
+
|
|
101
116
|
def test_template_data_defaults_to_empty_dict(
|
|
102
117
|
tmp_path: Path, monkeypatch: pytest.MonkeyPatch
|
|
103
118
|
) -> None:
|
|
@@ -174,9 +174,46 @@ def test_exclude_entries_must_be_relative_without_traversal(bad_entry: str) -> N
|
|
|
174
174
|
parse_manifest(json.dumps(data))
|
|
175
175
|
|
|
176
176
|
|
|
177
|
+
def test_prune_defaults_to_empty_tuple() -> None:
|
|
178
|
+
manifest = parse_manifest(json.dumps(VALID))
|
|
179
|
+
assert manifest.upstream["base_template"].prune == ()
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
def test_prune_parsed_as_tuple_of_patterns() -> None:
|
|
183
|
+
data = json.loads(json.dumps(VALID))
|
|
184
|
+
data["upstream"]["base_template"]["prune"] = ["docs/junk.md"]
|
|
185
|
+
pin = parse_manifest(json.dumps(data)).upstream["base_template"]
|
|
186
|
+
assert pin.prune == ("docs/junk.md",)
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
def test_prune_must_be_a_list() -> None:
|
|
190
|
+
data = json.loads(json.dumps(VALID))
|
|
191
|
+
data["upstream"]["base_template"]["prune"] = ".agents"
|
|
192
|
+
with pytest.raises(ManifestError, match="must be a list"):
|
|
193
|
+
parse_manifest(json.dumps(data))
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@pytest.mark.parametrize("bad_entry", ["", 42, None])
|
|
197
|
+
def test_prune_entries_must_be_non_empty_strings(bad_entry: object) -> None:
|
|
198
|
+
data = json.loads(json.dumps(VALID))
|
|
199
|
+
data["upstream"]["base_template"]["prune"] = [bad_entry]
|
|
200
|
+
with pytest.raises(ManifestError, match="non-empty strings"):
|
|
201
|
+
parse_manifest(json.dumps(data))
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
@pytest.mark.parametrize("bad_entry", ["/etc/passwd", "\\windows", "../outside", "a/../b"])
|
|
205
|
+
def test_prune_entries_must_be_relative_without_traversal(bad_entry: str) -> None:
|
|
206
|
+
data = json.loads(json.dumps(VALID))
|
|
207
|
+
data["upstream"]["base_template"]["prune"] = [bad_entry]
|
|
208
|
+
with pytest.raises(ManifestError, match="relative"):
|
|
209
|
+
parse_manifest(json.dumps(data))
|
|
210
|
+
|
|
211
|
+
|
|
177
212
|
def test_bundled_manifest_is_valid() -> None:
|
|
178
213
|
manifest = load_default_manifest()
|
|
179
214
|
assert "base_template" in manifest.upstream
|
|
180
215
|
# The pinned FastAPI template ships dangling .venv symlinks that Copier
|
|
181
216
|
# would otherwise follow and crash on (see UpstreamPin.exclude docstring).
|
|
182
217
|
assert manifest.upstream["base_template"].exclude != ()
|
|
218
|
+
assert manifest.upstream["base_template"].prune != ()
|
|
219
|
+
assert ".github/workflows/test-backend.yml" not in manifest.upstream["base_template"].prune
|
|
@@ -5,7 +5,7 @@ from pathlib import Path
|
|
|
5
5
|
import pytest
|
|
6
6
|
|
|
7
7
|
from dev_ready.errors import VerificationError
|
|
8
|
-
from dev_ready.verify import REQUIRED_UPSTREAM_PATHS, verify_project
|
|
8
|
+
from dev_ready.verify import FORBIDDEN_PATHS, REQUIRED_UPSTREAM_PATHS, verify_project
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
_DIRECTORY_ENTRIES = {"backend", "frontend"}
|
|
@@ -55,3 +55,22 @@ def test_verify_error_message_contains_actionable_guidance(tmp_path: Path) -> No
|
|
|
55
55
|
message = str(excinfo.value)
|
|
56
56
|
assert "upstream layout changed" in message
|
|
57
57
|
assert "file an issue" in message
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
@pytest.mark.parametrize("forbidden_path", FORBIDDEN_PATHS)
|
|
61
|
+
def test_verify_raises_when_forbidden_path_is_present(
|
|
62
|
+
tmp_path: Path, forbidden_path: str
|
|
63
|
+
) -> None:
|
|
64
|
+
_make_complete_project(tmp_path)
|
|
65
|
+
target = tmp_path / forbidden_path
|
|
66
|
+
if forbidden_path == ".git":
|
|
67
|
+
target.mkdir()
|
|
68
|
+
else:
|
|
69
|
+
target.write_text("stub", encoding="utf-8")
|
|
70
|
+
|
|
71
|
+
with pytest.raises(VerificationError) as excinfo:
|
|
72
|
+
verify_project(tmp_path)
|
|
73
|
+
|
|
74
|
+
message = str(excinfo.value)
|
|
75
|
+
assert forbidden_path in message
|
|
76
|
+
assert "file an issue" in message
|
dev_ready-0.1.3/CLAUDE.md
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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: v0.1 complete. The full pipeline (prompt -> fetch -> overlay -> verify -> report) is implemented, along with CI generate-and-verify, the weekly upstream-bump automation, and the PyPI release pipeline.
|
|
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/`.
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
# Requirements — dev-ready
|
|
2
|
-
|
|
3
|
-
Status: Draft v0.1 (2026-07-13)
|
|
4
|
-
|
|
5
|
-
## Problem Statement
|
|
6
|
-
|
|
7
|
-
Starting a production-grade FastAPI project that is ready for AI-assisted development requires assembling many pieces by hand: the base template, Claude Code configuration (CLAUDE.md, skills), MCP server setup, and design documentation. dev-ready is a CLI, run via `uvx dev-ready`, that scaffolds all of this in one command.
|
|
8
|
-
|
|
9
|
-
## Functional Requirements
|
|
10
|
-
|
|
11
|
-
FR-1. The user can run `uvx dev-ready` (or `uvx dev-ready init <project-name>`) to generate a new project in a target directory.
|
|
12
|
-
|
|
13
|
-
FR-2. Generation uses a two-stage approach:
|
|
14
|
-
- Stage 1: fetch the upstream base template (fastapi/full-stack-fastapi-template) at the exact commit pinned in `manifest.json`.
|
|
15
|
-
- Stage 2: apply the dev-ready overlay on top: CLAUDE.md, Claude Code skills, MCP server configuration, and design-doc templates.
|
|
16
|
-
|
|
17
|
-
FR-3. The CLI prompts interactively for project name, and which optional overlay components to include. A non-interactive mode (`--yes` with defaults, flags for each choice) must exist for CI and scripted use.
|
|
18
|
-
|
|
19
|
-
FR-4. All upstream content is fetched at a pinned commit recorded in `manifest.json`. The CLI never fetches "latest" at generation time.
|
|
20
|
-
|
|
21
|
-
FR-5. The generated project must work immediately: dependencies resolvable, containers buildable, health check endpoint reachable, without manual fixes.
|
|
22
|
-
|
|
23
|
-
FR-6. The CLI reports clearly what was generated and what the user should do next.
|
|
24
|
-
|
|
25
|
-
## Non-functional Requirements
|
|
26
|
-
|
|
27
|
-
NFR-1. Reproducibility: two runs of the same dev-ready version produce identical output (modulo user inputs).
|
|
28
|
-
|
|
29
|
-
NFR-2. Maintainability: designed for a solo maintainer. Upstream tracking is automated (weekly CI bump PR); no fork of upstream is maintained.
|
|
30
|
-
|
|
31
|
-
NFR-3. Distribution: installable and runnable via `uvx` with zero prior setup beyond uv itself. Python >= 3.12.
|
|
32
|
-
|
|
33
|
-
NFR-4. Offline behavior: fail fast with a clear message when the network is unavailable; never generate a partial project.
|
|
34
|
-
|
|
35
|
-
NFR-5. Cross-platform: macOS, Linux, Windows.
|
|
36
|
-
|
|
37
|
-
## Out of Scope (current phase)
|
|
38
|
-
|
|
39
|
-
- Web UI companion (deferred, see roadmap)
|
|
40
|
-
- Support for base templates other than fastapi/full-stack-fastapi-template
|
|
41
|
-
- Post-generation project upgrade/migration commands
|
|
42
|
-
|
|
43
|
-
## Future Roadmap
|
|
44
|
-
|
|
45
|
-
1. v0.1: single template, interactive init, pinned manifest, three CI workflows (upstream bump, PR validation, release).
|
|
46
|
-
2. v0.2: overlay component selection matrix; non-interactive mode hardening.
|
|
47
|
-
3. v0.x: additional base templates; possible Web UI companion (decision deferred).
|
|
48
|
-
|
|
49
|
-
## Pre-start Checklist (carried from planning)
|
|
50
|
-
|
|
51
|
-
- [ ] Package name availability on PyPI (`dev-ready`)
|
|
52
|
-
- [ ] License verification for redistributing upstream snapshots (upstream is MIT — confirm attribution requirements)
|
|
53
|
-
- [ ] Confirm upstream health check endpoint used for post-generation verification
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": 1,
|
|
3
|
-
"upstream": {
|
|
4
|
-
"base_template": {
|
|
5
|
-
"repo": "fastapi/full-stack-fastapi-template",
|
|
6
|
-
"ref": "master",
|
|
7
|
-
"commit": "4cd0d9e51aebd1af6f82d91ad0df4c9e41f4dea2",
|
|
8
|
-
"verified_at": "2026-07-04",
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"exclude": [
|
|
11
|
-
".agents/skills/fastapi",
|
|
12
|
-
".agents/skills/sqlmodel",
|
|
13
|
-
".claude/skills/fastapi",
|
|
14
|
-
".claude/skills/sqlmodel"
|
|
15
|
-
]
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"overlay_version": "0.1.0"
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|