akili-specs 2.2.1 → 2.4.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,120 @@
1
+ ---
2
+ description: Resume work after a session break by scanning active specs and presenting a multi-spec dashboard briefing.
3
+ ---
4
+
5
+ # Resume AKILI-SPECS Session
6
+
7
+ Recover context after a session break, accidental close, or when switching between projects. Scans all active specs under `docs/specs/` and presents a dashboard showing where each spec stands.
8
+
9
+ > **Recommended model tier:** T5 Fast-Cheap. This is a file-scanning and summarization job; a deep reasoning model is not required.
10
+
11
+ ## Usage
12
+
13
+ ```
14
+ /akili-resume
15
+ ```
16
+
17
+ No arguments required. The command scans `docs/specs/` automatically.
18
+
19
+ ## Behavior
20
+
21
+ ### Step 0: Scan Active Specs
22
+
23
+ 1. List all directories under `docs/specs/` (excluding `archive/`).
24
+ 2. For each spec directory, read available files to determine current phase:
25
+ - `proposal.md` exists → proposed
26
+ - `requirements.md` exists → requirements defined
27
+ - `design.md` exists → design defined
28
+ - `tasks.md` exists → tasks defined
29
+ - `execution.md` exists → in execution or completed
30
+ - `test-report.md` exists → tested
31
+ - `validation-report.md` exists → validated
32
+
33
+ ### Step 1: Determine Phase & Progress
34
+
35
+ For each spec, determine:
36
+
37
+ - **Current Phase:** PROPOSE → SPECIFY → EXECUTE → TEST → VALIDATE → ARCHIVE
38
+ - **Progress:** Count `[x]` vs total tasks in `tasks.md`
39
+ - **Last Action:** Most recent entry in `execution.md` (if exists)
40
+ - **Blocked:** Any `[~]` tasks or unresolved FAIL findings
41
+
42
+ ### Step 2: Present Dashboard
43
+
44
+ If **one spec** is active, go directly to the briefing:
45
+
46
+ ```markdown
47
+ 📋 Resuming: changes/add-remember-me
48
+
49
+ Phase: EXECUTION
50
+ Progress: ██████░░ 6/8 tasks done
51
+
52
+ Last Action:
53
+ Task 6 PASS — Implementer completed cookie persistence
54
+
55
+ Blocked: none
56
+
57
+ Ready to continue? Next eligible task:
58
+ [ ] Task 7: Add remember-me checkbox to login form
59
+ ```
60
+
61
+ If **multiple specs** are active, present a dashboard:
62
+
63
+ ```markdown
64
+ 📋 AKILI Active Specs (3 open)
65
+
66
+ 1. changes/add-remember-me [EXECUTION] ██████░░ 6/8 tasks done
67
+ Last: Task 6 PASS — Implementer completed cookie persistence
68
+ Blocked: none
69
+
70
+ 2. admin/user-management [SPECIFY] ████░░░░ Design approved, tasks pending
71
+ Last: HITL menu — user approved design, pending task breakdown
72
+ Blocked: none
73
+
74
+ 3. bugfix/login-redirect [VALIDATE] ████████ 4/4 tasks done
75
+ Last: Validation report — 1 WARN (missing edge case test)
76
+ Blocked: none
77
+
78
+ Which spec do you want to resume? (or "all" for full briefing)
79
+ ```
80
+
81
+ ### Step 3: Provide Full Briefing (if requested)
82
+
83
+ If the user selects "all" or if there's only one spec, provide a detailed briefing for each:
84
+
85
+ 1. **Spec Path & Phase**
86
+ 2. **Requirements Summary:** Key requirements from `requirements.md`
87
+ 3. **Design Decisions:** Major decisions from `design.md`
88
+ 4. **Task Status:** Completed, in-progress, blocked, pending
89
+ 5. **Execution Trail:** Last 3 entries from `execution.md`
90
+ 6. **Test Evidence:** Summary from `test-report.md` (if exists)
91
+ 7. **Validation Status:** PASS/WARN/FAIL from `validation-report.md` (if exists)
92
+ 8. **Next Actions:** Recommended next step based on current phase
93
+
94
+ ### Step 4: Recommend Next Command
95
+
96
+ Based on the current phase, recommend the next command:
97
+
98
+ - PROPOSE → `/akili-specify <spec-path>`
99
+ - SPECIFY → `/akili-execute <spec-path>`
100
+ - EXECUTE → `/akili-execute <spec-path>` (continue next task)
101
+ - TEST → `/akili-test <spec-path>`
102
+ - VALIDATE → `/akili-validate <spec-path>` or `/akili-archive <spec-path>`
103
+ - ARCHIVE → `/akili-archive <spec-path>`
104
+
105
+ ## Output
106
+
107
+ No files are created or modified. The command outputs a screen summary only.
108
+
109
+ ## When To Run
110
+
111
+ - After accidentally closing Claude Code, OpenCode, or Antigravity
112
+ - When switching between projects and need to remember where you left off
113
+ - At the start of a new session to get a quick status overview
114
+ - Before planning the next work session to see what's available
115
+
116
+ ## Error Handling
117
+
118
+ - If `docs/specs/` does not exist, report that the project has no active specs and suggest running `/akili-constitution` or `/akili-propose`.
119
+ - If `docs/specs/` is empty (only `archive/` exists), report that all specs are archived and suggest running `/akili-propose` for new work.
120
+ - If a spec folder exists but has no readable files, report it as an incomplete spec and suggest running `/akili-specify <spec-path>`.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,26 @@ The format is inspired by Keep a Changelog and the repository follows semantic v
10
10
 
11
11
  - No unreleased changes yet.
12
12
 
13
+ ## [2.4.0] - 2026-07-19
14
+
15
+ ### Added
16
+ - **`/akili-resume` command:** New session recovery command that scans all active specs under `docs/specs/` and presents a multi-spec dashboard with phase, progress bars, last action, blockers, and next command recommendation. If only one spec is active, goes directly to a detailed briefing. No arguments required.
17
+
18
+ ### Fixed
19
+ - **Documentation drift corrections:** Added `/akili-audit` to README (Contents, Command Map, Auxiliary commands), `docs/commands/README.md` (Command Map, Source Files, Normal Sequence), and `docs/README.md` (Quick Flow). Created `docs/commands/akili-audit.md` reference page.
20
+ - **`judgment-day` skill documentation:** Added `judgment-day` to README skills list, AGENTS.md skill usage, and CLAUDE.md skill usage. Created `docs/skills/judgment-day.md` reference page.
21
+ - **Plan document rebranding:** Renamed `docs/plans/2026-05-26-multi-agent-sdd-orchestration-design.md` to `2026-05-26-multi-agent-akili-orchestration-design.md` to align with the v2.0.0 AKILI rebranding.
22
+ ## [2.3.0] - 2026-07-19
23
+
24
+ ### Added
25
+ - **Auto-Update Checker:** The `akili` CLI now automatically checks the NPM registry in the background (zero dependencies, 1500ms timeout) to see if a newer version is available. If an update exists, it prominently displays a stylish banner reminding the user to update, ensuring teams always stay on the latest methodology release.
26
+
27
+ ### Fixed
28
+ - Changed the CLI behavior so that running `akili` with no arguments defaults to showing the `help` menu instead of launching the interactive `init` wizard. The wizard must now be explicitly invoked via `akili init` (or `npx akili-specs init`).
29
+ ## [2.2.2] - 2026-07-19
30
+
31
+ ### Fixed
32
+ - Replaced `pnpm add -g` with the classic `npm install -g` in the global installation documentation to prevent the `ERR_PNPM_NO_GLOBAL_BIN_DIR` error that occurs in environments without a pre-configured PNPM home directory.
13
33
  ## [2.2.1] - 2026-07-19
14
34
 
15
35
  ### Fixed
package/README.md CHANGED
@@ -71,6 +71,8 @@ AKILI-SPECS is a constitution-first, spec-driven methodology for AI-assisted dev
71
71
  - `akili-test.md`
72
72
  - `akili-validate.md`
73
73
  - `akili-archive.md`
74
+ - `akili-audit.md`
75
+ - `akili-resume.md`
74
76
  - `akili-seo.md`
75
77
  - `.claude/skills/`
76
78
  - `angular-developer`
@@ -87,6 +89,7 @@ AKILI-SPECS is a constitution-first, spec-driven methodology for AI-assisted dev
87
89
  - `gsap-scrolltrigger`
88
90
  - `gsap-timeline`
89
91
  - `gsap-utils`
92
+ - `judgment-day`
90
93
  - `nestjs-expert`
91
94
  - `product-manager-toolkit`
92
95
  - `react-doctor`
@@ -131,12 +134,10 @@ Install the methodology with the bundled CLI. The installer can target Claude, O
131
134
  ### Step 2: Install
132
135
 
133
136
  **Interactive Installation (Recommended):**
134
- Simply run the CLI without arguments to launch the interactive setup wizard, which will ask you about the tool and whether you want a global or local installation:
137
+ Run the `init` command to launch the interactive setup wizard, which will ask you about the tool and whether you want a global or local installation:
135
138
 
136
139
  ```bash
137
- pnpm dlx akili-specs
138
- # or
139
- pnpm dlx akili-specs init
140
+ npx akili-specs init
140
141
  ```
141
142
 
142
143
  **Manual Installation via Flags:**
@@ -144,19 +145,19 @@ pnpm dlx akili-specs init
144
145
  Install globally for Claude (default):
145
146
 
146
147
  ```bash
147
- pnpm dlx akili-specs install
148
+ npx akili-specs install
148
149
  ```
149
150
 
150
151
  Install globally for OpenCode:
151
152
 
152
153
  ```bash
153
- pnpm dlx akili-specs install --tool opencode
154
+ npx akili-specs install --tool opencode
154
155
  ```
155
156
 
156
157
  Install locally to the current project workspace:
157
158
 
158
159
  ```bash
159
- pnpm dlx akili-specs install --tool both --local
160
+ npx akili-specs install --tool both --local
160
161
  ```
161
162
 
162
163
  ### Step 3: Verify The Installation
@@ -164,25 +165,25 @@ pnpm dlx akili-specs install --tool both --local
164
165
  Check Claude installation:
165
166
 
166
167
  ```bash
167
- pnpm dlx akili-specs doctor --tool claude
168
+ npx akili-specs doctor --tool claude
168
169
  ```
169
170
 
170
171
  Check OpenCode installation:
171
172
 
172
173
  ```bash
173
- pnpm dlx akili-specs doctor --tool opencode
174
+ npx akili-specs doctor --tool opencode
174
175
  ```
175
176
 
176
177
  Check Antigravity installation:
177
178
 
178
179
  ```bash
179
- pnpm dlx akili-specs doctor --tool antigravity
180
+ npx akili-specs doctor --tool antigravity
180
181
  ```
181
182
 
182
183
  Check all:
183
184
 
184
185
  ```bash
185
- pnpm dlx akili-specs doctor --tool all
186
+ npx akili-specs doctor --tool all
186
187
  ```
187
188
 
188
189
  Expected result: every command, skill, and helper resource shows `OK`.
@@ -239,7 +240,7 @@ node bin/akili.js doctor --tool both
239
240
  If you prefer a persistent global CLI:
240
241
 
241
242
  ```bash
242
- pnpm add -g akili-specs
243
+ npm install -g akili-specs
243
244
  akili install
244
245
  akili install --tool opencode
245
246
  akili doctor --tool opencode
@@ -281,19 +282,19 @@ OpenCode loads global command markdown files from `~/.config/opencode/commands/`
281
282
  Update Claude:
282
283
 
283
284
  ```bash
284
- pnpm dlx akili-specs update --tool claude --force
285
+ npx akili-specs update --tool claude --force
285
286
  ```
286
287
 
287
288
  Update OpenCode:
288
289
 
289
290
  ```bash
290
- pnpm dlx akili-specs update --tool opencode --force
291
+ npx akili-specs update --tool opencode --force
291
292
  ```
292
293
 
293
294
  Update both:
294
295
 
295
296
  ```bash
296
- pnpm dlx akili-specs update --tool both --force
297
+ npx akili-specs update --tool both --force
297
298
  ```
298
299
 
299
300
  Use `--force` when you want packaged files to replace older installed files. Without `--force`, existing files are skipped.
@@ -353,8 +354,8 @@ npm publish --access public --registry=https://registry.npmjs.org/
353
354
  After publish, smoke test:
354
355
 
355
356
  ```bash
356
- pnpm dlx akili-specs@X.Y.Z list
357
- pnpm dlx akili-specs@X.Y.Z install --tool both --dry-run
357
+ npx akili-specs@X.Y.Z list
358
+ npx akili-specs@X.Y.Z install --tool both --dry-run
358
359
  npm view akili-specs version --registry=https://registry.npmjs.org/
359
360
  npm run release:status
360
361
  ```
@@ -505,6 +506,8 @@ See the full [Command Reference](docs/commands/README.md) for detailed pages per
505
506
  | `/akili-test <spec-path>` | Adding or running test evidence | `test-report.md` with requirement-to-test traceability |
506
507
  | `/akili-validate <spec-path>` | Checking implementation against the spec | `validation-report.md` with pass, warning, failure, and remediation items |
507
508
  | `/akili-archive <spec-path>` | Closing completed work after validation | Archived spec folder under `docs/specs/archive/` with `archive-summary.md`, synced agent guides, CodeGraph re-index reminder |
509
+ | `/akili-audit` | Detecting drift between specs and codebase reality | `docs/specs/drift-report.md` with conformance score and discrepancy matrix |
510
+ | `/akili-resume` | Resuming work after a session break | Multi-spec dashboard with phase, progress, and next command recommendation |
508
511
  | `/akili-seo <site-domain>` | Auditing deployed SEO and Search Console state | `seo-setup-report.md`, `seo-audit-report.md` |
509
512
 
510
513
  ## How To Choose The Right Depth
@@ -678,6 +681,10 @@ See [OpenSpec Comparison](docs/openspec-comparison.md) for the current AKILI com
678
681
 
679
682
  ### Auxiliary commands
680
683
 
684
+ - `/akili-audit` — Detect and report drift between the project's specifications (PRD, UX/UI Design, TRD) and the actual implementation. Produces `docs/specs/drift-report.md` with a conformance score, categorized discrepancies (High/Medium/Low), a conformance matrix, and recommended remediation paths. Run independently or after major implementation milestones.
685
+
686
+ - `/akili-resume` — Resume work after a session break by scanning all active specs under `docs/specs/` and presenting a multi-spec dashboard. Shows current phase, progress bars, last action, blockers, and recommends the next command. If only one spec is active, goes directly to a detailed briefing. No arguments required.
687
+
681
688
  - `/akili-seo <site-domain>` — SEO setup & audit via Google Search Console. Verifies a domain through DNS TXT using a service account, adds the property to GSC, then audits index coverage, sitemaps, structured data, search analytics, server-side render, internal linking, and on-page SEO (titles, metas, headings, canonicals, hreflang) using the packaged `seo-audit` skill. Produces `seo-setup-report.md` and `seo-audit-report.md` under `docs/specs/seo/<domain>/`, including a copy-paste implementation prompt for fixing every High-severity finding.
682
689
 
683
690
  Dependencies bundled with this repo:
package/bin/akili.js CHANGED
@@ -522,6 +522,59 @@ function runDoctor(args) {
522
522
  }
523
523
 
524
524
  const readline = require("readline/promises");
525
+ const https = require("https");
526
+ const { version: currentVersion } = require("../package.json");
527
+
528
+ function checkForUpdates() {
529
+ return new Promise((resolve) => {
530
+ const req = https.get("https://registry.npmjs.org/-/package/akili-specs/dist-tags", { timeout: 1500 }, (res) => {
531
+ if (res.statusCode !== 200) return resolve();
532
+ let data = "";
533
+ res.on("data", (chunk) => (data += chunk));
534
+ res.on("end", () => {
535
+ try {
536
+ const tags = JSON.parse(data);
537
+ const latestVersion = tags.latest;
538
+ if (latestVersion && latestVersion !== currentVersion) {
539
+ // simple semver check
540
+ const isNewer = latestVersion.localeCompare(currentVersion, undefined, { numeric: true, sensitivity: 'base' }) > 0;
541
+ if (isNewer) {
542
+ const border = `╭─────────────────────────────────────────────────────────────╮`;
543
+ const emptyLine = `│ │`;
544
+ const msgLine1 = `│ ${colors.yellow}Update available!${colors.reset} ${colors.red}${currentVersion}${colors.reset} → ${colors.green}${latestVersion}${colors.reset}`;
545
+ const msgLine2 = `│ Run ${colors.cyan}npm install -g akili-specs${colors.reset} to update.`;
546
+
547
+ // Pad to keep the box neat (very rudimentary padding, assumes specific length of colors)
548
+ // Just manually aligning for aesthetic since console length with escape codes is tricky
549
+ console.log(`\n${colors.yellow}${border}`);
550
+ console.log(`${emptyLine}`);
551
+ // 61 total chars inside.
552
+ // "Update available! x.x.x -> y.y.y"
553
+ const rawStr1 = ` Update available! ${currentVersion} -> ${latestVersion}`;
554
+ const pad1 = " ".repeat(Math.max(0, 61 - rawStr1.length));
555
+ console.log(`│ ${colors.yellow}Update available!${colors.reset} ${colors.red}${currentVersion}${colors.reset} → ${colors.green}${latestVersion}${colors.reset}${pad1}│`);
556
+
557
+ const rawStr2 = ` Run npm install -g akili-specs to update.`;
558
+ const pad2 = " ".repeat(Math.max(0, 61 - rawStr2.length));
559
+ console.log(`│ Run ${colors.cyan}npm install -g akili-specs${colors.reset} to update.${pad2}│`);
560
+ console.log(`${emptyLine}`);
561
+ console.log(`╰─────────────────────────────────────────────────────────────╯${colors.reset}\n`);
562
+ }
563
+ }
564
+ resolve();
565
+ } catch (e) {
566
+ resolve();
567
+ }
568
+ });
569
+ });
570
+
571
+ req.on("error", () => resolve());
572
+ req.on("timeout", () => {
573
+ req.destroy();
574
+ resolve();
575
+ });
576
+ });
577
+ }
525
578
 
526
579
  async function runInteractiveInit() {
527
580
  const rl = readline.createInterface({
@@ -587,13 +640,15 @@ async function runInteractiveInit() {
587
640
  }
588
641
 
589
642
  async function main() {
643
+ await checkForUpdates();
644
+
590
645
  const args = getArgs();
591
646
 
592
647
  if (args.command !== "help" && args.command !== "list" && args.command !== "init") {
593
648
  printBanner();
594
649
  }
595
650
 
596
- if (process.argv.length === 2 || args.command === "init") {
651
+ if (args.command === "init") {
597
652
  printBanner();
598
653
  await runInteractiveInit();
599
654
  return;
package/docs/README.md CHANGED
@@ -26,6 +26,10 @@ Use this documentation when you want the human-facing reference. The installable
26
26
  /akili-archive <spec-path>
27
27
  ```
28
28
 
29
+ Use `/akili-resume` at the start of any session to see a dashboard of all active specs and where each one stands.
30
+
31
+ Use `/akili-audit` independently to detect drift between specs and codebase reality at any time.
32
+
29
33
  Use `/akili-seo <site-domain>` independently when you need Google Search Console setup and SEO audit reports.
30
34
 
31
35
  ## Documentation Map
package/docs/cli.md CHANGED
@@ -6,11 +6,11 @@ The `akili` CLI installs the AKILI command prompts, skills, and helper resources
6
6
 
7
7
  ### Interactive Mode (Recommended)
8
8
 
9
- Run the CLI without arguments or use the `init` command to launch an interactive wizard. It will guide you through selecting the target tools and choosing between global or local installation:
9
+ Run the `init` command to launch an interactive wizard. It will guide you through selecting the target tools and choosing between global or local installation:
10
10
 
11
11
  ```bash
12
- pnpm dlx akili-specs
13
- # or
12
+ npx akili-specs init
13
+ # or, if installed globally
14
14
  akili init
15
15
  ```
16
16
 
@@ -19,23 +19,23 @@ akili init
19
19
  Run directly from npm:
20
20
 
21
21
  ```bash
22
- pnpm dlx akili-specs install --tool claude
23
- pnpm dlx akili-specs install --tool opencode
24
- pnpm dlx akili-specs install --tool antigravity
25
- pnpm dlx akili-specs install --tool both
26
- pnpm dlx akili-specs install --tool all
22
+ npx akili-specs install --tool claude
23
+ npx akili-specs install --tool opencode
24
+ npx akili-specs install --tool antigravity
25
+ npx akili-specs install --tool both
26
+ npx akili-specs install --tool all
27
27
  ```
28
28
 
29
29
  Claude is the default target:
30
30
 
31
31
  ```bash
32
- pnpm dlx akili-specs install
32
+ npx akili-specs install
33
33
  ```
34
34
 
35
35
  Use a persistent global install if preferred:
36
36
 
37
37
  ```bash
38
- pnpm add -g akili-specs
38
+ npm install -g akili-specs
39
39
  akili install --tool all
40
40
  ```
41
41
 
@@ -13,6 +13,8 @@ AKILI commands are installed as slash-command prompts for Claude Code and OpenCo
13
13
  | [`/akili-test <spec-path>`](akili-test.md) | Proving behavior with test evidence | `test-report.md` |
14
14
  | [`/akili-validate <spec-path>`](akili-validate.md) | Auditing conformance before completion | `validation-report.md` |
15
15
  | [`/akili-archive <spec-path>`](akili-archive.md) | Closing completed work after validation | Archived spec folder with `archive-summary.md` |
16
+ | [`/akili-audit`](akili-audit.md) | Detecting drift between specs and codebase reality | `docs/specs/drift-report.md` with conformance score and discrepancy matrix |
17
+ | [`/akili-resume`](akili-resume.md) | Resuming work after a session break | Multi-spec dashboard with phase, progress, and next command recommendation |
16
18
  | [`/akili-seo <site-domain>`](akili-seo.md) | Setting up GSC ownership and SEO audit evidence | `seo-setup-report.md`, `seo-audit-report.md` |
17
19
 
18
20
  ## Normal Sequence
@@ -29,6 +31,8 @@ AKILI commands are installed as slash-command prompts for Claude Code and OpenCo
29
31
 
30
32
  You can skip `/akili-propose` for very small, obvious work. You should not skip validation before archiving unless the user explicitly accepts the risk.
31
33
 
34
+ Run `/akili-audit` independently to detect drift between specs and codebase reality at any time.
35
+
32
36
  ## Source Files
33
37
 
34
38
  | Command | Source |
@@ -40,4 +44,6 @@ You can skip `/akili-propose` for very small, obvious work. You should not skip
40
44
  | `/akili-test` | `.claude/commands/akili-test.md` |
41
45
  | `/akili-validate` | `.claude/commands/akili-validate.md` |
42
46
  | `/akili-archive` | `.claude/commands/akili-archive.md` |
47
+ | `/akili-audit` | `.claude/commands/akili-audit.md` |
48
+ | `/akili-resume` | `.claude/commands/akili-resume.md` |
43
49
  | `/akili-seo` | `.claude/commands/akili-seo.md` |
@@ -0,0 +1,52 @@
1
+ # `/akili-audit`
2
+
3
+ Detect and report drift between the project's specifications (PRD, UX/UI Design, TRD) and the actual implementation in the codebase.
4
+
5
+ ## Usage
6
+
7
+ ```text
8
+ /akili-audit
9
+ ```
10
+
11
+ ## Behavior
12
+
13
+ The command performs a four-step audit:
14
+
15
+ 1. **Read Project Specifications** — reads `docs/prd.md`, `docs/ux-ui/design.md`, `docs/trd/trd.md`, and any active specs in `docs/specs/`.
16
+ 2. **Scan Active Codebase** — extracts API surfaces, database schemas, UI components, modules, and dependencies using CodeGraph (if available) or standard file search.
17
+ 3. **Compare Documentation vs. Codebase Reality** — identifies discrepancies across five categories:
18
+ - Stale Specification (documented but missing in code)
19
+ - Undocumented Feature (in code but missing from docs)
20
+ - Visual/Design Token Mismatch
21
+ - Technical Constraints Violation
22
+ - Agent Guide Drift
23
+ 4. **Write Drift Report** — creates or updates `docs/specs/drift-report.md`.
24
+
25
+ ## Output
26
+
27
+ ```text
28
+ docs/specs/drift-report.md
29
+ ```
30
+
31
+ The report includes:
32
+
33
+ - **Overall Conformance Score** (percentage)
34
+ - **Executive Summary**
35
+ - **Identified Discrepancies** categorized by priority (High / Medium / Low)
36
+ - **Conformance Matrix** mapping spec sections to code reality
37
+ - **Recommended Next Steps**
38
+
39
+ ## When To Run
40
+
41
+ - After major implementation milestones
42
+ - Before `/akili-archive` to verify spec alignment
43
+ - When onboarding to an existing project to assess documentation health
44
+ - Periodically to prevent specification rot
45
+
46
+ ## Skills
47
+
48
+ `systematic-debugging` applies when discrepancies suggest implementation bugs rather than documentation gaps.
49
+
50
+ ## Source
51
+
52
+ - `.claude/commands/akili-audit.md`
@@ -0,0 +1,99 @@
1
+ # `/akili-resume`
2
+
3
+ Resume work after a session break by scanning active specs and presenting a multi-spec dashboard briefing.
4
+
5
+ ## Usage
6
+
7
+ ```text
8
+ /akili-resume
9
+ ```
10
+
11
+ No arguments required. The command scans `docs/specs/` automatically.
12
+
13
+ ## Use When
14
+
15
+ - After accidentally closing Claude Code, OpenCode, or Antigravity
16
+ - When switching between projects and need to remember where you left off
17
+ - At the start of a new session to get a quick status overview
18
+ - Before planning the next work session to see what's available
19
+
20
+ ## Behavior
21
+
22
+ The command performs a four-step scan:
23
+
24
+ 1. **Scan Active Specs** — lists all directories under `docs/specs/` (excluding `archive/`)
25
+ 2. **Determine Phase & Progress** — for each spec, identifies current phase (PROPOSE → SPECIFY → EXECUTE → TEST → VALIDATE → ARCHIVE), task progress, last action, and blockers
26
+ 3. **Present Dashboard** — shows a visual dashboard with progress bars and status for each active spec
27
+ 4. **Recommend Next Command** — suggests the next command based on current phase
28
+
29
+ ## Output
30
+
31
+ No files are created or modified. The command outputs a screen summary only.
32
+
33
+ ### Single Spec
34
+
35
+ If only one spec is active, goes directly to a detailed briefing:
36
+
37
+ ```text
38
+ 📋 Resuming: changes/add-remember-me
39
+
40
+ Phase: EXECUTION
41
+ Progress: ██████░░ 6/8 tasks done
42
+
43
+ Last Action:
44
+ Task 6 PASS — Implementer completed cookie persistence
45
+
46
+ Blocked: none
47
+
48
+ Ready to continue? Next eligible task:
49
+ [ ] Task 7: Add remember-me checkbox to login form
50
+ ```
51
+
52
+ ### Multiple Specs
53
+
54
+ If multiple specs are active, presents a dashboard:
55
+
56
+ ```text
57
+ 📋 AKILI Active Specs (3 open)
58
+
59
+ 1. changes/add-remember-me [EXECUTION] ██████░░ 6/8 tasks done
60
+ Last: Task 6 PASS — Implementer completed cookie persistence
61
+ Blocked: none
62
+
63
+ 2. admin/user-management [SPECIFY] ████░░░░ Design approved, tasks pending
64
+ Last: HITL menu — user approved design, pending task breakdown
65
+ Blocked: none
66
+
67
+ 3. bugfix/login-redirect [VALIDATE] ████████ 4/4 tasks done
68
+ Last: Validation report — 1 WARN (missing edge case test)
69
+ Blocked: none
70
+
71
+ Which spec do you want to resume? (or "all" for full briefing)
72
+ ```
73
+
74
+ ## Phase Detection
75
+
76
+ The command determines current phase by checking which files exist:
77
+
78
+ - `proposal.md` → PROPOSE
79
+ - `requirements.md` → SPECIFY
80
+ - `tasks.md` → EXECUTE
81
+ - `execution.md` with incomplete tasks → EXECUTE
82
+ - `test-report.md` → TEST
83
+ - `validation-report.md` → VALIDATE
84
+ - All tasks `[x]` and validation PASS → ready for ARCHIVE
85
+
86
+ ## Next Command Recommendations
87
+
88
+ Based on current phase:
89
+
90
+ - PROPOSE → `/akili-specify <spec-path>`
91
+ - SPECIFY → `/akili-execute <spec-path>`
92
+ - EXECUTE → `/akili-execute <spec-path>` (continue next task)
93
+ - TEST → `/akili-test <spec-path>`
94
+ - VALIDATE → `/akili-validate <spec-path>` or `/akili-archive <spec-path>`
95
+ - ARCHIVE → `/akili-archive <spec-path>`
96
+
97
+ ## Source
98
+
99
+ - `.claude/commands/akili-resume.md`
@@ -78,8 +78,8 @@ For private registry publishing, configure the registry first and publish using
78
78
  ## Post-Publish Smoke Test
79
79
 
80
80
  ```bash
81
- pnpm dlx akili-specs@<version> list
82
- pnpm dlx akili-specs@<version> install --tool both --dry-run
81
+ npx akili-specs@<version> list
82
+ npx akili-specs@<version> install --tool both --dry-run
83
83
  npm view akili-specs version --registry=https://registry.npmjs.org/
84
84
  npm run release:status
85
85
  ```
@@ -0,0 +1,28 @@
1
+ # `judgment-day`
2
+
3
+ ## Purpose
4
+
5
+ Provides a blind adversarial dual-review framework for design decisions. Two independent "judges" evaluate a design without seeing each other's feedback, then findings are reconciled. Supports up to two scoped fix/re-judgment rounds.
6
+
7
+ ## Use When
8
+
9
+ - Reviewing design decisions during `/akili-specify` before proceeding to tasks.
10
+ - Evaluating architectural choices that need adversarial scrutiny.
11
+ - When the design phase approval menu offers "Review Design" and the user selects it.
12
+
13
+ ## Core Rules
14
+
15
+ - Two judges operate independently and cannot see each other's output.
16
+ - Each judge produces structured findings with severity levels.
17
+ - Findings are reconciled after both judges report.
18
+ - A maximum of two fix/re-judgment rounds prevents infinite loops.
19
+ - If judges detect issues that need correction, the user can choose to fix, skip, or re-scope.
20
+
21
+ ## Best Paired Commands
22
+
23
+ - `/akili-specify` — design phase approval menu includes judgment-day as an explicit review option.
24
+ - `/akili-validate` — when validation reveals design-level concerns that need adversarial review.
25
+
26
+ ## Source
27
+
28
+ - `../../.claude/skills/judgment-day/SKILL.md`
@@ -0,0 +1,99 @@
1
+ # AKILI Drift Audit Report
2
+
3
+ - **Date of Audit:** 2026-07-19
4
+ - **Code Graph Used:** Yes (`.codegraph/` exists; config reviewed)
5
+ - **Overall Conformance Score:** 82%
6
+
7
+ ## Executive Summary
8
+
9
+ This repository (`sdd-jc-methodology`) packages the AKILI-SPECS methodology itself — it is not a project that *uses* AKILI. Therefore, the standard project-level specs (`docs/prd.md`, `docs/ux-ui/design.md`, `docs/trd/trd.md`, `docs/specs/`) do not exist and are not expected.
10
+
11
+ The audit was adapted to evaluate **internal consistency**: whether the README, AGENTS.md, CLAUDE.md, docs hub, CHANGELOG, and `package.json` accurately describe the actual commands, skills, templates, scripts, and structure present in the repository.
12
+
13
+ **Key findings:** one fully-implemented command (`/akili-audit`) is missing from all major documentation indexes, one skill (`judgment-day`) is absent from the skills inventory, and a plan document retains a pre-rebranding filename.
14
+
15
+ ## Identified Discrepancies
16
+
17
+ ### :red_circle: High Priority (Breaking/Critical)
18
+
19
+ - **`/akili-audit` command exists but is undocumented in main references:**
20
+ The command file `.claude/commands/akili-audit.md` has existed since v0.4.0 and is referenced by `AGENTS.md`, `docs/flow.md`, `docs/model-routing.md`, and the CHANGELOG. However, it is completely absent from every user-facing index:
21
+ - **Affected Spec File (README):** [README.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/README.md)
22
+ - Missing from "Contents" section (line ~67-108, command list)
23
+ - Missing from "Command Map" table (line ~497-506)
24
+ - Missing from "Start Here" flow (line ~469-479)
25
+ - Missing from "Auxiliary commands" section (line ~677-684)
26
+ - **Affected Spec File (docs/commands/README.md):** [docs/commands/README.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/docs/commands/README.md)
27
+ - Missing from "Command Map" table (line 7-16)
28
+ - Missing from "Source Files" table (line 34-43)
29
+ - Missing from "Normal Sequence" flow (line 20-28)
30
+ - **Affected Spec File (docs/README.md):** [docs/README.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/docs/README.md)
31
+ - Missing from "Quick Flow" section (line 19-27)
32
+ - **Missing doc page:** `docs/commands/akili-audit.md` does not exist (every other command has one)
33
+ - **Remediation:** Add `/akili-audit` to all four indexes above and create `docs/commands/akili-audit.md` following the same format as the other command reference pages.
34
+
35
+ ### :yellow_circle: Medium Priority (Inconsistencies/Gaps)
36
+
37
+ - **`judgment-day` skill exists but is missing from skills inventory:**
38
+ The skill `.claude/skills/judgment-day/SKILL.md` has existed since v0.9.0 and is referenced by `/akili-specify` and the README's "Methodology Contract" section. However:
39
+ - **Affected Spec File (README):** [README.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/README.md)
40
+ - Missing from "Contents" skills list (line ~76-99)
41
+ - **Affected Spec File (AGENTS.md):** [AGENTS.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/AGENTS.md)
42
+ - Not listed in "Skill Usage" section
43
+ - **Affected Spec File (CLAUDE.md):** [CLAUDE.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/CLAUDE.md)
44
+ - Not listed in "Skill Usage" section
45
+ - **Missing doc page:** `docs/skills/judgment-day.md` does not exist
46
+ - **Remediation:** Add `judgment-day` to the README skills list, AGENTS.md skill usage, CLAUDE.md skill usage, and create `docs/skills/judgment-day.md`.
47
+
48
+ - **Plan document filename retains pre-rebranding "sdd" name:**
49
+ - **Affected Code File:** [docs/plans/2026-05-26-multi-agent-sdd-orchestration-design.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/docs/plans/2026-05-26-multi-agent-sdd-orchestration-design.md)
50
+ - **Affected Spec File (CHANGELOG):** [CHANGELOG.md](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/CHANGELOG.md) line 158 references `docs/plans/2026-05-26-multi-agent-akili-orchestration-design.md`
51
+ - The v2.0.0 rebranding changed all `/sdd-*` references to `/akili-*`, but this file was not renamed.
52
+ - **Remediation:** Rename to `2026-05-26-multi-agent-akili-orchestration-design.md` or update the CHANGELOG entry to match the actual filename.
53
+
54
+ ### :green_circle: Low Priority (Style/Cleanups)
55
+
56
+ - **`.antigravitycli/` directory contains an undocumented UUID-named JSON file:**
57
+ - **Affected Code File:** [.antigravitycli/a20c06f4-5c78-46f1-9ae8-f79bd4313512.json](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/.antigravitycli/a20c06f4-5c78-46f1-9ae8-f79bd4313512.json)
58
+ - Not referenced in README, AGENTS.md, CLAUDE.md, or `.gitignore`.
59
+ - Likely a local artifact from Google Antigravity IDE that should not be committed.
60
+ - **Remediation:** Add `.antigravitycli/` to `.gitignore` or document its purpose. Remove the UUID file if it is a local artifact.
61
+
62
+ - **CodeGraph config is over-provisioned for this repository:**
63
+ - **Affected Code File:** [.codegraph/config.json](file:///Users/jcadavid/Desktop/DEV/Desarrollos/sdd-jc-methodology/.codegraph/config.json)
64
+ - The `include` array lists 20+ language extensions (TypeScript, Go, Rust, Java, C#, Swift, Kotlin, Dart, etc.) but the repository only contains JavaScript (`bin/akili.js`, `scripts/*.js`) and Python (`scripts/gsc_verify.py`).
65
+ - Not an error, but unnecessarily broad for the repo's actual content.
66
+ - **Remediation:** Narrow `include` to `**/*.js`, `**/*.py`, and `**/*.md` for faster indexing.
67
+
68
+ - **`package.json` `files` field omits release scripts:**
69
+ - `scripts/release.js` and `scripts/release-status.js` are not in the `files` array.
70
+ - This is **correct behavior** (they are development-only tools, not needed by end users), but worth noting for completeness.
71
+ - **Remediation:** No action needed.
72
+
73
+ ## Conformance Matrix
74
+
75
+ | Spec Section | Code Reality Status | Alignment Status | Notes |
76
+ | :--- | :--- | :--- | :--- |
77
+ | Commands (`.claude/commands/`) | 9 commands exist | Drifted | `/akili-audit` exists but missing from README, docs/commands/README, and docs/README Quick Flow |
78
+ | Skills (`.claude/skills/`) | 25 skills exist | Drifted | `judgment-day` missing from README skills list, AGENTS.md, and CLAUDE.md skill usage sections |
79
+ | Templates (`.claude/templates/`) | 3 templates (leader, implementer, reviewer) | Aligned | All documented correctly in README and docs |
80
+ | CLI (`bin/akili.js`) | Installer exists and works | Aligned | Documented in README, docs/cli.md, and package.json |
81
+ | Scripts (`scripts/`) | 4 scripts exist | Aligned | `release.js`, `release-status.js`, `parse_tests.js`, `gsc_verify.py` all accounted for |
82
+ | Documentation Hub (`docs/`) | Flow, CLI, Commands, Skills, Model Routing, OpenSpec | Drifted | Missing `docs/commands/akili-audit.md` and `docs/skills/judgment-day.md` |
83
+ | Agent Guides (CLAUDE.md + AGENTS.md) | Root guides exist | Drifted | Both reference `/akili-audit` but skill usage sections omit `judgment-day` |
84
+ | Package Metadata (`package.json`) | v2.3.0, files array, scripts | Aligned | `files` array correctly covers all distributable content |
85
+ | CHANGELOG | Comprehensive history | Minor Drift | Plan document filename mismatch (sdd vs akili) |
86
+ | GitHub Actions | `release-status.yml` workflow | Aligned | Matches `npm run release:status` documented in AGENTS.md |
87
+ | CodeGraph Config | `.codegraph/config.json` | Aligned | Functional but over-provisioned |
88
+
89
+ ## Recommended Next Steps
90
+
91
+ 1. **Update README.md** — Add `/akili-audit` to the Contents list, Command Map table, and Auxiliary commands section.
92
+ 2. **Update docs/commands/README.md** — Add `/akili-audit` to the Command Map, Normal Sequence, and Source Files tables.
93
+ 3. **Create `docs/commands/akili-audit.md`** — Write a command reference page following the format of existing pages (e.g., `akili-seo.md`).
94
+ 4. **Update docs/README.md** — Add `/akili-audit` to the Quick Flow section.
95
+ 5. **Add `judgment-day` to skills inventories** — README Contents list, AGENTS.md Skill Usage, CLAUDE.md Skill Usage.
96
+ 6. **Create `docs/skills/judgment-day.md`** — Write a skill reference page following the format of existing pages.
97
+ 7. **Rename or reconcile plan document** — Either rename `2026-05-26-multi-agent-sdd-orchestration-design.md` to use `akili`, or update the CHANGELOG entry.
98
+ 8. **Add `.antigravitycli/` to `.gitignore`** — Prevent local IDE artifacts from being committed.
99
+ 9. **Optional: Narrow CodeGraph config** — Reduce `include` patterns to match the repo's actual languages.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akili-specs",
3
- "version": "2.2.1",
3
+ "version": "2.4.0",
4
4
  "description": "Portable AKILI-SPECS methodology commands and skills for AI-assisted development.",
5
5
  "homepage": "https://github.com/JuankCadavid/akili-specs#readme",
6
6
  "repository": {