procedure-cli 1.7.1 → 1.9.0

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.
@@ -0,0 +1,132 @@
1
+ ---
2
+ name: b3awesome-procedure-setup
3
+ description: Post-setup procedure guardian — on a fresh Procedure CLI install it runs a tech-stack verification wizard; on a working folder it back-fills missing procedure sections into the agent .md files. Pass --verify to force the wizard anywhere.
4
+ ---
5
+
6
+ # b3awesome Procedure Setup
7
+
8
+ One skill, two paths, chosen by detection. Every interaction follows the
9
+ **Visual Confirmation rule** (see bottom).
10
+
11
+ ## Invocation
12
+
13
+ ```
14
+ /b3awesome-procedure-setup # auto-detect: fresh → wizard, working → back-fill
15
+ /b3awesome-procedure-setup --verify # force the tech-stack verification wizard
16
+ ```
17
+
18
+ ## Detection — fresh install or working folder?
19
+
20
+ ```
21
+ /b3awesome-procedure-setup [--verify]
22
+ │
23
+ ▼
24
+ ┌─────────────────────────────┐ "--verify" passed
25
+ │ Was --verify passed? ├────────────────────► WIZARD (skip detection)
26
+ └──────────────┬──────────────┘
27
+ │ no
28
+ ▼
29
+ ┌─────────────────────────────────────────────┐
30
+ │ SIGNAL 1 — review logs still virgin? │
31
+ │ CODE-REVIEW.md has no CR- entries AND │
32
+ │ CODE-FIXED.md has no CF- entries │
33
+ └──────────────┬──────────────────────────────┘
34
+ │ any entry → WORKING FOLDER
35
+ ▼ virgin
36
+ ┌─────────────────────────────────────────────┐
37
+ │ SIGNAL 2 — git history pristine? │
38
+ │ exactly 1 commit, message contains │
39
+ │ "scaffolded by Procedure CLI" │
40
+ │ (no git repo → skip this signal) │
41
+ └──────────────┬──────────────────────────────┘
42
+ │ >1 commit / other message → WORKING FOLDER
43
+ ▼ pristine
44
+ ┌─────────────────────────────────────────────┐
45
+ │ SIGNAL 3 — marker file │
46
+ │ .claude/procedure-cli.json │
47
+ │ { version, generatedAt } written at │
48
+ │ generation. Older repos lack it → rely on │
49
+ │ signals 1+2 only │
50
+ └──────────────┬──────────────────────────────┘
51
+ ▼
52
+ ┌────────┴────────┐
53
+ FRESH INSTALL WORKING FOLDER
54
+ → WIZARD (ambiguous defaults here — safe: the wizard
55
+ never auto-runs; --verify is the override)
56
+ ```
57
+
58
+ ## Path: FRESH INSTALL — Tech-Stack Verification Wizard
59
+
60
+ ```
61
+ ① READ generated docs: docs/PRD.md, docs/USER-STORIES.md,
62
+ CLAUDE.md, AGENTS.md
63
+ ▼
64
+ ② CONVERSATIONAL WIZARD — one question at a time:
65
+ • Requirements ↔ Language • Framework ↔ Product type
66
+ • DB / Infra ↔ Scale • Team skill ↔ Learning cost
67
+ anything unclear → ask to clarify before moving on
68
+ ▼
69
+ ③ PROPOSE changes (if any) with rationale + trade-offs,
70
+ presented WITH ASCII diagrams (Visual Confirmation rule)
71
+ ▼
72
+ ④ WAIT FOR APPROVAL — until approved, change NOTHING
73
+ (no doc edits, no stack changes)
74
+ ```
75
+
76
+ This is a conversation in the chat session — not a code/TUI wizard.
77
+
78
+ ## Path: WORKING FOLDER — Back-fill agent docs
79
+
80
+ ```
81
+ repo's agent .md files canonical procedure sections
82
+ (CLAUDE.md, AGENTS.md, (list below — this SKILL.md is
83
+ other agent .md if present) the canon, updated via
84
+ │ procedure-cli-skills-copy.sh)
85
+ └──────────────┬──────────────────┘
86
+ ▼
87
+ ┌───────────────────────────────────┐
88
+ │ DIFF by SECTION: │
89
+ │ • Code Review & Fix Logging │
90
+ │ • Companion Skills note (MP set) │
91
+ │ • Tech-Stack Verification rule │
92
+ │ • Visual Confirmation rule │
93
+ └──────────────┬────────────────────┘
94
+ ▼
95
+ ┌───────────────────────────────────┐
96
+ │ APPEND missing sections only. │
97
+ │ NEVER edit or delete existing │
98
+ │ sections — even when they look │
99
+ │ older than the canon. Lessons and │
100
+ │ customizations stay intact. │
101
+ └──────────────┬────────────────────┘
102
+ ▼
103
+ Report: gaps filled + gaps SKIPPED (section present
104
+ but stale) → the user decides about manual upgrades.
105
+ Then STOP. Tell the user: run
106
+ /b3awesome-procedure-setup --verify for the wizard.
107
+ ```
108
+
109
+ ### Canonical sections to check
110
+
111
+ 1. **Code Review & Fix Logging** — CR-/CF- append-only log procedure. If missing, derive the section from the `/b3awesome-code-review` and `/b3awesome-code-fix` skills installed in this repo.
112
+ 2. **Companion Skills note** — the review/fix skills invoke Matt Pocock companion skills (`code-review`, `codebase-design`, `diagnosing-bugs`, `tdd`) installed globally by Procedure CLI, never carried inside the project.
113
+ 3. **Tech-Stack Verification** — after Procedure CLI setup, verify the chosen stack against requirements via `/b3awesome-procedure-setup --verify`: read generated docs, wizard one question at a time, clarify, propose, wait for approval.
114
+ 4. **Visual Confirmation** — see below; copy the rule text verbatim.
115
+
116
+ ## Rules
117
+
118
+ - Never modify or delete existing sections in any agent .md file — append only.
119
+ - Never touch `CODE-REVIEW.md` / `CODE-FIXED.md` history.
120
+ - Never change tech stack or docs without explicit approval (wizard step ④).
121
+ - If both paths have nothing to do (all sections present, not fresh), say so and stop.
122
+
123
+ ## Visual Confirmation rule (applies to every interaction)
124
+
125
+ Whenever the user must review, clarify, confirm, or approve anything, present
126
+ it WITH a fitting ASCII visual:
127
+
128
+ - **Wireframe** — UI or layout decisions
129
+ - **Screen flow** — navigation and user journeys
130
+ - **Diagram** — architecture, data flow, sequences, relationships
131
+
132
+ Plain-prose proposals without a visual are not acceptable for approval requests.