@autocode-cli/autocode 0.1.12 → 0.1.14

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 (166) hide show
  1. package/README.md +1 -1
  2. package/dist/cli/commands/init.js +1 -1
  3. package/dist/cli/commands/init.js.map +1 -1
  4. package/dist/cli/commands/list.js +2 -2
  5. package/dist/cli/commands/list.js.map +1 -1
  6. package/dist/cli/commands/move.js +3 -3
  7. package/dist/cli/commands/move.js.map +1 -1
  8. package/dist/cli/commands/new.js +3 -3
  9. package/dist/cli/commands/new.js.map +1 -1
  10. package/dist/core/column.d.ts +0 -4
  11. package/dist/core/column.d.ts.map +1 -1
  12. package/dist/core/column.js +0 -6
  13. package/dist/core/column.js.map +1 -1
  14. package/dist/core/ticket.d.ts +1 -1
  15. package/dist/core/ticket.js +4 -4
  16. package/dist/core/ticket.js.map +1 -1
  17. package/dist/core/workflow.d.ts +1 -1
  18. package/dist/core/workflow.js +4 -4
  19. package/dist/server/api.d.ts.map +1 -1
  20. package/dist/server/api.js +168 -5
  21. package/dist/server/api.js.map +1 -1
  22. package/dist/server/dashboard/pages/autocreate.d.ts +9 -0
  23. package/dist/server/dashboard/pages/autocreate.d.ts.map +1 -0
  24. package/dist/server/dashboard/pages/autocreate.js +847 -0
  25. package/dist/server/dashboard/pages/autocreate.js.map +1 -0
  26. package/dist/server/dashboard/pages/index.d.ts +1 -0
  27. package/dist/server/dashboard/pages/index.d.ts.map +1 -1
  28. package/dist/server/dashboard/pages/index.js +1 -0
  29. package/dist/server/dashboard/pages/index.js.map +1 -1
  30. package/dist/server/dashboard/pages/pipeline-configurator.d.ts.map +1 -1
  31. package/dist/server/dashboard/pages/pipeline-configurator.js +198 -0
  32. package/dist/server/dashboard/pages/pipeline-configurator.js.map +1 -1
  33. package/dist/server/dashboard/scripts/index.js +3 -3
  34. package/dist/server/dashboard.d.ts +1 -1
  35. package/dist/server/dashboard.d.ts.map +1 -1
  36. package/dist/server/dashboard.js +1 -1
  37. package/dist/server/dashboard.js.map +1 -1
  38. package/dist/server/index.d.ts.map +1 -1
  39. package/dist/server/index.js +9 -1
  40. package/dist/server/index.js.map +1 -1
  41. package/dist/services/autocreate.d.ts +34 -0
  42. package/dist/services/autocreate.d.ts.map +1 -0
  43. package/dist/services/autocreate.js +503 -0
  44. package/dist/services/autocreate.js.map +1 -0
  45. package/dist/services/claude.d.ts +4 -1
  46. package/dist/services/claude.d.ts.map +1 -1
  47. package/dist/services/claude.js +7 -4
  48. package/dist/services/claude.js.map +1 -1
  49. package/dist/types/index.d.ts +49 -0
  50. package/dist/types/index.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/templates/analysis-prompt.en.md +77 -0
  53. package/templates/analysis-prompt.fr.md +87 -0
  54. package/templates/catalog.yaml +103 -1
  55. package/templates/prompts/accessibility-check.en.md +25 -0
  56. package/templates/prompts/accessibility-check.fr.md +25 -0
  57. package/templates/prompts/api-endpoints-test.en.md +26 -0
  58. package/templates/prompts/api-endpoints-test.fr.md +26 -0
  59. package/templates/prompts/backlog.en.md +8 -19
  60. package/templates/prompts/backlog.fr.md +8 -19
  61. package/templates/prompts/build-dist.en.md +20 -0
  62. package/templates/prompts/build-dist.fr.md +20 -0
  63. package/templates/prompts/ci-gitlab-validate.en.md +22 -0
  64. package/templates/prompts/ci-gitlab-validate.fr.md +22 -0
  65. package/templates/prompts/claude-integration-test.en.md +22 -0
  66. package/templates/prompts/claude-integration-test.fr.md +22 -0
  67. package/templates/prompts/cli-smoke-test.en.md +30 -0
  68. package/templates/prompts/cli-smoke-test.fr.md +30 -0
  69. package/templates/prompts/dashboard-responsive.en.md +27 -0
  70. package/templates/prompts/dashboard-responsive.fr.md +27 -0
  71. package/templates/prompts/dead-code-check.en.md +25 -0
  72. package/templates/prompts/dead-code-check.fr.md +25 -0
  73. package/templates/prompts/deps-licenses.en.md +23 -0
  74. package/templates/prompts/deps-licenses.fr.md +23 -0
  75. package/templates/prompts/deps-outdated.en.md +23 -0
  76. package/templates/prompts/deps-outdated.fr.md +23 -0
  77. package/templates/prompts/design.en.md +2 -2
  78. package/templates/prompts/design.fr.md +2 -2
  79. package/templates/prompts/dev.en.md +2 -2
  80. package/templates/prompts/dev.fr.md +2 -2
  81. package/templates/prompts/docs-readme-validate.en.md +22 -0
  82. package/templates/prompts/docs-readme-validate.fr.md +22 -0
  83. package/templates/prompts/done.en.md +2 -2
  84. package/templates/prompts/done.fr.md +2 -2
  85. package/templates/prompts/error-handling-review.en.md +24 -0
  86. package/templates/prompts/error-handling-review.fr.md +24 -0
  87. package/templates/prompts/esm-compatibility.en.md +24 -0
  88. package/templates/prompts/esm-compatibility.fr.md +24 -0
  89. package/templates/prompts/file-watcher-test.en.md +20 -0
  90. package/templates/prompts/file-watcher-test.fr.md +20 -0
  91. package/templates/prompts/format-prettier-setup.en.md +21 -0
  92. package/templates/prompts/format-prettier-setup.fr.md +21 -0
  93. package/templates/prompts/git-conventional-commits.en.md +21 -0
  94. package/templates/prompts/git-conventional-commits.fr.md +21 -0
  95. package/templates/prompts/git-hooks-setup.en.md +27 -0
  96. package/templates/prompts/git-hooks-setup.fr.md +27 -0
  97. package/templates/prompts/graceful-shutdown.en.md +25 -0
  98. package/templates/prompts/graceful-shutdown.fr.md +25 -0
  99. package/templates/prompts/i18n-completeness.en.md +21 -0
  100. package/templates/prompts/i18n-completeness.fr.md +21 -0
  101. package/templates/prompts/in-progress.en.md +2 -2
  102. package/templates/prompts/in-progress.fr.md +2 -2
  103. package/templates/prompts/landing-html-validate.en.md +23 -0
  104. package/templates/prompts/landing-html-validate.fr.md +23 -0
  105. package/templates/prompts/lint-eslint-setup.en.md +20 -0
  106. package/templates/prompts/lint-eslint-setup.fr.md +20 -0
  107. package/templates/prompts/node-version-check.en.md +21 -0
  108. package/templates/prompts/node-version-check.fr.md +21 -0
  109. package/templates/prompts/npm-publish-dry-run.en.md +25 -0
  110. package/templates/prompts/npm-publish-dry-run.fr.md +25 -0
  111. package/templates/prompts/pkg-exports-validate.en.md +23 -0
  112. package/templates/prompts/pkg-exports-validate.fr.md +23 -0
  113. package/templates/prompts/port-conflict-handling.en.md +22 -0
  114. package/templates/prompts/port-conflict-handling.fr.md +22 -0
  115. package/templates/prompts/qualification.en.md +2 -2
  116. package/templates/prompts/qualification.fr.md +2 -2
  117. package/templates/prompts/retest-cypress.en.md +2 -6
  118. package/templates/prompts/retest-cypress.fr.md +2 -6
  119. package/templates/prompts/retest-playwright.en.md +1 -4
  120. package/templates/prompts/retest-playwright.fr.md +1 -4
  121. package/templates/prompts/retest.en.md +1 -4
  122. package/templates/prompts/retest.fr.md +1 -4
  123. package/templates/prompts/review-best-practices.en.md +2 -6
  124. package/templates/prompts/review-best-practices.fr.md +2 -6
  125. package/templates/prompts/review-code.en.md +2 -6
  126. package/templates/prompts/review-code.fr.md +2 -6
  127. package/templates/prompts/review-consistency.en.md +2 -6
  128. package/templates/prompts/review-consistency.fr.md +2 -6
  129. package/templates/prompts/review-no-duplication.en.md +2 -6
  130. package/templates/prompts/review-no-duplication.fr.md +2 -6
  131. package/templates/prompts/review-security.en.md +2 -2
  132. package/templates/prompts/review-security.fr.md +2 -2
  133. package/templates/prompts/security-audit.en.md +20 -0
  134. package/templates/prompts/security-audit.fr.md +20 -0
  135. package/templates/prompts/security-secrets.en.md +26 -0
  136. package/templates/prompts/security-secrets.fr.md +26 -0
  137. package/templates/prompts/specification.en.md +2 -2
  138. package/templates/prompts/specification.fr.md +2 -2
  139. package/templates/prompts/splitter.en.md +3 -4
  140. package/templates/prompts/splitter.fr.md +3 -4
  141. package/templates/prompts/template-validation.en.md +23 -0
  142. package/templates/prompts/template-validation.fr.md +23 -0
  143. package/templates/prompts/testing-coverage.en.md +20 -0
  144. package/templates/prompts/testing-coverage.fr.md +20 -0
  145. package/templates/prompts/testing-cypress.en.md +1 -4
  146. package/templates/prompts/testing-cypress.fr.md +1 -4
  147. package/templates/prompts/testing-integration.en.md +1 -4
  148. package/templates/prompts/testing-integration.fr.md +1 -4
  149. package/templates/prompts/testing-playwright.en.md +1 -4
  150. package/templates/prompts/testing-playwright.fr.md +1 -4
  151. package/templates/prompts/testing-unit.en.md +1 -4
  152. package/templates/prompts/testing-unit.fr.md +1 -4
  153. package/templates/prompts/testing-vitest.en.md +17 -0
  154. package/templates/prompts/testing-vitest.fr.md +17 -0
  155. package/templates/prompts/typecheck.en.md +17 -0
  156. package/templates/prompts/typecheck.fr.md +17 -0
  157. package/templates/prompts/update-docs.en.md +2 -6
  158. package/templates/prompts/update-docs.fr.md +2 -6
  159. package/templates/prompts/version-semver.en.md +20 -0
  160. package/templates/prompts/version-semver.fr.md +20 -0
  161. package/templates/prompts/websocket-test.en.md +19 -0
  162. package/templates/prompts/websocket-test.fr.md +19 -0
  163. package/templates/prompts/yaml-validate.en.md +24 -0
  164. package/templates/prompts/yaml-validate.fr.md +24 -0
  165. package/templates/prompts/ready.en.md +0 -31
  166. package/templates/prompts/ready.fr.md +0 -31
@@ -12,12 +12,8 @@ Verify code integrates harmoniously with existing project architecture.
12
12
  4. Check error handling (uniform try/catch)
13
13
  5. Verify correct Pinia store usage
14
14
  6. Fix inconsistencies
15
- 7. If out of scope work detected:
16
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
17
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
18
- - In scope: handle directly in current ticket
19
- 8. Document: `autocode comment <ticket-key> "Review consistency OK"`
20
- 9. Advance: `autocode next <ticket-key>`
15
+ 7. Document: `autocode comment <ticket-key> "Review consistency OK"`
16
+ 8. Advance: `autocode next <ticket-key>`
21
17
 
22
18
  > Or return: `autocode move <ticket-key> <target-column-slug>`
23
19
 
@@ -12,12 +12,8 @@ Verifier que le code s'integre harmonieusement avec l'architecture existante du
12
12
  4. Controler la gestion d'erreurs (try/catch uniforme)
13
13
  5. Verifier l'usage correct des stores Pinia
14
14
  6. Corriger les incoherences
15
- 7. Si travail hors scope detecte :
16
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
17
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
18
- - Dans le scope : traiter directement dans le ticket actuel
19
- 8. Documenter : `autocode comment <ticket-key> "Review consistency OK"`
20
- 9. Avancer : `autocode next <ticket-key>`
15
+ 7. Documenter : `autocode comment <ticket-key> "Review consistency OK"`
16
+ 8. Avancer : `autocode next <ticket-key>`
21
17
 
22
18
  > Ou retour : `autocode move <ticket-key> <target-column-slug>`
23
19
 
@@ -12,12 +12,8 @@ Identify and eliminate code duplication. Factor into reusable functions/composab
12
12
  4. Detect copy-pasted business logic
13
13
  5. Extract to composable/service/shared function if >2 usages
14
14
  6. Update all existing calls
15
- 7. If out of scope work detected:
16
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
17
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
18
- - In scope: handle directly in current ticket
19
- 8. Document: `autocode comment <ticket-key> "Review no duplication OK"`
20
- 9. Advance: `autocode next <ticket-key>`
15
+ 7. Document: `autocode comment <ticket-key> "Review no duplication OK"`
16
+ 8. Advance: `autocode next <ticket-key>`
21
17
 
22
18
  > Or return: `autocode move <ticket-key> <target-column-slug>`
23
19
 
@@ -12,12 +12,8 @@ Identifier et eliminer la duplication de code. Factoriser en fonctions/composabl
12
12
  4. Detecter la logique metier copiee-collee
13
13
  5. Extraire en composable/service/fonction partagee si >2 usages
14
14
  6. Mettre a jour tous les appels existants
15
- 7. Si travail hors scope detecte :
16
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
17
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
18
- - Dans le scope : traiter directement dans le ticket actuel
19
- 8. Documenter : `autocode comment <ticket-key> "Review no duplication OK"`
20
- 9. Avancer : `autocode next <ticket-key>`
15
+ 7. Documenter : `autocode comment <ticket-key> "Review no duplication OK"`
16
+ 8. Avancer : `autocode next <ticket-key>`
21
17
 
22
18
  > Ou retour : `autocode move <ticket-key> <target-column-slug>`
23
19
 
@@ -14,8 +14,8 @@ Security audit. Identify and fix potential vulnerabilities (OWASP Top 10).
14
14
  6. Audit API calls (injection, XSS)
15
15
  7. Fix vulnerabilities
16
16
  8. If out of scope work detected:
17
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
18
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
17
+ - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column ready`
18
+ - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
19
19
  - In scope: handle directly in current ticket
20
20
  9. Document: `autocode comment <ticket-key> "Review security OK"`
21
21
  10. Advance: `autocode next <ticket-key>`
@@ -14,8 +14,8 @@ Audit securite. Identifier et corriger les vulnerabilites potentielles (OWASP To
14
14
  6. Auditer les appels API (injection, XSS)
15
15
  7. Corriger les vulnerabilites
16
16
  8. Si travail hors scope detecte :
17
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
18
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
17
+ - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column ready`
18
+ - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column backlog`
19
19
  - Dans le scope : traiter directement dans le ticket actuel
20
20
  9. Documenter : `autocode comment <ticket-key> "Review security OK"`
21
21
  10. Avancer : `autocode next <ticket-key>`
@@ -0,0 +1,20 @@
1
+ # npm Security Audit
2
+
3
+ ## Role
4
+ Check for security vulnerabilities in project dependencies.
5
+
6
+ ## Actions
7
+ 1. Run `npm audit` to list vulnerabilities
8
+ 2. Analyze severity level (low, moderate, high, critical)
9
+ 3. For critical/high vulnerabilities, run `npm audit fix`
10
+ 4. If vulnerabilities persist, evaluate:
11
+ - Manual dependency update
12
+ - Replacement with alternative
13
+ - Risk acceptance with justification
14
+ 5. Document accepted vulnerabilities
15
+
16
+ ## Validation Criteria
17
+ - [ ] `npm audit` executed
18
+ - [ ] No critical vulnerabilities
19
+ - [ ] No unaddressed high vulnerabilities
20
+ - [ ] Accepted vulnerabilities documented
@@ -0,0 +1,20 @@
1
+ # Audit de sécurité npm
2
+
3
+ ## Rôle
4
+ Vérifier les vulnérabilités de sécurité dans les dépendances du projet.
5
+
6
+ ## Actions
7
+ 1. Exécuter `npm audit` pour lister les vulnérabilités
8
+ 2. Analyser le niveau de sévérité (low, moderate, high, critical)
9
+ 3. Pour les vulnérabilités critiques/high, exécuter `npm audit fix`
10
+ 4. Si des vulnérabilités persistent, évaluer:
11
+ - Mise à jour manuelle de la dépendance
12
+ - Remplacement par une alternative
13
+ - Acceptation du risque avec justification
14
+ 5. Documenter les vulnérabilités acceptées
15
+
16
+ ## Critères de validation
17
+ - [ ] `npm audit` exécuté
18
+ - [ ] Aucune vulnérabilité critique (critical)
19
+ - [ ] Aucune vulnérabilité haute (high) non traitée
20
+ - [ ] Vulnérabilités acceptées documentées
@@ -0,0 +1,26 @@
1
+ # Secrets Detection
2
+
3
+ ## Role
4
+ Verify no secrets or credentials are present in source code.
5
+
6
+ ## Actions
7
+ 1. Install gitleaks if missing:
8
+ ```bash
9
+ # or use npx @secretlint/secretlint
10
+ ```
11
+ 2. Scan repository:
12
+ ```bash
13
+ npx @secretlint/secretlint "**/*"
14
+ ```
15
+ 3. Check sensitive files:
16
+ - .env (must not be committed)
17
+ - Configuration files
18
+ - Templates
19
+ 4. Verify .gitignore includes sensitive files
20
+ 5. Scan git history if needed
21
+
22
+ ## Validation Criteria
23
+ - [ ] No secrets detected in src/
24
+ - [ ] .env in .gitignore
25
+ - [ ] No hardcoded tokens/API keys
26
+ - [ ] Clean git history
@@ -0,0 +1,26 @@
1
+ # Détection des secrets
2
+
3
+ ## Rôle
4
+ Vérifier qu'aucun secret ou credential n'est présent dans le code source.
5
+
6
+ ## Actions
7
+ 1. Installer gitleaks si absent:
8
+ ```bash
9
+ # ou utiliser npx @secretlint/secretlint
10
+ ```
11
+ 2. Scanner le repository:
12
+ ```bash
13
+ npx @secretlint/secretlint "**/*"
14
+ ```
15
+ 3. Vérifier les fichiers sensibles:
16
+ - .env (ne doit pas être commité)
17
+ - Fichiers de configuration
18
+ - Templates
19
+ 4. Vérifier .gitignore inclut les fichiers sensibles
20
+ 5. Scanner l'historique git si nécessaire
21
+
22
+ ## Critères de validation
23
+ - [ ] Aucun secret détecté dans src/
24
+ - [ ] .env dans .gitignore
25
+ - [ ] Pas de tokens/clés API hardcodés
26
+ - [ ] Historique git propre
@@ -13,8 +13,8 @@ Write detailed technical specifications for the ticket. Define the implementatio
13
13
  5. Specify API contracts if applicable
14
14
  6. Document edge cases and error handling
15
15
  7. If out of scope work detected:
16
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
17
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
16
+ - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column ready`
17
+ - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
18
18
  - In scope: handle directly in current ticket
19
19
  8. Document: `autocode comment <ticket-key> "Specification complete: <technical approach>"`
20
20
  9. Advance: `autocode next <ticket-key>`
@@ -13,8 +13,8 @@ Rediger les specifications techniques detaillees pour le ticket. Definir clairem
13
13
  5. Specifier les contrats API si applicable
14
14
  6. Documenter les cas limites et la gestion d'erreurs
15
15
  7. Si travail hors scope detecte :
16
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
17
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
16
+ - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column ready`
17
+ - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteres>" --semver patch --column backlog`
18
18
  - Dans le scope : traiter directement dans le ticket actuel
19
19
  8. Documenter : `autocode comment <ticket-key> "Specification terminee : <approche technique>"`
20
20
  9. Avancer : `autocode next <ticket-key>`
@@ -18,12 +18,11 @@ If the task is small enough to be completed in one go, proceed directly without
18
18
  2. Identify natural boundaries between features, layers, or responsibilities
19
19
  3. Define clear acceptance criteria for each sub-ticket
20
20
  4. Ensure each split ticket is independently testable and deployable
21
- 5. Create sub-tickets: `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
21
+ 5. Create sub-tickets: `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
22
22
  6. Verify no functionality has been forgotten or duplicated across tickets
23
23
  7. Create an integration ticket that references all sub-tickets to validate cohesion
24
- 8. If out of scope work detected: `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
25
- 9. Document: `autocode comment <ticket-key> "[summary]"`
26
- 10. Advance: `autocode next <ticket-key>`
24
+ 8. Document: `autocode comment <ticket-key> "[summary]"`
25
+ 9. Advance: `autocode next <ticket-key>`
27
26
 
28
27
  > Or return: `autocode move <ticket-key> <target-column-slug>`
29
28
 
@@ -18,12 +18,11 @@ Si la tâche est suffisamment petite pour être complétée en une fois, procéd
18
18
  2. Identifier les frontières naturelles entre fonctionnalités, couches ou responsabilités
19
19
  3. Définir des critères d'acceptation clairs pour chaque sous-ticket
20
20
  4. S'assurer que chaque ticket découpé est testable et déployable indépendamment
21
- 5. Créer les sous-tickets : `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
21
+ 5. Créer les sous-tickets : `autocode new "<title>" "<description>" --priority P2 --labels "<labels>" --acceptance "<criteria>" --semver patch --column backlog`
22
22
  6. Vérifier qu'aucune fonctionnalité n'a été oubliée ou dupliquée entre les tickets
23
23
  7. Créer un ticket d'intégration qui référence tous les sous-tickets pour valider la cohésion
24
- 8. Si travail hors scope détecté : `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
25
- 9. Documenter : `autocode comment <ticket-key> "[résumé]"`
26
- 10. Avancer : `autocode next <ticket-key>`
24
+ 8. Documenter : `autocode comment <ticket-key> "[résumé]"`
25
+ 9. Avancer : `autocode next <ticket-key>`
27
26
 
28
27
  > Ou retourner : `autocode move <ticket-key> <target-column-slug>`
29
28
 
@@ -0,0 +1,23 @@
1
+ # Template Validation
2
+
3
+ ## Role
4
+ Verify project templates are correct and functional.
5
+
6
+ ## Actions
7
+ 1. List templates in templates/
8
+ 2. For each template:
9
+ - Verify YAML/Markdown syntax
10
+ - Check placeholders
11
+ - Test generation with `autocode init`
12
+ 3. Verify generated structure:
13
+ - .autocode/
14
+ - .autocode/tickets/
15
+ - .autocode/config.yml
16
+ - pipeline.yml
17
+ 4. Test different configurations
18
+
19
+ ## Validation Criteria
20
+ - [ ] All templates parse without errors
21
+ - [ ] `autocode init` generates correct structure
22
+ - [ ] Generated files are valid
23
+ - [ ] No unreplaced placeholders
@@ -0,0 +1,23 @@
1
+ # Validation des templates
2
+
3
+ ## Rôle
4
+ Vérifier que les templates de projet sont corrects et fonctionnels.
5
+
6
+ ## Actions
7
+ 1. Lister les templates dans templates/
8
+ 2. Pour chaque template:
9
+ - Vérifier la syntaxe YAML/Markdown
10
+ - Vérifier les placeholders
11
+ - Tester la génération avec `autocode init`
12
+ 3. Vérifier la structure générée:
13
+ - .autocode/
14
+ - .autocode/tickets/
15
+ - .autocode/config.yml
16
+ - pipeline.yml
17
+ 4. Tester différentes configurations
18
+
19
+ ## Critères de validation
20
+ - [ ] Tous les templates parsent sans erreur
21
+ - [ ] `autocode init` génère la bonne structure
22
+ - [ ] Fichiers générés sont valides
23
+ - [ ] Pas de placeholder non remplacé
@@ -0,0 +1,20 @@
1
+ # Code Coverage
2
+
3
+ ## Role
4
+ Measure and validate code coverage by unit tests.
5
+
6
+ ## Actions
7
+ 1. Run `npx vitest run --coverage`
8
+ 2. Analyze generated coverage report
9
+ 3. Identify files with insufficient coverage (<80%)
10
+ 4. Check coverage of critical modules:
11
+ - src/core/ (ticket.ts, column.ts, workflow.ts)
12
+ - src/server/api.ts
13
+ - src/services/
14
+ 5. Add tests for uncovered areas if needed
15
+
16
+ ## Validation Criteria
17
+ - [ ] Global coverage >= 70%
18
+ - [ ] Core modules covered at >= 80%
19
+ - [ ] No critical files with 0% coverage
20
+ - [ ] Coverage report generated without errors
@@ -0,0 +1,20 @@
1
+ # Couverture de code
2
+
3
+ ## Rôle
4
+ Mesurer et valider la couverture de code par les tests unitaires.
5
+
6
+ ## Actions
7
+ 1. Exécuter `npx vitest run --coverage`
8
+ 2. Analyser le rapport de couverture généré
9
+ 3. Identifier les fichiers avec couverture insuffisante (<80%)
10
+ 4. Vérifier la couverture des modules critiques:
11
+ - src/core/ (ticket.ts, column.ts, workflow.ts)
12
+ - src/server/api.ts
13
+ - src/services/
14
+ 5. Ajouter des tests pour les zones non couvertes si nécessaire
15
+
16
+ ## Critères de validation
17
+ - [ ] Couverture globale >= 70%
18
+ - [ ] Modules core couverts à >= 80%
19
+ - [ ] Aucun fichier critique avec 0% couverture
20
+ - [ ] Rapport de couverture généré sans erreur
@@ -12,10 +12,7 @@ Write AND execute E2E automated tests to prevent regressions.
12
12
  4. Describe tests clearly (describe/it)
13
13
  5. Execute tests: npx cypress run
14
14
  6. If failures: fix tests or code
15
- 7. If out of scope work detected:
16
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
17
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
18
- - In scope: handle directly in current ticket
15
+ 7. Do not write tests for code outside the ticket scope
19
16
  8. Document: `autocode comment <ticket-key> "Cypress tests OK"`
20
17
  9. Advance: `autocode next <ticket-key>`
21
18
 
@@ -12,10 +12,7 @@ Rediger ET executer des tests E2E automatises pour prevenir les regressions.
12
12
  4. Decrire les tests clairement (describe/it)
13
13
  5. Executer les tests : npx cypress run
14
14
  6. Si echecs : corriger les tests ou le code
15
- 7. Si travail hors scope detecte :
16
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
17
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
18
- - Dans le scope : traiter directement dans le ticket actuel
15
+ 7. Ne pas ecrire de tests pour du code hors scope du ticket
19
16
  8. Documenter : `autocode comment <ticket-key> "Tests Cypress OK"`
20
17
  9. Avancer : `autocode next <ticket-key>`
21
18
 
@@ -13,10 +13,7 @@ Run integration tests to verify components work correctly together. Ensure syste
13
13
  5. Test database operations
14
14
  6. Test external service connections
15
15
  7. Fix any failing tests
16
- 8. If out of scope work detected:
17
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
18
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
19
- - In scope: handle directly in current ticket
16
+ 8. Do not write tests for code outside the ticket scope
20
17
  9. Document: `autocode comment <ticket-key> "Integration tests passed"`
21
18
  10. Advance: `autocode next <ticket-key>`
22
19
 
@@ -13,10 +13,7 @@ Executer les tests d'integration pour verifier que les composants fonctionnent c
13
13
  5. Tester les operations base de donnees
14
14
  6. Tester les connexions aux services externes
15
15
  7. Corriger les tests en echec
16
- 8. Si travail hors scope detecte :
17
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
18
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
19
- - Dans le scope : traiter directement dans le ticket actuel
16
+ 8. Ne pas ecrire de tests pour du code hors scope du ticket
20
17
  9. Documenter : `autocode comment <ticket-key> "Tests d'integration OK"`
21
18
  10. Avancer : `autocode next <ticket-key>`
22
19
 
@@ -12,10 +12,7 @@ Live functional testing with Playwright. Manually verify feature works by naviga
12
12
  4. Test edge cases
13
13
  5. Verify error handling
14
14
  6. Capture screenshots if needed
15
- 7. If out of scope work detected:
16
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
17
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
18
- - In scope: handle directly in current ticket
15
+ 7. Do not test functionality outside the ticket scope
19
16
  8. Document: `autocode comment <ticket-key> "Playwright tests OK"`
20
17
  9. Advance: `autocode next <ticket-key>`
21
18
 
@@ -12,10 +12,7 @@ Test fonctionnel live avec Playwright. Verifier manuellement que la feature fonc
12
12
  4. Tester les cas limites
13
13
  5. Verifier la gestion d'erreurs
14
14
  6. Capturer des screenshots si necessaire
15
- 7. Si travail hors scope detecte :
16
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
17
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
18
- - Dans le scope : traiter directement dans le ticket actuel
15
+ 7. Ne pas tester de fonctionnalites hors scope du ticket
19
16
  8. Documenter : `autocode comment <ticket-key> "Tests Playwright OK"`
20
17
  9. Avancer : `autocode next <ticket-key>`
21
18
 
@@ -13,10 +13,7 @@ Write and run unit tests for the implemented feature. Ensure code coverage and r
13
13
  5. Run all unit tests: `npm test` or equivalent
14
14
  6. Fix any failing tests
15
15
  7. Verify coverage meets project standards
16
- 8. If out of scope work detected:
17
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
18
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
19
- - In scope: handle directly in current ticket
16
+ 8. Do not write tests for code outside the ticket scope
20
17
  9. Document: `autocode comment <ticket-key> "Unit tests passed: <coverage>%"`
21
18
  10. Advance: `autocode next <ticket-key>`
22
19
 
@@ -13,10 +13,7 @@ Ecrire et executer les tests unitaires pour la fonctionnalite implementee. Assur
13
13
  5. Executer tous les tests unitaires : `npm test` ou equivalent
14
14
  6. Corriger les tests en echec
15
15
  7. Verifier que la couverture respecte les standards du projet
16
- 8. Si travail hors scope detecte :
17
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
18
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
19
- - Dans le scope : traiter directement dans le ticket actuel
16
+ 8. Ne pas ecrire de tests pour du code hors scope du ticket
20
17
  9. Documenter : `autocode comment <ticket-key> "Tests unitaires OK : <couverture>%"`
21
18
  10. Avancer : `autocode next <ticket-key>`
22
19
 
@@ -0,0 +1,17 @@
1
+ # Vitest Unit Tests
2
+
3
+ ## Role
4
+ Run unit tests with Vitest and ensure sufficient coverage.
5
+
6
+ ## Actions
7
+ 1. Run `npm run test` or `npx vitest run`
8
+ 2. Verify all tests pass
9
+ 3. Analyze failed tests if any
10
+ 4. Check configuration in vitest.config.ts
11
+ 5. Identify modules not covered by tests
12
+
13
+ ## Validation Criteria
14
+ - [ ] `npm run test` runs without errors
15
+ - [ ] All tests pass (0 failures)
16
+ - [ ] src/**/*.test.ts files are executed
17
+ - [ ] No regressions introduced
@@ -0,0 +1,17 @@
1
+ # Tests unitaires Vitest
2
+
3
+ ## Rôle
4
+ Exécuter les tests unitaires avec Vitest et s'assurer que la couverture est suffisante.
5
+
6
+ ## Actions
7
+ 1. Exécuter `npm run test` ou `npx vitest run`
8
+ 2. Vérifier que tous les tests passent
9
+ 3. Analyser les tests échoués le cas échéant
10
+ 4. Vérifier la configuration dans vitest.config.ts
11
+ 5. Identifier les modules non couverts par les tests
12
+
13
+ ## Critères de validation
14
+ - [ ] `npm run test` s'exécute sans erreur
15
+ - [ ] Tous les tests passent (0 échec)
16
+ - [ ] Les fichiers src/**/*.test.ts sont exécutés
17
+ - [ ] Aucune régression introduite
@@ -0,0 +1,17 @@
1
+ # TypeScript Type Checking
2
+
3
+ ## Role
4
+ Validate that TypeScript code compiles without errors with strict options enabled (strict, noImplicitAny, strictNullChecks, etc.).
5
+
6
+ ## Actions
7
+ 1. Run `npx tsc --noEmit` to check types without generating files
8
+ 2. Analyze compilation errors if any
9
+ 3. Verify tsconfig.json maintains strict options
10
+ 4. Identify unjustified `any` usages
11
+ 5. Fix detected type errors
12
+
13
+ ## Validation Criteria
14
+ - [ ] `npx tsc --noEmit` runs without errors
15
+ - [ ] No implicit `any` in code
16
+ - [ ] All strict options enabled in tsconfig.json
17
+ - [ ] Types properly defined in src/types/
@@ -0,0 +1,17 @@
1
+ # Vérification des types TypeScript
2
+
3
+ ## Rôle
4
+ Valider que le code TypeScript compile sans erreur avec les options strictes activées (strict, noImplicitAny, strictNullChecks, etc.).
5
+
6
+ ## Actions
7
+ 1. Exécuter `npx tsc --noEmit` pour vérifier les types sans générer de fichiers
8
+ 2. Analyser les erreurs de compilation s'il y en a
9
+ 3. Vérifier que tsconfig.json maintient les options strictes
10
+ 4. Identifier les usages de `any` non justifiés
11
+ 5. Corriger les erreurs de types détectées
12
+
13
+ ## Critères de validation
14
+ - [ ] `npx tsc --noEmit` s'exécute sans erreur
15
+ - [ ] Aucun `any` implicite dans le code
16
+ - [ ] Toutes les options strictes sont activées dans tsconfig.json
17
+ - [ ] Les types sont correctement définis dans src/types/
@@ -11,12 +11,8 @@ Document changes for future developers and users.
11
11
  3. Document new features
12
12
  4. Update existing guides if impacted
13
13
  5. Verify doc consistency
14
- 6. If out of scope work detected:
15
- - Slightly out of scope (minor improvement, edge case): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch -c ready`
16
- - Significantly out of scope (new feature, major change): `autocode new "<title>" "<description>" -p P2 -l "<labels>" -a "<criteria>" -s patch`
17
- - In scope: handle directly in current ticket
18
- 7. Document: `autocode comment <ticket-key> "Documentation updated"`
19
- 8. Advance: `autocode next <ticket-key>`
14
+ 6. Document: `autocode comment <ticket-key> "Documentation updated"`
15
+ 7. Advance: `autocode next <ticket-key>`
20
16
 
21
17
  > Or return: `autocode move <ticket-key> <target-column-slug>`
22
18
 
@@ -11,12 +11,8 @@ Documenter les changements pour les futurs developpeurs et utilisateurs.
11
11
  3. Documenter les nouvelles features
12
12
  4. Mettre a jour les guides existants si impactes
13
13
  5. Verifier la coherence de la doc
14
- 6. Si travail hors scope detecte :
15
- - Legerement hors scope (amelioration mineure, cas limite) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch -c ready`
16
- - Tres hors scope (nouvelle feature, changement majeur) : `autocode new "<titre>" "<description>" -p P2 -l "<labels>" -a "<criteres>" -s patch`
17
- - Dans le scope : traiter directement dans le ticket actuel
18
- 7. Documenter : `autocode comment <ticket-key> "Documentation mise a jour"`
19
- 8. Avancer : `autocode next <ticket-key>`
14
+ 6. Documenter : `autocode comment <ticket-key> "Documentation mise a jour"`
15
+ 7. Avancer : `autocode next <ticket-key>`
20
16
 
21
17
  > Ou retour : `autocode move <ticket-key> <target-column-slug>`
22
18
 
@@ -0,0 +1,20 @@
1
+ # Semantic Versioning
2
+
3
+ ## Role
4
+ Validate version follows semver format and is consistent.
5
+
6
+ ## Actions
7
+ 1. Check version in package.json (currently 0.1.13)
8
+ 2. Compare with latest git tag: `git describe --tags`
9
+ 3. Analyze changes since last version:
10
+ - Breaking changes → MAJOR (x.0.0)
11
+ - New features → MINOR (0.x.0)
12
+ - Bug fixes → PATCH (0.0.x)
13
+ 4. Verify consistency with CHANGELOG.md
14
+ 5. Use `just new-tag` to create tag if needed
15
+
16
+ ## Validation Criteria
17
+ - [ ] package.json version in semver format
18
+ - [ ] Git tag matches version
19
+ - [ ] Bump type consistent with changes
20
+ - [ ] CHANGELOG updated
@@ -0,0 +1,20 @@
1
+ # Versioning sémantique
2
+
3
+ ## Rôle
4
+ Valider que la version suit le format semver et est cohérente.
5
+
6
+ ## Actions
7
+ 1. Vérifier la version dans package.json (actuellement 0.1.13)
8
+ 2. Comparer avec le dernier tag git: `git describe --tags`
9
+ 3. Analyser les changements depuis la dernière version:
10
+ - Breaking changes → MAJOR (x.0.0)
11
+ - Nouvelles fonctionnalités → MINOR (0.x.0)
12
+ - Corrections de bugs → PATCH (0.0.x)
13
+ 4. Vérifier cohérence avec CHANGELOG.md
14
+ 5. Utiliser `just new-tag` pour créer un tag si nécessaire
15
+
16
+ ## Critères de validation
17
+ - [ ] Version package.json au format semver
18
+ - [ ] Tag git correspond à la version
19
+ - [ ] Type de bump cohérent avec les changements
20
+ - [ ] CHANGELOG mis à jour
@@ -0,0 +1,19 @@
1
+ # WebSocket Test
2
+
3
+ ## Role
4
+ Verify WebSocket connection works for real-time updates.
5
+
6
+ ## Actions
7
+ 1. Start server with WebSocket enabled
8
+ 2. Connect to WebSocket: `ws://localhost:3456/ws`
9
+ 3. Verify connection message received
10
+ 4. Create/modify a ticket via API
11
+ 5. Verify event received via WebSocket
12
+ 6. Test automatic reconnection
13
+ 7. Check performance with multiple clients
14
+
15
+ ## Validation Criteria
16
+ - [ ] WebSocket connection established
17
+ - [ ] Messages received in real-time
18
+ - [ ] JSON event format correct
19
+ - [ ] No memory leak on multiple connections