@smicolon/ai-kit 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/README.md +73 -40
  2. package/dist/index.js +260 -126
  3. package/package.json +5 -5
  4. package/.claude-plugin/marketplace.json +0 -373
  5. package/packs/architect/CHANGELOG.md +0 -17
  6. package/packs/architect/README.md +0 -58
  7. package/packs/architect/agents/system-architect.md +0 -768
  8. package/packs/architect/commands/diagram-create.md +0 -300
  9. package/packs/better-auth/.mcp.json +0 -14
  10. package/packs/better-auth/CHANGELOG.md +0 -26
  11. package/packs/better-auth/README.md +0 -125
  12. package/packs/better-auth/agents/auth-architect.md +0 -278
  13. package/packs/better-auth/commands/auth-provider-add.md +0 -265
  14. package/packs/better-auth/commands/auth-setup.md +0 -298
  15. package/packs/better-auth/skills/auth-security/SKILL.md +0 -425
  16. package/packs/better-auth/skills/better-auth-patterns/SKILL.md +0 -455
  17. package/packs/dev-loop/CHANGELOG.md +0 -69
  18. package/packs/dev-loop/README.md +0 -155
  19. package/packs/dev-loop/commands/cancel-dev.md +0 -21
  20. package/packs/dev-loop/commands/dev-loop.md +0 -72
  21. package/packs/dev-loop/commands/dev-plan.md +0 -351
  22. package/packs/dev-loop/hooks/hooks.json +0 -15
  23. package/packs/dev-loop/hooks/stop-hook.sh +0 -178
  24. package/packs/dev-loop/scripts/setup-dev-loop.sh +0 -194
  25. package/packs/dev-loop/skills/tdd-planner/SKILL.md +0 -249
  26. package/packs/dev-loop/skills/tdd-planner/references/framework-patterns.md +0 -874
  27. package/packs/dev-loop/skills/tdd-planner/references/good-example.md +0 -260
  28. package/packs/dev-loop/skills/tdd-planner/references/plan-template.md +0 -275
  29. package/packs/django/CHANGELOG.md +0 -39
  30. package/packs/django/README.md +0 -92
  31. package/packs/django/agents/django-architect.md +0 -182
  32. package/packs/django/agents/django-builder.md +0 -250
  33. package/packs/django/agents/django-feature-based.md +0 -420
  34. package/packs/django/agents/django-reviewer.md +0 -253
  35. package/packs/django/agents/django-tester.md +0 -230
  36. package/packs/django/commands/api-endpoint.md +0 -285
  37. package/packs/django/commands/model-create.md +0 -178
  38. package/packs/django/commands/test-generate.md +0 -325
  39. package/packs/django/rules/migrations.md +0 -138
  40. package/packs/django/rules/models.md +0 -167
  41. package/packs/django/rules/serializers.md +0 -126
  42. package/packs/django/rules/services.md +0 -131
  43. package/packs/django/rules/tests.md +0 -140
  44. package/packs/django/rules/views.md +0 -102
  45. package/packs/django/skills/import-convention-enforcer/SKILL.md +0 -226
  46. package/packs/django/skills/import-convention-enforcer/patterns/django-imports.md +0 -343
  47. package/packs/django/skills/migration-safety-checker/SKILL.md +0 -375
  48. package/packs/django/skills/model-entity-validator/SKILL.md +0 -298
  49. package/packs/django/skills/performance-optimizer/SKILL.md +0 -447
  50. package/packs/django/skills/red-phase-verifier/SKILL.md +0 -180
  51. package/packs/django/skills/security-first-validator/SKILL.md +0 -435
  52. package/packs/django/skills/test-coverage-advisor/SKILL.md +0 -394
  53. package/packs/django/skills/test-validity-checker/SKILL.md +0 -194
  54. package/packs/failure-log/CHANGELOG.md +0 -20
  55. package/packs/failure-log/README.md +0 -168
  56. package/packs/failure-log/commands/failure-add.md +0 -106
  57. package/packs/failure-log/commands/failure-list.md +0 -89
  58. package/packs/failure-log/hooks/hooks.json +0 -16
  59. package/packs/failure-log/hooks/scripts/inject-failures.sh +0 -64
  60. package/packs/failure-log/skills/failure-log-manager/SKILL.md +0 -164
  61. package/packs/flutter/CHANGELOG.md +0 -19
  62. package/packs/flutter/README.md +0 -170
  63. package/packs/flutter/agents/flutter-architect.md +0 -166
  64. package/packs/flutter/agents/flutter-builder.md +0 -303
  65. package/packs/flutter/agents/release-manager.md +0 -355
  66. package/packs/flutter/commands/fastlane-setup.md +0 -188
  67. package/packs/flutter/commands/flutter-build.md +0 -90
  68. package/packs/flutter/commands/flutter-deploy.md +0 -133
  69. package/packs/flutter/commands/flutter-test.md +0 -117
  70. package/packs/flutter/commands/signing-setup.md +0 -209
  71. package/packs/flutter/hooks/hooks.json +0 -17
  72. package/packs/flutter/skills/fastlane-knowledge/SKILL.md +0 -193
  73. package/packs/flutter/skills/flutter-architecture/SKILL.md +0 -127
  74. package/packs/flutter/skills/store-publishing/SKILL.md +0 -163
  75. package/packs/hono/CHANGELOG.md +0 -19
  76. package/packs/hono/README.md +0 -143
  77. package/packs/hono/agents/hono-architect.md +0 -240
  78. package/packs/hono/agents/hono-builder.md +0 -285
  79. package/packs/hono/agents/hono-reviewer.md +0 -279
  80. package/packs/hono/agents/hono-tester.md +0 -346
  81. package/packs/hono/commands/middleware-create.md +0 -223
  82. package/packs/hono/commands/project-init.md +0 -306
  83. package/packs/hono/commands/route-create.md +0 -153
  84. package/packs/hono/commands/rpc-client.md +0 -263
  85. package/packs/hono/hooks/hooks.json +0 -4
  86. package/packs/hono/skills/cloudflare-bindings/SKILL.md +0 -408
  87. package/packs/hono/skills/hono-patterns/SKILL.md +0 -309
  88. package/packs/hono/skills/rpc-typesafe/SKILL.md +0 -388
  89. package/packs/hono/skills/zod-validation/SKILL.md +0 -332
  90. package/packs/nestjs/CHANGELOG.md +0 -29
  91. package/packs/nestjs/README.md +0 -75
  92. package/packs/nestjs/agents/nestjs-architect.md +0 -402
  93. package/packs/nestjs/agents/nestjs-builder.md +0 -301
  94. package/packs/nestjs/agents/nestjs-tester.md +0 -437
  95. package/packs/nestjs/commands/module-create.md +0 -369
  96. package/packs/nestjs/rules/controllers.md +0 -92
  97. package/packs/nestjs/rules/dto.md +0 -124
  98. package/packs/nestjs/rules/entities.md +0 -102
  99. package/packs/nestjs/rules/services.md +0 -106
  100. package/packs/nestjs/skills/barrel-export-manager/SKILL.md +0 -389
  101. package/packs/nestjs/skills/import-convention-enforcer/SKILL.md +0 -365
  102. package/packs/nextjs/CHANGELOG.md +0 -36
  103. package/packs/nextjs/README.md +0 -76
  104. package/packs/nextjs/agents/frontend-tester.md +0 -680
  105. package/packs/nextjs/agents/frontend-visual.md +0 -820
  106. package/packs/nextjs/agents/nextjs-architect.md +0 -331
  107. package/packs/nextjs/agents/nextjs-modular.md +0 -433
  108. package/packs/nextjs/commands/component-create.md +0 -398
  109. package/packs/nextjs/rules/api-routes.md +0 -129
  110. package/packs/nextjs/rules/components.md +0 -106
  111. package/packs/nextjs/rules/hooks.md +0 -132
  112. package/packs/nextjs/skills/accessibility-validator/SKILL.md +0 -445
  113. package/packs/nextjs/skills/import-convention-enforcer/SKILL.md +0 -399
  114. package/packs/nextjs/skills/react-form-validator/SKILL.md +0 -569
  115. package/packs/nuxtjs/CHANGELOG.md +0 -30
  116. package/packs/nuxtjs/README.md +0 -56
  117. package/packs/nuxtjs/agents/frontend-tester.md +0 -680
  118. package/packs/nuxtjs/agents/frontend-visual.md +0 -820
  119. package/packs/nuxtjs/agents/nuxtjs-architect.md +0 -537
  120. package/packs/nuxtjs/commands/component-create.md +0 -223
  121. package/packs/nuxtjs/rules/components.md +0 -101
  122. package/packs/nuxtjs/rules/composables.md +0 -118
  123. package/packs/nuxtjs/rules/server-routes.md +0 -127
  124. package/packs/nuxtjs/skills/accessibility-validator/SKILL.md +0 -183
  125. package/packs/nuxtjs/skills/import-convention-enforcer/SKILL.md +0 -196
  126. package/packs/nuxtjs/skills/veevalidate-form-validator/SKILL.md +0 -190
  127. package/packs/onboard/CHANGELOG.md +0 -22
  128. package/packs/onboard/README.md +0 -103
  129. package/packs/onboard/agents/onboard-guide.md +0 -118
  130. package/packs/onboard/commands/onboard.md +0 -313
  131. package/packs/onboard/skills/onboard-context-provider/SKILL.md +0 -98
  132. package/packs/tanstack-router/CHANGELOG.md +0 -30
  133. package/packs/tanstack-router/README.md +0 -113
  134. package/packs/tanstack-router/agents/tanstack-architect.md +0 -173
  135. package/packs/tanstack-router/agents/tanstack-builder.md +0 -360
  136. package/packs/tanstack-router/agents/tanstack-tester.md +0 -454
  137. package/packs/tanstack-router/commands/form-create.md +0 -313
  138. package/packs/tanstack-router/commands/query-create.md +0 -263
  139. package/packs/tanstack-router/commands/route-create.md +0 -190
  140. package/packs/tanstack-router/commands/table-create.md +0 -413
  141. package/packs/tanstack-router/skills/ai-patterns/SKILL.md +0 -370
  142. package/packs/tanstack-router/skills/db-patterns/SKILL.md +0 -346
  143. package/packs/tanstack-router/skills/devtools-patterns/SKILL.md +0 -415
  144. package/packs/tanstack-router/skills/form-patterns/SKILL.md +0 -425
  145. package/packs/tanstack-router/skills/pacer-patterns/SKILL.md +0 -341
  146. package/packs/tanstack-router/skills/query-patterns/SKILL.md +0 -359
  147. package/packs/tanstack-router/skills/router-patterns/SKILL.md +0 -285
  148. package/packs/tanstack-router/skills/store-patterns/SKILL.md +0 -351
  149. package/packs/tanstack-router/skills/table-patterns/SKILL.md +0 -531
  150. package/packs/tanstack-router/skills/tanstack-conventions/SKILL.md +0 -428
  151. package/packs/tanstack-router/skills/virtual-patterns/SKILL.md +0 -490
  152. package/packs/worktree/CHANGELOG.md +0 -45
  153. package/packs/worktree/README.md +0 -219
  154. package/packs/worktree/commands/wt.md +0 -93
  155. package/packs/worktree/scripts/wt.sh +0 -957
  156. package/packs/worktree/skills/worktree-manager/SKILL.md +0 -113
@@ -1,219 +0,0 @@
1
- # worktree
2
-
3
- Git worktree manager for parallel development with automatic environment isolation.
4
-
5
- ## Features
6
-
7
- - **Sibling naming**: `project--branch-name/` convention
8
- - **`.worktreeinclude`**: Configurable file copying (replaces hardcoded `.env*`)
9
- - **Env rewriting**: Auto-suffixes DB names, URLs, and compose project names per branch
10
- - **Docker isolation**: Port-offset overrides so worktrees don't conflict
11
- - **Database auto-creation**: Creates Postgres databases for rewritten DB names
12
- - **Package manager detection**: bun → pnpm → yarn → npm
13
- - **Monorepo aware**: Detects workspaces, turbo, nx, lerna
14
- - **Editor integration**: Open in Cursor, Antigravity, or VS Code
15
-
16
- ## Installation
17
-
18
- ```bash
19
- /plugin install worktree
20
- ```
21
-
22
- ## Quick Start
23
-
24
- ```bash
25
- /wt create feature/auth
26
- # → Creates worktree at ~/code/project--feature-auth/
27
- # → Copies files per .worktreeinclude
28
- # → Rewrites DB_NAME, DATABASE_URL with branch suffix
29
- # → Generates docker-compose.worktree.yml with offset ports
30
- # → Creates database in running Postgres
31
- # → Installs dependencies
32
- ```
33
-
34
- ## `.worktreeinclude`
35
-
36
- Auto-generated on first `wt create` if missing. Commit this file so your team shares the same config.
37
-
38
- ```ini
39
- # .worktreeinclude — Files to copy to new worktrees
40
- .env*
41
-
42
- # Monorepo (uncomment as needed)
43
- # apps/*/.env*
44
- # packages/*/.env*
45
- # services/*/.env*
46
-
47
- [rewrite]
48
- auto
49
-
50
- [docker]
51
- auto
52
- # file=apps/backend/docker-compose.local.yml
53
- # port_offset=10
54
- ```
55
-
56
- ### File Patterns (top section)
57
-
58
- Gitignore-style glob patterns for untracked files to copy from main worktree:
59
-
60
- ```
61
- .env*
62
- apps/*/.env*
63
- config/local.yml
64
- ```
65
-
66
- ### `[rewrite]` — Env Var Isolation
67
-
68
- **`auto` mode** detects and suffixes known keys with a branch slug:
69
-
70
- | Key | Example | Result |
71
- |-----|---------|--------|
72
- | `DB_NAME` | `myapp` | `myapp_feature_auth` |
73
- | `POSTGRES_DB` | `myapp` | `myapp_feature_auth` |
74
- | `DATABASE_URL` | `postgres://...host/myapp` | `postgres://...host/myapp_feature_auth` |
75
- | `COMPOSE_PROJECT_NAME` | `myapp` | `myapp_feature_auth` |
76
-
77
- **Template mode** uses `{{BRANCH}}` for custom vars:
78
-
79
- ```bash
80
- MY_CUSTOM_DB=app_{{BRANCH}}
81
- REDIS_PREFIX={{BRANCH}}_
82
- ```
83
-
84
- Both modes work together — template takes precedence over auto.
85
-
86
- Branch slug: `feature/auth-v2` → `feature_auth_v2` (lowercase, special chars → `_`, max 30 chars).
87
-
88
- ### `[docker]` — Docker Compose Isolation
89
-
90
- Generates a `docker-compose.worktree.yml` override with port offsets:
91
-
92
- - **`auto`**: Auto-detects compose file (`local.yml` → `docker-compose.local.yml` → `docker-compose.yml` → etc.)
93
- - **`file=path`**: Specify compose file path (supports nested monorepo paths)
94
- - **`port_offset=N`**: Override the auto-calculated offset
95
-
96
- ```ini
97
- [docker]
98
- auto
99
- file=apps/backend/docker-compose.local.yml
100
- ```
101
-
102
- **How it works:**
103
-
104
- 1. Parses ports from your compose file
105
- 2. Calculates a deterministic offset from branch name (1-100 via `cksum`)
106
- 3. Generates `docker-compose.worktree.yml` next to the original
107
- 4. Sets `COMPOSE_FILE=original.yml:docker-compose.worktree.yml` in `.env`
108
- 5. Sets `COMPOSE_PROJECT_NAME` for container/volume/network isolation
109
-
110
- After setup, `docker compose up -d` in the worktree automatically picks up both files.
111
-
112
- **Auto-creates databases** in running Postgres containers (Docker or local). Idempotent — safe to run multiple times.
113
-
114
- ## Usage
115
-
116
- ### Create Worktree
117
-
118
- ```bash
119
- /wt create feature/authentication
120
- /wt c feat-payments # short form
121
- ```
122
-
123
- Creates worktree at `~/code/project--feature-authentication/` with:
124
- - Files copied per `.worktreeinclude`
125
- - Env vars rewritten with branch suffix
126
- - Docker port offsets applied
127
- - Database created
128
- - Dependencies installed
129
-
130
- ### List Worktrees
131
-
132
- ```bash
133
- /wt list
134
- /wt ls # short form
135
- ```
136
-
137
- ### Remove Worktree
138
-
139
- ```bash
140
- /wt remove feature/authentication
141
- /wt rm feat-payments -d # also delete branch
142
- ```
143
-
144
- Stops Docker containers before removing. Databases are preserved (drop manually if no longer needed).
145
-
146
- ### Open in Editor
147
-
148
- ```bash
149
- /wt open feat-payments # auto-detect
150
- /wt o feat-payments # short form
151
- /wt o feat-payments --cursor # or -c
152
- /wt o feat-payments --agy # or -a
153
- /wt o feat-payments --code # or -v
154
- ```
155
-
156
- ### Set Default Editor
157
-
158
- Add to your shell profile (`~/.zshrc` or `~/.bashrc`):
159
-
160
- ```bash
161
- export WT_EDITOR=agy # cursor, agy, or code
162
- ```
163
-
164
- Priority: flag > `WT_EDITOR` > auto-detect (Cursor → Antigravity → VS Code)
165
-
166
- ## Naming Convention
167
-
168
- ```
169
- ~/code/retail-plus/ # main repo
170
- ~/code/retail-plus--feat-auth/ # worktree (sibling with --)
171
- ~/code/retail-plus--fix-bug-123/ # another worktree
172
- ```
173
-
174
- ## Auto-Setup Details
175
-
176
- ### Package Manager Detection
177
-
178
- Checks in order:
179
- 1. `bun.lockb` or `bun.lock` → `bun install`
180
- 2. `pnpm-lock.yaml` → `pnpm install`
181
- 3. `yarn.lock` → `yarn install`
182
- 4. `package-lock.json` or `package.json` → `npm install`
183
-
184
- ### Monorepo Detection
185
-
186
- Detects via:
187
- - `pnpm-workspace.yaml`
188
- - `turbo.json`
189
- - `nx.json`
190
- - `lerna.json`
191
- - `"workspaces"` in `package.json`
192
-
193
- ### Compose File Detection Order
194
-
195
- When `[docker] auto` is set and no `file=` specified:
196
-
197
- 1. `local.yml`
198
- 2. `docker-compose.local.yml`
199
- 3. `docker-compose.yml`
200
- 4. `docker-compose.yaml`
201
- 5. `compose.yml`
202
- 6. `compose.yaml`
203
-
204
- Also searches `apps/*/` and `services/*/` subdirectories.
205
-
206
- ## Skill Triggers
207
-
208
- The worktree-manager skill auto-activates when you mention:
209
- - "worktree" or "git worktree"
210
- - "parallel development"
211
- - "feature branch setup"
212
- - "work on multiple branches"
213
- - "separate workspace for branch"
214
- - "docker port conflict" or "database isolation"
215
- - "worktreeinclude" or "env isolation"
216
-
217
- ## License
218
-
219
- MIT
@@ -1,93 +0,0 @@
1
- ---
2
- name: wt
3
- description: Git worktree manager - create, list, remove, and open worktrees with env isolation, Docker port offsets, and database auto-creation
4
- argument-hint: '<command> [branch] [options]'
5
- allowed-tools: ["Bash(${CLAUDE_PLUGIN_ROOT}/scripts/wt.sh:*)"]
6
- ---
7
-
8
- # Git Worktree Manager
9
-
10
- Manage git worktrees with automatic isolation for parallel development.
11
-
12
- ## Usage
13
-
14
- ```bash
15
- /wt <command> [args]
16
- ```
17
-
18
- ## Commands
19
-
20
- | Command | Alias | Description |
21
- |---------|-------|-------------|
22
- | `create <branch>` | `c` | Create worktree with isolation (env, docker, db) |
23
- | `list` | `ls` | List all worktrees for current repo |
24
- | `remove <branch>` | `rm` | Remove worktree (stops Docker, add `-d` to delete branch) |
25
- | `open <branch> [--editor]` | `o` | Open worktree (--cursor\|-c, --agy\|-a, --code\|-v) |
26
-
27
- ## Instructions
28
-
29
- Run the worktree manager script:
30
-
31
- ```!
32
- "${CLAUDE_PLUGIN_ROOT}/scripts/wt.sh" $ARGUMENTS
33
- ```
34
-
35
- ## Examples
36
-
37
- ```bash
38
- # Create worktree for new feature (with full isolation)
39
- /wt create feature/authentication
40
-
41
- # Short form
42
- /wt c feat-payments
43
-
44
- # List all worktrees
45
- /wt ls
46
-
47
- # Remove worktree (stops Docker containers first)
48
- /wt rm feature/authentication
49
-
50
- # Remove worktree AND delete branch
51
- /wt rm feat-payments -d
52
-
53
- # Open in editor (auto-detect)
54
- /wt o feat-payments
55
-
56
- # Open in specific editor
57
- /wt o feat-payments --agy
58
- /wt o feat-payments -c
59
- ```
60
-
61
- ## Naming Convention
62
-
63
- ```
64
- ~/code/retail-plus/ → main repo
65
- ~/code/retail-plus--feat-auth/ → worktree (sibling with --)
66
- ```
67
-
68
- ## Auto-Setup on Create
69
-
70
- 1. Loads `.worktreeinclude` (generates default if missing)
71
- 2. Copies files matching glob patterns
72
- 3. Rewrites env vars (DB_NAME, DATABASE_URL, etc.) with branch suffix
73
- 4. Generates `docker-compose.worktree.yml` with port offsets
74
- 5. Auto-creates database in running Postgres
75
- 6. Detects package manager (bun → pnpm → yarn → npm)
76
- 7. Runs install at root (monorepo-aware)
77
-
78
- ## `.worktreeinclude` Format
79
-
80
- ```ini
81
- # File patterns to copy
82
- .env*
83
- apps/*/.env*
84
-
85
- [rewrite]
86
- auto # suffix DB_NAME, DATABASE_URL, etc.
87
- # MY_DB=app_{{BRANCH}} # template mode
88
-
89
- [docker]
90
- auto # auto-detect compose file
91
- # file=apps/backend/docker-compose.local.yml
92
- # port_offset=10
93
- ```