javi-forge 1.2.0 → 1.3.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 (228) hide show
  1. package/ci-local/ci-local.sh +20 -8
  2. package/package.json +1 -1
  3. package/ai-config/.skillignore +0 -15
  4. package/ai-config/AUTO_INVOKE.md +0 -300
  5. package/ai-config/agents/_TEMPLATE.md +0 -93
  6. package/ai-config/agents/business/api-designer.md +0 -1657
  7. package/ai-config/agents/business/business-analyst.md +0 -1331
  8. package/ai-config/agents/business/product-strategist.md +0 -206
  9. package/ai-config/agents/business/project-manager.md +0 -178
  10. package/ai-config/agents/business/requirements-analyst.md +0 -1277
  11. package/ai-config/agents/business/technical-writer.md +0 -1679
  12. package/ai-config/agents/creative/ux-designer.md +0 -205
  13. package/ai-config/agents/data-ai/ai-engineer.md +0 -487
  14. package/ai-config/agents/data-ai/analytics-engineer.md +0 -953
  15. package/ai-config/agents/data-ai/data-engineer.md +0 -173
  16. package/ai-config/agents/data-ai/data-scientist.md +0 -672
  17. package/ai-config/agents/data-ai/mlops-engineer.md +0 -814
  18. package/ai-config/agents/data-ai/prompt-engineer.md +0 -772
  19. package/ai-config/agents/development/angular-expert.md +0 -620
  20. package/ai-config/agents/development/backend-architect.md +0 -795
  21. package/ai-config/agents/development/database-specialist.md +0 -212
  22. package/ai-config/agents/development/frontend-specialist.md +0 -686
  23. package/ai-config/agents/development/fullstack-engineer.md +0 -668
  24. package/ai-config/agents/development/golang-pro.md +0 -338
  25. package/ai-config/agents/development/java-enterprise.md +0 -400
  26. package/ai-config/agents/development/javascript-pro.md +0 -422
  27. package/ai-config/agents/development/nextjs-pro.md +0 -474
  28. package/ai-config/agents/development/python-pro.md +0 -570
  29. package/ai-config/agents/development/react-pro.md +0 -487
  30. package/ai-config/agents/development/rust-pro.md +0 -246
  31. package/ai-config/agents/development/spring-boot-4-expert.md +0 -326
  32. package/ai-config/agents/development/typescript-pro.md +0 -336
  33. package/ai-config/agents/development/vue-specialist.md +0 -605
  34. package/ai-config/agents/infrastructure/cloud-architect.md +0 -472
  35. package/ai-config/agents/infrastructure/deployment-manager.md +0 -358
  36. package/ai-config/agents/infrastructure/devops-engineer.md +0 -455
  37. package/ai-config/agents/infrastructure/incident-responder.md +0 -519
  38. package/ai-config/agents/infrastructure/kubernetes-expert.md +0 -705
  39. package/ai-config/agents/infrastructure/monitoring-specialist.md +0 -674
  40. package/ai-config/agents/infrastructure/performance-engineer.md +0 -658
  41. package/ai-config/agents/orchestrator.md +0 -241
  42. package/ai-config/agents/quality/accessibility-auditor.md +0 -1204
  43. package/ai-config/agents/quality/code-reviewer-compact.md +0 -123
  44. package/ai-config/agents/quality/code-reviewer.md +0 -363
  45. package/ai-config/agents/quality/dependency-manager.md +0 -743
  46. package/ai-config/agents/quality/e2e-test-specialist.md +0 -1005
  47. package/ai-config/agents/quality/performance-tester.md +0 -1086
  48. package/ai-config/agents/quality/security-auditor.md +0 -133
  49. package/ai-config/agents/quality/test-engineer.md +0 -453
  50. package/ai-config/agents/specialists/api-designer.md +0 -87
  51. package/ai-config/agents/specialists/backend-architect.md +0 -73
  52. package/ai-config/agents/specialists/code-reviewer.md +0 -77
  53. package/ai-config/agents/specialists/db-optimizer.md +0 -75
  54. package/ai-config/agents/specialists/devops-engineer.md +0 -83
  55. package/ai-config/agents/specialists/documentation-writer.md +0 -78
  56. package/ai-config/agents/specialists/frontend-developer.md +0 -75
  57. package/ai-config/agents/specialists/performance-analyst.md +0 -82
  58. package/ai-config/agents/specialists/refactor-specialist.md +0 -74
  59. package/ai-config/agents/specialists/security-auditor.md +0 -74
  60. package/ai-config/agents/specialists/test-engineer.md +0 -81
  61. package/ai-config/agents/specialists/ux-consultant.md +0 -76
  62. package/ai-config/agents/specialized/agent-generator.md +0 -1190
  63. package/ai-config/agents/specialized/blockchain-developer.md +0 -149
  64. package/ai-config/agents/specialized/code-migrator.md +0 -892
  65. package/ai-config/agents/specialized/context-manager.md +0 -978
  66. package/ai-config/agents/specialized/documentation-writer.md +0 -1078
  67. package/ai-config/agents/specialized/ecommerce-expert.md +0 -1756
  68. package/ai-config/agents/specialized/embedded-engineer.md +0 -1714
  69. package/ai-config/agents/specialized/error-detective.md +0 -1034
  70. package/ai-config/agents/specialized/fintech-specialist.md +0 -1659
  71. package/ai-config/agents/specialized/freelance-project-planner-v2.md +0 -1988
  72. package/ai-config/agents/specialized/freelance-project-planner-v3.md +0 -2136
  73. package/ai-config/agents/specialized/freelance-project-planner-v4.md +0 -4503
  74. package/ai-config/agents/specialized/freelance-project-planner.md +0 -722
  75. package/ai-config/agents/specialized/game-developer.md +0 -1963
  76. package/ai-config/agents/specialized/healthcare-dev.md +0 -1620
  77. package/ai-config/agents/specialized/mobile-developer.md +0 -188
  78. package/ai-config/agents/specialized/parallel-plan-executor.md +0 -506
  79. package/ai-config/agents/specialized/plan-executor.md +0 -485
  80. package/ai-config/agents/specialized/solo-dev-planner-modular/00-INDEX.md +0 -485
  81. package/ai-config/agents/specialized/solo-dev-planner-modular/01-CORE.md +0 -3493
  82. package/ai-config/agents/specialized/solo-dev-planner-modular/02-SELF-CORRECTION.md +0 -778
  83. package/ai-config/agents/specialized/solo-dev-planner-modular/03-PROGRESSIVE-SETUP.md +0 -918
  84. package/ai-config/agents/specialized/solo-dev-planner-modular/04-DEPLOYMENT.md +0 -1537
  85. package/ai-config/agents/specialized/solo-dev-planner-modular/05-TESTING.md +0 -2633
  86. package/ai-config/agents/specialized/solo-dev-planner-modular/06-OPERATIONS.md +0 -5610
  87. package/ai-config/agents/specialized/solo-dev-planner-modular/INSTALL.md +0 -335
  88. package/ai-config/agents/specialized/solo-dev-planner-modular/QUICK-REFERENCE.txt +0 -215
  89. package/ai-config/agents/specialized/solo-dev-planner-modular/README.md +0 -260
  90. package/ai-config/agents/specialized/solo-dev-planner-modular/START-HERE.md +0 -379
  91. package/ai-config/agents/specialized/solo-dev-planner-modular/WORKFLOW-DIAGRAM.md +0 -355
  92. package/ai-config/agents/specialized/solo-dev-planner-modular/solo-dev-planner.md +0 -279
  93. package/ai-config/agents/specialized/template-writer.md +0 -347
  94. package/ai-config/agents/specialized/test-runner.md +0 -99
  95. package/ai-config/agents/specialized/vibekanban-smart-worker.md +0 -244
  96. package/ai-config/agents/specialized/wave-executor.md +0 -138
  97. package/ai-config/agents/specialized/workflow-optimizer.md +0 -1114
  98. package/ai-config/commands/git/changelog.md +0 -32
  99. package/ai-config/commands/git/ci-local.md +0 -70
  100. package/ai-config/commands/git/commit.md +0 -35
  101. package/ai-config/commands/git/fix-issue.md +0 -23
  102. package/ai-config/commands/git/pr-create.md +0 -42
  103. package/ai-config/commands/git/pr-review.md +0 -50
  104. package/ai-config/commands/git/worktree.md +0 -39
  105. package/ai-config/commands/refactoring/cleanup.md +0 -24
  106. package/ai-config/commands/refactoring/dead-code.md +0 -40
  107. package/ai-config/commands/refactoring/extract.md +0 -31
  108. package/ai-config/commands/testing/e2e.md +0 -30
  109. package/ai-config/commands/testing/tdd.md +0 -36
  110. package/ai-config/commands/testing/test-coverage.md +0 -30
  111. package/ai-config/commands/testing/test-fix.md +0 -24
  112. package/ai-config/commands/workflow/generate-agents-md.md +0 -85
  113. package/ai-config/commands/workflow/planning.md +0 -47
  114. package/ai-config/commands/workflows/compound.md +0 -89
  115. package/ai-config/commands/workflows/diagnose.md +0 -70
  116. package/ai-config/commands/workflows/discover.md +0 -86
  117. package/ai-config/commands/workflows/plan.md +0 -77
  118. package/ai-config/commands/workflows/review.md +0 -78
  119. package/ai-config/commands/workflows/work.md +0 -75
  120. package/ai-config/config.yaml +0 -18
  121. package/ai-config/hooks/_TEMPLATE.md +0 -96
  122. package/ai-config/hooks/block-dangerous-commands.md +0 -75
  123. package/ai-config/hooks/commit-guard.md +0 -90
  124. package/ai-config/hooks/context-loader.md +0 -73
  125. package/ai-config/hooks/improve-prompt.md +0 -91
  126. package/ai-config/hooks/learning-log.md +0 -72
  127. package/ai-config/hooks/model-router.md +0 -86
  128. package/ai-config/hooks/secret-scanner.md +0 -64
  129. package/ai-config/hooks/skill-validator.md +0 -102
  130. package/ai-config/hooks/task-artifact.md +0 -114
  131. package/ai-config/hooks/validate-workflow.md +0 -100
  132. package/ai-config/prompts/base.md +0 -71
  133. package/ai-config/prompts/modes/debug.md +0 -34
  134. package/ai-config/prompts/modes/deploy.md +0 -40
  135. package/ai-config/prompts/modes/research.md +0 -32
  136. package/ai-config/prompts/modes/review.md +0 -33
  137. package/ai-config/prompts/review-policy.md +0 -79
  138. package/ai-config/skills/_TEMPLATE.md +0 -157
  139. package/ai-config/skills/backend/api-gateway/SKILL.md +0 -254
  140. package/ai-config/skills/backend/bff-concepts/SKILL.md +0 -239
  141. package/ai-config/skills/backend/bff-spring/SKILL.md +0 -364
  142. package/ai-config/skills/backend/chi-router/SKILL.md +0 -396
  143. package/ai-config/skills/backend/error-handling/SKILL.md +0 -255
  144. package/ai-config/skills/backend/exceptions-spring/SKILL.md +0 -323
  145. package/ai-config/skills/backend/fastapi/SKILL.md +0 -302
  146. package/ai-config/skills/backend/gateway-spring/SKILL.md +0 -390
  147. package/ai-config/skills/backend/go-backend/SKILL.md +0 -457
  148. package/ai-config/skills/backend/gradle-multimodule/SKILL.md +0 -274
  149. package/ai-config/skills/backend/graphql-concepts/SKILL.md +0 -352
  150. package/ai-config/skills/backend/graphql-spring/SKILL.md +0 -398
  151. package/ai-config/skills/backend/grpc-concepts/SKILL.md +0 -283
  152. package/ai-config/skills/backend/grpc-spring/SKILL.md +0 -445
  153. package/ai-config/skills/backend/jwt-auth/SKILL.md +0 -412
  154. package/ai-config/skills/backend/notifications-concepts/SKILL.md +0 -259
  155. package/ai-config/skills/backend/recommendations-concepts/SKILL.md +0 -261
  156. package/ai-config/skills/backend/search-concepts/SKILL.md +0 -263
  157. package/ai-config/skills/backend/search-spring/SKILL.md +0 -375
  158. package/ai-config/skills/backend/spring-boot-4/SKILL.md +0 -172
  159. package/ai-config/skills/backend/websockets/SKILL.md +0 -532
  160. package/ai-config/skills/data-ai/ai-ml/SKILL.md +0 -423
  161. package/ai-config/skills/data-ai/analytics-concepts/SKILL.md +0 -195
  162. package/ai-config/skills/data-ai/analytics-spring/SKILL.md +0 -340
  163. package/ai-config/skills/data-ai/duckdb-analytics/SKILL.md +0 -440
  164. package/ai-config/skills/data-ai/langchain/SKILL.md +0 -238
  165. package/ai-config/skills/data-ai/mlflow/SKILL.md +0 -302
  166. package/ai-config/skills/data-ai/onnx-inference/SKILL.md +0 -290
  167. package/ai-config/skills/data-ai/powerbi/SKILL.md +0 -352
  168. package/ai-config/skills/data-ai/pytorch/SKILL.md +0 -274
  169. package/ai-config/skills/data-ai/scikit-learn/SKILL.md +0 -321
  170. package/ai-config/skills/data-ai/vector-db/SKILL.md +0 -301
  171. package/ai-config/skills/database/graph-databases/SKILL.md +0 -218
  172. package/ai-config/skills/database/graph-spring/SKILL.md +0 -361
  173. package/ai-config/skills/database/pgx-postgres/SKILL.md +0 -512
  174. package/ai-config/skills/database/redis-cache/SKILL.md +0 -343
  175. package/ai-config/skills/database/sqlite-embedded/SKILL.md +0 -388
  176. package/ai-config/skills/database/timescaledb/SKILL.md +0 -320
  177. package/ai-config/skills/docs/api-documentation/SKILL.md +0 -293
  178. package/ai-config/skills/docs/docs-spring/SKILL.md +0 -377
  179. package/ai-config/skills/docs/mustache-templates/SKILL.md +0 -190
  180. package/ai-config/skills/docs/technical-docs/SKILL.md +0 -447
  181. package/ai-config/skills/frontend/astro-ssr/SKILL.md +0 -441
  182. package/ai-config/skills/frontend/frontend-design/SKILL.md +0 -54
  183. package/ai-config/skills/frontend/frontend-web/SKILL.md +0 -368
  184. package/ai-config/skills/frontend/mantine-ui/SKILL.md +0 -396
  185. package/ai-config/skills/frontend/tanstack-query/SKILL.md +0 -439
  186. package/ai-config/skills/frontend/zod-validation/SKILL.md +0 -417
  187. package/ai-config/skills/frontend/zustand-state/SKILL.md +0 -350
  188. package/ai-config/skills/infrastructure/chaos-engineering/SKILL.md +0 -244
  189. package/ai-config/skills/infrastructure/chaos-spring/SKILL.md +0 -378
  190. package/ai-config/skills/infrastructure/devops-infra/SKILL.md +0 -435
  191. package/ai-config/skills/infrastructure/docker-containers/SKILL.md +0 -420
  192. package/ai-config/skills/infrastructure/kubernetes/SKILL.md +0 -456
  193. package/ai-config/skills/infrastructure/opentelemetry/SKILL.md +0 -546
  194. package/ai-config/skills/infrastructure/traefik-proxy/SKILL.md +0 -474
  195. package/ai-config/skills/infrastructure/woodpecker-ci/SKILL.md +0 -315
  196. package/ai-config/skills/mobile/ionic-capacitor/SKILL.md +0 -504
  197. package/ai-config/skills/mobile/mobile-ionic/SKILL.md +0 -448
  198. package/ai-config/skills/prompt-improver/SKILL.md +0 -125
  199. package/ai-config/skills/quality/ghagga-review/SKILL.md +0 -216
  200. package/ai-config/skills/references/hooks-patterns/SKILL.md +0 -238
  201. package/ai-config/skills/references/mcp-servers/SKILL.md +0 -275
  202. package/ai-config/skills/references/plugins-reference/SKILL.md +0 -110
  203. package/ai-config/skills/references/skills-reference/SKILL.md +0 -420
  204. package/ai-config/skills/references/subagent-templates/SKILL.md +0 -193
  205. package/ai-config/skills/systems-iot/modbus-protocol/SKILL.md +0 -410
  206. package/ai-config/skills/systems-iot/mqtt-rumqttc/SKILL.md +0 -408
  207. package/ai-config/skills/systems-iot/rust-systems/SKILL.md +0 -386
  208. package/ai-config/skills/systems-iot/tokio-async/SKILL.md +0 -324
  209. package/ai-config/skills/testing/playwright-e2e/SKILL.md +0 -289
  210. package/ai-config/skills/testing/testcontainers/SKILL.md +0 -299
  211. package/ai-config/skills/testing/vitest-testing/SKILL.md +0 -381
  212. package/ai-config/skills/workflow/ci-local-guide/SKILL.md +0 -118
  213. package/ai-config/skills/workflow/claude-automation-recommender/SKILL.md +0 -299
  214. package/ai-config/skills/workflow/claude-md-improver/SKILL.md +0 -158
  215. package/ai-config/skills/workflow/finishing-a-development-branch/SKILL.md +0 -117
  216. package/ai-config/skills/workflow/git-github/SKILL.md +0 -334
  217. package/ai-config/skills/workflow/git-github/references/examples.md +0 -160
  218. package/ai-config/skills/workflow/git-workflow/SKILL.md +0 -214
  219. package/ai-config/skills/workflow/ide-plugins/SKILL.md +0 -277
  220. package/ai-config/skills/workflow/ide-plugins-intellij/SKILL.md +0 -401
  221. package/ai-config/skills/workflow/obsidian-brain-workflow/SKILL.md +0 -199
  222. package/ai-config/skills/workflow/using-git-worktrees/SKILL.md +0 -100
  223. package/ai-config/skills/workflow/verification-before-completion/SKILL.md +0 -73
  224. package/ai-config/skills/workflow/wave-workflow/SKILL.md +0 -178
  225. package/schemas/agent.schema.json +0 -34
  226. package/schemas/ai-config.schema.json +0 -28
  227. package/schemas/plugin.schema.json +0 -62
  228. package/schemas/skill.schema.json +0 -44
@@ -1,90 +0,0 @@
1
- ---
2
- name: commit-guard
3
- description: Valida que los mensajes de commit sigan el formato Conventional Commits antes de ejecutar git commit. Trigger: PreToolUse Bash
4
- event: PreToolUse
5
- tools:
6
- - Bash
7
- match_pattern: "git commit"
8
- action: warn
9
- metadata:
10
- author: project-starter-framework
11
- version: "1.0"
12
- ---
13
-
14
- # Commit Guard Hook
15
-
16
- > Valida el formato Conventional Commits antes de ejecutar `git commit`.
17
-
18
- ## Propósito
19
-
20
- Garantizar que todos los commits sigan el estándar Conventional Commits (`feat`, `fix`, `refactor`, etc.) para mantener un historial limpio y semver automático.
21
-
22
- ## Formato Válido
23
-
24
- ```
25
- type(scope): descripción en imperativo
26
-
27
- [cuerpo opcional]
28
-
29
- [footer opcional]
30
- ```
31
-
32
- ### Tipos Permitidos
33
-
34
- | Tipo | Cuándo usarlo |
35
- |------|---------------|
36
- | `feat` | Nueva funcionalidad |
37
- | `fix` | Corrección de bug |
38
- | `refactor` | Reestructuración sin cambio de comportamiento |
39
- | `docs` | Solo documentación |
40
- | `test` | Añadir o actualizar tests |
41
- | `chore` | Build, CI, dependencias |
42
- | `perf` | Mejora de performance |
43
- | `style` | Formato, espacios (sin cambio lógico) |
44
- | `ci` | Cambios en CI/CD |
45
- | `revert` | Revertir commit anterior |
46
-
47
- ## Comportamiento
48
-
49
- 1. **Intercepta** comandos que contienen `git commit`
50
- 2. **Extrae** el mensaje de commit (`-m "..."`)
51
- 3. **Valida** contra el patrón `^(feat|fix|refactor|docs|test|chore|perf|style|ci|revert)(\(.+\))?: .{1,72}$`
52
- 4. **Alerta** si no cumple, muestra ejemplo correcto
53
- 5. **Permite** continuar (es warning, no block)
54
-
55
- ## Implementación Claude Code
56
-
57
- ```json
58
- {
59
- "hooks": {
60
- "PreToolUse": [
61
- {
62
- "matcher": "Bash",
63
- "hooks": [{ "type": "command", "command": "echo \"$TOOL_INPUT\" | grep -q 'git commit' && echo \"$TOOL_INPUT\" | grep -oP '(?<=-m \")[^\"]+' | grep -qP '^(feat|fix|refactor|docs|test|chore|perf|style|ci|revert)(\\(.+\\))?: .{1,72}$' || (echo 'WARN: Mensaje no sigue Conventional Commits. Ejemplo: feat(auth): add login endpoint' && exit 0)" }]
64
- }
65
- ]
66
- }
67
- }
68
- ```
69
-
70
- ## Ejemplos
71
-
72
- ### ✅ Válidos
73
- ```
74
- feat(auth): add JWT refresh token endpoint
75
- fix(api): handle null response from external service
76
- refactor(db): extract query builder into separate module
77
- docs: update README with new setup instructions
78
- ```
79
-
80
- ### ❌ Inválidos
81
- ```
82
- "fixed stuff"
83
- "WIP"
84
- "update"
85
- "Added new feature for the user authentication system"
86
- ```
87
-
88
- ## Notas
89
-
90
- No bloquea el commit — es un recordatorio. Para enforcement estricto cambiar `action: warn` a `action: block`.
@@ -1,73 +0,0 @@
1
- ---
2
- name: context-loader
3
- description: Al iniciar sesión, carga el estado del proyecto (git, TODOs pendientes, últimos cambios). Trigger: SessionStart
4
- event: SessionStart
5
- action: execute
6
- metadata:
7
- author: project-starter-framework
8
- version: "1.0"
9
- ---
10
-
11
- # Context Loader Hook
12
-
13
- > Carga contexto del proyecto automáticamente al iniciar cada sesión AI.
14
-
15
- ## Propósito
16
-
17
- Proporcionar contexto inmediato al AI sobre el estado actual del proyecto sin necesidad de preguntarlo manualmente cada vez.
18
-
19
- ## Información Cargada
20
-
21
- ### Estado Git
22
- - Branch actual y commits recientes (`git log --oneline -5`)
23
- - Cambios sin commitear (`git status --short`)
24
- - Archivos modificados recientemente
25
-
26
- ### TODOs y Tasks
27
- - Busca archivos `TODO.md`, `TASKS.md`, `.todo`
28
- - Extrae líneas con `TODO:`, `FIXME:`, `HACK:` del código
29
-
30
- ### Config del Proyecto
31
- - `package.json` → nombre, versión, scripts principales
32
- - Lenguaje/runtime detectado (Go, Python, Node, Rust, Java)
33
- - Stack inferido de archivos presentes
34
-
35
- ## Comportamiento
36
-
37
- 1. **Ejecuta** al inicio de cada sesión Claude Code
38
- 2. **Recopila** información de estado en menos de 2 segundos
39
- 3. **Inyecta** un resumen compacto al contexto inicial
40
- 4. **No bloquea** ni modifica archivos
41
-
42
- ## Implementación Claude Code
43
-
44
- ```json
45
- {
46
- "hooks": {
47
- "SessionStart": [
48
- {
49
- "hooks": [{ "type": "command", "command": "echo '=== PROJECT CONTEXT ===' && git branch --show-current 2>/dev/null && git log --oneline -3 2>/dev/null && echo '--- Status ---' && git status --short 2>/dev/null | head -10 && echo '--- Recent TODOs ---' && grep -r 'TODO:\\|FIXME:' --include='*.go' --include='*.ts' --include='*.py' -l 2>/dev/null | head -5 && echo '=== END CONTEXT ===' || true" }]
50
- }
51
- ]
52
- }
53
- }
54
- ```
55
-
56
- ## Configuración
57
-
58
- Puedes personalizar qué información se carga editando el comando según el stack del proyecto:
59
-
60
- ```bash
61
- # Para proyectos Go
62
- grep -r 'TODO:\|FIXME:' --include='*.go' .
63
-
64
- # Para proyectos TypeScript/Node
65
- cat package.json | jq '{name,version,scripts}' 2>/dev/null
66
-
67
- # Para proyectos Python
68
- cat pyproject.toml 2>/dev/null | head -20
69
- ```
70
-
71
- ## Notas
72
-
73
- Este hook es read-only — nunca modifica archivos. El overhead es mínimo (< 500ms en proyectos normales).
@@ -1,91 +0,0 @@
1
- ---
2
- name: improve-prompt
3
- description: Intercepts vague user prompts and asks clarifying questions before execution. Bypass with *, /, #, or ! prefix.
4
- event: UserPromptSubmit
5
- action: execute
6
- metadata:
7
- author: project-starter-framework
8
- version: "1.0"
9
- updated: "2026-02"
10
- ---
11
-
12
- # Improve Prompt Hook
13
-
14
- > Intercepts short or vague prompts and asks targeted clarifying questions to improve output quality.
15
-
16
- ## Purpose
17
-
18
- Prevent low-quality AI responses caused by under-specified prompts. When a prompt is vague (< 15 words, no clear action verb), the hook pauses and asks up to 3 clarifying questions before proceeding.
19
-
20
- ## Bypass Prefixes
21
-
22
- Prefix your prompt with any of the following to skip interception and pass through immediately:
23
-
24
- | Prefix | Meaning |
25
- |--------|---------|
26
- | `*` | Force execute as-is |
27
- | `/` | Slash command — pass through |
28
- | `#` | Comment / meta instruction |
29
- | `!` | Override / urgent |
30
-
31
- **Example**: `* just do it` → skips all checks.
32
-
33
- ## Vagueness Detection
34
-
35
- A prompt is considered vague when **both** conditions are true:
36
- 1. Word count < 15
37
- 2. No clear action verb detected (e.g., `create`, `fix`, `refactor`, `add`, `remove`, `update`, `write`, `build`, `test`, `explain`, `analyze`, `generate`)
38
-
39
- ## Clarifying Questions (up to 3)
40
-
41
- Based on what's missing, the hook asks from:
42
-
43
- 1. **Output**: What is the expected output or deliverable?
44
- 2. **Constraints**: What constraints or requirements apply (language, framework, style)?
45
- 3. **Context**: What already exists that I should be aware of?
46
-
47
- ## Companion Skill
48
-
49
- See `.ai-config/skills/prompt-improver/SKILL.md` for the full 4-phase logic used to enrich prompts before execution.
50
-
51
- ## Implementation (Claude Code JSON)
52
-
53
- ```json
54
- {
55
- "hooks": {
56
- "UserPromptSubmit": [
57
- {
58
- "hooks": [
59
- {
60
- "type": "command",
61
- "command": "python3 -c \"\nimport sys, os\nprompt = os.environ.get('CLAUDE_USER_PROMPT', '')\nbypass = ['*', '/', '#', '!']\nif any(prompt.strip().startswith(p) for p in bypass):\n sys.exit(0)\nwords = prompt.strip().split()\naction_verbs = ['create','fix','refactor','add','remove','update','write','build','test','explain','analyze','generate','implement','debug','review','migrate','deploy','configure','setup','delete','rename','move','convert','optimize','document']\nhas_verb = any(v in prompt.lower() for v in action_verbs)\nif len(words) < 15 and not has_verb:\n print('PROMPT IMPROVEMENT NEEDED')\n print('Your prompt appears vague. Please answer up to 3 questions:')\n print(' 1. What is the expected output or deliverable?')\n print(' 2. What constraints apply (language, framework, style)?')\n print(' 3. What already exists that I should be aware of?')\n print('Tip: Prefix with * to skip this check (e.g. \\\"* just do it\\\")')\n sys.exit(1)\nsys.exit(0)\n\""
62
- }
63
- ]
64
- }
65
- ]
66
- }
67
- }
68
- ```
69
-
70
- ## Examples
71
-
72
- ### ✅ Passes Through
73
- ```
74
- * fix it quickly
75
- /commit
76
- # note: use typescript
77
- ! urgent: rollback last change
78
- create a REST endpoint for user authentication using FastAPI with JWT
79
- ```
80
-
81
- ### 🛑 Intercepted (vague)
82
- ```
83
- fix the bug
84
- make it better
85
- add feature
86
- help
87
- ```
88
-
89
- ## Notes
90
-
91
- This hook complements the `prompt-improver` skill. For prompts that pass through but still need enrichment, the skill applies the full 4-phase Analyze → Research → Question → Execute flow.
@@ -1,72 +0,0 @@
1
- ---
2
- name: learning-log
3
- description: Al finalizar sesión, guarda un resumen de lo aprendido y los commits realizados. Trigger: SessionEnd
4
- event: SessionEnd
5
- action: execute
6
- metadata:
7
- author: project-starter-framework
8
- version: "1.0"
9
- ---
10
-
11
- # Learning Log Hook
12
-
13
- > Registra automáticamente los aprendizajes y cambios de cada sesión AI.
14
-
15
- ## Propósito
16
-
17
- Crear un historial de sesiones que documente decisiones técnicas, problemas encontrados y soluciones aplicadas — útil para onboarding, debugging futuro y mejora continua.
18
-
19
- ## Información Registrada
20
-
21
- ### Por Sesión
22
- - Fecha y hora de la sesión
23
- - Branch y commits realizados durante la sesión
24
- - Archivos modificados (lista compacta)
25
- - Resumen de cambios (del último commit message)
26
-
27
- ### Formato de Log
28
-
29
- ```markdown
30
- ## 2026-02-25 — feat(auth): add refresh tokens
31
-
32
- **Branch:** feature/t-42-refresh-tokens
33
- **Commits:** 3
34
- **Files changed:** src/auth/token.go, src/auth/refresh.go, tests/auth_test.go
35
-
36
- **Notes:** Implemented JWT refresh token flow with Redis-backed token rotation.
37
- Issues: Had to handle concurrent refresh requests with mutex.
38
- ```
39
-
40
- ## Comportamiento
41
-
42
- 1. **Ejecuta** al cerrar cada sesión Claude Code
43
- 2. **Recopila** commits realizados desde inicio de sesión
44
- 3. **Escribe** entrada al log `.ai-session-log.md` (gitignored)
45
- 4. **Rota** el log cuando supera 1000 líneas
46
-
47
- ## Implementación Claude Code
48
-
49
- ```json
50
- {
51
- "hooks": {
52
- "SessionEnd": [
53
- {
54
- "hooks": [{ "type": "command", "command": "LOG='.ai-session-log.md'; DATE=$(date '+%Y-%m-%d %H:%M'); BRANCH=$(git branch --show-current 2>/dev/null); COMMITS=$(git log --oneline --since='8 hours ago' 2>/dev/null | head -5); echo \"\\n## $DATE — $BRANCH\\n\\n$COMMITS\" >> $LOG 2>/dev/null || true" }]
55
- }
56
- ]
57
- }
58
- }
59
- ```
60
-
61
- ## Configuración del .gitignore
62
-
63
- Agregar al `.gitignore` del proyecto:
64
- ```
65
- .ai-session-log.md
66
- ```
67
-
68
- O committear el log si se quiere historial compartido con el equipo.
69
-
70
- ## Notas
71
-
72
- El log es local por defecto. Para compartir con el equipo, quitar de `.gitignore` y commitear periódicamente con `chore: update AI session log`.
@@ -1,86 +0,0 @@
1
- ---
2
- name: model-router
3
- description: Detects task complexity from prompt keywords and recommends the appropriate Claude model. Logs a recommendation comment without blocking execution.
4
- event: UserPromptSubmit
5
- action: log
6
-
7
- metadata:
8
- author: project-starter-framework
9
- version: "1.0"
10
- updated: "2026-02"
11
- ---
12
-
13
- # Model Router Hook
14
-
15
- > Recommends the optimal Claude model based on task complexity keywords. Non-blocking — documents the recommendation as a comment.
16
-
17
- ## Purpose
18
-
19
- Help developers choose the right model for cost and quality efficiency. Complex reasoning
20
- tasks benefit from Opus; routine edits benefit from Haiku; most work is Sonnet territory.
21
-
22
- ## Evento
23
-
24
- - **Trigger:** UserPromptSubmit (or SessionStart)
25
- - **Action:** log (recommendation only — does not force model selection)
26
- - **Condition:** Every prompt is evaluated; only logs when a non-default model is recommended
27
-
28
- ## Model Routing Table
29
-
30
- | Keywords in Prompt | Recommended Model | Reason |
31
- |-------------------|-------------------|--------|
32
- | `architect`, `system design`, `design pattern`, `scalability`, `microservice`, `distributed`, `trade-off`, `ADR` | `claude-opus-4-5` | Complex multi-step reasoning required |
33
- | `security audit`, `threat model`, `CVE`, `OWASP`, `pentest`, `cryptography` | `claude-opus-4-5` | Security analysis needs deep reasoning |
34
- | `performance profile`, `memory leak`, `flame graph`, `bottleneck analysis` | `claude-opus-4-5` | Diagnostic reasoning over complex systems |
35
- | `quick fix`, `typo`, `rename`, `lint`, `format`, `simple`, `one-liner`, `obvious` | `claude-haiku-4-5` | Fast and cost-effective for trivial tasks |
36
- | `add comment`, `update README`, `fix spacing`, `bump version` | `claude-haiku-4-5` | Lightweight documentation/formatting tasks |
37
- | *(default — everything else)* | `claude-sonnet-4-5` | Balanced capability and cost |
38
-
39
- ## Lógica
40
-
41
- ```
42
- SI prompt matches opus keywords
43
- ENTONCES log "💡 Model recommendation: claude-opus-4-5 (complex reasoning detected)"
44
- SINO SI prompt matches haiku keywords
45
- ENTONCES log "💡 Model recommendation: claude-haiku-4-5 (simple task detected)"
46
- SINO log nothing (sonnet is default, no recommendation needed)
47
- ```
48
-
49
- ## Implementación
50
-
51
- ### Para Claude Code
52
-
53
- ```json
54
- {
55
- "hooks": {
56
- "UserPromptSubmit": [
57
- {
58
- "matcher": ".*",
59
- "command": "bash .ai-config/scripts/model-router.sh \"$CLAUDE_USER_PROMPT\""
60
- }
61
- ]
62
- }
63
- }
64
- ```
65
-
66
- ### Script: .ai-config/scripts/model-router.sh
67
-
68
- ```bash
69
- #!/bin/bash
70
- PROMPT="$1"
71
- OPUS_PATTERN="architect|system design|design pattern|scalability|microservice|distributed|trade.off|ADR|security audit|threat model|CVE|OWASP|pentest|cryptography|performance profile|memory leak|flame graph|bottleneck analysis"
72
- HAIKU_PATTERN="quick fix|typo|rename|lint|format|simple|one.liner|obvious|add comment|update README|fix spacing|bump version"
73
-
74
- if echo "$PROMPT" | grep -qiE "$OPUS_PATTERN"; then
75
- echo "💡 Model recommendation: claude-opus-4-5 — complex reasoning detected in prompt"
76
- elif echo "$PROMPT" | grep -qiE "$HAIKU_PATTERN"; then
77
- echo "💡 Model recommendation: claude-haiku-4-5 — simple task detected, consider switching for cost savings"
78
- fi
79
- # Default (sonnet): no output needed
80
- ```
81
-
82
- ## Notes
83
-
84
- - This hook is **advisory only** — it does not change the active model
85
- - To actually switch models, use the `/model` command or configure in `CLAUDE.md`
86
- - Tune the keyword patterns for your team's vocabulary
@@ -1,64 +0,0 @@
1
- ---
2
- name: secret-scanner
3
- description: Escanea archivos antes de escribir/editar para detectar secrets y credenciales. Trigger: PreToolUse Write/Edit
4
- event: PreToolUse
5
- tools:
6
- - Write
7
- - Edit
8
- action: warn
9
- metadata:
10
- author: project-starter-framework
11
- version: "1.0"
12
- ---
13
-
14
- # Secret Scanner Hook
15
-
16
- > Detecta secrets, tokens y credenciales antes de escribir archivos.
17
-
18
- ## Propósito
19
-
20
- Prevenir que API keys, tokens, passwords y otras credenciales sean escritas en archivos del proyecto o commits.
21
-
22
- ## Patrones Detectados
23
-
24
- | Patrón | Ejemplo |
25
- |--------|---------|
26
- | AWS keys | `AKIA[0-9A-Z]{16}` |
27
- | Private keys | `-----BEGIN (RSA\|EC\|DSA) PRIVATE KEY-----` |
28
- | Tokens Bearer | `Bearer [a-zA-Z0-9_-]{20,}` |
29
- | GitHub PAT | `ghp_[a-zA-Z0-9]{36}` |
30
- | Generic secret | `(secret\|password\|passwd\|pwd)\s*=\s*[^\s]{8,}` |
31
- | API Key pattern | `api[_-]?key\s*=\s*[^\s]{8,}` |
32
- | .env secrets | Variables en archivos `.env` con valores reales |
33
-
34
- ## Comportamiento
35
-
36
- 1. **Analiza** el contenido antes de escribir
37
- 2. **Detecta** patrones de secrets conocidos
38
- 3. **Alerta** al usuario con la línea problemática
39
- 4. **Sugiere** usar variables de entorno o `.env.example` en su lugar
40
-
41
- ## Implementación Claude Code
42
-
43
- ```json
44
- {
45
- "hooks": {
46
- "PreToolUse": [
47
- {
48
- "matcher": "Write",
49
- "hooks": [{ "type": "command", "command": "echo \"$TOOL_INPUT\" | python3 -c \"import sys,re; content=sys.stdin.read(); patterns=[r'AKIA[0-9A-Z]{16}', r'-----BEGIN.*(RSA|EC).PRIVATE', r'ghp_[a-zA-Z0-9]{36}', r'(?i)(password|secret|api_?key)\\s*=\\s*[\\S]{8,}']; found=[p for p in patterns if re.search(p,content)]; print('SECRET DETECTED: '+str(found)) if found else None; sys.exit(1 if found else 0)\"" }]
50
- }
51
- ]
52
- }
53
- }
54
- ```
55
-
56
- ## Excepciones Legítimas
57
-
58
- - Archivos `.env.example` con valores placeholder (`YOUR_KEY_HERE`)
59
- - Archivos de test con datos ficticios (`fake-secret-for-testing`)
60
- - Documentación que explica el formato (sin valores reales)
61
-
62
- ## Notas
63
-
64
- Complementa al hook `block-dangerous-commands`. Para secrets reales usar siempre variables de entorno.
@@ -1,102 +0,0 @@
1
- ---
2
- name: skill-validator
3
- description: Validates new SKILL.md files being written to ensure they follow the required format and conventions.
4
- event: PreToolUse
5
- tools:
6
- - Write
7
- - Edit
8
- match_pattern: ".ai-config/skills/.*/SKILL\\.md"
9
- action: warn
10
- metadata:
11
- author: project-starter-framework
12
- version: "1.0"
13
- updated: "2026-02"
14
- ---
15
-
16
- # Skill Validator Hook
17
-
18
- > Validates SKILL.md files before they are written to ensure they meet required format standards.
19
-
20
- ## Purpose
21
-
22
- Prevent malformed or incomplete skill files from being saved. Catches common issues like missing required fields, absolute paths, wildcard tool usage, and missing trigger keywords.
23
-
24
- ## Checks Performed
25
-
26
- | Check | Rule |
27
- |-------|------|
28
- | `name` field | Must be present in frontmatter |
29
- | `description` field | Must contain trigger keywords (e.g., `Trigger:`) |
30
- | `tags` field | Must be present and non-empty |
31
- | Absolute paths | No `/Users/` or `/home/` paths in content |
32
- | Wildcard tools | Tools list must not contain `"*"` |
33
-
34
- ## Behavior
35
-
36
- 1. **Intercepts** Write/Edit operations targeting `SKILL.md` files under `.ai-config/skills/`
37
- 2. **Reads** the content being written
38
- 3. **Validates** each rule above
39
- 4. **Warns** with specific failure reasons if any check fails
40
- 5. **Allows** the write to proceed (action: warn, not block)
41
-
42
- ## Implementation (Claude Code JSON)
43
-
44
- ```json
45
- {
46
- "hooks": {
47
- "PreToolUse": [
48
- {
49
- "matcher": "Write",
50
- "hooks": [
51
- {
52
- "type": "command",
53
- "command": "python3 -c \"\nimport sys, os, json, re\ntool_input = os.environ.get('TOOL_INPUT', '{}')\ntry:\n data = json.loads(tool_input)\nexcept Exception:\n sys.exit(0)\nfile_path = data.get('file_path', data.get('path', ''))\nif not re.search(r'\\.ai-config/skills/.+/SKILL\\.md', file_path):\n sys.exit(0)\ncontent = data.get('content', '')\nwarnings = []\nif not re.search(r'^name:\\s*.+', content, re.MULTILINE):\n warnings.append('MISSING: name field in frontmatter')\nif not re.search(r'Trigger:', content):\n warnings.append('MISSING: Trigger keywords in description field')\nif not re.search(r'^tags:', content, re.MULTILINE):\n warnings.append('MISSING: tags field in frontmatter')\nif re.search(r'/Users/|/home/', content):\n warnings.append('INVALID: Absolute path detected (/Users/ or /home/). Use relative paths.')\nif re.search(r'tools:\\s*\\[\\s*\\\"\\*\\\"', content) or re.search(r\"tools:\\s*\\[\\s*'\\*'\", content):\n warnings.append('INVALID: Wildcard tool [\\\"*\\\"] is not allowed. List specific tools.')\nif warnings:\n print('SKILL VALIDATION WARNINGS:')\n for w in warnings:\n print(' - ' + w)\n print('Fix these issues to ensure the skill works correctly.')\nsys.exit(0)\n\""
54
- }
55
- ]
56
- },
57
- {
58
- "matcher": "Edit",
59
- "hooks": [
60
- {
61
- "type": "command",
62
- "command": "python3 -c \"\nimport sys, os, json, re\ntool_input = os.environ.get('TOOL_INPUT', '{}')\ntry:\n data = json.loads(tool_input)\nexcept Exception:\n sys.exit(0)\nfile_path = data.get('file_path', data.get('path', ''))\nif not re.search(r'\\.ai-config/skills/.+/SKILL\\.md', file_path):\n sys.exit(0)\nnew_content = data.get('new_str', data.get('new_content', ''))\nif not new_content:\n sys.exit(0)\nwarnings = []\nif re.search(r'/Users/|/home/', new_content):\n warnings.append('INVALID: Absolute path detected (/Users/ or /home/). Use relative paths.')\nif re.search(r'tools:\\s*\\[\\s*\\\"\\*\\\"', new_content) or re.search(r\"tools:\\s*\\[\\s*'\\*'\", new_content):\n warnings.append('INVALID: Wildcard tool [\\\"*\\\"] is not allowed. List specific tools.')\nif warnings:\n print('SKILL VALIDATION WARNINGS (Edit):')\n for w in warnings:\n print(' - ' + w)\nsys.exit(0)\n\""
63
- }
64
- ]
65
- }
66
- ]
67
- }
68
- }
69
- ```
70
-
71
- ## Examples
72
-
73
- ### ✅ Valid SKILL.md
74
- ```yaml
75
- ---
76
- name: my-skill
77
- description: >
78
- Does something useful.
79
- Trigger: keyword1, keyword2
80
- tools:
81
- - Read
82
- - Bash
83
- metadata:
84
- tags: [tag1, tag2]
85
- ---
86
- ```
87
-
88
- ### ❌ Will Warn
89
- ```yaml
90
- ---
91
- # Missing name field
92
- description: Does something. # Missing Trigger:
93
- tools:
94
- - "*" # Wildcard not allowed
95
- ---
96
-
97
- # Content with /Users/john/project/file.ts ← absolute path
98
- ```
99
-
100
- ## Notes
101
-
102
- This hook validates Write and Edit operations. For a full skill authoring guide, see `.ai-config/skills/_TEMPLATE.md`.