@mikulgohil/ai-kit 1.11.0 → 2.0.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 (79) hide show
  1. package/README.md +45 -30
  2. package/agents/{api-designer.md → kit-api-designer.md} +1 -1
  3. package/agents/{architect.md → kit-architect.md} +1 -1
  4. package/agents/{build-resolver.md → kit-build-resolver.md} +1 -1
  5. package/agents/{ci-debugger.md → kit-ci-debugger.md} +1 -1
  6. package/agents/{code-reviewer.md → kit-code-reviewer.md} +1 -1
  7. package/agents/{data-scientist.md → kit-data-scientist.md} +1 -1
  8. package/agents/{dependency-auditor.md → kit-dependency-auditor.md} +1 -1
  9. package/agents/{doc-updater.md → kit-doc-updater.md} +1 -1
  10. package/agents/{e2e-runner.md → kit-e2e-runner.md} +1 -1
  11. package/agents/{migration-specialist.md → kit-migration-specialist.md} +1 -1
  12. package/agents/{performance-profiler.md → kit-performance-profiler.md} +1 -1
  13. package/agents/{planner.md → kit-planner.md} +1 -1
  14. package/agents/{refactor-cleaner.md → kit-refactor-cleaner.md} +1 -1
  15. package/agents/{security-reviewer.md → kit-security-reviewer.md} +1 -1
  16. package/agents/{sitecore-specialist.md → kit-sitecore-specialist.md} +1 -1
  17. package/agents/{tdd-guide.md → kit-tdd-guide.md} +1 -1
  18. package/commands/{clarify-requirements.md → kit-clarify-requirements.md} +1 -1
  19. package/commands/{harness-audit.md → kit-harness-audit.md} +1 -1
  20. package/commands/{orchestrate.md → kit-orchestrate.md} +11 -11
  21. package/commands/{resume-session.md → kit-resume-session.md} +1 -1
  22. package/commands/{token-tips.md → kit-token-tips.md} +4 -4
  23. package/dist/index.js +44 -14
  24. package/dist/index.js.map +1 -1
  25. package/guides/figma-workflow.md +5 -5
  26. package/guides/getting-started.md +33 -31
  27. package/guides/hooks-and-agents.md +19 -19
  28. package/guides/prompt-playbook.md +1 -1
  29. package/guides/token-saving-tips.md +3 -3
  30. package/package.json +1 -1
  31. package/templates/claude-md/base.md +27 -27
  32. /package/commands/{accessibility-audit.md → kit-accessibility-audit.md} +0 -0
  33. /package/commands/{api-route.md → kit-api-route.md} +0 -0
  34. /package/commands/{bundle-check.md → kit-bundle-check.md} +0 -0
  35. /package/commands/{changelog.md → kit-changelog.md} +0 -0
  36. /package/commands/{checkpoint.md → kit-checkpoint.md} +0 -0
  37. /package/commands/{commit-msg.md → kit-commit-msg.md} +0 -0
  38. /package/commands/{deep-interview.md → kit-deep-interview.md} +0 -0
  39. /package/commands/{dep-check.md → kit-dep-check.md} +0 -0
  40. /package/commands/{design-tokens.md → kit-design-tokens.md} +0 -0
  41. /package/commands/{document.md → kit-document.md} +0 -0
  42. /package/commands/{env-setup.md → kit-env-setup.md} +0 -0
  43. /package/commands/{error-boundary.md → kit-error-boundary.md} +0 -0
  44. /package/commands/{extract-hook.md → kit-extract-hook.md} +0 -0
  45. /package/commands/{fetch-docs.md → kit-fetch-docs.md} +0 -0
  46. /package/commands/{figma-to-code.md → kit-figma-to-code.md} +0 -0
  47. /package/commands/{fix-bug.md → kit-fix-bug.md} +0 -0
  48. /package/commands/{i18n-check.md → kit-i18n-check.md} +0 -0
  49. /package/commands/{learn-from-pr.md → kit-learn-from-pr.md} +0 -0
  50. /package/commands/{middleware.md → kit-middleware.md} +0 -0
  51. /package/commands/{migrate.md → kit-migrate.md} +0 -0
  52. /package/commands/{new-component.md → kit-new-component.md} +0 -0
  53. /package/commands/{new-page.md → kit-new-page.md} +0 -0
  54. /package/commands/{optimize.md → kit-optimize.md} +0 -0
  55. /package/commands/{perf-audit.md → kit-perf-audit.md} +0 -0
  56. /package/commands/{pr-description.md → kit-pr-description.md} +0 -0
  57. /package/commands/{pre-pr.md → kit-pre-pr.md} +0 -0
  58. /package/commands/{prompt-help.md → kit-prompt-help.md} +0 -0
  59. /package/commands/{quality-gate-check.md → kit-quality-gate-check.md} +0 -0
  60. /package/commands/{quality-gate.md → kit-quality-gate.md} +0 -0
  61. /package/commands/{refactor.md → kit-refactor.md} +0 -0
  62. /package/commands/{release-notes.md → kit-release-notes.md} +0 -0
  63. /package/commands/{release.md → kit-release.md} +0 -0
  64. /package/commands/{responsive-check.md → kit-responsive-check.md} +0 -0
  65. /package/commands/{review.md → kit-review.md} +0 -0
  66. /package/commands/{save-session.md → kit-save-session.md} +0 -0
  67. /package/commands/{scaffold-spec.md → kit-scaffold-spec.md} +0 -0
  68. /package/commands/{schema-gen.md → kit-schema-gen.md} +0 -0
  69. /package/commands/{search-first.md → kit-search-first.md} +0 -0
  70. /package/commands/{security-check.md → kit-security-check.md} +0 -0
  71. /package/commands/{server-action.md → kit-server-action.md} +0 -0
  72. /package/commands/{sitecore-debug.md → kit-sitecore-debug.md} +0 -0
  73. /package/commands/{standup.md → kit-standup.md} +0 -0
  74. /package/commands/{storybook-gen.md → kit-storybook-gen.md} +0 -0
  75. /package/commands/{test-gaps.md → kit-test-gaps.md} +0 -0
  76. /package/commands/{test.md → kit-test.md} +0 -0
  77. /package/commands/{type-fix.md → kit-type-fix.md} +0 -0
  78. /package/commands/{understand.md → kit-understand.md} +0 -0
  79. /package/commands/{upgrade.md → kit-upgrade.md} +0 -0
package/README.md CHANGED
@@ -54,8 +54,8 @@ npx @mikulgohil/ai-kit health
54
54
  |---|---|
55
55
  | `CLAUDE.md` | Project-aware rules for Claude Code — your stack, conventions, and patterns |
56
56
  | `.cursorrules` + `.cursor/rules/*.mdc` | Same rules formatted for Cursor AI with scoped file matching |
57
- | **48 Skills** | Auto-discovered workflows — `/review`, `/new-component`, `/security-check`, `/pre-pr`, and more |
58
- | **16 Agents** | Specialized AI assistants — planner, reviewer, security, architect, build-resolver, and more |
57
+ | **48 Skills** | Auto-discovered workflows — `/kit-review`, `/kit-new-component`, `/kit-security-check`, `/kit-pre-pr`, and more |
58
+ | **16 Agents** | Specialized AI assistants — kit-planner, kit-code-reviewer, kit-security-reviewer, kit-architect, kit-build-resolver, and more |
59
59
  | **3 Context Modes** | Switch between dev (build fast), review (check quality), and research (understand code) |
60
60
  | **Automated Hooks** | Auto-format, TypeScript checks, console.log warnings, mistakes auto-capture, git safety |
61
61
  | **6 Guides** | Developer playbooks for prompts, tokens, hooks, agents, Figma workflow |
@@ -88,13 +88,13 @@ Structured AI workflows applied automatically — the AI recognizes what you're
88
88
 
89
89
  | Category | Skills |
90
90
  |---|---|
91
- | **Getting Started** | `prompt-help`, `understand` |
92
- | **Building** | `new-component`, `new-page`, `api-route`, `error-boundary`, `extract-hook`, `figma-to-code`, `design-tokens`, `schema-gen`, `storybook-gen`, `scaffold-spec` |
93
- | **Quality & Review** | `review`, `pre-pr`, `test`, `accessibility-audit`, `security-check`, `responsive-check`, `type-fix`, `perf-audit`, `bundle-check`, `i18n-check`, `test-gaps` |
94
- | **Maintenance** | `fix-bug`, `refactor`, `optimize`, `migrate`, `dep-check`, `sitecore-debug`, `upgrade` |
95
- | **Workflow** | `document`, `commit-msg`, `env-setup`, `changelog`, `release`, `pr-description`, `standup`, `learn-from-pr`, `release-notes` |
96
- | **Session** | `save-session`, `resume-session`, `checkpoint` |
97
- | **Orchestration** | `orchestrate`, `quality-gate`, `harness-audit` |
91
+ | **Getting Started** | `kit-prompt-help`, `kit-understand` |
92
+ | **Building** | `kit-new-component`, `kit-new-page`, `kit-api-route`, `kit-error-boundary`, `kit-extract-hook`, `kit-figma-to-code`, `kit-design-tokens`, `kit-schema-gen`, `kit-storybook-gen`, `kit-scaffold-spec` |
93
+ | **Quality & Review** | `kit-review`, `kit-pre-pr`, `kit-test`, `kit-accessibility-audit`, `kit-security-check`, `kit-responsive-check`, `kit-type-fix`, `kit-perf-audit`, `kit-bundle-check`, `kit-i18n-check`, `kit-test-gaps` |
94
+ | **Maintenance** | `kit-fix-bug`, `kit-refactor`, `kit-optimize`, `kit-migrate`, `kit-dep-check`, `kit-sitecore-debug`, `kit-upgrade` |
95
+ | **Workflow** | `kit-document`, `kit-commit-msg`, `kit-env-setup`, `kit-changelog`, `kit-release`, `kit-pr-description`, `kit-standup`, `kit-learn-from-pr`, `kit-release-notes` |
96
+ | **Session** | `kit-save-session`, `kit-resume-session`, `kit-checkpoint` |
97
+ | **Orchestration** | `kit-orchestrate`, `kit-quality-gate`, `kit-harness-audit` |
98
98
 
99
99
  <br />
100
100
 
@@ -102,22 +102,37 @@ Structured AI workflows applied automatically — the AI recognizes what you're
102
102
 
103
103
  | Agent | Purpose |
104
104
  |---|---|
105
- | `@planner` | Break features into implementation plans with dependencies and risk assessment |
106
- | `@code-reviewer` | Deep quality review — patterns, performance, types, and conventions |
107
- | `@security-reviewer` | OWASP Top 10, XSS, CSRF, secrets detection, and auth flow analysis |
108
- | `@build-resolver` | Diagnose and fix build errors, type conflicts, and dependency issues |
109
- | `@doc-updater` | Keep documentation in sync with code changes automatically |
110
- | `@refactor-cleaner` | Find and remove dead code, unused imports, and unnecessary complexity |
111
- | `@tdd-guide` | Test-driven development workflow — red, green, refactor with guidance |
112
- | `@ci-debugger` | Analyze CI/CD failures, parse logs, and suggest targeted fixes |
113
- | `@e2e-runner` | Playwright tests with Page Object Model and smart selectors |
114
- | `@sitecore-specialist` | XM Cloud patterns, Content SDK v2, Experience Edge, and field helpers |
115
- | `@architect` | SSR/SSG/ISR strategy, component hierarchy, data flow, and rendering patterns |
116
- | `@data-scientist` | ML pipelines, model evaluation, data analysis, and experiment tracking |
117
- | `@performance-profiler` | Core Web Vitals, bundle analysis, runtime profiling, and rendering optimization |
118
- | `@migration-specialist` | Framework upgrades, breaking change detection, codemods, and incremental adoption |
119
- | `@dependency-auditor` | Vulnerability scanning, outdated packages, license compliance, and bundle impact |
120
- | `@api-designer` | REST/GraphQL API design, schema validation, versioning, and error handling |
105
+ | `@kit-planner` | Break features into implementation plans with dependencies and risk assessment |
106
+ | `@kit-code-reviewer` | Deep quality review — patterns, performance, types, and conventions |
107
+ | `@kit-security-reviewer` | OWASP Top 10, XSS, CSRF, secrets detection, and auth flow analysis |
108
+ | `@kit-build-resolver` | Diagnose and fix build errors, type conflicts, and dependency issues |
109
+ | `@kit-doc-updater` | Keep documentation in sync with code changes automatically |
110
+ | `@kit-refactor-cleaner` | Find and remove dead code, unused imports, and unnecessary complexity |
111
+ | `@kit-tdd-guide` | Test-driven development workflow — red, green, refactor with guidance |
112
+ | `@kit-ci-debugger` | Analyze CI/CD failures, parse logs, and suggest targeted fixes |
113
+ | `@kit-e2e-runner` | Playwright tests with Page Object Model and smart selectors |
114
+ | `@kit-sitecore-specialist` | XM Cloud patterns, Content SDK v2, Experience Edge, and field helpers |
115
+ | `@kit-architect` | SSR/SSG/ISR strategy, component hierarchy, data flow, and rendering patterns |
116
+ | `@kit-data-scientist` | ML pipelines, model evaluation, data analysis, and experiment tracking |
117
+ | `@kit-performance-profiler` | Core Web Vitals, bundle analysis, runtime profiling, and rendering optimization |
118
+ | `@kit-migration-specialist` | Framework upgrades, breaking change detection, codemods, and incremental adoption |
119
+ | `@kit-dependency-auditor` | Vulnerability scanning, outdated packages, license compliance, and bundle impact |
120
+ | `@kit-api-designer` | REST/GraphQL API design, schema validation, versioning, and error handling |
121
+
122
+ <br />
123
+
124
+ ### Namespace Prefix: No Conflicts with Your Global Setup
125
+
126
+ All AI Kit skills use a `kit-` prefix (`/kit-review`, `/kit-new-component`, `/kit-security-check`) and all agents use the same prefix (`@kit-planner`, `@kit-code-reviewer`).
127
+
128
+ **Why?** Claude Code, Cursor, and other tools let you define global skills and agents. Without namespacing, AI Kit's project-level `/review` would silently override your personal global `/review` — or worse, both would appear in the suggestion list, confusing developers about which to use.
129
+
130
+ The `kit-` prefix guarantees:
131
+ - AI Kit skills and your personal/global skills coexist without collision
132
+ - No silent overrides — you always know which skill is running
133
+ - Clean autocomplete — `kit-` groups all AI Kit skills together
134
+
135
+ > **Upgrading from v1.x?** Run `ai-kit update` — it automatically cleans up old unprefixed files.
121
136
 
122
137
  <br />
123
138
 
@@ -228,7 +243,7 @@ Every team using AI coding assistants hits these problems. AI Kit solves each on
228
243
  |---|---------|---------------------|
229
244
  | 1 | **AI forgets everything each session** — Every new chat starts from zero. | Generates a persistent `CLAUDE.md` with project rules, conventions, and stack details. The AI knows your project from the first prompt, every time. |
230
245
  | 2 | **AI generates wrong framework patterns** — Writes Pages Router code when you use App Router. | Auto-detects your exact stack and generates rules specific to your setup. The AI can't use the wrong patterns. |
231
- | 3 | **Developers write bad prompts** — Vague prompts lead to wrong code and rework. | Ships **48 pre-built skills** — just run `/review`, `/security-check`, `/new-component`, etc. |
246
+ | 3 | **Developers write bad prompts** — Vague prompts lead to wrong code and rework. | Ships **48 pre-built skills** — just run `/kit-review`, `/kit-security-check`, `/kit-new-component`, etc. |
232
247
  | 4 | **Same mistakes happen repeatedly** — No system to track what went wrong. | Generates a **mistakes log** with **auto-capture hook** that logs every build/lint failure automatically. |
233
248
  | 5 | **Every developer gets different AI behavior** — No consistency across the team. | One `ai-kit init` generates the same rules for everyone. Commit the files to the repo. |
234
249
  | 6 | **No quality checks on AI-generated code** — AI output goes straight to PR. | Automated **hooks** run formatting, type-checking, linting, and git safety checks in real-time. |
@@ -238,9 +253,9 @@ Every team using AI coding assistants hits these problems. AI Kit solves each on
238
253
  | 10 | **Onboarding takes too long** — New developers spend days understanding the project. | New team members get productive AI assistance from day one with zero manual setup. |
239
254
  | 11 | **Context gets repeated every conversation** — Same conventions explained every session. | All conventions encoded in generated rules. The AI reads them automatically at session start. |
240
255
  | 12 | **AI doesn't improve over time** — Same wrong suggestions regardless of past feedback. | Mistakes log, decisions log, and updated rules mean the AI gets smarter every session. |
241
- | 13 | **Complex tasks need multiple manual AI passes** — Manual coordination across conversations. | **Multi-agent orchestration** runs specialists in parallel with `/orchestrate`. |
256
+ | 13 | **Complex tasks need multiple manual AI passes** — Manual coordination across conversations. | **Multi-agent orchestration** runs specialists in parallel with `/kit-orchestrate`. |
242
257
  | 14 | **Switching AI tools means starting over** — Moving tools loses all configuration. | Generates configs for **5+ tools** from a single source — switch without losing context. |
243
- | 15 | **AI creates components without tests, docs, or types** — Every file needs follow-up. | Skills like `/new-component` enforce structured workflows: component + types + tests + docs together. |
258
+ | 15 | **AI creates components without tests, docs, or types** — Every file needs follow-up. | Skills like `/kit-new-component` enforce structured workflows: component + types + tests + docs together. |
244
259
  | 16 | **No visibility into AI usage costs** — No idea how many tokens the team consumes. | Built-in **token tracking** with daily/weekly/monthly summaries and cost breakdown. |
245
260
  | 17 | **Cursor copies entire modules instead of targeted edits** — AI bloats the repo. | Generated rules include explicit instructions for editing patterns — update in place. |
246
261
  | 18 | **No component-level AI awareness** — AI doesn't know which components have gaps. | **Component scanner** discovers all components and generates `.ai.md` docs with health scores. |
@@ -331,8 +346,8 @@ Your custom sections are placed at the top of the file. AI Kit's generated rules
331
346
 
332
347
  | Feature | Description | Status |
333
348
  |---|---|---|
334
- | **Project Constitution** | `/constitution` — governance doc with coding standards, testing philosophy, performance budgets | Planned |
335
- | **Spec-First Workflow** | `/specify` — structured feature specs with user stories and acceptance criteria before code | Planned |
349
+ | **Project Constitution** | `/kit-constitution` — governance doc with coding standards, testing philosophy, performance budgets | Planned |
350
+ | **Spec-First Workflow** | `/kit-specify` — structured feature specs with user stories and acceptance criteria before code | Planned |
336
351
  | **Extension Catalog** | Community-contributed agents, skills, and templates. Install with `ai-kit extension install` | Planned |
337
352
  | **Preset Bundles** | Curated bundles: `enterprise`, `startup`, `sitecore-xmc`, `fullstack`. Apply with `ai-kit preset apply` | Planned |
338
353
  | **Setup Comparison** | `ai-kit compare` — gap analysis comparing your setup against other spec-driven tools | Planned |
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: api-designer
2
+ name: kit-api-designer
3
3
  description: API designer agent — REST and GraphQL API design, schema validation, versioning strategy, error handling patterns, and API documentation.
4
4
  tools: Read, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: architect
2
+ name: kit-architect
3
3
  description: System architect — SSR/SSG/ISR strategy, component hierarchy, data flow, rendering patterns for Next.js + Sitecore XM Cloud + Tailwind projects.
4
4
  tools: Read, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: build-resolver
2
+ name: kit-build-resolver
3
3
  description: Build error resolution agent — diagnoses and fixes Next.js, TypeScript, and Sitecore build errors.
4
4
  tools: Read, Edit, Glob, Grep, Bash
5
5
  isolation: worktree
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: ci-debugger
2
+ name: kit-ci-debugger
3
3
  description: CI/CD failure debugger — analyzes pipeline logs, identifies root causes, and suggests fixes for GitHub Actions, Vercel, and Netlify failures.
4
4
  tools: Read, Edit, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: code-reviewer
2
+ name: kit-code-reviewer
3
3
  description: Deep code review agent — checks quality, patterns, security, accessibility, and performance for React/Next.js/Sitecore code.
4
4
  tools: Read, Glob, Grep
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: data-scientist
2
+ name: kit-data-scientist
3
3
  description: Data science and ML agent — data analysis, model evaluation, pipeline design, feature engineering, and experiment tracking patterns.
4
4
  tools: Read, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: dependency-auditor
2
+ name: kit-dependency-auditor
3
3
  description: Dependency auditor agent — outdated packages, vulnerability scanning, license compliance, bundle impact analysis, and dependency hygiene.
4
4
  tools: Read, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: doc-updater
2
+ name: kit-doc-updater
3
3
  description: Documentation sync agent — updates component docs, README, and Storybook stories when code changes.
4
4
  tools: Read, Write, Edit, Glob, Grep
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: e2e-runner
2
+ name: kit-e2e-runner
3
3
  description: Playwright E2E test agent — generates and runs Playwright tests using Page Object Model for Next.js applications.
4
4
  tools: Read, Write, Edit, Glob, Grep, Bash
5
5
  isolation: worktree
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: migration-specialist
2
+ name: kit-migration-specialist
3
3
  description: Migration specialist agent — framework upgrades, breaking change detection, codemods, dependency migration, and incremental adoption strategies.
4
4
  tools: Read, Edit, Glob, Grep, Bash
5
5
  isolation: worktree
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: performance-profiler
2
+ name: kit-performance-profiler
3
3
  description: Performance profiling agent — Core Web Vitals, bundle analysis, runtime profiling, rendering optimization, and Lighthouse audits for web applications.
4
4
  tools: Read, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: planner
2
+ name: kit-planner
3
3
  description: Implementation planning agent — breaks features into tasks, identifies files, and considers architectural tradeoffs for Next.js/React/Sitecore projects.
4
4
  tools: Read, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: refactor-cleaner
2
+ name: kit-refactor-cleaner
3
3
  description: Dead code cleanup and refactoring agent — finds unused exports, cleans imports, and removes dead code.
4
4
  tools: Read, Edit, Glob, Grep, Bash
5
5
  isolation: worktree
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: security-reviewer
2
+ name: kit-security-reviewer
3
3
  description: Security-focused review agent — checks XSS, CSRF, injection, secrets, and OWASP Top 10 for Next.js applications.
4
4
  tools: Read, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: sitecore-specialist
2
+ name: kit-sitecore-specialist
3
3
  description: Sitecore XM Cloud specialist — handles component mapping, GraphQL queries, layout service, Experience Edge, personalization, and Content SDK v2.x.
4
4
  tools: Read, Write, Edit, Glob, Grep, Bash
5
5
  ---
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: tdd-guide
2
+ name: kit-tdd-guide
3
3
  description: Test-driven development guide — red-green-refactor workflow for Next.js pages, Sitecore components, and React hooks.
4
4
  tools: Read, Write, Edit, Glob, Grep, Bash
5
5
  ---
@@ -78,7 +78,7 @@ Before presenting the brief, verify:
78
78
  ## Constraints
79
79
 
80
80
  - Do NOT ask more than 5 questions — prioritize ruthlessly
81
- - Do NOT turn this into a long interview — that's what `/deep-interview` is for
81
+ - Do NOT turn this into a long interview — that's what `/kit-deep-interview` is for
82
82
  - Do NOT ask obvious questions that the task description already answers
83
83
  - Do NOT write code — this command is for clarification only
84
84
  - Keep the total interaction under 5 minutes
@@ -22,7 +22,7 @@ Audit the AI agent configuration for completeness and correctness.
22
22
  - [ ] Each agent has valid YAML frontmatter (name, description)
23
23
  - [ ] Agent descriptions are specific enough for delegation
24
24
  - [ ] No duplicate or conflicting agents
25
- - [ ] Conditional agents match detected stack (e2e-runner only if Playwright installed)
25
+ - [ ] Conditional agents match detected stack (kit-e2e-runner only if Playwright installed)
26
26
 
27
27
  ### 4. Contexts (`.claude/contexts/*.md`)
28
28
  - [ ] dev, review, research modes are present
@@ -18,14 +18,14 @@ Coordinate multiple specialized agents to tackle complex tasks.
18
18
 
19
19
  | Agent | Best For |
20
20
  |-------|----------|
21
- | `planner` | Breaking down requirements into implementation steps |
22
- | `code-reviewer` | Quality review of existing or new code |
23
- | `security-reviewer` | Security-focused audit |
24
- | `e2e-runner` | Generating and running Playwright tests |
25
- | `build-resolver` | Fixing build and type errors |
26
- | `doc-updater` | Updating documentation |
27
- | `refactor-cleaner` | Finding and removing dead code |
28
- | `sitecore-specialist` | Sitecore-specific patterns and issues |
21
+ | `kit-planner` | Breaking down requirements into implementation steps |
22
+ | `kit-code-reviewer` | Quality review of existing or new code |
23
+ | `kit-security-reviewer` | Security-focused audit |
24
+ | `kit-e2e-runner` | Generating and running Playwright tests |
25
+ | `kit-build-resolver` | Fixing build and type errors |
26
+ | `kit-doc-updater` | Updating documentation |
27
+ | `kit-refactor-cleaner` | Finding and removing dead code |
28
+ | `kit-sitecore-specialist` | Sitecore-specific patterns and issues |
29
29
 
30
30
  ### 3. Delegate
31
31
  Launch agents in parallel where possible:
@@ -48,9 +48,9 @@ Present a merged summary:
48
48
  ### Task: [description]
49
49
 
50
50
  ### Agent Results
51
- - **planner**: [key findings]
52
- - **code-reviewer**: [key findings]
53
- - **security-reviewer**: [key findings]
51
+ - **kit-planner**: [key findings]
52
+ - **kit-code-reviewer**: [key findings]
53
+ - **kit-security-reviewer**: [key findings]
54
54
 
55
55
  ### Conflicts
56
56
  - [Agent A recommends X, but Agent B recommends Y — resolution]
@@ -31,7 +31,7 @@ Before resuming work, check:
31
31
 
32
32
  ## If No Sessions Found
33
33
  - Check `ai-kit/sessions/` directory exists
34
- - Suggest running `/save-session` at the end of future sessions
34
+ - Suggest running `/kit-save-session` at the end of future sessions
35
35
  - Offer to start fresh by creating a new session
36
36
 
37
37
  ## Tips
@@ -13,7 +13,7 @@
13
13
  ### High Impact
14
14
 
15
15
  - **Be specific about files** — "fix auth in src/lib/auth.ts:45" not "fix the auth"
16
- - **Use /understand BEFORE modifying unfamiliar code** — cheaper than a failed attempt
16
+ - **Use /kit-understand BEFORE modifying unfamiliar code** — cheaper than a failed attempt
17
17
  - **Use slash commands** — they provide structured context efficiently
18
18
  - **Break large tasks into focused prompts** — 5 small prompts < 1 vague prompt that needs 3 follow-ups
19
19
 
@@ -22,7 +22,7 @@
22
22
  - **Don't ask AI to read the entire codebase** — point to specific files
23
23
  - **Use git diff to show AI only what changed**
24
24
  - **Close and reopen sessions when switching tasks** (prevents context bloat)
25
- - **Use /prompt-help to structure your request** before asking
25
+ - **Use /kit-prompt-help to structure your request** before asking
26
26
 
27
27
  ### Low Impact (but adds up)
28
28
 
@@ -40,9 +40,9 @@ Daily budget: ~$0.91
40
40
  | --------------------- | ----------------- | ------------- | ---------- |
41
41
  | Read a file | ~500 tokens | 20 | ~$0.03 |
42
42
  | Generate a component | ~3,000 tokens | 3 | ~$0.14 |
43
- | Code review (/review) | ~5,000 tokens | 2 | ~$0.15 |
43
+ | Code review (/kit-review) | ~5,000 tokens | 2 | ~$0.15 |
44
44
  | Bug fix conversation | ~8,000 tokens | 2 | ~$0.24 |
45
- | /pre-pr checklist | ~6,000 tokens | 1 | ~$0.09 |
45
+ | /kit-pre-pr checklist | ~6,000 tokens | 1 | ~$0.09 |
46
46
  | **Total estimated** | | | ~$0.65/day |
47
47
 
48
48
  Buffer for complex tasks: ~$0.26/day
package/dist/index.js CHANGED
@@ -15,7 +15,8 @@ var GUIDES_DIR = path.join(PACKAGE_ROOT, "guides");
15
15
  var DOCS_SCAFFOLDS_DIR = path.join(PACKAGE_ROOT, "docs-scaffolds");
16
16
  var AGENTS_DIR = path.join(PACKAGE_ROOT, "agents");
17
17
  var CONTEXTS_DIR = path.join(PACKAGE_ROOT, "contexts");
18
- var VERSION = "1.11.0";
18
+ var VERSION = "2.0.0";
19
+ var SKILL_PREFIX = "kit-";
19
20
  var AI_KIT_CONFIG_FILE = "ai-kit.config.json";
20
21
  var BACKUP_DIR = ".ai-kit/backups";
21
22
  var GENERATED_FILES = {
@@ -1469,7 +1470,7 @@ function generateSettingsLocal(scan, profile = "standard") {
1469
1470
  // src/copier/skills.ts
1470
1471
  import path16 from "path";
1471
1472
  import fs4 from "fs-extra";
1472
- var AVAILABLE_SKILLS = [
1473
+ var BASE_SKILLS = [
1473
1474
  "prompt-help",
1474
1475
  "review",
1475
1476
  "fix-bug",
@@ -1521,7 +1522,8 @@ var AVAILABLE_SKILLS = [
1521
1522
  // New skills (v1.10.0) — documentation freshness
1522
1523
  "fetch-docs"
1523
1524
  ];
1524
- var SKILL_DESCRIPTIONS = {
1525
+ var AVAILABLE_SKILLS = BASE_SKILLS.map((s) => `${SKILL_PREFIX}${s}`);
1526
+ var BASE_SKILL_DESCRIPTIONS = {
1525
1527
  "prompt-help": "Help developers write effective AI prompts with structured context",
1526
1528
  "review": "Deep code review following project coding standards",
1527
1529
  "fix-bug": "Systematic debugging workflow with root cause analysis and regression testing",
@@ -1548,7 +1550,6 @@ var SKILL_DESCRIPTIONS = {
1548
1550
  "responsive-check": "Audit responsive design \u2014 breakpoints, touch targets, overflow",
1549
1551
  "document": "Generate documentation for existing components and utilities",
1550
1552
  "token-tips": "Token usage optimization strategies for AI coding assistants",
1551
- // New skills (v1.1.0)
1552
1553
  "perf-audit": "Lighthouse-style performance audit covering Core Web Vitals, resource loading, and caching",
1553
1554
  "bundle-check": "Analyze bundle size, find heavy imports, suggest tree-shaking and code splitting",
1554
1555
  "i18n-check": "Find hardcoded strings, missing translation keys, and internationalization gaps",
@@ -1556,7 +1557,6 @@ var SKILL_DESCRIPTIONS = {
1556
1557
  "changelog": "Generate formatted changelogs from git history following Keep a Changelog format",
1557
1558
  "release": "Guided release workflow with versioning, changelog, tagging, and release notes",
1558
1559
  "storybook-gen": "Generate Storybook stories with controls, play functions, and visual tests",
1559
- // New skills (v1.2.0) — hooks, agents, sessions, orchestration
1560
1560
  "search-first": "Research-before-coding \u2014 search docs, existing patterns, and APIs before writing code",
1561
1561
  "quality-gate-check": "Post-implementation quality checklist \u2014 type safety, a11y, security, performance, Sitecore",
1562
1562
  "server-action": "Scaffold Next.js Server Actions with Zod validation, error handling, and revalidation",
@@ -1567,12 +1567,13 @@ var SKILL_DESCRIPTIONS = {
1567
1567
  "orchestrate": "Multi-agent orchestration \u2014 break complex tasks into subtasks and delegate to agents",
1568
1568
  "quality-gate": "Run comprehensive quality checks: types, lint, format, tests, bundle, a11y, security",
1569
1569
  "harness-audit": "Audit AI agent configuration \u2014 check CLAUDE.md, hooks, agents, skills, MCP servers",
1570
- // New skills (v1.7.0) — requirements clarification
1571
1570
  "deep-interview": "Socratic requirements gathering \u2014 structured interview to transform vague ideas into detailed specifications",
1572
1571
  "clarify-requirements": "Quick task clarification \u2014 identify gaps and ambiguities in under 5 minutes before coding",
1573
- // New skills (v1.10.0) — documentation freshness
1574
1572
  "fetch-docs": "Pre-load current, version-specific docs for your tech stack using Context7 MCP \u2014 run at session start to prevent outdated API usage"
1575
1573
  };
1574
+ var SKILL_DESCRIPTIONS = Object.fromEntries(
1575
+ Object.entries(BASE_SKILL_DESCRIPTIONS).map(([k, v]) => [`${SKILL_PREFIX}${k}`, v])
1576
+ );
1576
1577
  async function copySkills(targetDir) {
1577
1578
  const copied = [];
1578
1579
  for (const skill of AVAILABLE_SKILLS) {
@@ -1653,7 +1654,7 @@ async function scaffoldDocs(targetDir) {
1653
1654
  // src/copier/agents.ts
1654
1655
  import path19 from "path";
1655
1656
  import fs7 from "fs-extra";
1656
- var UNIVERSAL_AGENTS = [
1657
+ var BASE_UNIVERSAL_AGENTS = [
1657
1658
  "planner",
1658
1659
  "code-reviewer",
1659
1660
  "security-reviewer",
@@ -1668,17 +1669,18 @@ var UNIVERSAL_AGENTS = [
1668
1669
  "dependency-auditor",
1669
1670
  "api-designer"
1670
1671
  ];
1672
+ var UNIVERSAL_AGENTS = BASE_UNIVERSAL_AGENTS.map((a) => `${SKILL_PREFIX}${a}`);
1671
1673
  var CONDITIONAL_AGENTS = [
1672
1674
  {
1673
- name: "e2e-runner",
1675
+ name: `${SKILL_PREFIX}e2e-runner`,
1674
1676
  condition: (scan) => scan.tools.playwright
1675
1677
  },
1676
1678
  {
1677
- name: "sitecore-specialist",
1679
+ name: `${SKILL_PREFIX}sitecore-specialist`,
1678
1680
  condition: (scan) => scan.cms !== "none"
1679
1681
  },
1680
1682
  {
1681
- name: "tdd-guide",
1683
+ name: `${SKILL_PREFIX}tdd-guide`,
1682
1684
  condition: (scan) => scan.tools.playwright || !!scan.scripts["test"]
1683
1685
  }
1684
1686
  ];
@@ -2104,6 +2106,7 @@ async function updateCommand(targetPath) {
2104
2106
  if (backupPath) {
2105
2107
  logSuccess(`Backed up current configs to ${path22.relative(projectDir, backupPath)}`);
2106
2108
  }
2109
+ await cleanupUnprefixedFiles(projectDir);
2107
2110
  logSection("Updating Files");
2108
2111
  const strictness = existingConfig.strictness || "standard";
2109
2112
  const hookProfile = existingConfig.hookProfile || "standard";
@@ -2174,6 +2177,33 @@ async function updateCommand(targetPath) {
2174
2177
  logInfo("Rollback available: `ai-kit rollback --latest`");
2175
2178
  }
2176
2179
  }
2180
+ async function cleanupUnprefixedFiles(projectDir) {
2181
+ let cleaned = 0;
2182
+ for (const name of BASE_SKILLS) {
2183
+ for (const root of [".claude/skills", ".cursor/skills"]) {
2184
+ const oldDir = path22.join(projectDir, root, name);
2185
+ if (await fs10.pathExists(oldDir)) {
2186
+ await fs10.remove(oldDir);
2187
+ cleaned++;
2188
+ }
2189
+ }
2190
+ const oldCmd = path22.join(projectDir, ".claude", "commands", `${name}.md`);
2191
+ if (await fs10.pathExists(oldCmd)) {
2192
+ await fs10.remove(oldCmd);
2193
+ cleaned++;
2194
+ }
2195
+ }
2196
+ for (const name of BASE_UNIVERSAL_AGENTS) {
2197
+ const oldAgent = path22.join(projectDir, ".claude", "agents", `${name}.md`);
2198
+ if (await fs10.pathExists(oldAgent)) {
2199
+ await fs10.remove(oldAgent);
2200
+ cleaned++;
2201
+ }
2202
+ }
2203
+ if (cleaned > 0) {
2204
+ logInfo(`Cleaned up ${cleaned} old unprefixed skill/agent files (migrated to kit- prefix)`);
2205
+ }
2206
+ }
2177
2207
 
2178
2208
  // src/commands/reset.ts
2179
2209
  import path23 from "path";
@@ -2546,7 +2576,7 @@ ${chalk2.bold("Model Recommendation")}`);
2546
2576
  printRoiEstimate(monthSessions, monthCost);
2547
2577
  console.log(
2548
2578
  `
2549
- ${chalk2.dim("Tip: Use /understand before modifying unfamiliar code \u2014")}`
2579
+ ${chalk2.dim("Tip: Use /kit-understand before modifying unfamiliar code \u2014")}`
2550
2580
  );
2551
2581
  console.log(
2552
2582
  chalk2.dim(" it's cheaper than a failed implementation attempt.")
@@ -2609,9 +2639,9 @@ async function exportDashboard(allSessions, todaySessions, weekSessions, monthSe
2609
2639
  }
2610
2640
  spinner.succeed("Dashboard exported");
2611
2641
  try {
2612
- const { exec } = await import("child_process");
2642
+ const { execFile } = await import("child_process");
2613
2643
  const openCmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
2614
- exec(`${openCmd} "${dashboardDest}"`);
2644
+ execFile(openCmd, [dashboardDest]);
2615
2645
  logInfo("Opening dashboard in browser...");
2616
2646
  } catch {
2617
2647
  logInfo(`Open ${dashboardDest} in your browser to view the dashboard.`);