dev-ready 0.1.3__tar.gz → 0.1.4__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.1.4}/.github/workflows/upstream-bump.yml +11 -1
- dev_ready-0.1.4/CLAUDE.md +44 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/PKG-INFO +1 -1
- {dev_ready-0.1.3 → dev_ready-0.1.4}/docs/architecture.md +21 -1
- dev_ready-0.1.4/docs/requirements.md +73 -0
- dev_ready-0.1.4/docs/v0.2-plan.md +56 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/pyproject.toml +1 -1
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/fetch/snapshot.py +10 -4
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/manifest.json +3 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/templates/claude/CLAUDE.md.tmpl +3 -3
- {dev_ready-0.1.3 → dev_ready-0.1.4}/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 → dev_ready-0.1.4}/.bob/qa.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/.bob/security.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/.bob/sre.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/.github/dependabot.yml +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/.github/workflows/ci.yml +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/.github/workflows/release.yml +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/.gitignore +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/.python-version +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/LICENSE +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/README-pypi.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/THIRD_PARTY_NOTICES.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/docs/cli-spec.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/docs/releasing.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/docs/v0.1-overview.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/scripts/bump_upstream.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/__main__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/cli.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/errors.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/fetch/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/generate.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/manifest/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/manifest/loader.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/manifest/models.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/overlay/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/prompts/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/prompts/_questionary_asker.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/prompts/answers.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/prompts/asker.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/prompts/collect.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/report/__init__.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/report/render.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/templates/claude/skills/project-orientation/SKILL.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/templates/docs/architecture.md.tmpl +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/templates/docs/requirements.md.tmpl +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/templates/mcp/mcp.json +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/src/dev_ready/verify.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/templates/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/README.md +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/e2e/.gitkeep +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/e2e/test_init_real.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/integration/.gitkeep +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/integration/test_fetch_real.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_bump_upstream.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_cli.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_fetch.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_generate.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_manifest.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_overlay.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_prompts.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_report.py +0 -0
- {dev_ready-0.1.3 → dev_ready-0.1.4}/tests/unit/test_verify.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 committed handoff documents in `docs/handoffs/phase-N/` — 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 — writes most of the code; execution report per phase | Keep grinding on a hard bug (STOP, escalate to senior via `reports/escalation-*.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)
|
|
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 committed markdown handoffs under `docs/handoffs/`:
|
|
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 — writes most of the code. On completion writes an execution report (md). On a hard bug or an unimplementable task: STOP generating code (do not thrash tokens), move to the next task, and write an escalation handoff for the senior describing where, what happened, and the suspected cause.
|
|
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 `docs/handoffs/phase-N/`: `01-opus-plan.md` (senior's task breakdown for the junior), `02-gemini-implementation.md` (junior's brief: role, tasks, stop rules), `03-opus-review.md` (senior's review brief: read the junior's report, fix hard bugs, close the phase), `04-bob-qa.md`, `05-bob-security.md`, `06-bob-sre.md`. The junior's outputs go to `docs/handoffs/phase-N/reports/` (`execution-report.md`, `escalation-*.md`).
|
|
90
|
+
- Consequences: Every agent starts from a committed 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
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# v0.2 Plan — dev-ready
|
|
2
|
+
|
|
3
|
+
Status: Accepted (2026-07-16). Written by the Tech Lead (ADR-007). Source of truth for phase handoff generation.
|
|
4
|
+
|
|
5
|
+
Scope: FR-7..FR-10 in `docs/requirements.md`; decisions in ADR-006/ADR-007 in `docs/architecture.md`. Everything else is out of scope for v0.2.
|
|
6
|
+
|
|
7
|
+
## Pre-phase: release v0.1.4 first
|
|
8
|
+
|
|
9
|
+
The pending fixes on main must ship before v0.2 work starts, since v0.1.3 output is visibly broken (`.git` + `copier.yml` leak):
|
|
10
|
+
|
|
11
|
+
1. manifest `exclude` additions (`.git`, `copier.yml`, `copier.yaml`) + snapshot.py comment
|
|
12
|
+
2. `upstream-bump.yml` token fallback (`BUMP_PR_TOKEN`) — CEO must create the fine-grained PAT and repo secret
|
|
13
|
+
3. CLAUDE.md.tmpl corrections (`compose.yml`, repo link)
|
|
14
|
+
|
|
15
|
+
Release: bump version to 0.1.4, tag `v0.1.4`, existing release pipeline does the rest.
|
|
16
|
+
|
|
17
|
+
## Phase 1 — prune list + leak guard (FR-7, FR-9)
|
|
18
|
+
|
|
19
|
+
Smallest phase, highest user-visible value. Ships as v0.2.0.
|
|
20
|
+
|
|
21
|
+
- `manifest` module: add optional `prune` key (validation identical to `exclude`: non-empty relative-path strings, no leading `/`, no `..` segments). New field on `UpstreamPin`, default empty tuple.
|
|
22
|
+
- `fetch`: pass `exclude=pin.exclude + pin.prune` to `copier.run_copy` (order irrelevant to Copier; keep exclude first for readability).
|
|
23
|
+
- `manifest.json`: populate `prune` with the audited FR-7 list. NOTE for implementer: Copier exclude patterns are source paths relative to the template root; directory entries need the path form Copier matches (verify `img`, `hooks`, and individual `.github/workflows/*.yml` entries against a real run — the FR-7 list names intents, the implementer confirms exact patterns).
|
|
24
|
+
- `verify`: add `FORBIDDEN_PATHS = (".git", "copier.yml", "copier.yaml")`; `verify_project` raises `VerificationError` (exit 5) if any exists in the staged output. Do NOT add pruned paths here — prune is curation, not corruption; only leak-class paths are forbidden.
|
|
25
|
+
- Tests: manifest parsing (prune present/absent/invalid), fetch merge behavior (unit, no network), verify forbidden-path (tmp_path fixtures). CI generate-and-verify already exercises the real pipeline.
|
|
26
|
+
- Acceptance: a fresh generation contains none of the FR-7 pruned files; all FR-7 KEEP files still present; unit suite green without network.
|
|
27
|
+
|
|
28
|
+
## Phase 2 — project README (FR-8)
|
|
29
|
+
|
|
30
|
+
Depends on Phase 1 (prune must remove upstream README.md first).
|
|
31
|
+
|
|
32
|
+
- Add `README.md` to the `prune` list.
|
|
33
|
+
- New overlay template `templates/readme/README.md.tmpl`: project name heading, one-paragraph stack description, commands section mirroring CLAUDE.md.tmpl, link back to dev-ready and the upstream template. Always applied (like CLAUDE.md), not a selectable component.
|
|
34
|
+
- Overlay no-overwrite rule unchanged — prune guarantees no collision. If prune is somehow disabled and README.md exists, the existing `OverlayError` collision path is the correct behavior; do not special-case.
|
|
35
|
+
- Tests: overlay unit tests for the new file; template token check already generic.
|
|
36
|
+
- Acceptance: generated project has a README about ITSELF, not about the template; no broken `img/` references anywhere.
|
|
37
|
+
|
|
38
|
+
## Phase 3 — agent-team overlay component (FR-10)
|
|
39
|
+
|
|
40
|
+
- Fourth optional component `agents` beside skills/mcp/docs: `--no-agents` flag, checkbox entry, `Answers.include_agents`, default on.
|
|
41
|
+
- New overlay tree `templates/agents/`: `docs/handoffs/README.md` (the protocol: roles table from ADR-007, file naming `phase-N/01-opus-plan.md` … `06-bob-sre.md`, `reports/` convention, stop-and-escalate rule for the junior) plus one skeleton per handoff type with placeholder sections.
|
|
42
|
+
- Generated CLAUDE.md gains an agent-roles section (extend CLAUDE.md.tmpl — keep it short, point at `docs/handoffs/README.md`).
|
|
43
|
+
- Tests: prompts (component matrix now 4-wide), cli flag mapping, overlay tree application.
|
|
44
|
+
- Acceptance: `--yes` generation includes the scaffold; `--no-agents` excludes it; interactive checkbox shows four components.
|
|
45
|
+
|
|
46
|
+
## Phase 4 — close out
|
|
47
|
+
|
|
48
|
+
- Docs: update `docs/v0.1-overview.md` successor or write `v0.2-overview.md`; README-pypi feature list; cli-spec.md flag table (`--no-agents`).
|
|
49
|
+
- Bob passes (QA/Security/SRE per `.bob/`), release v0.2.0.
|
|
50
|
+
|
|
51
|
+
## Standing constraints (binding for every phase)
|
|
52
|
+
|
|
53
|
+
- Hard rules in CLAUDE.md apply unchanged (pins only in manifest.json, network only in `fetch/`, all-or-nothing generation, no-network unit tests, Conventional Commits).
|
|
54
|
+
- No new runtime dependencies in v0.2.
|
|
55
|
+
- Module boundaries per architecture.md; a phase that wants to cross one escalates to the Tech Lead instead of crossing it.
|
|
56
|
+
- Every phase ends with: unit suite green, `ruff check` clean, CI generate-and-verify green.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "dev-ready"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.4"
|
|
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,10 +63,16 @@ 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
|
-
#
|
|
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.
|
|
70
76
|
exclude=pin.exclude,
|
|
71
77
|
# Unanswered template questions take the template's defaults;
|
|
72
78
|
# dev-ready's own prompting happens in `prompts`, never here.
|
|
@@ -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
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|