@akjamie/agentic-sdlc 1.1.0 → 1.2.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.
- package/README.md +300 -107
- package/assets/schema/templates/design.md +94 -31
- package/assets/skills/api-design/SKILL.md +204 -0
- package/assets/skills/asdlc-impl-review/SKILL.md +153 -47
- package/assets/skills/asdlc-new/SKILL.md +42 -24
- package/assets/skills/batch-grill-me/SKILL.md +11 -7
- package/assets/skills/frontend-design/SKILL.md +84 -0
- package/assets/skills/grilling/SKILL.md +43 -17
- package/package.json +1 -1
- package/src/commands/new.js +80 -19
- package/src/lib/agents.js +5 -4
|
@@ -1,33 +1,42 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: grilling
|
|
3
|
-
description: "High-
|
|
3
|
+
description: "High-signal design-tree interview for Stage 2 of Agentic SDLC. Supports conversational grill-me (default, 1 decision at a time with anti-fatigue guardrails) and batch-grill-me (invoked via --batch-grill or /batch-grill-me) to settle clarifications.md before spec authoring."
|
|
4
4
|
aliases:
|
|
5
|
-
- batch-grill-me
|
|
6
5
|
- grill-me
|
|
6
|
+
- batch-grill-me
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
#
|
|
9
|
+
# Design-Tree Grilling (`grilling` / `grill-me` / `batch-grill-me`)
|
|
10
10
|
|
|
11
|
-
This skill drives the **Grilling phase** (Stage 2) of the Agentic SDLC. It operates between `asdlc new "<requirement>"` and spec authoring (`proposal.md` / `specs/**`).
|
|
11
|
+
This skill drives the **Grilling phase** (Stage 2) of the Agentic SDLC. It operates between `asdlc new "<requirement>"` and spec authoring (`proposal.md` / `specs/**`).
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
It supports two distinct execution styles depending on developer preference and CLI invocation:
|
|
14
|
+
1. **Conversational `grill-me` (Default)**: Fast, iterative pair-programming dialogue. Presents **1 material decision at a time**, leading with a concrete codebase-grounded recommendation. Halts immediately when open forks hit zero or when the author fast-forwards.
|
|
15
|
+
2. **`batch-grill-me` (Batch Mode, invoked via `--batch-grill` or `/batch-grill-me`)**: Presents the active decision frontier all at once in structured, numbered batches with trade-offs and recommendations.
|
|
14
16
|
|
|
15
17
|
---
|
|
16
18
|
|
|
17
19
|
## 1. Core Protocol: The Decision Tree & The Frontier
|
|
18
20
|
|
|
19
|
-
1. **
|
|
20
|
-
|
|
21
|
+
1. **Map the Design Tree**:
|
|
22
|
+
Every requirement branches into architectural decisions:
|
|
23
|
+
- Seams & Scope (data storage, protocols, domain models).
|
|
24
|
+
- Compatibility (breaking change vs deprecation).
|
|
25
|
+
- Failure & Resilience (fallback vs error propagation).
|
|
21
26
|
|
|
22
|
-
2. **
|
|
23
|
-
|
|
27
|
+
2. **Work the Frontier**:
|
|
28
|
+
The **frontier** is every decision whose prerequisites are *already settled* — the questions you can address *now* without guessing at answers to dependent questions.
|
|
24
29
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
3. **No Tree-Flattening (CRITICAL RULE)**:
|
|
31
|
+
> **A question whose answer depends on another open question belongs to a *later* round, not this one.**
|
|
32
|
+
Never ask child questions whose parent decision is still unsettled.
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
4. **Early Exit / Fast-Forward Protocol**:
|
|
35
|
+
The author is always sovereign. If the author says:
|
|
36
|
+
- *"Proceed with your defaults"*
|
|
37
|
+
- *"LGTM / Looks good"*
|
|
38
|
+
- *"I trust your recommendations"*
|
|
39
|
+
The agent must **immediately halt questioning**, resolve any remaining open decisions using its stated engineering recommendations, write them into `clarifications.md`, and proceed directly to drafting `proposal.md` and `specs/**`.
|
|
31
40
|
|
|
32
41
|
---
|
|
33
42
|
|
|
@@ -83,9 +92,26 @@ Before emitting a batch round to the author, verify these 3 conditions:
|
|
|
83
92
|
|
|
84
93
|
---
|
|
85
94
|
|
|
86
|
-
## 5.
|
|
95
|
+
## 5. Presentation Formats
|
|
96
|
+
|
|
97
|
+
### 5.1 Conversational `grill-me` Format (Default)
|
|
98
|
+
Present **1 focused decision at a time** with a concrete recommended default:
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
### 🎯 Architectural Decision: <Decision Title>
|
|
102
|
+
|
|
103
|
+
<1-2 sentences explaining the architectural fork and the trade-offs>
|
|
104
|
+
|
|
105
|
+
- **Option A**: <Description of Option A>
|
|
106
|
+
- **Option B**: <Description of Option B>
|
|
107
|
+
|
|
108
|
+
➡️ **Recommendation**: **Option A** — <Fact-backed rationale grounded in codebase/explore.md>
|
|
109
|
+
|
|
110
|
+
*Reply "Agree" to proceed with Option A, specify an alternative (e.g. "Option B"), or type "proceed with all defaults" to fast-forward.*
|
|
111
|
+
```
|
|
87
112
|
|
|
88
|
-
|
|
113
|
+
### 5.2 Batch Presentation Format (`--batch-grill` or `/batch-grill-me`)
|
|
114
|
+
When `--batch-grill` is passed, present all independent active frontier decisions in a single structured round:
|
|
89
115
|
|
|
90
116
|
```markdown
|
|
91
117
|
### 🎯 Batch Decision Frontier (Round <N>)
|
|
@@ -113,7 +139,7 @@ Active Frontier: <N> independent decisions ready for resolution.
|
|
|
113
139
|
|
|
114
140
|
---
|
|
115
141
|
|
|
116
|
-
💡 *To proceed efficiently, reply **"Approve all recommendations"**,
|
|
142
|
+
💡 *To proceed efficiently, reply **"Approve all recommendations"**, specify adjustments (e.g. `Q1: B, Q2: accept`), or type "proceed with defaults".*
|
|
117
143
|
```
|
|
118
144
|
|
|
119
145
|
---
|
package/package.json
CHANGED
package/src/commands/new.js
CHANGED
|
@@ -29,11 +29,14 @@ export function newChange(requirement, opts = {}) {
|
|
|
29
29
|
log.ok(`created change '${slug}' (derived from: "${requirement}")`);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
//
|
|
32
|
+
// Determine grill mode: 'none' (--no-grill), 'batch' (--batch-grill), or 'interactive' (default grill-me)
|
|
33
|
+
const grillMode = opts.grill === false ? 'none' : (opts.batchGrill ? 'batch' : 'interactive');
|
|
34
|
+
|
|
35
|
+
// Record requirement and grill mode in change metadata (.openspec.yaml)
|
|
33
36
|
const metaPath = path.join(cdir, '.openspec.yaml');
|
|
34
37
|
if (exists(metaPath)) {
|
|
35
38
|
const existing = readText(metaPath).trimEnd();
|
|
36
|
-
writeText(metaPath, `${existing}\nrequirement: ${JSON.stringify(requirement)}\n`);
|
|
39
|
+
writeText(metaPath, `${existing}\nrequirement: ${JSON.stringify(requirement)}\ngrillMode: "${grillMode}"\n`);
|
|
37
40
|
}
|
|
38
41
|
|
|
39
42
|
const g = ensureGraphify();
|
|
@@ -97,18 +100,20 @@ _(unavailable - graph query error)_
|
|
|
97
100
|
}
|
|
98
101
|
}
|
|
99
102
|
|
|
100
|
-
// Seed the grilling interview
|
|
101
|
-
// with the author in batch mode to resolve the decision frontier in 1-2 turns.
|
|
103
|
+
// Seed the grilling interview / clarification record.
|
|
102
104
|
const clar = path.join(cdir, 'clarifications.md');
|
|
103
105
|
if (!exists(clar)) {
|
|
104
|
-
|
|
106
|
+
let clarContent = '';
|
|
107
|
+
if (grillMode === 'batch') {
|
|
108
|
+
clarContent = `# Clarifications: ${slug}
|
|
105
109
|
|
|
106
110
|
> Requirement: "${requirement}"
|
|
111
|
+
> Mode: batch-grill
|
|
107
112
|
> Before writing proposal.md / specs, the agent MUST run a **batch-grill-me** interview
|
|
108
|
-
> with the author (skill: \`
|
|
109
|
-
>
|
|
110
|
-
>
|
|
111
|
-
>
|
|
113
|
+
> with the author (skill: \`batch-grill-me\`) and record the settled decisions here.
|
|
114
|
+
> Evaluate the design tree, present the ENTIRE active frontier in structured batches
|
|
115
|
+
> (numbered Q1..Qn with concrete recommended defaults and trade-offs), allowing the author
|
|
116
|
+
> to approve or adjust decisions.
|
|
112
117
|
> Facts are the agent's job to look up; decisions are the author's to make.
|
|
113
118
|
|
|
114
119
|
## Requirement
|
|
@@ -116,15 +121,55 @@ _(unavailable - graph query error)_
|
|
|
116
121
|
|
|
117
122
|
## Settled decisions
|
|
118
123
|
<!-- one entry per settled decision: decision -> answer, with the reason -->
|
|
119
|
-
<!-- Consider key architectural dimensions: -->
|
|
120
|
-
<!-- 1. Functional Scope & Seams (user journeys, error states, domain models) -->
|
|
121
|
-
<!-- 2. Security & Threat Mitigation (auth, parameter validation, secrets, data privacy) -->
|
|
122
|
-
<!-- 3. Operational NFRs & Performance Budgets (latency SLAs, cache TTL, rate limits) -->
|
|
123
124
|
|
|
124
125
|
## Open questions
|
|
125
126
|
<!-- must be empty before the spec is written -->
|
|
126
|
-
|
|
127
|
-
|
|
127
|
+
`;
|
|
128
|
+
} else if (grillMode === 'none') {
|
|
129
|
+
clarContent = `# Clarifications: ${slug}
|
|
130
|
+
|
|
131
|
+
> Requirement: "${requirement}"
|
|
132
|
+
> Mode: no-grill (self-settled)
|
|
133
|
+
> Interactive grilling was skipped via \`--no-grill\`.
|
|
134
|
+
> The agent MUST ground decisions in codebase facts, AST (\`explore.md\`), and existing patterns,
|
|
135
|
+
> and record all settled assumptions below BEFORE authoring proposal.md / specs.
|
|
136
|
+
|
|
137
|
+
## Requirement
|
|
138
|
+
"${requirement}"
|
|
139
|
+
|
|
140
|
+
## Settled decisions
|
|
141
|
+
<!-- record all context-inferred decisions and assumptions here -->
|
|
142
|
+
|
|
143
|
+
## Open questions
|
|
144
|
+
<!-- (none) -->
|
|
145
|
+
`;
|
|
146
|
+
} else {
|
|
147
|
+
// Default: interactive (grill-me)
|
|
148
|
+
clarContent = `# Clarifications: ${slug}
|
|
149
|
+
|
|
150
|
+
> Requirement: "${requirement}"
|
|
151
|
+
> Mode: interactive (grill-me)
|
|
152
|
+
> Before writing proposal.md / specs, the agent runs a high-signal conversational **grill-me** interview
|
|
153
|
+
> with the author (skill: \`grilling\`) and records settled decisions here.
|
|
154
|
+
>
|
|
155
|
+
> **Anti-Fatigue Guardrails**:
|
|
156
|
+
> 1. Codebase-first: Look up facts in AST/code; NEVER ask what can be inspected.
|
|
157
|
+
> 2. Material forks only: Ask only about real architectural trade-offs; decide implementation details yourself.
|
|
158
|
+
> 3. Recommendation-led: Ask 1 focused question at a time with a concrete recommended default and rationale.
|
|
159
|
+
> 4. Early-exit: Stop questioning immediately when material forks are settled or the author says "proceed".
|
|
160
|
+
|
|
161
|
+
## Requirement
|
|
162
|
+
"${requirement}"
|
|
163
|
+
|
|
164
|
+
## Settled decisions
|
|
165
|
+
<!-- one entry per settled decision: decision -> answer, with the reason -->
|
|
166
|
+
|
|
167
|
+
## Open questions
|
|
168
|
+
<!-- must be empty before the spec is written -->
|
|
169
|
+
`;
|
|
170
|
+
}
|
|
171
|
+
writeText(clar, clarContent);
|
|
172
|
+
log.ok(`seeded clarifications.md (${grillMode === 'batch' ? 'batch-grill mode' : (grillMode === 'none' ? 'no-grill mode' : 'conversational grill-me mode')})`);
|
|
128
173
|
}
|
|
129
174
|
|
|
130
175
|
// Technical design (design.md) scaffolding:
|
|
@@ -148,10 +193,24 @@ _(unavailable - graph query error)_
|
|
|
148
193
|
log.info(' ▶ Ground yourself in `explore.md` and research codebase facts first.');
|
|
149
194
|
log.info(' ▶ Perform external search for 3rd-party APIs, vendor SDKs, and UI design patterns (enabled by default).');
|
|
150
195
|
log.info(' (If search fails or offline: emit \'[WARN] External search failed or offline: <reason>. Continuing with defined steps.\' and continue without blocking).');
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
196
|
+
if (grillMode === 'batch') {
|
|
197
|
+
log.info(' ▶ [MODE: BATCH-GRILL] Formulate decision frontier and invoke `batch-grill-me` to present structured batches with recommended defaults.');
|
|
198
|
+
log.info(' ▶ Record agreed decisions into `clarifications.md`.');
|
|
199
|
+
log.info(' ▶ ONLY AFTER clarifications are settled: author `proposal.md`, `specs/**`, and `design.md` (if seeded/needed).');
|
|
200
|
+
} else if (grillMode === 'none') {
|
|
201
|
+
log.info(' ▶ [MODE: NO-GRILL] Interactive grilling bypassed via `--no-grill`.');
|
|
202
|
+
log.info(' ▶ Ground decisions in code/AST facts, record settled assumptions into `clarifications.md`, and proceed to `proposal.md`, `specs/**`, and `design.md` (if seeded/needed).');
|
|
203
|
+
} else {
|
|
204
|
+
log.info(' ▶ [MODE: GRILL-ME] Formulate decision frontier and run conversational, recommendation-led grilling (1 material decision at a time).');
|
|
205
|
+
log.info(' (Anti-fatigue: look up code facts first; skip micro-trivia; halt questioning when author says proceed or forks hit zero).');
|
|
206
|
+
log.info(' ▶ Record agreed decisions into `clarifications.md`.');
|
|
207
|
+
log.info(' ▶ ONLY AFTER clarifications are settled: author `proposal.md`, `specs/**`, and `design.md` (if seeded/needed).');
|
|
208
|
+
}
|
|
209
|
+
if (shouldSeedDesign) {
|
|
210
|
+
log.info(' ▶ [ARCHITECTURE] Generate architecture diagram (embedded Mermaid flowchart / sequenceDiagram).');
|
|
211
|
+
log.info(' ▶ [API DESIGN] Follow `api-design` skill (RESTful nouns, Stripe-style / RFC 7807 errors, idempotency, cursor pagination).');
|
|
212
|
+
log.info(' ▶ [UI/UX DESIGN] Ground visual specs in `frontend-design` (Anthropic) & Vercel Web Interface Guidelines.');
|
|
213
|
+
}
|
|
155
214
|
log.info(` ▶ Run \`asdlc lint ${slug}\`.`);
|
|
156
215
|
return slug;
|
|
157
216
|
}
|
|
@@ -164,6 +223,8 @@ export function register(program) {
|
|
|
164
223
|
.option('--query <q>', 'graph query terms (default: extracted requirement terms)')
|
|
165
224
|
.option('--design', 'explicitly generate technical design (design.md)')
|
|
166
225
|
.option('--no-design', 'skip generating technical design (design.md)')
|
|
226
|
+
.option('--batch-grill', 'use batch-grill-me (present entire decision frontier in structured batches)')
|
|
227
|
+
.option('--no-grill', 'skip interactive grilling interview (self-settle decisions in clarifications.md)')
|
|
167
228
|
.option('--repo-root <path>')
|
|
168
229
|
.action((requirement, opts) => {
|
|
169
230
|
newChange(requirement, opts);
|
package/src/lib/agents.js
CHANGED
|
@@ -17,12 +17,13 @@ const ROUTING_BLOCK = `${ROUTING_MARKER}
|
|
|
17
17
|
Everything runs through \`asdlc\` - do NOT call \`openspec ...\` directly. There is no
|
|
18
18
|
raw escape hatch: the wrappers ARE the guards (graph refresh, approval, checks).
|
|
19
19
|
|
|
20
|
-
1. **new** - \`asdlc new "<requirement>"\`: scaffold the change (derives slug from intent) +
|
|
20
|
+
1. **new** - \`asdlc new "<requirement>" [--batch-grill] [--no-grill]\`: scaffold the change (derives slug from intent) +
|
|
21
21
|
refresh the knowledge graph + write \`explore.md\` + seed \`clarifications.md\`.
|
|
22
22
|
▶ **IMMEDIATE ACTION FOR AGENT**: DO NOT stop or ask permission. In the SAME interaction turn,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
ground yourself in \`explore.md\` and codebase facts. Run high-signal conversational **grill-me**
|
|
24
|
+
(or **batch-grill-me** if \`--batch-grill\` was passed) with anti-fatigue guardrails (look facts up yourself,
|
|
25
|
+
focus on material trade-offs, lead with recommendations, early-exit on agreement), and record settled decisions
|
|
26
|
+
in \`clarifications.md\`. (If \`--no-grill\` was passed, self-settle context-inferred assumptions).
|
|
26
27
|
▶ **CRITICAL**: ONLY AFTER \`clarifications.md\` is settled may you author **proposal.md -> specs/**\`. (AI Review is handled on PR by CI).
|
|
27
28
|
2. **grill** - (embedded in Stage 2) settle all design forks in \`clarifications.md\` BEFORE writing specs.
|
|
28
29
|
3. **lint** - \`asdlc lint <ID>\`: artifacts + BDD/acceptance criteria. Open Spec PR via \`asdlc pr <ID> <targetBranch>\`.
|