ai-devkit 0.14.0 → 0.16.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.
Files changed (95) hide show
  1. package/README.md +6 -0
  2. package/dist/cli.js +10 -1
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commands/agent.d.ts.map +1 -1
  5. package/dist/commands/agent.js +43 -17
  6. package/dist/commands/agent.js.map +1 -1
  7. package/dist/commands/install.d.ts +7 -0
  8. package/dist/commands/install.d.ts.map +1 -0
  9. package/dist/commands/install.js +74 -0
  10. package/dist/commands/install.js.map +1 -0
  11. package/dist/commands/phase.js +1 -1
  12. package/dist/commands/phase.js.map +1 -1
  13. package/dist/lib/Config.d.ts +3 -1
  14. package/dist/lib/Config.d.ts.map +1 -1
  15. package/dist/lib/Config.js +39 -6
  16. package/dist/lib/Config.js.map +1 -1
  17. package/dist/lib/SkillManager.d.ts.map +1 -1
  18. package/dist/lib/SkillManager.js +8 -2
  19. package/dist/lib/SkillManager.js.map +1 -1
  20. package/dist/lib/TemplateManager.d.ts.map +1 -1
  21. package/dist/lib/TemplateManager.js +1 -12
  22. package/dist/lib/TemplateManager.js.map +1 -1
  23. package/dist/services/config/config.service.d.ts +6 -0
  24. package/dist/services/config/config.service.d.ts.map +1 -0
  25. package/dist/services/config/config.service.js +55 -0
  26. package/dist/services/config/config.service.js.map +1 -0
  27. package/dist/services/install/install.service.d.ts +19 -0
  28. package/dist/services/install/install.service.d.ts.map +1 -0
  29. package/dist/services/install/install.service.js +125 -0
  30. package/dist/services/install/install.service.js.map +1 -0
  31. package/dist/templates/commands/capture-knowledge.md +7 -5
  32. package/dist/templates/commands/check-implementation.md +7 -4
  33. package/dist/templates/commands/code-review.md +7 -4
  34. package/dist/templates/commands/debug.md +7 -4
  35. package/dist/templates/commands/execute-plan.md +7 -4
  36. package/dist/templates/commands/new-requirement.md +7 -6
  37. package/dist/templates/commands/remember.md +6 -4
  38. package/dist/templates/commands/review-design.md +13 -10
  39. package/dist/templates/commands/review-requirements.md +11 -8
  40. package/dist/templates/commands/simplify-implementation.md +6 -3
  41. package/dist/templates/commands/update-planning.md +6 -3
  42. package/dist/templates/commands/writing-test.md +8 -5
  43. package/dist/templates/templates/commands/capture-knowledge.md +7 -5
  44. package/dist/templates/templates/commands/check-implementation.md +7 -4
  45. package/dist/templates/templates/commands/code-review.md +7 -4
  46. package/dist/templates/templates/commands/debug.md +7 -4
  47. package/dist/templates/templates/commands/execute-plan.md +7 -4
  48. package/dist/templates/templates/commands/new-requirement.md +7 -6
  49. package/dist/templates/templates/commands/remember.md +6 -4
  50. package/dist/templates/templates/commands/review-design.md +13 -10
  51. package/dist/templates/templates/commands/review-requirements.md +11 -8
  52. package/dist/templates/templates/commands/simplify-implementation.md +6 -3
  53. package/dist/templates/templates/commands/update-planning.md +6 -3
  54. package/dist/templates/templates/commands/writing-test.md +8 -5
  55. package/dist/types.d.ts +6 -1
  56. package/dist/types.d.ts.map +1 -1
  57. package/dist/types.js.map +1 -1
  58. package/dist/util/config.d.ts +8 -0
  59. package/dist/util/config.d.ts.map +1 -0
  60. package/dist/util/config.js +100 -0
  61. package/dist/util/config.js.map +1 -0
  62. package/dist/util/process.d.ts +1 -1
  63. package/dist/util/process.d.ts.map +1 -1
  64. package/package.json +5 -3
  65. package/templates/commands/capture-knowledge.md +7 -5
  66. package/templates/commands/check-implementation.md +7 -4
  67. package/templates/commands/code-review.md +7 -4
  68. package/templates/commands/debug.md +7 -4
  69. package/templates/commands/execute-plan.md +7 -4
  70. package/templates/commands/new-requirement.md +7 -6
  71. package/templates/commands/remember.md +6 -4
  72. package/templates/commands/review-design.md +13 -10
  73. package/templates/commands/review-requirements.md +11 -8
  74. package/templates/commands/simplify-implementation.md +6 -3
  75. package/templates/commands/update-planning.md +6 -3
  76. package/templates/commands/writing-test.md +8 -5
  77. package/dist/lib/AgentManager.d.ts +0 -104
  78. package/dist/lib/AgentManager.d.ts.map +0 -1
  79. package/dist/lib/AgentManager.js +0 -185
  80. package/dist/lib/AgentManager.js.map +0 -1
  81. package/dist/lib/TerminalFocusManager.d.ts +0 -22
  82. package/dist/lib/TerminalFocusManager.d.ts.map +0 -1
  83. package/dist/lib/TerminalFocusManager.js +0 -195
  84. package/dist/lib/TerminalFocusManager.js.map +0 -1
  85. package/dist/lib/adapters/AgentAdapter.d.ts +0 -92
  86. package/dist/lib/adapters/AgentAdapter.d.ts.map +0 -1
  87. package/dist/lib/adapters/AgentAdapter.js +0 -29
  88. package/dist/lib/adapters/AgentAdapter.js.map +0 -1
  89. package/dist/lib/adapters/ClaudeCodeAdapter.d.ts +0 -66
  90. package/dist/lib/adapters/ClaudeCodeAdapter.d.ts.map +0 -1
  91. package/dist/lib/adapters/ClaudeCodeAdapter.js +0 -306
  92. package/dist/lib/adapters/ClaudeCodeAdapter.js.map +0 -1
  93. package/dist/templates/env/base.md +0 -101
  94. package/dist/templates/templates/env/base.md +0 -101
  95. package/templates/env/base.md +0 -101
@@ -1 +1 @@
1
- {"version":3,"file":"TemplateManager.js","sourceRoot":"","sources":["../../src/lib/TemplateManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,2CAA6B;AAC7B,uCAAyB;AACzB,8DAAiC;AAEjC,qCAA6C;AAE7C,MAAa,eAAe;IAI1B,YAAY,YAAoB,OAAO,CAAC,GAAG,EAAE;QAC3C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;QAC5D,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,KAAY;QAClC,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,EAAE,GAAG,KAAK,KAAK,CAAC,CAAC;QACzE,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,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ED;;OAEG;IACH,KAAK,CAAC,wBAAwB,CAAC,OAAwB;QACrD,MAAM,GAAG,GAAG,IAAA,oBAAc,EAAC,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC;YACnC,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,OAAO,GAAG,EAAE,CAAC,OAAO,EAAE,CAAC;QAC7B,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;QAElE,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC;YAC5C,OAAO,KAAK,CAAC;QACf,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAChD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5D,CAAC;CACF;AAxPD,0CAwPC"}
@@ -0,0 +1,6 @@
1
+ export interface LoadedConfigFile {
2
+ configPath: string;
3
+ data: unknown;
4
+ }
5
+ export declare function loadConfigFile(configPath: string): Promise<LoadedConfigFile>;
6
+ //# sourceMappingURL=config.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.service.d.ts","sourceRoot":"","sources":["../../../src/services/config/config.service.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;CACf;AAED,wBAAsB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAkBlF"}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.loadConfigFile = loadConfigFile;
37
+ const fs = __importStar(require("fs-extra"));
38
+ const path = __importStar(require("path"));
39
+ async function loadConfigFile(configPath) {
40
+ const resolvedPath = path.resolve(configPath);
41
+ if (!await fs.pathExists(resolvedPath)) {
42
+ throw new Error(`Config file not found: ${resolvedPath}`);
43
+ }
44
+ try {
45
+ const data = await fs.readJson(resolvedPath);
46
+ return {
47
+ configPath: resolvedPath,
48
+ data
49
+ };
50
+ }
51
+ catch (error) {
52
+ throw new Error(`Invalid JSON in config file ${resolvedPath}: ${error instanceof Error ? error.message : String(error)}`);
53
+ }
54
+ }
55
+ //# sourceMappingURL=config.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.service.js","sourceRoot":"","sources":["../../../src/services/config/config.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wCAkBC;AA1BD,6CAA+B;AAC/B,2CAA6B;AAOtB,KAAK,UAAU,cAAc,CAAC,UAAkB;IACrD,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAE9C,IAAI,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,CAAC;QACvC,MAAM,IAAI,KAAK,CAAC,0BAA0B,YAAY,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QAC7C,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,IAAI;SACL,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,KAAK,CACb,+BAA+B,YAAY,KAAK,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CACzG,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { InstallConfigData } from '../../util/config';
2
+ export interface InstallRunOptions {
3
+ overwrite?: boolean;
4
+ }
5
+ interface InstallSectionReport {
6
+ installed: number;
7
+ skipped: number;
8
+ failed: number;
9
+ }
10
+ export interface InstallReport {
11
+ environments: InstallSectionReport;
12
+ phases: InstallSectionReport;
13
+ skills: InstallSectionReport;
14
+ warnings: string[];
15
+ }
16
+ export declare function reconcileAndInstall(config: InstallConfigData, options?: InstallRunOptions): Promise<InstallReport>;
17
+ export declare function getInstallExitCode(report: InstallReport, options?: InstallRunOptions): number;
18
+ export {};
19
+ //# sourceMappingURL=install.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.service.d.ts","sourceRoot":"","sources":["../../../src/services/install/install.service.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,oBAAoB;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,oBAAoB,CAAC;IACnC,MAAM,EAAE,oBAAoB,CAAC;IAC7B,MAAM,EAAE,oBAAoB,CAAC;IAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,iBAAiB,EACzB,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,aAAa,CAAC,CAwFxB;AAED,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,GAAE,iBAAsB,GAAG,MAAM,CASjG"}
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.reconcileAndInstall = reconcileAndInstall;
7
+ exports.getInstallExitCode = getInstallExitCode;
8
+ const inquirer_1 = __importDefault(require("inquirer"));
9
+ const Config_1 = require("../../lib/Config");
10
+ const EnvironmentSelector_1 = require("../../lib/EnvironmentSelector");
11
+ const SkillManager_1 = require("../../lib/SkillManager");
12
+ const TemplateManager_1 = require("../../lib/TemplateManager");
13
+ async function reconcileAndInstall(config, options = {}) {
14
+ const configManager = new Config_1.ConfigManager();
15
+ const templateManager = new TemplateManager_1.TemplateManager();
16
+ const skillManager = new SkillManager_1.SkillManager(configManager, new EnvironmentSelector_1.EnvironmentSelector());
17
+ const report = {
18
+ environments: { installed: 0, skipped: 0, failed: 0 },
19
+ phases: { installed: 0, skipped: 0, failed: 0 },
20
+ skills: { installed: 0, skipped: 0, failed: 0 },
21
+ warnings: []
22
+ };
23
+ const hasConflicts = await hasOverwriteConflicts(templateManager, config);
24
+ const shouldOverwrite = await resolveOverwritePolicy(options, hasConflicts);
25
+ let projectConfig = await configManager.read();
26
+ if (!projectConfig) {
27
+ await configManager.create();
28
+ projectConfig = await configManager.read();
29
+ }
30
+ if (!projectConfig) {
31
+ throw new Error('Failed to initialize project config for install command.');
32
+ }
33
+ const successfulEnvironments = [];
34
+ const successfulPhases = [];
35
+ const successfulSkills = [];
36
+ for (const envCode of config.environments) {
37
+ try {
38
+ const exists = await templateManager.checkEnvironmentExists(envCode);
39
+ if (exists && !shouldOverwrite) {
40
+ report.environments.skipped += 1;
41
+ continue;
42
+ }
43
+ await templateManager.setupMultipleEnvironments([envCode]);
44
+ report.environments.installed += 1;
45
+ successfulEnvironments.push(envCode);
46
+ }
47
+ catch (error) {
48
+ report.environments.failed += 1;
49
+ report.warnings.push(`Environment ${envCode} failed: ${error instanceof Error ? error.message : String(error)}`);
50
+ }
51
+ }
52
+ for (const phase of config.phases) {
53
+ try {
54
+ const exists = await templateManager.fileExists(phase);
55
+ if (exists && !shouldOverwrite) {
56
+ report.phases.skipped += 1;
57
+ continue;
58
+ }
59
+ await templateManager.copyPhaseTemplate(phase);
60
+ await configManager.addPhase(phase);
61
+ report.phases.installed += 1;
62
+ successfulPhases.push(phase);
63
+ }
64
+ catch (error) {
65
+ report.phases.failed += 1;
66
+ report.warnings.push(`Phase ${phase} failed: ${error instanceof Error ? error.message : String(error)}`);
67
+ }
68
+ }
69
+ for (const skill of config.skills) {
70
+ try {
71
+ await skillManager.addSkill(skill.registry, skill.name);
72
+ report.skills.installed += 1;
73
+ successfulSkills.push(skill);
74
+ }
75
+ catch (error) {
76
+ report.skills.failed += 1;
77
+ report.warnings.push(`Skill ${skill.registry}/${skill.name} failed: ${error instanceof Error ? error.message : String(error)}`);
78
+ }
79
+ }
80
+ await configManager.update({
81
+ environments: successfulEnvironments,
82
+ phases: successfulPhases,
83
+ skills: successfulSkills
84
+ });
85
+ return report;
86
+ }
87
+ function getInstallExitCode(report, options = {}) {
88
+ void options;
89
+ const requiredFailures = report.environments.failed + report.phases.failed;
90
+ if (requiredFailures > 0) {
91
+ return 1;
92
+ }
93
+ return 0;
94
+ }
95
+ async function hasOverwriteConflicts(templateManager, config) {
96
+ for (const env of config.environments) {
97
+ if (await templateManager.checkEnvironmentExists(env)) {
98
+ return true;
99
+ }
100
+ }
101
+ for (const phase of config.phases) {
102
+ if (await templateManager.fileExists(phase)) {
103
+ return true;
104
+ }
105
+ }
106
+ return false;
107
+ }
108
+ async function resolveOverwritePolicy(options, hasConflicts) {
109
+ if (!hasConflicts) {
110
+ return false;
111
+ }
112
+ if (options.overwrite) {
113
+ return true;
114
+ }
115
+ const answer = await inquirer_1.default.prompt([
116
+ {
117
+ type: 'confirm',
118
+ name: 'overwrite',
119
+ message: 'Existing install artifacts were found. Overwrite them?',
120
+ default: false
121
+ }
122
+ ]);
123
+ return Boolean(answer.overwrite);
124
+ }
125
+ //# sourceMappingURL=install.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"install.service.js","sourceRoot":"","sources":["../../../src/services/install/install.service.ts"],"names":[],"mappings":";;;;;AAwBA,kDA2FC;AAED,gDASC;AA9HD,wDAAgC;AAChC,6CAAiD;AACjD,uEAAoE;AACpE,yDAAsD;AACtD,+DAA4D;AAoBrD,KAAK,UAAU,mBAAmB,CACvC,MAAyB,EACzB,UAA6B,EAAE;IAE/B,MAAM,aAAa,GAAG,IAAI,sBAAa,EAAE,CAAC;IAC1C,MAAM,eAAe,GAAG,IAAI,iCAAe,EAAE,CAAC;IAC9C,MAAM,YAAY,GAAG,IAAI,2BAAY,CAAC,aAAa,EAAE,IAAI,yCAAmB,EAAE,CAAC,CAAC;IAEhF,MAAM,MAAM,GAAkB;QAC5B,YAAY,EAAE,EAAE,SAAS,EAAE,C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,CAAC;IAED,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;QAClC,IAAI,MAAM,eAAe,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;YAC5C,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,KAAK,UAAU,sBAAsB,CACnC,OAA0B,EAC1B,YAAqB;IAErB,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAC;QACnC;YACE,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,wDAAwD;YACjE,OAAO,EAAE,KAAK;SACf;KACF,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;AACnC,CAAC"}
@@ -5,8 +5,10 @@ description: Document a code entry point in knowledge docs.
5
5
  Guide me through creating a structured understanding of a code entry point and saving it to the knowledge docs.
6
6
 
7
7
  1. **Gather & Validate Entry Point** — If not already provided, ask for: entry point (file, folder, function, API), why it matters (feature, bug, investigation), and desired depth or focus areas. Confirm the entry point exists; if ambiguous or not found, clarify or suggest alternatives.
8
- 2. **Collect Source Context** — Read the primary file/module and summarize purpose, exports, key patterns. For folders: list structure, highlight key modules. For functions/APIs: capture signature, parameters, return values, error handling. Extract essential snippets (avoid large dumps).
9
- 3. **Analyze Dependencies** — Build a dependency view up to depth 3, tracking visited nodes to avoid loops. Categorize: imports, function calls, services, external packages. Note external systems or generated code to exclude.
10
- 4. **Synthesize Explanation** — Draft overview (purpose, language, high-level behavior). Detail core logic, execution flow, key patterns. Highlight error handling, performance, security considerations. Identify potential improvements or risks.
11
- 5. **Create Documentation** — Normalize name to kebab-case (`calculateTotalPrice` `calculate-total-price`). Create `docs/ai/implementation/knowledge-{name}.md` with sections: Overview, Implementation Details, Dependencies, Visual Diagrams, Additional Insights, Metadata, Next Steps. Include mermaid diagrams when they clarify flows or relationships. Add metadata (analysis date, depth, files touched).
12
- 6. **Review & Next Actions** — Summarize key insights and open questions. Suggest related areas for deeper dives. Confirm file path and remind to commit.
8
+ 2. **Use Memory for Context** — Search memory for prior knowledge about this module/domain: `npx ai-devkit@latest memory search --query "<entry point or subsystem>"`.
9
+ 3. **Collect Source Context** — Read the primary file/module and summarize purpose, exports, key patterns. For folders: list structure, highlight key modules. For functions/APIs: capture signature, parameters, return values, error handling. Extract essential snippets (avoid large dumps).
10
+ 4. **Analyze Dependencies** — Build a dependency view up to depth 3, tracking visited nodes to avoid loops. Categorize: imports, function calls, services, external packages. Note external systems or generated code to exclude.
11
+ 5. **Synthesize Explanation** — Draft overview (purpose, language, high-level behavior). Detail core logic, execution flow, key patterns. Highlight error handling, performance, security considerations. Identify potential improvements or risks.
12
+ 6. **Create Documentation** — Normalize name to kebab-case (`calculateTotalPrice` → `calculate-total-price`). Create `docs/ai/implementation/knowledge-{name}.md` with sections: Overview, Implementation Details, Dependencies, Visual Diagrams, Additional Insights, Metadata, Next Steps. Include mermaid diagrams when they clarify flows or relationships. Add metadata (analysis date, depth, files touched).
13
+ 7. **Store Reusable Knowledge** — If insights should persist across sessions, store them using `npx ai-devkit@latest memory store ...`.
14
+ 8. **Review & Next Actions** — Summarize key insights and open questions. Suggest related areas for deeper dives, confirm file path, and suggest `/remember` for key long-lived rules.
@@ -2,9 +2,12 @@
2
2
  description: Compare implementation with design and requirements docs to ensure alignment.
3
3
  ---
4
4
 
5
- Compare the current implementation with the design in docs/ai/design/ and requirements in docs/ai/requirements/.
5
+ Compare the current implementation with the design in `docs/ai/design/` and requirements in `docs/ai/requirements/`.
6
6
 
7
7
  1. If not already provided, ask for: feature/branch description, list of modified files, relevant design doc(s), and any known constraints or assumptions.
8
- 2. For each design doc: summarize key architectural decisions and constraints, highlight components, interfaces, and data flows that must be respected.
9
- 3. File-by-file comparison: confirm implementation matches design intent, note deviations or missing pieces, flag logic gaps, edge cases, or security issues, suggest simplifications or refactors, and identify missing tests or documentation updates.
10
- 4. Summarize findings with recommended next steps.
8
+ 2. **Use Memory for Context** Search memory for known constraints and prior decisions before assessing mismatches: `npx ai-devkit@latest memory search --query "<feature implementation alignment>"`.
9
+ 3. For each design doc: summarize key architectural decisions and constraints, highlight components, interfaces, and data flows that must be respected.
10
+ 4. File-by-file comparison: confirm implementation matches design intent, note deviations or missing pieces, flag logic gaps, edge cases, or security issues, suggest simplifications or refactors, and identify missing tests or documentation updates.
11
+ 5. **Store Reusable Knowledge** — Save recurring alignment lessons/patterns with `npx ai-devkit@latest memory store ...`.
12
+ 6. Summarize findings with recommended next steps.
13
+ 7. **Next Command Guidance** — If major design issues are found, go back to `/review-design` or `/execute-plan`; if aligned, continue to `/writing-test`.
@@ -5,7 +5,10 @@ description: Pre-push code review against design docs.
5
5
  Perform a local code review **before** pushing changes.
6
6
 
7
7
  1. **Gather Context** — If not already provided, ask for: feature/branch description, list of modified files, relevant design doc(s) (e.g., `docs/ai/design/feature-{name}.md`), known constraints or risky areas, and which tests have been run. Also review the latest diff via `git status` and `git diff --stat`.
8
- 2. **Understand Design Alignment** — For each design doc, summarize architectural intent and critical constraints.
9
- 3. **File-by-File Review** — For every modified file: check alignment with design/requirements and flag deviations, spot logic issues/edge cases/redundant code, flag security concerns (input validation, secrets, auth, data handling), check error handling/performance/observability, and identify missing or outdated tests.
10
- 4. **Cross-Cutting Concerns** — Verify naming consistency and project conventions. Confirm docs/comments updated where behavior changed. Identify missing tests (unit, integration, E2E). Check for needed configuration/migration updates.
11
- 5. **Summarize Findings** — Categorize each finding as **blocking**, **important**, or **nice-to-have** with: file, issue, impact, recommendation, and design reference.
8
+ 2. **Use Memory for Context** — Search memory for project review standards and recurring pitfalls: `npx ai-devkit@latest memory search --query "code review checklist project conventions"`.
9
+ 3. **Understand Design Alignment** — For each design doc, summarize architectural intent and critical constraints.
10
+ 4. **File-by-File Review** — For every modified file: check alignment with design/requirements and flag deviations, spot logic issues/edge cases/redundant code, flag security concerns (input validation, secrets, auth, data handling), check error handling/performance/observability, and identify missing or outdated tests.
11
+ 5. **Cross-Cutting Concerns** — Verify naming consistency and project conventions. Confirm docs/comments updated where behavior changed. Identify missing tests (unit, integration, E2E). Check for needed configuration/migration updates.
12
+ 6. **Store Reusable Knowledge** — Save durable review findings/checklists with `npx ai-devkit@latest memory store ...`.
13
+ 7. **Summarize Findings** — Categorize each finding as **blocking**, **important**, or **nice-to-have** with: file, issue, impact, recommendation, and design reference.
14
+ 8. **Next Command Guidance** — If blocking issues remain, return to `/execute-plan` (code fixes) or `/writing-test` (test gaps); if clean, proceed with push/PR workflow.
@@ -5,7 +5,10 @@ description: Debug an issue with structured root-cause analysis before changing
5
5
  Help me debug an issue. Clarify expectations, identify gaps, and agree on a fix plan before changing code.
6
6
 
7
7
  1. **Gather Context** — If not already provided, ask for: issue description (what is happening vs what should happen), error messages/logs/screenshots, recent related changes or deployments, and scope of impact.
8
- 2. **Clarify Reality vs Expectation** — Restate observed vs expected behavior. Confirm relevant requirements or docs that define the expectation. Define acceptance criteria for the fix.
9
- 3. **Reproduce & Isolate** — Determine reproducibility (always, intermittent, environment-specific). Capture reproduction steps. List suspected components or modules.
10
- 4. **Analyze Potential Causes** — Brainstorm root causes (data, config, code regressions, external dependencies). Gather supporting evidence (logs, metrics, traces). Highlight unknowns needing investigation.
11
- 5. **Resolve** — Present resolution options (quick fix, refactor, rollback, etc.) with pros/cons and risks. Ask which option to pursue. Summarize chosen approach, pre-work, success criteria, and validation steps.
8
+ 2. **Use Memory for Context** — Search memory for similar incidents/fixes before deep investigation: `npx ai-devkit@latest memory search --query "<issue symptoms or error>"`.
9
+ 3. **Clarify Reality vs Expectation** — Restate observed vs expected behavior. Confirm relevant requirements or docs that define the expectation. Define acceptance criteria for the fix.
10
+ 4. **Reproduce & Isolate** — Determine reproducibility (always, intermittent, environment-specific). Capture reproduction steps. List suspected components or modules.
11
+ 5. **Analyze Potential Causes** — Brainstorm root causes (data, config, code regressions, external dependencies). Gather supporting evidence (logs, metrics, traces). Highlight unknowns needing investigation.
12
+ 6. **Resolve** — Present resolution options (quick fix, refactor, rollback, etc.) with pros/cons and risks. Ask which option to pursue. Summarize chosen approach, pre-work, success criteria, and validation steps.
13
+ 7. **Store Reusable Knowledge** — Save root-cause and fix patterns via `npx ai-devkit@latest memory store ...`.
14
+ 8. **Next Command Guidance** — After selecting a fix path, continue with `/execute-plan`; when implemented, use `/check-implementation` and `/writing-test`.
@@ -5,7 +5,10 @@ description: Execute a feature plan task by task.
5
5
  Help me work through a feature plan one task at a time.
6
6
 
7
7
  1. **Gather Context** — If not already provided, ask for: feature name (kebab-case, e.g., `user-authentication`), brief feature/branch description, planning doc path (default `docs/ai/planning/feature-{name}.md`), and any supporting docs (design, requirements, implementation).
8
- 2. **Load & Present Plan** — Read the planning doc and parse task lists (headings + checkboxes). Present an ordered task queue grouped by section, with status: `todo`, `in-progress`, `done`, `blocked`.
9
- 3. **Interactive Task Execution** — For each task in order: display context and full bullet text, reference relevant design/requirements docs, offer to outline sub-steps before starting, prompt for status update (`done`, `in-progress`, `blocked`, `skipped`) with short notes after work, and if blocked record blocker and move to a "Blocked" list.
10
- 4. **Update Planning Doc** — After each status change, generate a markdown snippet to paste back into the planning doc. After each section, ask if new tasks were discovered.
11
- 5. **Session Summary** — Produce a summary: Completed, In Progress (with next steps), Blocked (with blockers), Skipped/Deferred, and New Tasks. Remind to update `docs/ai/planning/feature-{name}.md` and sync related docs if decisions changed.
8
+ 2. **Use Memory for Context** — Search for prior implementation notes/patterns before starting: `npx ai-devkit@latest memory search --query "<feature implementation plan>"`.
9
+ 3. **Load & Present Plan** — Read the planning doc and parse task lists (headings + checkboxes). Present an ordered task queue grouped by section, with status: `todo`, `in-progress`, `done`, `blocked`.
10
+ 4. **Interactive Task Execution** — For each task in order: display context and full bullet text, reference relevant design/requirements docs, offer to outline sub-steps before starting, prompt for status update (`done`, `in-progress`, `blocked`, `skipped`) with short notes after work, and if blocked record blocker and move to a "Blocked" list.
11
+ 5. **Update Planning Doc** — After each completed or status-changed task, run `/update-planning` to keep `docs/ai/planning/feature-{name}.md` accurate.
12
+ 6. **Store Reusable Knowledge** — Save reusable implementation guidance/decisions with `npx ai-devkit@latest memory store ...`.
13
+ 7. **Session Summary** — Produce a summary: Completed, In Progress (with next steps), Blocked (with blockers), Skipped/Deferred, and New Tasks.
14
+ 8. **Next Command Guidance** — Continue `/execute-plan` until plan completion; then run `/check-implementation`.
@@ -5,14 +5,15 @@ description: Scaffold feature documentation from requirements through planning.
5
5
  Guide me through adding a new feature, from requirements documentation to implementation readiness.
6
6
 
7
7
  1. **Capture Requirement** — If not already provided, ask for: feature name (kebab-case, e.g., `user-authentication`), what problem it solves and who will use it, and key user stories.
8
- 2. **Create Feature Documentation Structure** — Copy each template's content (preserving YAML frontmatter and section headings) into feature-specific files:
8
+ 2. **Use Memory for Context** — Before asking repetitive clarification questions, search memory for related decisions or conventions via `npx ai-devkit@latest memory search --query "<feature/topic>"` and reuse relevant context.
9
+ 3. **Create Feature Documentation Structure** — Copy each template's content (preserving YAML frontmatter and section headings) into feature-specific files:
9
10
  - `docs/ai/requirements/README.md` → `docs/ai/requirements/feature-{name}.md`
10
11
  - `docs/ai/design/README.md` → `docs/ai/design/feature-{name}.md`
11
12
  - `docs/ai/planning/README.md` → `docs/ai/planning/feature-{name}.md`
12
13
  - `docs/ai/implementation/README.md` → `docs/ai/implementation/feature-{name}.md`
13
14
  - `docs/ai/testing/README.md` → `docs/ai/testing/feature-{name}.md`
14
- 3. **Requirements Phase** — Fill out `docs/ai/requirements/feature-{name}.md`: problem statement, goals/non-goals, user stories, success criteria, constraints, open questions.
15
- 4. **Design Phase** — Fill out `docs/ai/design/feature-{name}.md`: architecture changes, data models, API/interfaces, components, design decisions, security and performance considerations.
16
- 5. **Planning Phase** — Fill out `docs/ai/planning/feature-{name}.md`: task breakdown with subtasks, dependencies, effort estimates, implementation order, risks.
17
- 6. **Documentation Review** — Run `/review-requirements` and `/review-design` to validate the drafted docs.
18
- 7. **Next Steps** — This command focuses on documentation. When ready to implement, use `/execute-plan`. Generate a PR description covering: summary, requirements doc link, key changes, test status, and a readiness checklist.
15
+ 4. **Requirements Phase** — Fill out `docs/ai/requirements/feature-{name}.md`: problem statement, goals/non-goals, user stories, success criteria, constraints, open questions.
16
+ 5. **Design Phase** — Fill out `docs/ai/design/feature-{name}.md`: architecture changes, data models, API/interfaces, components, design decisions, security and performance considerations.
17
+ 6. **Planning Phase** — Fill out `docs/ai/planning/feature-{name}.md`: task breakdown with subtasks, dependencies, effort estimates, implementation order, risks.
18
+ 7. **Store Reusable Knowledge** — When important conventions or decisions are finalized, store them via `npx ai-devkit@latest memory store --title "<title>" --content "<knowledge>" --tags "<tags>"`.
19
+ 8. **Next Command Guidance** — Run `/review-requirements` first, then `/review-design`. If both pass, continue with `/execute-plan`.
@@ -2,9 +2,11 @@
2
2
  description: Store reusable guidance in the knowledge memory service.
3
3
  ---
4
4
 
5
- When I say "remember this" or want to save a reusable rule, help me store it in the knowledge memory service.
5
+ Help me store it in the knowledge memory service.
6
6
 
7
7
  1. **Capture Knowledge** — If not already provided, ask for: a short explicit title (5-12 words), detailed content (markdown, examples encouraged), optional tags (keywords like "api", "testing"), and optional scope (`global`, `project:<name>`, `repo:<name>`). If vague, ask follow-ups to make it specific and actionable.
8
- 2. **Validate Quality** — Ensure it is specific and reusable (not generic advice). Avoid storing secrets or sensitive data.
9
- 3. **Store** — Call `memory.storeKnowledge` with title, content, tags, scope. If MCP tools are unavailable, use `npx ai-devkit@latest memory store` instead.
10
- 4. **Confirm** — Summarize what was saved and offer to store more knowledge if needed.
8
+ 2. **Search Before Store** — Check for existing similar entries first with `npx ai-devkit@latest memory search --query "<topic>"` to avoid duplicates.
9
+ 3. **Validate Quality** — Ensure it is specific and reusable (not generic advice). Avoid storing secrets or sensitive data.
10
+ 4. **Store** — Call `memory.storeKnowledge` with title, content, tags, scope. If MCP tools are unavailable, use `npx ai-devkit@latest memory store` instead.
11
+ 5. **Confirm** — Summarize what was saved and offer to retrieve related memory entries when helpful.
12
+ 6. **Next Command Guidance** — Continue with the current lifecycle phase command (`/execute-plan`, `/check-implementation`, `/writing-test`, etc.) as needed.
@@ -2,14 +2,17 @@
2
2
  description: Review feature design for completeness.
3
3
  ---
4
4
 
5
- Review the design documentation in docs/ai/design/feature-{name}.md (and the project-level README if relevant). Summarize:
5
+ Review the design documentation in `docs/ai/design/feature-{name}.md` (and the project-level README if relevant).
6
6
 
7
- - Architecture overview (ensure mermaid diagram is present and accurate)
8
- - Key components and their responsibilities
9
- - Technology choices and rationale
10
- - Data models and relationships
11
- - API/interface contracts (inputs, outputs, auth)
12
- - Major design decisions and trade-offs
13
- - Non-functional requirements that must be preserved
14
-
15
- Highlight any inconsistencies, missing sections, or diagrams that need updates.
7
+ 1. **Use Memory for Context** Search memory for prior architecture constraints/patterns: `npx ai-devkit@latest memory search --query "<feature design architecture>"`.
8
+ 2. Summarize:
9
+ - Architecture overview (ensure mermaid diagram is present and accurate)
10
+ - Key components and their responsibilities
11
+ - Technology choices and rationale
12
+ - Data models and relationships
13
+ - API/interface contracts (inputs, outputs, auth)
14
+ - Major design decisions and trade-offs
15
+ - Non-functional requirements that must be preserved
16
+ 3. Highlight inconsistencies, missing sections, or diagrams that need updates.
17
+ 4. **Store Reusable Knowledge** — Persist approved design patterns/constraints with `npx ai-devkit@latest memory store ...` when they will help future work.
18
+ 5. **Next Command Guidance** — If requirements gaps are found, return to `/review-requirements`; if design is sound, continue to `/execute-plan`.
@@ -2,12 +2,15 @@
2
2
  description: Review feature requirements for completeness.
3
3
  ---
4
4
 
5
- Review `docs/ai/requirements/feature-{name}.md` and the project-level template `docs/ai/requirements/README.md` to ensure structure and content alignment. Summarize:
5
+ Review `docs/ai/requirements/feature-{name}.md` and the project-level template `docs/ai/requirements/README.md` to ensure structure and content alignment.
6
6
 
7
- - Core problem statement and affected users
8
- - Goals, non-goals, and success criteria
9
- - Primary user stories & critical flows
10
- - Constraints, assumptions, open questions
11
- - Any missing sections or deviations from the template
12
-
13
- Identify gaps or contradictions and suggest clarifications.
7
+ 1. **Use Memory for Context** — Search memory for related requirements/domain decisions before starting: `npx ai-devkit@latest memory search --query "<feature requirements>"`.
8
+ 2. Summarize:
9
+ - Core problem statement and affected users
10
+ - Goals, non-goals, and success criteria
11
+ - Primary user stories & critical flows
12
+ - Constraints, assumptions, open questions
13
+ - Any missing sections or deviations from the template
14
+ 3. Identify gaps or contradictions and suggest clarifications.
15
+ 4. **Store Reusable Knowledge** — If new reusable requirement conventions are agreed, store them with `npx ai-devkit@latest memory store ...`.
16
+ 5. **Next Command Guidance** — If fundamentals are missing, go back to `/new-requirement`; otherwise continue to `/review-design`.
@@ -5,6 +5,9 @@ description: Simplify existing code to reduce complexity.
5
5
  Help me simplify an existing implementation while maintaining or improving its functionality.
6
6
 
7
7
  1. **Gather Context** — If not already provided, ask for: target file(s) or component(s) to simplify, current pain points (hard to understand, maintain, or extend?), performance or scalability concerns, constraints (backward compatibility, API stability, deadlines), and relevant design docs or requirements.
8
- 2. **Analyze Current Complexity** — For each target: identify complexity sources (deep nesting, duplication, unclear abstractions, tight coupling, over-engineering, magic values), assess cognitive load for future maintainers, and identify scalability blockers (single points of failure, sync-where-async-needed, missing caching, inefficient algorithms).
9
- 3. **Propose Simplifications** — Prioritize readability over brevity apply the 30-second test: can a new team member understand each change quickly? For each issue, suggest concrete improvements (extract, consolidate, flatten, decouple, remove dead code, replace with built-ins). Provide before/after snippets.
10
- 4. **Prioritize & Plan** — Rank by impact vs risk: (1) high impact, low risk do first, (2) high impact, higher risk plan carefully, (3) low impact, low risk — quick wins if time permits, (4) low impact, high risk — skip or defer. For each change specify risk level, testing requirements, and effort. Produce a prioritized action plan with recommended execution order.
8
+ 2. **Use Memory for Context** — Search memory for established patterns and prior refactors in this area: `npx ai-devkit@latest memory search --query "<component simplification pattern>"`.
9
+ 3. **Analyze Current Complexity** — For each target: identify complexity sources (deep nesting, duplication, unclear abstractions, tight coupling, over-engineering, magic values), assess cognitive load for future maintainers, and identify scalability blockers (single points of failure, sync-where-async-needed, missing caching, inefficient algorithms).
10
+ 4. **Propose Simplifications** — Prioritize readability over brevity; apply the 30-second test: can a new team member understand each change quickly? For each issue, suggest concrete improvements (extract, consolidate, flatten, decouple, remove dead code, replace with built-ins). Provide before/after snippets.
11
+ 5. **Prioritize & Plan** — Rank by impact vs risk: (1) high impact, low risk — do first, (2) high impact, higher risk — plan carefully, (3) low impact, low risk — quick wins if time permits, (4) low impact, high risk — skip or defer. For each change specify risk level, testing requirements, and effort. Produce a prioritized action plan with recommended execution order.
12
+ 6. **Store Reusable Knowledge** — Save reusable simplification patterns and trade-offs via `npx ai-devkit@latest memory store ...`.
13
+ 7. **Next Command Guidance** — After implementation, run `/check-implementation` and `/writing-test`.
@@ -5,6 +5,9 @@ description: Update planning docs to reflect implementation progress.
5
5
  Help me reconcile current implementation progress with the planning documentation.
6
6
 
7
7
  1. **Gather Context** — If not already provided, ask for: feature/branch name and brief status, tasks completed since last update, new tasks discovered, current blockers or risks, and planning doc path (default `docs/ai/planning/feature-{name}.md`).
8
- 2. **Review & Reconcile** — Summarize existing milestones, task breakdowns, and dependencies from the planning doc. For each planned task: mark status (done / in progress / blocked / not started), note scope changes, record blockers, identify skipped or added tasks.
9
- 3. **Produce Updated Task List** — Generate an updated checklist grouped by: Done, In Progress, Blocked, Newly Discovered Work with short notes per task.
10
- 4. **Next Steps & Summary** — Suggest the next 2-3 actionable tasks and highlight risky areas. Prepare a summary paragraph for the planning doc covering: current state, major risks/blockers, upcoming focus, and any scope/timeline changes.
8
+ 2. **Use Memory for Context** — Search memory for prior decisions that affect priorities/scope: `npx ai-devkit@latest memory search --query "<feature planning updates>"`.
9
+ 3. **Review & Reconcile** — Summarize existing milestones, task breakdowns, and dependencies from the planning doc. For each planned task: mark status (done / in progress / blocked / not started), note scope changes, record blockers, identify skipped or added tasks.
10
+ 4. **Produce Updated Task List** — Generate an updated checklist grouped by: Done, In Progress, Blocked, Newly Discovered Work with short notes per task.
11
+ 5. **Store Reusable Knowledge** — If new planning conventions or risk-handling rules emerge, store them with `npx ai-devkit@latest memory store ...`.
12
+ 6. **Next Steps & Summary** — Suggest the next 2-3 actionable tasks and prepare a summary paragraph for the planning doc.
13
+ 7. **Next Command Guidance** — Return to `/execute-plan` for remaining work. When all implementation tasks are complete, run `/check-implementation`.
@@ -5,8 +5,11 @@ description: Add tests for a new feature.
5
5
  Review `docs/ai/testing/feature-{name}.md` and ensure it mirrors the base template before writing tests.
6
6
 
7
7
  1. **Gather Context** — If not already provided, ask for: feature name/branch, summary of changes (link to design & requirements docs), target environment, existing test suites, and any flaky/slow tests to avoid.
8
- 2. **Analyze Testing Template** — Identify required sections from `docs/ai/testing/feature-{name}.md`. Confirm success criteria and edge cases from requirements & design docs. Note available mocks/stubs/fixtures.
9
- 3. **Unit Tests (aim for 100% coverage)** For each module/function: list behavior scenarios (happy path, edge cases, error handling), generate test cases with assertions using existing utilities/mocks, and highlight missing branches preventing full coverage.
10
- 4. **Integration Tests** — Identify critical cross-component flows. Define setup/teardown steps and test cases for interaction boundaries, data contracts, and failure modes.
11
- 5. **Coverage Strategy** — Recommend coverage tooling commands. Call out files/functions still needing coverage and suggest additional tests if <100%.
12
- 6. **Update Documentation** — Summarize tests added or still missing. Update `docs/ai/testing/feature-{name}.md` with links to test files and results. Flag deferred tests as follow-up tasks.
8
+ 2. **Use Memory for Context** — Search memory for existing testing patterns and prior edge cases: `npx ai-devkit@latest memory search --query "<feature testing strategy>"`.
9
+ 3. **Analyze Testing Template** Identify required sections from `docs/ai/testing/feature-{name}.md`. Confirm success criteria and edge cases from requirements & design docs. Note available mocks/stubs/fixtures.
10
+ 4. **Unit Tests (aim for 100% coverage)** — For each module/function: list behavior scenarios (happy path, edge cases, error handling), generate test cases with assertions using existing utilities/mocks, and highlight missing branches preventing full coverage.
11
+ 5. **Integration Tests** — Identify critical cross-component flows. Define setup/teardown steps and test cases for interaction boundaries, data contracts, and failure modes.
12
+ 6. **Coverage Strategy** — Recommend coverage tooling commands. Call out files/functions still needing coverage and suggest additional tests if <100%.
13
+ 7. **Store Reusable Knowledge** — Save reusable testing patterns or tricky fixtures with `npx ai-devkit@latest memory store ...`.
14
+ 8. **Update Documentation** — Summarize tests added or still missing. Update `docs/ai/testing/feature-{name}.md` with links to test files and results. Flag deferred tests as follow-up tasks.
15
+ 9. **Next Command Guidance** — If tests expose design issues, return to `/review-design`; otherwise continue to `/code-review`.
@@ -5,8 +5,10 @@ description: Document a code entry point in knowledge docs.
5
5
  Guide me through creating a structured understanding of a code entry point and saving it to the knowledge docs.
6
6
 
7
7
  1. **Gather & Validate Entry Point** — If not already provided, ask for: entry point (file, folder, function, API), why it matters (feature, bug, investigation), and desired depth or focus areas. Confirm the entry point exists; if ambiguous or not found, clarify or suggest alternatives.
8
- 2. **Collect Source Context** — Read the primary file/module and summarize purpose, exports, key patterns. For folders: list structure, highlight key modules. For functions/APIs: capture signature, parameters, return values, error handling. Extract essential snippets (avoid large dumps).
9
- 3. **Analyze Dependencies** — Build a dependency view up to depth 3, tracking visited nodes to avoid loops. Categorize: imports, function calls, services, external packages. Note external systems or generated code to exclude.
10
- 4. **Synthesize Explanation** — Draft overview (purpose, language, high-level behavior). Detail core logic, execution flow, key patterns. Highlight error handling, performance, security considerations. Identify potential improvements or risks.
11
- 5. **Create Documentation** — Normalize name to kebab-case (`calculateTotalPrice` `calculate-total-price`). Create `docs/ai/implementation/knowledge-{name}.md` with sections: Overview, Implementation Details, Dependencies, Visual Diagrams, Additional Insights, Metadata, Next Steps. Include mermaid diagrams when they clarify flows or relationships. Add metadata (analysis date, depth, files touched).
12
- 6. **Review & Next Actions** — Summarize key insights and open questions. Suggest related areas for deeper dives. Confirm file path and remind to commit.
8
+ 2. **Use Memory for Context** — Search memory for prior knowledge about this module/domain: `npx ai-devkit@latest memory search --query "<entry point or subsystem>"`.
9
+ 3. **Collect Source Context** — Read the primary file/module and summarize purpose, exports, key patterns. For folders: list structure, highlight key modules. For functions/APIs: capture signature, parameters, return values, error handling. Extract essential snippets (avoid large dumps).
10
+ 4. **Analyze Dependencies** — Build a dependency view up to depth 3, tracking visited nodes to avoid loops. Categorize: imports, function calls, services, external packages. Note external systems or generated code to exclude.
11
+ 5. **Synthesize Explanation** — Draft overview (purpose, language, high-level behavior). Detail core logic, execution flow, key patterns. Highlight error handling, performance, security considerations. Identify potential improvements or risks.
12
+ 6. **Create Documentation** — Normalize name to kebab-case (`calculateTotalPrice` → `calculate-total-price`). Create `docs/ai/implementation/knowledge-{name}.md` with sections: Overview, Implementation Details, Dependencies, Visual Diagrams, Additional Insights, Metadata, Next Steps. Include mermaid diagrams when they clarify flows or relationships. Add metadata (analysis date, depth, files touched).
13
+ 7. **Store Reusable Knowledge** — If insights should persist across sessions, store them using `npx ai-devkit@latest memory store ...`.
14
+ 8. **Review & Next Actions** — Summarize key insights and open questions. Suggest related areas for deeper dives, confirm file path, and suggest `/remember` for key long-lived rules.
@@ -2,9 +2,12 @@
2
2
  description: Compare implementation with design and requirements docs to ensure alignment.
3
3
  ---
4
4
 
5
- Compare the current implementation with the design in docs/ai/design/ and requirements in docs/ai/requirements/.
5
+ Compare the current implementation with the design in `docs/ai/design/` and requirements in `docs/ai/requirements/`.
6
6
 
7
7
  1. If not already provided, ask for: feature/branch description, list of modified files, relevant design doc(s), and any known constraints or assumptions.
8
- 2. For each design doc: summarize key architectural decisions and constraints, highlight components, interfaces, and data flows that must be respected.
9
- 3. File-by-file comparison: confirm implementation matches design intent, note deviations or missing pieces, flag logic gaps, edge cases, or security issues, suggest simplifications or refactors, and identify missing tests or documentation updates.
10
- 4. Summarize findings with recommended next steps.
8
+ 2. **Use Memory for Context** Search memory for known constraints and prior decisions before assessing mismatches: `npx ai-devkit@latest memory search --query "<feature implementation alignment>"`.
9
+ 3. For each design doc: summarize key architectural decisions and constraints, highlight components, interfaces, and data flows that must be respected.
10
+ 4. File-by-file comparison: confirm implementation matches design intent, note deviations or missing pieces, flag logic gaps, edge cases, or security issues, suggest simplifications or refactors, and identify missing tests or documentation updates.
11
+ 5. **Store Reusable Knowledge** — Save recurring alignment lessons/patterns with `npx ai-devkit@latest memory store ...`.
12
+ 6. Summarize findings with recommended next steps.
13
+ 7. **Next Command Guidance** — If major design issues are found, go back to `/review-design` or `/execute-plan`; if aligned, continue to `/writing-test`.