akili-specs 2.2.2 → 2.4.1

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
@@ -6,9 +6,30 @@ The format is inspired by Keep a Changelog and the repository follows semantic v
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### Notes
10
+
11
+ - No unreleased changes yet.
12
+
13
+ ## [2.4.1] - 2026-07-19
14
+
9
15
  ### Fixed
10
- - 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`).
16
+ - **`akili update` now updates the npm package:** Previously `akili update` only reinstalled files from the already-installed version. Now it detects the installation type (global, local, or npx), runs `npm install -g akili-specs@latest` or `npm install akili-specs@latest` accordingly, and then reinstalls files with `--force`.
17
+ ## [2.4.0] - 2026-07-19
18
+
19
+ ### Added
20
+ - **`/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.
11
21
 
22
+ ### Fixed
23
+ - **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.
24
+ - **`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.
25
+ - **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.
26
+ ## [2.3.0] - 2026-07-19
27
+
28
+ ### Added
29
+ - **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.
30
+
31
+ ### Fixed
32
+ - 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`).
12
33
  ## [2.2.2] - 2026-07-19
13
34
 
14
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`
@@ -503,6 +506,8 @@ See the full [Command Reference](docs/commands/README.md) for detailed pages per
503
506
  | `/akili-test <spec-path>` | Adding or running test evidence | `test-report.md` with requirement-to-test traceability |
504
507
  | `/akili-validate <spec-path>` | Checking implementation against the spec | `validation-report.md` with pass, warning, failure, and remediation items |
505
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 |
506
511
  | `/akili-seo <site-domain>` | Auditing deployed SEO and Search Console state | `seo-setup-report.md`, `seo-audit-report.md` |
507
512
 
508
513
  ## How To Choose The Right Depth
@@ -676,6 +681,10 @@ See [OpenSpec Comparison](docs/openspec-comparison.md) for the current AKILI com
676
681
 
677
682
  ### Auxiliary commands
678
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
+
679
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.
680
689
 
681
690
  Dependencies bundled with this repo:
package/bin/akili.js CHANGED
@@ -5,6 +5,8 @@ const os = require("os");
5
5
  const path = require("path");
6
6
  const { parseArgs } = require("util");
7
7
 
8
+ const { execSync } = require("child_process");
9
+
8
10
  const PACKAGE_ROOT = path.resolve(__dirname, "..");
9
11
  const SOURCE_CLAUDE = path.join(PACKAGE_ROOT, ".claude");
10
12
  const SOURCE_COMMANDS = path.join(SOURCE_CLAUDE, "commands");
@@ -76,7 +78,7 @@ Usage:
76
78
 
77
79
  Commands:
78
80
  install Install commands, skills, and helper resources
79
- update Reinstall commands, skills, and helper resources
81
+ update Update npm package to latest version and reinstall files
80
82
  doctor Check whether expected files are installed
81
83
  list List packaged commands, skills, and helper resources
82
84
  help Show this help
@@ -382,6 +384,52 @@ function installTool(tool, args) {
382
384
  return { installed, skipped };
383
385
  }
384
386
 
387
+ function detectInstallType() {
388
+ try {
389
+ const globalList = execSync("npm list -g akili-specs --depth=0 2>/dev/null", { encoding: "utf8" });
390
+ if (globalList.includes("akili-specs")) return "global";
391
+ } catch (e) {}
392
+
393
+ try {
394
+ const localList = execSync("npm list akili-specs --depth=0 2>/dev/null", { encoding: "utf8" });
395
+ if (localList.includes("akili-specs")) return "local";
396
+ } catch (e) {}
397
+
398
+ return "npx";
399
+ }
400
+
401
+ function runUpdate(args) {
402
+ const installType = detectInstallType();
403
+
404
+ console.log(`\n${colors.cyan}Detected installation type: ${installType}${colors.reset}`);
405
+
406
+ if (installType === "npx") {
407
+ console.log(`\n${colors.yellow}You are running via npx. No persistent installation to update.${colors.reset}`);
408
+ console.log(`To install globally: ${colors.cyan}npm install -g akili-specs${colors.reset}`);
409
+ console.log(`To install locally: ${colors.cyan}npm install akili-specs${colors.reset}`);
410
+ return;
411
+ }
412
+
413
+ console.log(`\n${colors.yellow}Updating npm package...${colors.reset}`);
414
+
415
+ try {
416
+ if (installType === "global") {
417
+ execSync("npm install -g akili-specs@latest", { stdio: "inherit" });
418
+ } else {
419
+ execSync("npm install akili-specs@latest", { stdio: "inherit" });
420
+ }
421
+
422
+ console.log(`\n${colors.green}npm package updated successfully.${colors.reset}`);
423
+ } catch (e) {
424
+ console.error(`\n${colors.red}Failed to update npm package.${colors.reset}`);
425
+ process.exit(1);
426
+ }
427
+
428
+ console.log(`\n${colors.yellow}Reinstalling files with --force...${colors.reset}`);
429
+ args.force = true;
430
+ runInstall(args);
431
+ }
432
+
385
433
  function runInstall(args) {
386
434
  let installed = 0;
387
435
  let skipped = 0;
@@ -522,6 +570,59 @@ function runDoctor(args) {
522
570
  }
523
571
 
524
572
  const readline = require("readline/promises");
573
+ const https = require("https");
574
+ const { version: currentVersion } = require("../package.json");
575
+
576
+ function checkForUpdates() {
577
+ return new Promise((resolve) => {
578
+ const req = https.get("https://registry.npmjs.org/-/package/akili-specs/dist-tags", { timeout: 1500 }, (res) => {
579
+ if (res.statusCode !== 200) return resolve();
580
+ let data = "";
581
+ res.on("data", (chunk) => (data += chunk));
582
+ res.on("end", () => {
583
+ try {
584
+ const tags = JSON.parse(data);
585
+ const latestVersion = tags.latest;
586
+ if (latestVersion && latestVersion !== currentVersion) {
587
+ // simple semver check
588
+ const isNewer = latestVersion.localeCompare(currentVersion, undefined, { numeric: true, sensitivity: 'base' }) > 0;
589
+ if (isNewer) {
590
+ const border = `╭─────────────────────────────────────────────────────────────╮`;
591
+ const emptyLine = `│ │`;
592
+ const msgLine1 = `│ ${colors.yellow}Update available!${colors.reset} ${colors.red}${currentVersion}${colors.reset} → ${colors.green}${latestVersion}${colors.reset}`;
593
+ const msgLine2 = `│ Run ${colors.cyan}npm install -g akili-specs${colors.reset} to update.`;
594
+
595
+ // Pad to keep the box neat (very rudimentary padding, assumes specific length of colors)
596
+ // Just manually aligning for aesthetic since console length with escape codes is tricky
597
+ console.log(`\n${colors.yellow}${border}`);
598
+ console.log(`${emptyLine}`);
599
+ // 61 total chars inside.
600
+ // "Update available! x.x.x -> y.y.y"
601
+ const rawStr1 = ` Update available! ${currentVersion} -> ${latestVersion}`;
602
+ const pad1 = " ".repeat(Math.max(0, 61 - rawStr1.length));
603
+ console.log(`│ ${colors.yellow}Update available!${colors.reset} ${colors.red}${currentVersion}${colors.reset} → ${colors.green}${latestVersion}${colors.reset}${pad1}│`);
604
+
605
+ const rawStr2 = ` Run npm install -g akili-specs to update.`;
606
+ const pad2 = " ".repeat(Math.max(0, 61 - rawStr2.length));
607
+ console.log(`│ Run ${colors.cyan}npm install -g akili-specs${colors.reset} to update.${pad2}│`);
608
+ console.log(`${emptyLine}`);
609
+ console.log(`╰─────────────────────────────────────────────────────────────╯${colors.reset}\n`);
610
+ }
611
+ }
612
+ resolve();
613
+ } catch (e) {
614
+ resolve();
615
+ }
616
+ });
617
+ });
618
+
619
+ req.on("error", () => resolve());
620
+ req.on("timeout", () => {
621
+ req.destroy();
622
+ resolve();
623
+ });
624
+ });
625
+ }
525
626
 
526
627
  async function runInteractiveInit() {
527
628
  const rl = readline.createInterface({
@@ -587,6 +688,8 @@ async function runInteractiveInit() {
587
688
  }
588
689
 
589
690
  async function main() {
691
+ await checkForUpdates();
692
+
590
693
  const args = getArgs();
591
694
 
592
695
  if (args.command !== "help" && args.command !== "list" && args.command !== "init") {
@@ -601,9 +704,11 @@ async function main() {
601
704
 
602
705
  switch (args.command) {
603
706
  case "install":
604
- case "update":
605
707
  runInstall(args);
606
708
  break;
709
+ case "update":
710
+ runUpdate(args);
711
+ break;
607
712
  case "doctor":
608
713
  runDoctor(args);
609
714
  break;
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
@@ -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`
@@ -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.2",
3
+ "version": "2.4.1",
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": {