@hegemonart/get-design-done 1.57.1 → 1.57.2
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/.claude-plugin/marketplace.json +26 -41
- package/.claude-plugin/plugin.json +23 -48
- package/CHANGELOG.md +91 -0
- package/README.md +166 -511
- package/SKILL.md +2 -0
- package/agents/README.md +33 -36
- package/agents/a11y-mapper.md +3 -3
- package/agents/component-benchmark-harvester.md +6 -6
- package/agents/component-benchmark-synthesizer.md +3 -3
- package/agents/compose-executor.md +3 -3
- package/agents/cost-forecaster.md +2 -2
- package/agents/design-auditor.md +7 -7
- package/agents/design-authority-watcher.md +15 -15
- package/agents/design-context-builder.md +4 -4
- package/agents/design-context-checker-gate.md +1 -1
- package/agents/design-discussant.md +2 -2
- package/agents/design-doc-writer.md +1 -1
- package/agents/design-executor.md +2 -2
- package/agents/design-figma-writer.md +2 -2
- package/agents/design-fixer.md +7 -7
- package/agents/design-integration-checker-gate.md +1 -1
- package/agents/design-integration-checker.md +1 -1
- package/agents/design-paper-writer.md +3 -3
- package/agents/design-pencil-writer.md +1 -1
- package/agents/design-planner.md +21 -0
- package/agents/design-reflector.md +39 -39
- package/agents/design-research-synthesizer.md +1 -0
- package/agents/design-start-writer.md +1 -1
- package/agents/design-update-checker.md +5 -5
- package/agents/design-verifier-gate.md +1 -1
- package/agents/design-verifier.md +52 -48
- package/agents/ds-generator.md +2 -2
- package/agents/ds-migration-planner.md +4 -4
- package/agents/email-executor.md +9 -9
- package/agents/experiment-result-ingester.md +3 -3
- package/agents/flutter-executor.md +5 -5
- package/agents/gdd-graph-refresh.md +3 -3
- package/agents/gdd-intel-updater.md +2 -2
- package/agents/motion-mapper.md +2 -2
- package/agents/motion-verifier.md +4 -4
- package/agents/pdf-executor.md +8 -8
- package/agents/perf-analyzer.md +17 -17
- package/agents/pr-commenter.md +9 -9
- package/agents/prototype-gate.md +2 -2
- package/agents/quality-gate-runner.md +1 -1
- package/agents/rollout-coordinator.md +3 -3
- package/agents/swift-executor.md +4 -4
- package/agents/ticket-sync-agent.md +6 -6
- package/agents/user-research-synthesizer.md +2 -2
- package/connections/connections.md +44 -45
- package/connections/cursor.md +73 -0
- package/connections/preview.md +3 -3
- package/dist/claude-code/.claude/skills/cache-manager/SKILL.md +3 -3
- package/dist/claude-code/.claude/skills/cache-manager/cache-policy.md +1 -1
- package/dist/claude-code/.claude/skills/design/SKILL.md +19 -0
- package/dist/claude-code/.claude/skills/explore/SKILL.md +11 -0
- package/dist/claude-code/.claude/skills/figma-write/SKILL.md +13 -2
- package/dist/claude-code/.claude/skills/paper-write/SKILL.md +54 -0
- package/dist/claude-code/.claude/skills/pencil-write/SKILL.md +54 -0
- package/dist/claude-code/.claude/skills/report-issue/SKILL.md +2 -2
- package/dist/claude-code/.claude/skills/router/SKILL.md +2 -2
- package/dist/claude-code/.claude/skills/verify/verify-procedure.md +10 -11
- package/dist/claude-code/.claude/skills/warm-cache/SKILL.md +1 -1
- package/hooks/first-run-nudge.cjs +171 -0
- package/hooks/gdd-intel-trigger.js +243 -0
- package/hooks/gdd-mcp-circuit-breaker.js +62 -7
- package/hooks/gdd-precompact-snapshot.js +50 -29
- package/hooks/gdd-protected-paths.js +150 -18
- package/hooks/gdd-risk-gate.js +93 -1
- package/hooks/gdd-sessionstart-recap.js +59 -24
- package/hooks/hooks.json +13 -4
- package/hooks/inject-using-gdd.cjs +188 -0
- package/hooks/update-check.cjs +511 -0
- package/package.json +9 -2
- package/reference/STATE-TEMPLATE.md +10 -13
- package/reference/audit-scoring.md +1 -1
- package/reference/cache-tier-doctrine.md +46 -0
- package/reference/config-schema.md +9 -9
- package/reference/i18n.md +1 -1
- package/reference/intel-schema.md +37 -2
- package/reference/meta-rules.md +4 -4
- package/reference/model-tiers.md +2 -2
- package/reference/registry.json +101 -94
- package/reference/runtime-models.md +11 -1
- package/reference/shared-preamble.md +13 -14
- package/reference/skill-graph.md +24 -1
- package/scripts/bootstrap.cjs +373 -0
- package/scripts/injection-patterns.cjs +58 -0
- package/scripts/lib/apply-reflections/incubator-proposals.cjs +57 -26
- package/scripts/lib/install/converters/codex-plugin.cjs +5 -2
- package/scripts/lib/install/converters/cursor.cjs +20 -0
- package/scripts/lib/issue-reporter/report-flow.cjs +1 -1
- package/scripts/lib/manifest/skills.json +80 -13
- package/scripts/lib/state/query-surface.cjs +67 -9
- package/scripts/lib/state/state-store.cjs +68 -26
- package/sdk/cli/commands/stage.ts +17 -0
- package/sdk/cli/index.js +14 -0
- package/skills/cache-manager/SKILL.md +3 -3
- package/skills/cache-manager/cache-policy.md +1 -1
- package/skills/design/SKILL.md +19 -0
- package/skills/explore/SKILL.md +11 -0
- package/skills/figma-write/SKILL.md +13 -2
- package/skills/paper-write/SKILL.md +54 -0
- package/skills/pencil-write/SKILL.md +54 -0
- package/skills/report-issue/SKILL.md +2 -2
- package/skills/router/SKILL.md +2 -2
- package/skills/verify/verify-procedure.md +10 -11
- package/skills/warm-cache/SKILL.md +1 -1
- package/hooks/first-run-nudge.sh +0 -82
- package/hooks/inject-using-gdd.sh +0 -72
- package/hooks/update-check.sh +0 -251
- package/scripts/lib/audit-aggregator/index.cjs +0 -219
- package/scripts/lib/hedge-ensemble.cjs +0 -217
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* setPosition(position, opts) - upsert state_position
|
|
16
16
|
* getPosition(opts) - return current position
|
|
17
17
|
* queryDecisions(ftsQuery, opts) - FTS5 search over decisions (or JS fallback)
|
|
18
|
-
* migrate(migrateOpts) - lazy-require migrate-to-sqlite.cjs
|
|
19
|
-
* render(projectRoot) - lazy-require render-markdown.cjs
|
|
18
|
+
* migrate(migrateOpts) - lazy-require migrate-to-sqlite.cjs
|
|
19
|
+
* render(projectRoot) - lazy-require render-markdown.cjs
|
|
20
20
|
* backendName() - return BACKEND string
|
|
21
21
|
*
|
|
22
22
|
* R7 dual-write: every SQLite MUTATION wraps writeStructured() + renderMarkdown()
|
|
@@ -103,18 +103,18 @@ async function loadSdk() {
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// ---------------------------------------------------------------------------
|
|
106
|
-
// Lazy-require helpers for
|
|
107
|
-
//
|
|
106
|
+
// Lazy-require helpers for the migrate and render sibling modules (PINNED names).
|
|
107
|
+
// Loaded on first call so a missing better-sqlite3 binding does not crash module load.
|
|
108
108
|
// ---------------------------------------------------------------------------
|
|
109
109
|
|
|
110
|
-
/** @type {any|null} Cached migrate-to-sqlite module
|
|
110
|
+
/** @type {any|null} Cached migrate-to-sqlite module. */
|
|
111
111
|
let _migrateModule = null;
|
|
112
|
-
/** @type {any|null} Cached render-markdown module
|
|
112
|
+
/** @type {any|null} Cached render-markdown module. */
|
|
113
113
|
let _renderModule = null;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
|
-
* Lazy-require ./migrate-to-sqlite.cjs
|
|
117
|
-
* Returns null if
|
|
116
|
+
* Lazy-require ./migrate-to-sqlite.cjs.
|
|
117
|
+
* Returns null if the require fails (e.g. better-sqlite3 missing).
|
|
118
118
|
* @returns {any|null}
|
|
119
119
|
*/
|
|
120
120
|
function _requireMigrate() {
|
|
@@ -128,8 +128,8 @@ function _requireMigrate() {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Lazy-require ./render-markdown.cjs
|
|
132
|
-
* Returns null if
|
|
131
|
+
* Lazy-require ./render-markdown.cjs.
|
|
132
|
+
* Returns null if the require fails.
|
|
133
133
|
* @returns {any|null}
|
|
134
134
|
*/
|
|
135
135
|
function _requireRender() {
|
|
@@ -280,7 +280,7 @@ function _dualWrite(db, statePath, cycleId, writeStructured, sdk) {
|
|
|
280
280
|
db.prepare('INSERT OR REPLACE INTO _meta(key, value) VALUES (?, ?)').run('last_render_sha256', newSha);
|
|
281
281
|
}
|
|
282
282
|
// If render module not available or sdk not loaded, still write the structured data.
|
|
283
|
-
// STATE.md will be stale until
|
|
283
|
+
// STATE.md will be stale until the render module loads successfully.
|
|
284
284
|
});
|
|
285
285
|
txn();
|
|
286
286
|
}
|
|
@@ -654,19 +654,60 @@ function _currentCycleId(db) {
|
|
|
654
654
|
}
|
|
655
655
|
|
|
656
656
|
// ---------------------------------------------------------------------------
|
|
657
|
-
// migrate - lazy delegate to migrate-to-sqlite.cjs
|
|
657
|
+
// migrate - async lazy delegate to migrate-to-sqlite.cjs.
|
|
658
658
|
// ---------------------------------------------------------------------------
|
|
659
659
|
|
|
660
660
|
/**
|
|
661
|
-
* Run migration from markdown STATE.md to SQLite.
|
|
662
|
-
* Delegates to ./migrate-to-sqlite.cjs (created by Executor B).
|
|
663
|
-
* If that module is not yet present, logs a clear message and returns.
|
|
661
|
+
* Run migration from markdown `.design/STATE.md` to the SQLite state database.
|
|
664
662
|
*
|
|
665
|
-
*
|
|
666
|
-
*
|
|
667
|
-
*
|
|
663
|
+
* This function is the public store-level entry point for the
|
|
664
|
+
* `--migrate-state` flow. It lazy-loads `./migrate-to-sqlite.cjs` on first call
|
|
665
|
+
* and delegates to whichever export it exposes (`migrateToSqlite`,
|
|
666
|
+
* `migrate`, or `migrateState`), in priority order. The underlying
|
|
667
|
+
* `migrateToSqlite` is itself async (it dynamically imports
|
|
668
|
+
* `sdk/state/parser.ts` and uses node:fs/promises for IO), so this wrapper
|
|
669
|
+
* is async and always returns a Promise.
|
|
670
|
+
*
|
|
671
|
+
* The function NEVER throws on infrastructure failures:
|
|
672
|
+
* - `BACKEND === 'markdown'` (no better-sqlite3) → resolves with
|
|
673
|
+
* `{ migrated: false, backend: 'markdown', message: ... }`.
|
|
674
|
+
* - `require('./migrate-to-sqlite.cjs')` failed → resolves with
|
|
675
|
+
* `{ migrated: false, backend: 'sqlite', message: ... }`.
|
|
676
|
+
* - The delegate module loaded but exposes no recognized export → resolves
|
|
677
|
+
* with `{ migrated: false, backend: 'sqlite', message: ... }`.
|
|
678
|
+
*
|
|
679
|
+
* Errors thrown by the delegate (parser failure, schema mismatch, etc.) are
|
|
680
|
+
* propagated as a rejected Promise - callers should `await` and handle.
|
|
681
|
+
*
|
|
682
|
+
* Idempotent: calling `migrate()` repeatedly on a clean database is safe
|
|
683
|
+
* (the underlying migration uses `INSERT ... ON CONFLICT ... DO UPDATE`).
|
|
684
|
+
* Migration is opt-in: the delegate refuses to write unless `force:true` or
|
|
685
|
+
* the CLI `--migrate-state` flag is set (a notice is returned instead).
|
|
686
|
+
*
|
|
687
|
+
* Dual-channel result shapes:
|
|
688
|
+
* - markdown floor: { migrated: false, backend: 'markdown', message }
|
|
689
|
+
* - sqlite path: { migrated: boolean, tables: {...counts}, dryRun,
|
|
690
|
+
* skipped, reason }
|
|
691
|
+
* The caller MUST inspect `migrated` (the boolean) — never `backend` alone —
|
|
692
|
+
* to decide whether the operation actually performed writes.
|
|
693
|
+
*
|
|
694
|
+
* @async
|
|
695
|
+
* @param {object} [migrateOpts] options forwarded to the delegate
|
|
696
|
+
* @param {string} [migrateOpts.statePath] explicit path to STATE.md
|
|
697
|
+
* @param {string} [migrateOpts.dbPath] explicit path to state.sqlite
|
|
698
|
+
* @param {string} [migrateOpts.projectRoot] project root for path lookup
|
|
699
|
+
* @param {boolean} [migrateOpts.dryRun] wrap writes in BEGIN/ROLLBACK
|
|
700
|
+
* @param {boolean} [migrateOpts.force] same as `--migrate-state` flag
|
|
701
|
+
* @param {boolean} [migrateOpts.upsertOnly] re-parse + UPSERT without wiping
|
|
702
|
+
* unrelated rows (used by the R8
|
|
703
|
+
* freshness guard)
|
|
704
|
+
* @returns {Promise<{ migrated: boolean, backend?: string, message?: string,
|
|
705
|
+
* tables?: object, dryRun?: boolean, skipped?: boolean, reason?: string }>}
|
|
706
|
+
* Resolves with the migration result; rejects only on delegate exceptions.
|
|
707
|
+
* @see migrate-to-sqlite.cjs for the underlying transactional implementation
|
|
708
|
+
* @see render for the reverse direction (SQLite → STATE.md)
|
|
668
709
|
*/
|
|
669
|
-
function migrate(migrateOpts = {}) {
|
|
710
|
+
async function migrate(migrateOpts = {}) {
|
|
670
711
|
if (BACKEND !== 'sqlite') {
|
|
671
712
|
return {
|
|
672
713
|
migrated: false,
|
|
@@ -679,17 +720,18 @@ function migrate(migrateOpts = {}) {
|
|
|
679
720
|
return {
|
|
680
721
|
migrated: false,
|
|
681
722
|
backend: 'sqlite',
|
|
682
|
-
message: 'migrate-to-sqlite.cjs not
|
|
723
|
+
message: 'migrate-to-sqlite.cjs could not be loaded (require failed)',
|
|
683
724
|
};
|
|
684
725
|
}
|
|
726
|
+
// Delegate is async; await so callers see the resolved result, not a Promise.
|
|
685
727
|
if (typeof mod.migrateToSqlite === 'function') {
|
|
686
|
-
return mod.migrateToSqlite(migrateOpts);
|
|
728
|
+
return await mod.migrateToSqlite(migrateOpts);
|
|
687
729
|
}
|
|
688
730
|
if (typeof mod.migrate === 'function') {
|
|
689
|
-
return mod.migrate(migrateOpts);
|
|
731
|
+
return await mod.migrate(migrateOpts);
|
|
690
732
|
}
|
|
691
733
|
if (typeof mod.migrateState === 'function') {
|
|
692
|
-
return mod.migrateState(migrateOpts);
|
|
734
|
+
return await mod.migrateState(migrateOpts);
|
|
693
735
|
}
|
|
694
736
|
return {
|
|
695
737
|
migrated: false,
|
|
@@ -699,13 +741,13 @@ function migrate(migrateOpts = {}) {
|
|
|
699
741
|
}
|
|
700
742
|
|
|
701
743
|
// ---------------------------------------------------------------------------
|
|
702
|
-
// render - lazy delegate to render-markdown.cjs
|
|
744
|
+
// render - lazy delegate to render-markdown.cjs.
|
|
703
745
|
// ---------------------------------------------------------------------------
|
|
704
746
|
|
|
705
747
|
/**
|
|
706
748
|
* Re-render STATE.md from SQLite state (reverse of migration).
|
|
707
|
-
* Delegates to ./render-markdown.cjs
|
|
708
|
-
* If that module
|
|
749
|
+
* Delegates to ./render-markdown.cjs.
|
|
750
|
+
* If that module cannot be loaded, returns null silently.
|
|
709
751
|
*
|
|
710
752
|
* @param {string} [projectRoot]
|
|
711
753
|
* @returns {Promise<string|null>} rendered markdown string, or null if unavailable
|
|
@@ -110,6 +110,18 @@ const VALID_STAGE_NAMES = new Set<string>([
|
|
|
110
110
|
'discuss',
|
|
111
111
|
]);
|
|
112
112
|
|
|
113
|
+
// Names of top-level `gdd-sdk` subcommands that users sometimes try to invoke
|
|
114
|
+
// as stages (e.g. `gdd-sdk stage audit`). When a stage name collides with one,
|
|
115
|
+
// surface a "did you mean" hint pointing at the real invocation.
|
|
116
|
+
const TOP_LEVEL_COMMANDS_OFTEN_CONFUSED_FOR_STAGES = new Set<string>([
|
|
117
|
+
'audit',
|
|
118
|
+
'build',
|
|
119
|
+
'dashboard',
|
|
120
|
+
'init',
|
|
121
|
+
'query',
|
|
122
|
+
'run',
|
|
123
|
+
]);
|
|
124
|
+
|
|
113
125
|
export async function stageCommand(
|
|
114
126
|
args: ParsedArgs,
|
|
115
127
|
deps: StageCommandDeps = {},
|
|
@@ -134,6 +146,11 @@ export async function stageCommand(
|
|
|
134
146
|
stderr.write(
|
|
135
147
|
`gdd-sdk stage: "${stageName}" is not one of brief|explore|plan|design|verify|discuss\n`,
|
|
136
148
|
);
|
|
149
|
+
if (TOP_LEVEL_COMMANDS_OFTEN_CONFUSED_FOR_STAGES.has(stageName)) {
|
|
150
|
+
stderr.write(
|
|
151
|
+
`gdd-sdk stage: did you mean \`gdd-sdk ${stageName}\`? "${stageName}" is a top-level subcommand, not a pipeline stage.\n`,
|
|
152
|
+
);
|
|
153
|
+
}
|
|
137
154
|
return 3;
|
|
138
155
|
}
|
|
139
156
|
|
package/sdk/cli/index.js
CHANGED
|
@@ -8253,6 +8253,14 @@ var VALID_STAGE_NAMES = /* @__PURE__ */ new Set([
|
|
|
8253
8253
|
"verify",
|
|
8254
8254
|
"discuss"
|
|
8255
8255
|
]);
|
|
8256
|
+
var TOP_LEVEL_COMMANDS_OFTEN_CONFUSED_FOR_STAGES = /* @__PURE__ */ new Set([
|
|
8257
|
+
"audit",
|
|
8258
|
+
"build",
|
|
8259
|
+
"dashboard",
|
|
8260
|
+
"init",
|
|
8261
|
+
"query",
|
|
8262
|
+
"run"
|
|
8263
|
+
]);
|
|
8256
8264
|
async function stageCommand(args, deps = {}) {
|
|
8257
8265
|
const stdout = deps.stdout ?? process.stdout;
|
|
8258
8266
|
const stderr = deps.stderr ?? process.stderr;
|
|
@@ -8271,6 +8279,12 @@ async function stageCommand(args, deps = {}) {
|
|
|
8271
8279
|
`gdd-sdk stage: "${stageName}" is not one of brief|explore|plan|design|verify|discuss
|
|
8272
8280
|
`
|
|
8273
8281
|
);
|
|
8282
|
+
if (TOP_LEVEL_COMMANDS_OFTEN_CONFUSED_FOR_STAGES.has(stageName)) {
|
|
8283
|
+
stderr.write(
|
|
8284
|
+
`gdd-sdk stage: did you mean \`gdd-sdk ${stageName}\`? "${stageName}" is a top-level subcommand, not a pipeline stage.
|
|
8285
|
+
`
|
|
8286
|
+
);
|
|
8287
|
+
}
|
|
8274
8288
|
return 3;
|
|
8275
8289
|
}
|
|
8276
8290
|
let flags;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gdd-cache-manager
|
|
3
|
-
description: "Maintains .design/cache-manifest.json for Layer B explicit cache per D-08. Computes deterministic SHA-256 input-hash from (agent-path + sorted-input-file-paths + input-content-hashes). On spawn: lookup key → return cached blob if within TTL, else miss. On completion: write result + TTL. Consulted by hooks/budget-enforcer.
|
|
3
|
+
description: "Maintains .design/cache-manifest.json for Layer B explicit cache per D-08. Computes deterministic SHA-256 input-hash from (agent-path + sorted-input-file-paths + input-content-hashes). On spawn: lookup key → return cached blob if within TTL, else miss. On completion: write result + TTL. Consulted by hooks/budget-enforcer.ts before every Agent spawn."
|
|
4
4
|
user-invocable: false
|
|
5
5
|
tools: Read, Bash, Write
|
|
6
6
|
disable-model-invocation: true
|
|
@@ -38,11 +38,11 @@ You are the deterministic cache-key computer and cache-manifest writer for the o
|
|
|
38
38
|
|
|
39
39
|
## Deterministic Input-Hash Algorithm
|
|
40
40
|
|
|
41
|
-
The canonical reference implementation (single source of truth; `hooks/budget-enforcer.
|
|
41
|
+
The canonical reference implementation (single source of truth; `hooks/budget-enforcer.ts` imports the same primitive via a shared helper) lives in `./cache-policy.md#deterministic-input-hash-algorithm-layer-b` - it documents the JS implementation, the maintainer notes (sorted-unique paths, MISSING-file sentinel, agent-path bust behavior), the manifest shape, and TTL semantics in one place. Conform to the algorithm exactly so the hook and any orchestrator agree byte-for-byte.
|
|
42
42
|
|
|
43
43
|
## Integration Points
|
|
44
44
|
|
|
45
|
-
- **`hooks/budget-enforcer.
|
|
45
|
+
- **`hooks/budget-enforcer.ts`** (Plan 10.1-01) reads the manifest on every Agent spawn. The hook already calls `cacheLookup(agent, inputHash)` against `.design/cache-manifest.json`. This skill is the authority on how `inputHash` is computed so the hook and any orchestrator agree byte-for-byte.
|
|
46
46
|
- **Orchestrators** (e.g., `skills/map/`, `skills/discover/`, `skills/plan/`) invoke Phase 1 (compute-key) + Phase 4 (write-result-on-completion) around each Agent spawn they launch. Phase 2 + Phase 3 are executed by the hook.
|
|
47
47
|
- **Warm-cache command** (`skills/warm-cache/SKILL.md`, Task 02) does not touch Layer B - it only primes Anthropic's 5-min prompt cache (Layer A). Do not confuse the two.
|
|
48
48
|
|
|
@@ -21,7 +21,7 @@ The two layers (D-08):
|
|
|
21
21
|
|
|
22
22
|
## Deterministic Input-Hash Algorithm (Layer B)
|
|
23
23
|
|
|
24
|
-
The canonical reference implementation (the single source of truth; `hooks/budget-enforcer.
|
|
24
|
+
The canonical reference implementation (the single source of truth; `hooks/budget-enforcer.ts` imports the same primitive via a shared helper):
|
|
25
25
|
|
|
26
26
|
```js
|
|
27
27
|
// Deterministic cache-key primitive (reference implementation)
|
package/skills/design/SKILL.md
CHANGED
|
@@ -79,6 +79,25 @@ Print the `=== Design stage complete ===` summary (tasks complete/total, deviati
|
|
|
79
79
|
|
|
80
80
|
After all tasks finish, if STATE.md `<connections>` has `figma: available`, offer the user the figma-write opt-in prompt (modes: annotate / tokenize / mappings, with optional `--dry-run`). Spawn `design-figma-writer` with the selected mode on "yes"; skip silently on "no". NEVER auto-run without confirmation. Full prompt + dispatch logic: `./design-procedure.md` §Figma Write Dispatch.
|
|
81
81
|
|
|
82
|
+
## Component Generator Dispatch
|
|
83
|
+
|
|
84
|
+
If the DESIGN-PLAN has a `task_type: component` task without a matching `src/components/*.tsx`, OR the brief / DESIGN-CONTEXT.md explicitly asks for a new component, AND STATE.md `<connections>` shows a generator connection (`21st-dev: available`, `magic-patterns: available`, `plasmic: available`, `builder-io: available`, or `v0-dev: available`); offer the component-generator opt-in.
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
Task("design-component-generator", """
|
|
88
|
+
mode: <21st|magic-patterns|plasmic|builder-io|v0-dev>
|
|
89
|
+
component_spec: <DESIGN-PLAN task summary + DESIGN-CONTEXT acceptance criteria>
|
|
90
|
+
required_reading:
|
|
91
|
+
- .design/STATE.md
|
|
92
|
+
- .design/DESIGN-PLAN.md
|
|
93
|
+
- .design/DESIGN-CONTEXT.md
|
|
94
|
+
""")
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Sequential (the agent is `parallel-safe: never`). Wait for the agent's `## design-component-generator complete.` marker. Skip silently when no generator connection is available OR no component task is pending. Auto-mode bypasses the prompt; otherwise prompt "Generate component via [tool]? (y/n)" and only spawn on "y".
|
|
98
|
+
|
|
99
|
+
The dispatch fires AFTER `design-executor` completes the hand-coded plan tasks. The agent's output (component file path + tokens used + provenance) is appended to `.design/DESIGN-SUMMARY.md` as a single `## Generated Components` section so verify can audit it.
|
|
100
|
+
|
|
82
101
|
<HARD-GATE>
|
|
83
102
|
Do NOT transition to verify (or invoke `/gdd:verify`) until `.design/DESIGN-SUMMARY.md` is committed. If this project uses a custom `.design` location, read the artifact path from `.design/STATE.md` rather than assuming the default.
|
|
84
103
|
</HARD-GATE>
|
package/skills/explore/SKILL.md
CHANGED
|
@@ -61,6 +61,16 @@ Run the canonical scan grep/glob inventory (POSIX ERE, preserving PLAT-01/02): c
|
|
|
61
61
|
- **Project-local skills**: read `./.claude/skills/design-*-conventions.md` -> include in DESIGN-CONTEXT.md `<project_conventions>` (these override defaults).
|
|
62
62
|
- **Global skills**: `~/.claude/gdd/global-skills/*.md` (other than README) -> prepend to `<project_conventions>` under `<global_conventions>` sub-block. Project-local D-XX wins on conflict.
|
|
63
63
|
|
|
64
|
+
## Step 2.6 - Graph review (gate then reviewer)
|
|
65
|
+
|
|
66
|
+
Runs only when Step 2's mapper batch + synthesizer produced `.design/context-graph.json`. Skip the whole step if the file is absent (pre-Phase-52 project, or `--skip-scan`).
|
|
67
|
+
|
|
68
|
+
1. **Gate first (cheap Haiku check).** Spawn `design-context-reviewer-gate` via `Task()` with the classifier signal from Step 2's incremental batching pass: `change_pct` (fingerprint classifier `pct`), `classifier_action` (`SKIP` / `PARTIAL_UPDATE` / `ARCHITECTURE_UPDATE` / `FULL_UPDATE`), and `graph_path: ".design/context-graph.json"`. Gate emits a single-line `{spawn, rationale}` JSON decision then `## GATE COMPLETE`.
|
|
69
|
+
2. **If `spawn: false`**: record `mcp__gdd_state__set_status: "explore_graph_review_skipped"`, log the gate `rationale` (e.g., "project change 3% < 5% threshold"), set telemetry `lazy_skipped: true`. Done - proceed to Step 3.
|
|
70
|
+
3. **If `spawn: true`**: spawn `design-context-reviewer` via `Task()` with `<required_reading>` pointing at `.design/STATE.md`, `.design/context-graph.json`, `reference/design-context-schema.md`, `reference/design-context-tag-vocab.md`. The reviewer runs `scripts/validate-design-context.cjs --json` as the deterministic floor (checks 1/2/3/5) then layers the semantic checks (4/6/7/8/9) and returns the 9-check verdict inline (`APPROVED` or `REJECT`).
|
|
71
|
+
4. **Capture verdict (read-only contract).** The reviewer does NOT write `.design/DESIGN-CONTEXT-REVIEW.md` - it is `reads-only: true, writes: []`. WARN findings surface through `scripts/lib/health-mirror#getHealthChecks` as `status: 'warn'`; a hard-reject maps to `status: 'fail'`. Record the overall verdict via `mcp__gdd_state__set_status: "explore_graph_review_approved"` (or `"_rejected"`).
|
|
72
|
+
5. **On REJECT**: record `mcp__gdd_state__add_blocker` with the reviewer's blocking-issues list verbatim. Do not advance to Step 3 until the synthesizer or the implicated mapper is re-run. On `APPROVED` (with or without WARNs): proceed.
|
|
73
|
+
|
|
64
74
|
---
|
|
65
75
|
|
|
66
76
|
## Step 3 - Design interview (unless `--skip-interview`)
|
|
@@ -80,6 +90,7 @@ Full interview protocol + JSON line schema: `./explore-procedure.md` §Step 3.
|
|
|
80
90
|
## Step 4 - Close out explore
|
|
81
91
|
|
|
82
92
|
- If the synthesizer / mapper batch ran in Step 2: `mcp__gdd_state__update_progress` with `task_progress: "<done>/<total>"`, `status: "explore_mappers_done"`.
|
|
93
|
+
- If Step 2.6 ran the graph review: ensure the verdict status is recorded (`explore_graph_review_approved` / `_rejected` / `_skipped`); on `_rejected` do NOT checkpoint until re-run.
|
|
83
94
|
- `mcp__gdd_state__checkpoint` - bumps `last_checkpoint`.
|
|
84
95
|
- Stage advance to `plan` happens at the next stage's entry (plan owns its own `transition_stage`); do not edit frontmatter directly.
|
|
85
96
|
|
|
@@ -34,6 +34,17 @@ Read `.design/STATE.md` and `.design/DESIGN-CONTEXT.md` before dispatching the a
|
|
|
34
34
|
|
|
35
35
|
## Dispatch
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
```
|
|
38
|
+
Task("design-figma-writer", """
|
|
39
|
+
mode: <annotate|tokenize|mappings>
|
|
40
|
+
dry_run: <true|false>
|
|
41
|
+
confirm_shared: <true|false>
|
|
42
|
+
required_reading:
|
|
43
|
+
- .design/STATE.md
|
|
44
|
+
- .design/DESIGN-CONTEXT.md
|
|
45
|
+
""")
|
|
46
|
+
```
|
|
38
47
|
|
|
39
|
-
Pass
|
|
48
|
+
Pass `mode` from the first positional argument; `dry_run` from `--dry-run`;
|
|
49
|
+
`confirm_shared` from `--confirm-shared`. Wait for the agent's completion
|
|
50
|
+
marker before returning.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gdd-paper-write
|
|
3
|
+
description: "Push design decisions from `.design/DESIGN-CONTEXT.md` into the active paper.design canvas by dispatching the `design-paper-writer` agent in one of three modes (annotate / tokenize / roundtrip). Use when the user has completed a design pipeline cycle and wants the decisions reflected in their paper.design canvas. Operates proposal->confirm with `--dry-run`."
|
|
4
|
+
argument-hint: "<annotate|tokenize|roundtrip> [--dry-run]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
tools: Read, Write, Bash, Grep, Glob
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# gdd-paper-write
|
|
10
|
+
|
|
11
|
+
Dispatches the `design-paper-writer` agent to write design decisions back to the active paper.design canvas. The shared probe pattern (ToolSearch → live call → STATE.md write) and connection handshake are documented at `../../reference/shared-preamble.md#connection-handshake-summary` and `../../connections/paper-design.md`.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
/get-design-done paper-write <mode> [--dry-run]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Modes:
|
|
20
|
+
- `annotate` - add design decision comments to canvas nodes
|
|
21
|
+
- `tokenize` - sync CSS token values to paper.design node styles
|
|
22
|
+
- `roundtrip` - write implementation status back as text/HTML layers
|
|
23
|
+
|
|
24
|
+
Flags:
|
|
25
|
+
- `--dry-run` - emit the proposal without executing any paper.design writes
|
|
26
|
+
|
|
27
|
+
paper.design has no team-library concept, so there is no `--confirm-shared` flag. Every write still requires an explicit `yes` confirmation (unless `--dry-run` is set).
|
|
28
|
+
|
|
29
|
+
## Prerequisites
|
|
30
|
+
|
|
31
|
+
1. paper.design MCP registered. Install: `claude mcp add paper-design --transport http https://mcp.paper.design/sse` then restart the session. See `../../connections/paper-design.md` for the full probe pattern and budget rules.
|
|
32
|
+
2. `.design/DESIGN-CONTEXT.md` exists (run `discover` first)
|
|
33
|
+
3. `.design/STATE.md` `<connections>` shows `paper-design: available`. If `not_configured` or `unavailable`, the agent will STOP with a diagnostic.
|
|
34
|
+
|
|
35
|
+
Budget: the agent tracks `budget_used` in STATE.md `<connections>` and warns when usage reaches 90/100 on the free tier.
|
|
36
|
+
|
|
37
|
+
## Required Reading
|
|
38
|
+
|
|
39
|
+
Read `.design/STATE.md` and `.design/DESIGN-CONTEXT.md` before dispatching the agent.
|
|
40
|
+
|
|
41
|
+
## Dispatch
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
Task("design-paper-writer", """
|
|
45
|
+
mode: <annotate|tokenize|roundtrip>
|
|
46
|
+
dry_run: <true|false>
|
|
47
|
+
required_reading:
|
|
48
|
+
- .design/STATE.md
|
|
49
|
+
- .design/DESIGN-CONTEXT.md
|
|
50
|
+
""")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Pass `mode` from the first positional argument; `dry_run` from `--dry-run`.
|
|
54
|
+
Wait for the agent's completion marker before returning.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gdd-pencil-write
|
|
3
|
+
description: "Update local `.pen` source files with design decisions from `.design/DESIGN-CONTEXT.md` by dispatching the `design-pencil-writer` agent in one of two modes (annotate / roundtrip). Use when the user has completed a design pipeline cycle and wants the decisions reflected in their `.pen` files. Operates proposal->confirm with `--dry-run`."
|
|
4
|
+
argument-hint: "<annotate|roundtrip> [--dry-run]"
|
|
5
|
+
user-invocable: true
|
|
6
|
+
tools: Read, Write, Bash, Grep, Glob
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# gdd-pencil-write
|
|
10
|
+
|
|
11
|
+
Dispatches the `design-pencil-writer` agent to write design decisions back to `.pen` spec files. Unlike Figma/paper.design, pencil.dev keeps `.pen` YAML specs as the project's git-tracked source of truth; no MCP is required and every write is committed atomically. The probe pattern (file-based, no ToolSearch) and integration contract are documented at `../../connections/pencil-dev.md`.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
/get-design-done pencil-write <mode> [--dry-run]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Modes:
|
|
20
|
+
- `annotate` - append DESIGN-DEBT findings as comments to the relevant `.pen` files
|
|
21
|
+
- `roundtrip` - update `.pen` spec frontmatter (design-tokens, state) from verified implementation
|
|
22
|
+
|
|
23
|
+
There is no `tokenize` mode; `.pen` files are source-of-truth specs, not derived artifacts.
|
|
24
|
+
|
|
25
|
+
Flags:
|
|
26
|
+
- `--dry-run` - emit the proposal without writing or committing any `.pen` changes
|
|
27
|
+
|
|
28
|
+
## Prerequisites
|
|
29
|
+
|
|
30
|
+
1. pencil.dev workspace detected; one or more `.pen` files in `cwd` (no MCP install required):
|
|
31
|
+
```bash
|
|
32
|
+
find . -name "*.pen" -not -path "*/node_modules/*" | head -5
|
|
33
|
+
```
|
|
34
|
+
2. `.design/DESIGN-CONTEXT.md` exists (run `discover` first). For `annotate` mode, `.design/DESIGN-DEBT.md` is also required. For `roundtrip` mode, `.design/DESIGN-VERIFICATION.md` is also required.
|
|
35
|
+
3. `.design/STATE.md` `<connections>` shows `pencil-dev: available`. If `not_configured`, no `.pen` files were found at probe time; re-run `discover` or `connections` after adding `.pen` specs.
|
|
36
|
+
|
|
37
|
+
## Required Reading
|
|
38
|
+
|
|
39
|
+
Read `.design/STATE.md` and `.design/DESIGN-CONTEXT.md` before dispatching the agent.
|
|
40
|
+
|
|
41
|
+
## Dispatch
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
Task("design-pencil-writer", """
|
|
45
|
+
mode: <annotate|roundtrip>
|
|
46
|
+
dry_run: <true|false>
|
|
47
|
+
required_reading:
|
|
48
|
+
- .design/STATE.md
|
|
49
|
+
- .design/DESIGN-CONTEXT.md
|
|
50
|
+
""")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Pass `mode` from the first positional argument; `dry_run` from `--dry-run`.
|
|
54
|
+
Wait for the agent's completion marker before returning.
|
|
@@ -15,7 +15,7 @@ If invoked without an error context (the user just typed `/gdd:report-issue` col
|
|
|
15
15
|
|
|
16
16
|
## Steps
|
|
17
17
|
|
|
18
|
-
0. **Kill-switch** (D-08). Call `isDisabled()` from `scripts/lib/issue-reporter/kill-switch.cjs` FIRST. Either env (`GDD_DISABLE_ISSUE_REPORTER=1`) OR config (`.design/config.json` with `{ "issue_reporter": false }`) makes the command unavailable. Surface the disable line via `getDisableReason()` ('env' wins when both set) and stop. No draft, no triage, no payload.
|
|
18
|
+
0. **Kill-switch** (D-08). Call `isDisabled()` from `scripts/lib/issue-reporter/kill-switch.cjs` FIRST. Either env (`GDD_DISABLE_ISSUE_REPORTER=1`) OR config (`.design/config.json` with `{ "issue_reporter": false }`) makes the command unavailable. Surface the disable line via `getDisableReason()` ('env' wins when both set) and stop. No draft, no triage, no payload. `/gdd:health` mirrors the same line for at-a-glance verification.
|
|
19
19
|
1. **Triage**. Call `matchKnownFailure(errorContext)` from `scripts/lib/issue-reporter/triage-matcher.cjs` (Plan 30-03). If `matched === true` and `--force-report` is NOT set: print the suggested diagnosis + remedy, stop. Do NOT write a draft. (D-07)
|
|
20
20
|
2. **Assemble**. Call `assemble(commandName, errorContext, trajectoryRef?, capabilityGapEvent?)` from `scripts/lib/issue-reporter/payload-assembly.cjs` (Plan 30-02). This layers Phase 22 redact → Phase 30 pseudonymize, computes the fingerprint, and renders bilingual disclaimer + sections.
|
|
21
21
|
3. **Draft**. Call `writeDraft({title, body, fingerprint})` from `scripts/lib/issue-reporter/draft-writer.cjs`. Print the absolute path: `Draft written to .design/issue-drafts/<timestamp>-<fp8>.md`. The file persists across decline - the user keeps their work either way. (D-04)
|
|
@@ -48,6 +48,6 @@ Available on `/gdd:report-issue`. Overrides the triage gate (Step 1) but does NO
|
|
|
48
48
|
- **No `EDITOR` set.** The path is printed; open it in whatever editor you prefer, save, then return to the consent prompt.
|
|
49
49
|
- **Triage matched something irrelevant.** Pass `--force-report` to bypass the gate. Consent is still required.
|
|
50
50
|
- **`gh` not installed (D-10).** After consent, the payload is copied to your clipboard and an issue-template URL is printed. Paste into the URL to file manually. Install `gh` later and the existing draft can be re-submitted.
|
|
51
|
-
- **Command unavailable / disabled (D-08).** Run
|
|
51
|
+
- **Command unavailable / disabled (D-08).** Run `/gdd:health`. The `issue reporter:` line shows the active disable surface - either `disabled by env (GDD_DISABLE_ISSUE_REPORTER=1)` or `disabled by config (.design/config.json: issue_reporter=false)`. Unset the env var or flip the config key to re-enable.
|
|
52
52
|
|
|
53
53
|
See [report-issue-procedure.md](./report-issue-procedure.md) for the full procedure with rationale per decision (D-02, D-03, D-04, D-05, D-07, D-11).
|
package/skills/router/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: gdd-router
|
|
3
|
-
description: "Routes a /gdd command to fast|quick|full path + S|M|L|XL complexity_class and returns {path, complexity_class, model_tier_overrides, resolved_models, estimated_cost_usd, cache_hits}. Deterministic - no model call. Invoked once at command entry before any Agent spawn. Read by hooks/budget-enforcer.
|
|
3
|
+
description: "Routes a /gdd command to fast|quick|full path + S|M|L|XL complexity_class and returns {path, complexity_class, model_tier_overrides, resolved_models, estimated_cost_usd, cache_hits}. Deterministic - no model call. Invoked once at command entry before any Agent spawn. Read by hooks/budget-enforcer.ts."
|
|
4
4
|
argument-hint: "<intent-string> [<target-artifacts-csv>]"
|
|
5
5
|
tools: Read, Bash, Grep
|
|
6
6
|
---
|
|
@@ -9,7 +9,7 @@ tools: Read, Bash, Grep
|
|
|
9
9
|
|
|
10
10
|
## Role
|
|
11
11
|
|
|
12
|
-
You are a deterministic routing skill. You do not spawn agents. You read `.design/budget.json`, `reference/model-prices.md`, `.design/cache-manifest.json` (if present), and the agent frontmatter list, then emit a single JSON object describing the planned spawn graph. The budget-enforcer hook (`hooks/budget-enforcer.
|
|
12
|
+
You are a deterministic routing skill. You do not spawn agents. You read `.design/budget.json`, `reference/model-prices.md`, `.design/cache-manifest.json` (if present), and the agent frontmatter list, then emit a single JSON object describing the planned spawn graph. The budget-enforcer hook (`hooks/budget-enforcer.ts`) consumes your output on every `Agent` tool call.
|
|
13
13
|
|
|
14
14
|
## Invocation Contract
|
|
15
15
|
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
name: verify-procedure
|
|
3
3
|
type: meta-rules
|
|
4
4
|
version: 1.0.0
|
|
5
|
-
phase: 28.5
|
|
6
5
|
tags: [verify, procedure, extracted, pipeline-stage, gap-loop, must-have, quality-gate]
|
|
7
6
|
last_updated: 2026-05-18
|
|
8
7
|
---
|
|
9
8
|
|
|
10
|
-
Source: extracted from `skills/verify/SKILL.md`
|
|
9
|
+
Source: extracted from `skills/verify/SKILL.md` to keep the SKILL focused on the essential workflow.
|
|
11
10
|
The skill's essential workflow stays in `../skills/verify/SKILL.md`; this file holds the
|
|
12
11
|
detail the agent reaches for when executing a specific step (state integration, quality-gate
|
|
13
12
|
decision tree, agent spawn protocols, gap-response loop, must-have flipping).
|
|
@@ -28,9 +27,9 @@ methodology, agent prompts, and gap-loop semantics.
|
|
|
28
27
|
1. `mcp__gdd_state__transition_stage` with `to: "verify"`.
|
|
29
28
|
2. `mcp__gdd_state__get` → snapshot `state`. Read `state.must_haves` - this is the verification checklist; each M-XX starts at `status: pending` and will be flipped to `pass` or `fail` as verification concludes.
|
|
30
29
|
|
|
31
|
-
#### Step 2.5 - Quality-gate gate
|
|
30
|
+
#### Step 2.5 - Quality-gate gate
|
|
32
31
|
|
|
33
|
-
Before resume detection, inspect `state.quality_gate` from the same snapshot. The
|
|
32
|
+
Before resume detection, inspect `state.quality_gate` from the same snapshot. The quality-gate skill (see `skills/quality-gate/SKILL.md`) writes a single `<run/>` element capturing the most recent run; this step is the verify-side consumer of that result. Three branches, evaluated in order:
|
|
34
33
|
|
|
35
34
|
- **`state.quality_gate?.run?.status === "fail"`** → Refuse to advance. The fix loop in `quality-gate/SKILL.md` Step 4 reached `max_iters` without converging, and the verify stage MUST NOT paper over it. Print a blocker reason that includes the iteration count and the `commands_run` field from the run, then call:
|
|
36
35
|
|
|
@@ -43,9 +42,9 @@ Before resume detection, inspect `state.quality_gate` from the same snapshot. Th
|
|
|
43
42
|
|
|
44
43
|
Exit immediately with the failure surface visible to the user. Do NOT call `mcp__gdd_state__update_progress` to open the verify stage; the gate refused entry, so the stage was never opened.
|
|
45
44
|
|
|
46
|
-
- **`state.quality_gate?.run?.status === "timeout"` OR `=== "skipped"`** → Print a one-line warning naming the status and the `commands_run` value, then continue normally.
|
|
45
|
+
- **`state.quality_gate?.run?.status === "timeout"` OR `=== "skipped"`** → Print a one-line warning naming the status and the `commands_run` value, then continue normally. These are signals, not walls: a slow test suite must not hostage the pipeline, and a project with no detectable quality commands must not block verify entry. The warning surfaces the degraded state without halting.
|
|
47
46
|
|
|
48
|
-
- **`state.quality_gate?.run?.status === "pass"` OR `state.quality_gate === null`** → Continue silently. `pass` is the happy path; `null` means the gate has never been run for this cycle (the user skipped
|
|
47
|
+
- **`state.quality_gate?.run?.status === "pass"` OR `state.quality_gate === null`** → Continue silently. `pass` is the happy path; `null` means the gate has never been run for this cycle (the user skipped the quality-gate stage entirely, which is permitted - verify only *checks* the gate result, never *runs* the gate itself).
|
|
49
48
|
|
|
50
49
|
This step is a pure read against the snapshot already loaded in Step 2 - no extra MCP call is required.
|
|
51
50
|
|
|
@@ -93,7 +92,7 @@ Step P2 — Live tool call:
|
|
|
93
92
|
Record the preview probe result via `mcp__gdd_state__probe_connections` (batched with the storybook and chromatic probes below — one call per stage, see "Batched connections write" at the end of this section).
|
|
94
93
|
```
|
|
95
94
|
|
|
96
|
-
When `preview: available`, the design-verifier agent runs
|
|
95
|
+
When `preview: available`, the design-verifier agent runs Stage 4B - Screenshot Evidence to resolve `? VISUAL` heuristic flags with real screenshot evidence. See `agents/design-verifier.md` Stage 4B for the screenshot evidence loop.
|
|
97
96
|
|
|
98
97
|
### Probe Storybook connection
|
|
99
98
|
|
|
@@ -202,7 +201,7 @@ Initialize iteration counter to 0 (used for fix loop limit in Step 3).
|
|
|
202
201
|
|
|
203
202
|
Three agents run in sequence. Each waits for its completion marker before the next is spawned.
|
|
204
203
|
|
|
205
|
-
**Note on lazy gates
|
|
204
|
+
**Note on lazy gates:** Each full checker is preceded by a cheap Haiku gate that reads the diff and may return `{spawn: false}` to short-circuit. When gated out, `lazy_skipped: true` is appended to `.design/telemetry/costs.jsonl`. Gates: `design-verifier-gate` (before 1b), `design-integration-checker-gate` (before 1c). `design-context-checker-gate` is wired into `skills/discover/SKILL.md` Step 1.75.
|
|
206
205
|
|
|
207
206
|
### 1a. Run design-auditor first (retrospective 7-pillar audit)
|
|
208
207
|
|
|
@@ -274,9 +273,9 @@ Task("design-verifier", """
|
|
|
274
273
|
You are the design-verifier agent. Run the 5-phase verification against completed design work.
|
|
275
274
|
|
|
276
275
|
DESIGN-AUDIT.md (above) contains a retrospective 7-pillar qualitative audit from design-auditor.
|
|
277
|
-
Read it as supplementary signal — incorporate the priority fix list into your
|
|
276
|
+
Read it as supplementary signal — incorporate the priority fix list into your Stage 5 gap analysis
|
|
278
277
|
where relevant. The auditor's 1-4 scores complement your 0-10 category scores; they do not
|
|
279
|
-
replace your
|
|
278
|
+
replace your Stage 1 category scoring.
|
|
280
279
|
|
|
281
280
|
Context:
|
|
282
281
|
auto_mode: <true|false>
|
|
@@ -432,7 +431,7 @@ Task("design-fixer", """
|
|
|
432
431
|
@.design/DESIGN-CONTEXT.md
|
|
433
432
|
</required_reading>
|
|
434
433
|
|
|
435
|
-
Fix all BLOCKER and MAJOR gaps from ##
|
|
434
|
+
Fix all BLOCKER and MAJOR gaps from ## Stage 5 - Gaps in DESIGN-VERIFICATION.md.
|
|
436
435
|
For each gap: apply the targeted fix to the file/location in the gap's Location field.
|
|
437
436
|
After each fix, make an atomic commit: fix(design-gap-GNN): [gap title].
|
|
438
437
|
|
|
@@ -62,7 +62,7 @@ Full + filtered command-output examples live in `./../cache-manager/cache-policy
|
|
|
62
62
|
|
|
63
63
|
- **Pre-sprint**: `/gdd:warm-cache` is the recommended first line of a `/gdd:discover`, `/gdd:plan`, or `/gdd:verify` sprint. Users type it before the real command, or an orchestrator-level wrapper runs it automatically if `agent-metrics.json` (Plan 10.1-05) indicates the last sprint was > 5 min ago.
|
|
64
64
|
- **`reference/shared-preamble.md`** (authored in Plan 10.1-04) is the essential file for this command - agents import it first per D-17, which makes the first N tokens of every agent's rendered system prompt identical, which is what Anthropic's prompt cache keys on.
|
|
65
|
-
- **No interaction with `hooks/budget-enforcer.
|
|
65
|
+
- **No interaction with `hooks/budget-enforcer.ts`** - the hook is a PreToolUse gate; warm-cache runs as an ordinary Agent tool call itself and is subject to the hook (each no-op Haiku ping is budgeted and logged like any other spawn). This is intentional: warm-cache's own telemetry rows in `.design/telemetry/costs.jsonl` are the evidence that cache priming happened.
|
|
66
66
|
|
|
67
67
|
## Cost Model
|
|
68
68
|
|