@donotdev/cli 0.0.29 → 0.0.31
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.
- package/dependencies-matrix.json +28 -29
- package/dist/bin/commands/build.js +17 -12
- package/dist/bin/commands/bump.js +422 -185
- package/dist/bin/commands/cacheout.js +17 -12
- package/dist/bin/commands/coach.js +17 -12
- package/dist/bin/commands/create-app.js +17 -12
- package/dist/bin/commands/create-project.js +17 -12
- package/dist/bin/commands/db.js +17 -12
- package/dist/bin/commands/deploy.js +17 -12
- package/dist/bin/commands/dev.js +17 -12
- package/dist/bin/commands/doctor.js +17 -12
- package/dist/bin/commands/emu.js +17 -12
- package/dist/bin/commands/format.js +17 -12
- package/dist/bin/commands/get-demo.js +17 -12
- package/dist/bin/commands/make-admin.js +17 -12
- package/dist/bin/commands/preview.js +17 -12
- package/dist/bin/commands/seed.js +17 -12
- package/dist/bin/commands/setup-cicd.js +17 -12
- package/dist/bin/commands/setup.js +17 -12
- package/dist/bin/commands/staging.js +17 -12
- package/dist/bin/commands/sync-secrets.js +17 -12
- package/dist/bin/commands/type-check.js +17 -12
- package/dist/bin/commands/wai.js +17 -12
- package/dist/bin/dndev.js +1 -1
- package/dist/bin/donotdev.js +1 -1
- package/dist/index.js +17 -12
- package/package.json +1 -1
- package/templates/app-next/src/globals.css.example +3 -2
- package/templates/overlay-supabase/src/config/providers.expo.ts.example +2 -0
- package/templates/overlay-supabase/src/config/providers.ts.example +2 -0
- package/templates/root-consumer/.claude/skills/brainstorm/SKILL.md.example +58 -0
- package/templates/root-consumer/.claude/skills/build/SKILL.md.example +50 -0
- package/templates/root-consumer/.claude/skills/design/SKILL.md.example +46 -0
- package/templates/root-consumer/.claude/skills/design/output-template.md +35 -0
- package/templates/root-consumer/.claude/skills/grill/SKILL.md.example +70 -0
- package/templates/root-consumer/.claude/skills/polish/SKILL.md.example +76 -0
- package/templates/root-consumer/.claude/skills/techdebt/SKILL.md.example +46 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grill
|
|
3
|
+
description: Critical staff-engineer code review — flags problems before shipping. Blocking review with high-signal findings only.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
argument-hint: [files, areas, or "full"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**Phase gate: only use after Phase 3 (COMPOSE) is complete.**
|
|
9
|
+
|
|
10
|
+
Skeptical staff engineer doing a blocking code review. Find things that will **break, lose data, or mislead**.
|
|
11
|
+
|
|
12
|
+
## Step 0 — Situational Awareness
|
|
13
|
+
|
|
14
|
+
1. Read `.dndev/grill-report.json` — last run's SHA, target, items
|
|
15
|
+
2. Read `.dndev/grill-ignore.json` — accepted deviations (SSOT for exclusions)
|
|
16
|
+
3. Check current `git rev-parse --short HEAD`
|
|
17
|
+
|
|
18
|
+
**No-op:** Same perimeter + same SHA as last run → skip. Nothing changed.
|
|
19
|
+
|
|
20
|
+
**If `$ARGUMENTS` provided** — use as perimeter.
|
|
21
|
+
**If empty** — check what changed since last grill. Propose and proceed unless ambiguous.
|
|
22
|
+
|
|
23
|
+
## Step 1 — Archive
|
|
24
|
+
|
|
25
|
+
If `.dndev/grill-report.json` has resolved items (`fixed`, `resolved`, `rejected`):
|
|
26
|
+
- Archive to `.dndev/grill-history.json`
|
|
27
|
+
- Keep surviving items for merge
|
|
28
|
+
|
|
29
|
+
## Step 2 — Scan
|
|
30
|
+
|
|
31
|
+
Review target files for:
|
|
32
|
+
- **BLOCKER** — breaks in production, loses data, security issues, breaking API changes
|
|
33
|
+
- **WARN** — real problems users will hit (missing edge cases, misleading dead code)
|
|
34
|
+
- **NOTE** — sparingly, genuine gotchas only
|
|
35
|
+
|
|
36
|
+
What NOT to flag:
|
|
37
|
+
- Optimization suggestions, style, formatting
|
|
38
|
+
- Hypothetical edge cases against TypeScript types
|
|
39
|
+
- Dev-only code, harmless dead code
|
|
40
|
+
- Over-engineering suggestions
|
|
41
|
+
|
|
42
|
+
**Self-test:** "Would I block a PR for this?" No → skip.
|
|
43
|
+
|
|
44
|
+
Also check: @donotdev component usage without `lookup_symbol` verification.
|
|
45
|
+
|
|
46
|
+
## Step 3 — Filter + Write
|
|
47
|
+
|
|
48
|
+
1. Filter out `grill-ignore.json` matches (fuzzy on issue text)
|
|
49
|
+
2. Deduplicate against carried items
|
|
50
|
+
3. Merge and write to `.dndev/grill-report.json`:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"generated": "<ISO>",
|
|
55
|
+
"gitSha": "<short HEAD>",
|
|
56
|
+
"target": "<what was reviewed>",
|
|
57
|
+
"verdict": "SHIP | DO NOT SHIP",
|
|
58
|
+
"items": [{ "id": 1, "severity": "...", "file": "...", "line": 0, "issue": "...", "category": "...", "status": "pending", "verified": true }]
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
If any blocker → DO NOT SHIP.
|
|
63
|
+
|
|
64
|
+
## Fixing (on demand, not during scan)
|
|
65
|
+
|
|
66
|
+
When asked to fix: apply fix, set `status: "fixed"`, set `lastReviewed`.
|
|
67
|
+
|
|
68
|
+
**Quality > quantity. 15 real issues >>> 60 padded items.**
|
|
69
|
+
|
|
70
|
+
Print: `Cleaned N → history. Carried M. Added K. Total: T.` + verdict.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: polish
|
|
3
|
+
description: Generate tests, database rules, CI/CD, config, fix bugs, i18n (Phase 4). Use AFTER /build when the app works and needs production-readiness.
|
|
4
|
+
argument-hint: [task]
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Polish — Production-Ready
|
|
9
|
+
|
|
10
|
+
**WORKFLOW:** `/brainstorm` → `/design` → `/build` → `/polish`
|
|
11
|
+
|
|
12
|
+
## Step 0 — Start Phase (MANDATORY)
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
start_phase(4)
|
|
16
|
+
```
|
|
17
|
+
Do NOT proceed without this call.
|
|
18
|
+
|
|
19
|
+
## Step 1 — Read Context
|
|
20
|
+
|
|
21
|
+
- `guides/wai-way/spec_template.md` — validated spec (test plan)
|
|
22
|
+
- `entities/index.ts` — all entity definitions
|
|
23
|
+
- `src/pages/` — all page files
|
|
24
|
+
|
|
25
|
+
## Steps 2-5 — Parallel-capable
|
|
26
|
+
|
|
27
|
+
These steps are independent. Launch them in parallel when possible:
|
|
28
|
+
|
|
29
|
+
### Tests
|
|
30
|
+
Call `get_guide("TESTING")` for patterns.
|
|
31
|
+
- Entity tests → `tests/entities/[Entity].test.ts`
|
|
32
|
+
- Page tests → `tests/pages/[Page].test.tsx`
|
|
33
|
+
- Access control → `tests/access/access-rules.test.ts`
|
|
34
|
+
|
|
35
|
+
### Database Rules
|
|
36
|
+
Auto-detect provider (Firestore or Supabase RLS). Generate rules from entity access definitions.
|
|
37
|
+
|
|
38
|
+
### CI/CD
|
|
39
|
+
Create `.github/workflows/ci.yml` — type-check → test → build → deploy.
|
|
40
|
+
|
|
41
|
+
### Config
|
|
42
|
+
- `src/config/app.ts` — APP_NAME, preset, footer
|
|
43
|
+
- `src/config/legal.ts` — company, contacts, jurisdiction
|
|
44
|
+
- `.env` — provider config, license key
|
|
45
|
+
|
|
46
|
+
## Step 6 — Validate
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
bun test
|
|
50
|
+
```
|
|
51
|
+
All tests must pass. Fix failures.
|
|
52
|
+
|
|
53
|
+
## Step 7 — Mobile Check
|
|
54
|
+
|
|
55
|
+
DevTools → 375px → navigation, forms, text, buttons (44px min).
|
|
56
|
+
|
|
57
|
+
## Step 8 — i18n (Optional)
|
|
58
|
+
|
|
59
|
+
Extract strings to `src/locales/`, replace with `useTranslation()`.
|
|
60
|
+
|
|
61
|
+
## Ship Readiness
|
|
62
|
+
|
|
63
|
+
- `dndev tc` passes
|
|
64
|
+
- `bun test` passes
|
|
65
|
+
- Database rules generated
|
|
66
|
+
- CI/CD created
|
|
67
|
+
- No critical bugs
|
|
68
|
+
- Mobile works at 375px
|
|
69
|
+
|
|
70
|
+
## Complete Phase
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
complete_phase({ files: ["...all test/config files..."], summary: "Tests passing, config complete, ready to ship" })
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Wait for user `approve_phase()`. Then → `dndev deploy`.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: techdebt
|
|
3
|
+
description: End-of-session tech debt sweep. Scans modified files for duplicates, dead exports, missing JSDoc, broken imports, unused deps. Reports only, does NOT fix.
|
|
4
|
+
disable-model-invocation: true
|
|
5
|
+
argument-hint: [files/areas or blank for session diff]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
**Phase gate: only use after Phase 3 (COMPOSE) is complete.**
|
|
9
|
+
|
|
10
|
+
Scan for tech debt — the slow rot that `/grill` doesn't catch.
|
|
11
|
+
|
|
12
|
+
## What to scan
|
|
13
|
+
|
|
14
|
+
**If `$ARGUMENTS` provided** — scan those files/areas.
|
|
15
|
+
**If empty** — check git diff for files modified in this session, group by area.
|
|
16
|
+
|
|
17
|
+
## What to check
|
|
18
|
+
|
|
19
|
+
- Duplicate logic (same pattern in 2+ places)
|
|
20
|
+
- Dead exports (exported symbols with no consumers)
|
|
21
|
+
- Missing JSDoc on public API functions/types
|
|
22
|
+
- Broken imports (type-only used as values, circular deps)
|
|
23
|
+
- Unused dependencies in package.json vs actual imports
|
|
24
|
+
- Hardcoded strings that should be in config or i18n
|
|
25
|
+
|
|
26
|
+
## What NOT to check
|
|
27
|
+
|
|
28
|
+
- Security (that's `/grill`)
|
|
29
|
+
- Style / formatting
|
|
30
|
+
- node_modules, dist, .d.ts
|
|
31
|
+
- Items in `.dndev/implementation.md` as known TODOs
|
|
32
|
+
|
|
33
|
+
## Output
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
## <area>
|
|
37
|
+
- [HIGH] <description> — <file>:<line>
|
|
38
|
+
- [MED] <description> — <file>:<line>
|
|
39
|
+
- [LOW] <description> — <file>:<line>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Summary: `N items across M areas (H high, M med, L low)`
|
|
43
|
+
|
|
44
|
+
Rules:
|
|
45
|
+
- DO NOT fix anything. Report only.
|
|
46
|
+
- Quality > quantity. 10 real items >>> 40 noise.
|