create-byan-agent 2.0.1 → 2.1.1

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 (240) hide show
  1. package/API-BYAN-V2.md +741 -0
  2. package/BMAD-QUICK-REFERENCE.md +370 -0
  3. package/CHANGELOG-v2.1.0.md +371 -0
  4. package/LICENSE +1 -1
  5. package/MIGRATION-v2.0-to-v2.1.md +430 -0
  6. package/README-BYAN-V2.md +446 -0
  7. package/README.md +264 -201
  8. package/install/.eslintrc.js +20 -0
  9. package/install/.prettierrc +7 -0
  10. package/install/BUGFIX-CHALK.md +173 -0
  11. package/install/BUGFIX-DOCUMENTATION-INDEX.md +299 -0
  12. package/install/BUGFIX-PATH-RESOLUTION.md +293 -0
  13. package/install/BUGFIX-QUICKSTART.md +184 -0
  14. package/install/BUGFIX-SUMMARY.txt +91 -0
  15. package/install/BUGFIX-VISUAL-SUMMARY.md +253 -0
  16. package/install/DEPLOYMENT-GUIDE-V2.md +431 -0
  17. package/install/DOCS-INDEX.md +261 -0
  18. package/install/GUIDE-INSTALLATION-BYAN-SIMPLE.md +1083 -0
  19. package/install/INSTALLER-V2-CHANGES.md +472 -0
  20. package/install/LICENSE +21 -0
  21. package/install/PUBLICATION-CHECKLIST.md +265 -0
  22. package/install/PUBLISH-GUIDE.md +190 -0
  23. package/install/QUICKSTART.md +311 -0
  24. package/install/README-NPM-PUBLISH.md +298 -0
  25. package/install/README-NPM-SHORT.md +298 -0
  26. package/install/README-NPM.md +433 -0
  27. package/install/README-RACHID.md +302 -0
  28. package/install/README-V2-INDEX.md +306 -0
  29. package/install/README.md +298 -0
  30. package/install/RESUME-EXECUTIF-YAN.md +408 -0
  31. package/install/UPDATE-SUMMARY.md +205 -0
  32. package/install/__tests__/integration/detection-flow.test.js +154 -0
  33. package/install/__tests__/platforms/claude-code.test.js +175 -0
  34. package/install/__tests__/platforms/codex.test.js +80 -0
  35. package/install/__tests__/platforms/copilot-cli.test.js +118 -0
  36. package/install/__tests__/platforms/vscode.test.js +67 -0
  37. package/install/__tests__/utils/file-utils.test.js +87 -0
  38. package/install/__tests__/utils/git-detector.test.js +80 -0
  39. package/install/__tests__/utils/logger.test.js +83 -0
  40. package/install/__tests__/utils/node-detector.test.js +71 -0
  41. package/install/__tests__/utils/os-detector.test.js +63 -0
  42. package/install/__tests__/utils/yaml-utils.test.js +85 -0
  43. package/install/__tests__/yanstaller/detector.test.js +210 -0
  44. package/install/coverage/clover.xml +219 -0
  45. package/install/coverage/coverage-final.json +13 -0
  46. package/install/coverage/lcov-report/base.css +224 -0
  47. package/install/coverage/lcov-report/block-navigation.js +87 -0
  48. package/install/coverage/lcov-report/favicon.png +0 -0
  49. package/install/coverage/lcov-report/index.html +146 -0
  50. package/install/coverage/lcov-report/lib/errors.js.html +268 -0
  51. package/install/coverage/lcov-report/lib/exit-codes.js.html +247 -0
  52. package/install/coverage/lcov-report/lib/index.html +131 -0
  53. package/install/coverage/lcov-report/lib/platforms/claude-code.js.html +343 -0
  54. package/install/coverage/lcov-report/lib/platforms/codex.js.html +361 -0
  55. package/install/coverage/lcov-report/lib/platforms/copilot-cli.js.html +454 -0
  56. package/install/coverage/lcov-report/lib/platforms/index.html +176 -0
  57. package/install/coverage/lcov-report/lib/platforms/index.js.html +127 -0
  58. package/install/coverage/lcov-report/lib/platforms/vscode.js.html +238 -0
  59. package/install/coverage/lcov-report/lib/utils/config-loader.js.html +322 -0
  60. package/install/coverage/lcov-report/lib/utils/file-utils.js.html +397 -0
  61. package/install/coverage/lcov-report/lib/utils/git-detector.js.html +190 -0
  62. package/install/coverage/lcov-report/lib/utils/index.html +206 -0
  63. package/install/coverage/lcov-report/lib/utils/logger.js.html +277 -0
  64. package/install/coverage/lcov-report/lib/utils/node-detector.js.html +259 -0
  65. package/install/coverage/lcov-report/lib/utils/os-detector.js.html +307 -0
  66. package/install/coverage/lcov-report/lib/utils/yaml-utils.js.html +346 -0
  67. package/install/coverage/lcov-report/lib/yanstaller/backuper.js.html +409 -0
  68. package/install/coverage/lcov-report/lib/yanstaller/detector.js.html +508 -0
  69. package/install/coverage/lcov-report/lib/yanstaller/index.html +236 -0
  70. package/install/coverage/lcov-report/lib/yanstaller/index.js.html +364 -0
  71. package/install/coverage/lcov-report/lib/yanstaller/installer.js.html +505 -0
  72. package/install/coverage/lcov-report/lib/yanstaller/interviewer.js.html +349 -0
  73. package/install/coverage/lcov-report/lib/yanstaller/recommender.js.html +379 -0
  74. package/install/coverage/lcov-report/lib/yanstaller/troubleshooter.js.html +352 -0
  75. package/install/coverage/lcov-report/lib/yanstaller/validator.js.html +679 -0
  76. package/install/coverage/lcov-report/lib/yanstaller/wizard.js.html +412 -0
  77. package/install/coverage/lcov-report/platforms/claude-code.js.html +343 -0
  78. package/install/coverage/lcov-report/platforms/codex.js.html +361 -0
  79. package/install/coverage/lcov-report/platforms/copilot-cli.js.html +454 -0
  80. package/install/coverage/lcov-report/platforms/index.html +176 -0
  81. package/install/coverage/lcov-report/platforms/index.js.html +127 -0
  82. package/install/coverage/lcov-report/platforms/vscode.js.html +238 -0
  83. package/install/coverage/lcov-report/prettify.css +1 -0
  84. package/install/coverage/lcov-report/prettify.js +2 -0
  85. package/install/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  86. package/install/coverage/lcov-report/sorter.js +210 -0
  87. package/install/coverage/lcov-report/utils/file-utils.js.html +397 -0
  88. package/install/coverage/lcov-report/utils/git-detector.js.html +190 -0
  89. package/install/coverage/lcov-report/utils/index.html +191 -0
  90. package/install/coverage/lcov-report/utils/logger.js.html +277 -0
  91. package/install/coverage/lcov-report/utils/node-detector.js.html +259 -0
  92. package/install/coverage/lcov-report/utils/os-detector.js.html +307 -0
  93. package/install/coverage/lcov-report/utils/yaml-utils.js.html +346 -0
  94. package/install/coverage/lcov-report/yanstaller/detector.js.html +508 -0
  95. package/install/coverage/lcov-report/yanstaller/index.html +116 -0
  96. package/install/coverage/lcov.info +414 -0
  97. package/install/install.sh +239 -0
  98. package/install/jest.config.js +33 -0
  99. package/install/lib/errors.js +61 -0
  100. package/install/lib/exit-codes.js +54 -0
  101. package/install/lib/platforms/claude-code.js +86 -0
  102. package/install/lib/platforms/codex.js +92 -0
  103. package/install/lib/platforms/copilot-cli.js +123 -0
  104. package/install/lib/platforms/index.js +14 -0
  105. package/install/lib/platforms/vscode.js +51 -0
  106. package/install/lib/utils/config-loader.js +79 -0
  107. package/install/lib/utils/file-utils.js +104 -0
  108. package/install/lib/utils/git-detector.js +35 -0
  109. package/install/lib/utils/logger.js +64 -0
  110. package/install/lib/utils/node-detector.js +58 -0
  111. package/install/lib/utils/os-detector.js +74 -0
  112. package/install/lib/utils/yaml-utils.js +87 -0
  113. package/install/lib/yanstaller/backuper.js +108 -0
  114. package/install/lib/yanstaller/detector.js +141 -0
  115. package/install/lib/yanstaller/index.js +93 -0
  116. package/install/lib/yanstaller/installer.js +140 -0
  117. package/install/lib/yanstaller/interviewer.js +88 -0
  118. package/install/lib/yanstaller/recommender.js +98 -0
  119. package/install/lib/yanstaller/troubleshooter.js +89 -0
  120. package/install/lib/yanstaller/validator.js +198 -0
  121. package/install/lib/yanstaller/wizard.js +109 -0
  122. package/install/package-npm.json +55 -0
  123. package/install/package.json +63 -0
  124. package/install/src/byan-v2/context/copilot-context.js +79 -0
  125. package/install/src/byan-v2/context/session-state.js +98 -0
  126. package/install/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
  127. package/install/src/byan-v2/dispatcher/local-executor.js +221 -0
  128. package/install/src/byan-v2/dispatcher/task-router.js +122 -0
  129. package/install/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
  130. package/install/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
  131. package/install/src/byan-v2/generation/agent-profile-validator.js +113 -0
  132. package/install/src/byan-v2/generation/profile-template.js +113 -0
  133. package/install/src/byan-v2/generation/templates/default-agent.md +49 -0
  134. package/install/src/byan-v2/generation/templates/test-template.md +1 -0
  135. package/install/src/byan-v2/index.js +199 -0
  136. package/install/src/byan-v2/observability/error-tracker.js +105 -0
  137. package/install/src/byan-v2/observability/logger.js +154 -0
  138. package/install/src/byan-v2/observability/metrics-collector.js +194 -0
  139. package/install/src/byan-v2/orchestrator/analysis-state.js +268 -0
  140. package/install/src/byan-v2/orchestrator/generation-state.js +340 -0
  141. package/install/src/byan-v2/orchestrator/interview-state.js +271 -0
  142. package/install/src/byan-v2/orchestrator/state-machine.js +204 -0
  143. package/install/src/core/cache/cache.js +126 -0
  144. package/install/src/core/context/context.js +86 -0
  145. package/install/src/core/dispatcher/dispatcher.js +135 -0
  146. package/install/src/core/worker-pool/worker-pool.js +194 -0
  147. package/install/src/core/workflow/workflow-executor.js +220 -0
  148. package/install/src/index.js +139 -0
  149. package/install/src/observability/dashboard/dashboard.js +191 -0
  150. package/install/src/observability/logger/structured-logger.js +254 -0
  151. package/install/src/observability/metrics/metrics-collector.js +325 -0
  152. package/install/switch-to-v2.sh +126 -0
  153. package/install/test-chalk-fix.sh +210 -0
  154. package/install/test-installer-v2.sh +204 -0
  155. package/install/test-path-resolution.sh +200 -0
  156. package/package.json +53 -33
  157. package/src/byan-v2/context/copilot-context.js +79 -0
  158. package/src/byan-v2/context/session-state.js +98 -0
  159. package/src/byan-v2/data/mantras.json +852 -0
  160. package/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
  161. package/src/byan-v2/dispatcher/five-whys-analyzer.js +310 -0
  162. package/src/byan-v2/dispatcher/local-executor.js +221 -0
  163. package/src/byan-v2/dispatcher/task-router.js +122 -0
  164. package/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
  165. package/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
  166. package/src/byan-v2/generation/agent-profile-validator.js +113 -0
  167. package/src/byan-v2/generation/mantra-validator.js +416 -0
  168. package/src/byan-v2/generation/profile-template.js +113 -0
  169. package/src/byan-v2/generation/templates/default-agent.md +49 -0
  170. package/src/byan-v2/generation/templates/test-template.md +1 -0
  171. package/src/byan-v2/index.js +652 -0
  172. package/src/byan-v2/integration/voice-integration.js +295 -0
  173. package/src/byan-v2/observability/error-tracker.js +105 -0
  174. package/src/byan-v2/observability/logger.js +154 -0
  175. package/src/byan-v2/observability/metrics-collector.js +194 -0
  176. package/src/byan-v2/orchestrator/active-listener.js +541 -0
  177. package/src/byan-v2/orchestrator/analysis-state.js +268 -0
  178. package/src/byan-v2/orchestrator/generation-state.js +340 -0
  179. package/src/byan-v2/orchestrator/glossary-builder.js +431 -0
  180. package/src/byan-v2/orchestrator/interview-state.js +353 -0
  181. package/src/byan-v2/orchestrator/state-machine.js +253 -0
  182. package/src/core/cache/cache.js +126 -0
  183. package/src/core/context/context.js +86 -0
  184. package/src/core/dispatcher/dispatcher.js +135 -0
  185. package/src/core/worker-pool/worker-pool.js +194 -0
  186. package/src/core/workflow/workflow-executor.js +220 -0
  187. package/src/index.js +139 -0
  188. package/src/observability/dashboard/dashboard.js +191 -0
  189. package/src/observability/logger/structured-logger.js +254 -0
  190. package/src/observability/metrics/metrics-collector.js +325 -0
  191. package/templates/.github/agents/bmad-agent-test-dynamic.md +0 -21
  192. package/templates/.github/agents/franck.md +0 -379
  193. /package/{CHANGELOG.md → install/CHANGELOG.md} +0 -0
  194. /package/{bin → install/bin}/create-byan-agent-backup.js +0 -0
  195. /package/{bin → install/bin}/create-byan-agent-fixed.js +0 -0
  196. /package/{bin → install/bin}/create-byan-agent-v2.js +0 -0
  197. /package/{bin → install/bin}/create-byan-agent.js +0 -0
  198. /package/{templates → install/templates}/.github/agents/bmad-agent-bmad-master.md +0 -0
  199. /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-agent-builder.md +0 -0
  200. /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-module-builder.md +0 -0
  201. /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-workflow-builder.md +0 -0
  202. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-analyst.md +0 -0
  203. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-architect.md +0 -0
  204. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-dev.md +0 -0
  205. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-pm.md +0 -0
  206. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quick-flow-solo-dev.md +0 -0
  207. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quinn.md +0 -0
  208. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-sm.md +0 -0
  209. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-tech-writer.md +0 -0
  210. /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-ux-designer.md +0 -0
  211. /package/{templates → install/templates}/.github/agents/bmad-agent-byan-test.md +0 -0
  212. /package/{templates → install/templates}/.github/agents/bmad-agent-byan.md +0 -0
  213. /package/{templates → install/templates}/.github/agents/bmad-agent-carmack.md +0 -0
  214. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-brainstorming-coach.md +0 -0
  215. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-creative-problem-solver.md +0 -0
  216. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-design-thinking-coach.md +0 -0
  217. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-innovation-strategist.md +0 -0
  218. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-presentation-master.md +0 -0
  219. /package/{templates → install/templates}/.github/agents/bmad-agent-cis-storyteller.md +0 -0
  220. /package/{templates → install/templates}/.github/agents/bmad-agent-marc.md +0 -0
  221. /package/{templates → install/templates}/.github/agents/bmad-agent-patnote.md +0 -0
  222. /package/{templates → install/templates}/.github/agents/bmad-agent-rachid.md +0 -0
  223. /package/{templates → install/templates}/.github/agents/bmad-agent-tea-tea.md +0 -0
  224. /package/{templates → install/templates}/_bmad/bmb/agents/agent-builder.md +0 -0
  225. /package/{templates → install/templates}/_bmad/bmb/agents/byan-test.md +0 -0
  226. /package/{templates → install/templates}/_bmad/bmb/agents/byan.md +0 -0
  227. /package/{templates → install/templates}/_bmad/bmb/agents/marc.md +0 -0
  228. /package/{templates → install/templates}/_bmad/bmb/agents/module-builder.md +0 -0
  229. /package/{templates → install/templates}/_bmad/bmb/agents/patnote.md +0 -0
  230. /package/{templates → install/templates}/_bmad/bmb/agents/rachid.md +0 -0
  231. /package/{templates → install/templates}/_bmad/bmb/agents/workflow-builder.md +0 -0
  232. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/mantras.yaml +0 -0
  233. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/templates.yaml +0 -0
  234. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/delete-agent-workflow.md +0 -0
  235. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/edit-agent-workflow.md +0 -0
  236. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/interview-workflow.md +0 -0
  237. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/quick-create-workflow.md +0 -0
  238. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/templates/base-agent-template.md +0 -0
  239. /package/{templates → install/templates}/_bmad/bmb/workflows/byan/validate-agent-workflow.md +0 -0
  240. /package/{templates → install/templates}/_bmad/core/agents/carmack.md +0 -0
@@ -0,0 +1,298 @@
1
+ # BYAN - Intelligent AI Agent Creator
2
+
3
+ **Create custom AI agents in 15 minutes** | GitHub Copilot CLI, VSCode, Claude Code
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ npx create-byan-agent
9
+ ```
10
+
11
+ That's it! The installer launches automatically.
12
+
13
+ ## What is BYAN?
14
+
15
+ BYAN guides you through an intelligent interview to create personalized AI agents:
16
+
17
+ 1. ✅ Answer 12-15 simple questions (15-30 min)
18
+ 2. ✅ BYAN analyzes your needs
19
+ 3. ✅ Custom agent generated automatically
20
+ 4. ✅ Ready to use immediately
21
+
22
+ ## Installation
23
+
24
+ ### Option 1: NPX (Recommended)
25
+
26
+ ```bash
27
+ npx create-byan-agent
28
+ ```
29
+
30
+ ### Option 2: Global Install
31
+
32
+ ```bash
33
+ npm install -g create-byan-agent
34
+ create-byan-agent
35
+ ```
36
+
37
+ ## Create Your First Agent
38
+
39
+ ### 1. Launch BYAN
40
+
41
+ **GitHub Copilot CLI:**
42
+ ```bash
43
+ gh copilot
44
+ @byan
45
+ ```
46
+
47
+ **Command Line:**
48
+ ```bash
49
+ npx create-byan-agent
50
+ ```
51
+
52
+ ### 2. Choose Mode
53
+
54
+ **🎤 Full Interview (15-30 min)** - Recommended for first agent
55
+ - 12-15 questions
56
+ - In-depth analysis
57
+ - Ultra-personalized agent
58
+
59
+ **⚡ Quick Create (5 min)** - For experienced users
60
+ - 3-5 essential questions
61
+ - Functional agent quickly
62
+
63
+ ### 3. Answer Questions
64
+
65
+ BYAN asks questions in 4 categories:
66
+
67
+ 1. **Context**: Your project, goals
68
+ 2. **Business**: Domain, constraints
69
+ 3. **Agent**: Desired skills, tasks
70
+ 4. **Validation**: Confirmation, adjustments
71
+
72
+ ### 4. Automatic Generation
73
+
74
+ ```
75
+ ✅ Complete analysis
76
+ ✅ Agent created: my-dev-agent.md
77
+ ✅ Validated and ready
78
+ ```
79
+
80
+ Agent saved to:
81
+ - GitHub Copilot: `.github/copilot/agents/`
82
+ - Other platforms: `.codex/prompts/`
83
+
84
+ ## Usage Examples
85
+
86
+ ### Code Review Agent
87
+
88
+ ```bash
89
+ npx create-byan-agent
90
+
91
+ # BYAN asks:
92
+ # Purpose? → "Review JavaScript code"
93
+ # Tasks? → "Detect bugs, suggest optimizations"
94
+ # Constraints? → "Follow our style guide"
95
+
96
+ # Result: code-reviewer.md created in 2 seconds
97
+ ```
98
+
99
+ ### Documentation Agent
100
+
101
+ ```bash
102
+ npx create-byan-agent
103
+
104
+ # Purpose? → "Generate API documentation"
105
+ # Tech? → "Node.js, Express, MongoDB"
106
+ # Format? → "Markdown with examples"
107
+
108
+ # Result: doc-generator.md ready
109
+ ```
110
+
111
+ ## Use Your Agent
112
+
113
+ ### With GitHub Copilot CLI
114
+
115
+ ```bash
116
+ gh copilot
117
+ @my-dev-agent
118
+ # Your agent responds!
119
+ ```
120
+
121
+ ### With VSCode
122
+
123
+ 1. Command Palette (Ctrl+Shift+P)
124
+ 2. "GitHub Copilot: Chat"
125
+ 3. Type `@my-dev-agent`
126
+
127
+ ### With Claude Code
128
+
129
+ ```bash
130
+ claude chat --agent my-dev-agent
131
+ ```
132
+
133
+ ## Key Concepts (v2.0)
134
+
135
+ ### 1. Intelligent Interview (4 phases)
136
+
137
+ ```
138
+ CONTEXT → BUSINESS → AGENT → VALIDATION
139
+ ```
140
+
141
+ Minimum 3 questions per phase = 12 total
142
+
143
+ ### 2. State Machine
144
+
145
+ ```
146
+ INTERVIEW → ANALYSIS → GENERATION → COMPLETED
147
+ ```
148
+
149
+ ### 3. Template System
150
+
151
+ Agents generated from professional templates with YAML frontmatter + XML structure.
152
+
153
+ ### 4. Automatic Validation
154
+
155
+ - ✅ Correct YAML format
156
+ - ✅ Valid XML structure
157
+ - ✅ No emojis in code (Mantra IA-23)
158
+ - ✅ Valid agent name
159
+ - ✅ Clear description
160
+
161
+ ### 5. Methodology: 64 Mantras
162
+
163
+ Quality principles applied:
164
+ - **#37 Ockham's Razor**: Simplicity first
165
+ - **IA-1 Trust But Verify**: Verify user needs
166
+ - **IA-23 No Emoji Pollution**: Clean code
167
+ - **IA-24 Clean Code**: Self-documenting
168
+
169
+ ## Advanced Configuration
170
+
171
+ ### Customize Output
172
+
173
+ ```javascript
174
+ const ByanV2 = require('create-byan-agent');
175
+
176
+ const byan = new ByanV2({
177
+ outputFolder: './my-agents',
178
+ language: 'en',
179
+ template: 'custom'
180
+ });
181
+ ```
182
+
183
+ ### Programmatic Usage
184
+
185
+ ```javascript
186
+ const ByanV2 = require('create-byan-agent');
187
+
188
+ async function createAgent() {
189
+ const byan = new ByanV2();
190
+ await byan.startSession();
191
+
192
+ const responses = [
193
+ 'Backend development agent',
194
+ 'REST API in Node.js',
195
+ 'Tests, docs, deployment',
196
+ // ... 12 responses total
197
+ ];
198
+
199
+ for (const response of responses) {
200
+ await byan.getNextQuestion();
201
+ await byan.submitResponse(response);
202
+ }
203
+
204
+ const profile = await byan.generateProfile();
205
+ console.log('Agent created:', profile);
206
+ }
207
+ ```
208
+
209
+ ## Useful Commands
210
+
211
+ ```bash
212
+ # List agents
213
+ ls .github/copilot/agents/
214
+
215
+ # Edit agent
216
+ code .github/copilot/agents/my-agent.md
217
+
218
+ # Validate agent
219
+ npx create-byan-agent --validate my-agent.md
220
+
221
+ # Version
222
+ npx create-byan-agent --version
223
+ ```
224
+
225
+ ## Help & Support
226
+
227
+ ### Get Help
228
+
229
+ ```
230
+ /bmad-help
231
+ ```
232
+
233
+ ### Documentation
234
+
235
+ - [Full Guide](https://github.com/Yan-Acadenice/BYAN/blob/main/GUIDE-UTILISATION.md)
236
+ - [API Reference](https://github.com/Yan-Acadenice/BYAN/blob/main/API-BYAN-V2.md)
237
+ - [Examples](https://github.com/Yan-Acadenice/BYAN/tree/main/examples)
238
+
239
+ ### Common Issues
240
+
241
+ **Agent doesn't appear in Copilot**
242
+ ```bash
243
+ cat .github/copilot/agents/my-agent.md
244
+ gh copilot quit && gh copilot
245
+ ```
246
+
247
+ **"Node version too old"**
248
+ ```bash
249
+ node --version # Must be >= 18
250
+ nvm install 18 && nvm use 18
251
+ ```
252
+
253
+ **Tests fail**
254
+ ```bash
255
+ rm -rf node_modules package-lock.json
256
+ npm install && npm test
257
+ ```
258
+
259
+ ## Stats (v2.0)
260
+
261
+ - ✅ **881/881 tests passing (100%)**
262
+ - ✅ **14 modules**
263
+ - ✅ **77 Story Points delivered**
264
+ - ✅ **Agent in < 2 seconds** after interview
265
+ - ✅ **64 mantras** applied automatically
266
+
267
+ ## Use Cases
268
+
269
+ **Developers**: Code review, test generation, refactoring, security analysis
270
+
271
+ **Writers**: Documentation, proofreading, translation, content creation
272
+
273
+ **Project Managers**: Ticket analysis, reports, planning, prioritization
274
+
275
+ **Designers**: UI components, accessibility, CSS optimization, design systems
276
+
277
+ ## License
278
+
279
+ MIT License
280
+
281
+ ## Contributors
282
+
283
+ **Core Team:**
284
+ - **BYAN**: Intelligent agent creator
285
+ - **RACHID**: NPM/NPX deployment specialist
286
+ - **MARC**: GitHub Copilot CLI integration expert
287
+ - **PATNOTE**: Update manager
288
+ - **CARMACK**: Token optimizer
289
+
290
+ ## Links
291
+
292
+ - 📦 [NPM](https://www.npmjs.com/package/create-byan-agent)
293
+ - 🐙 [GitHub](https://github.com/Yan-Acadenice/BYAN)
294
+ - 📚 [Full Docs](https://github.com/Yan-Acadenice/BYAN/blob/main/install/README.md)
295
+
296
+ ---
297
+
298
+ **BYAN v2.0** - Create professional AI agents in 15 minutes 🚀
@@ -0,0 +1,433 @@
1
+ # BYAN - Créateur d'Agents IA Intelligents
2
+
3
+ **Version 2.0** | Installation en 2 minutes | Interview de 15-30 minutes | Agent prêt à l'emploi
4
+
5
+ ---
6
+
7
+ ## 🎯 C'est quoi BYAN ?
8
+
9
+ BYAN (Builder of YAN) est un assistant intelligent qui **crée des agents IA personnalisés** pour vous.
10
+
11
+ **Comment ça marche ?**
12
+ 1. ✅ Vous répondez à des questions simples (15-30 min)
13
+ 2. ✅ BYAN analyse vos besoins
14
+ 3. ✅ Un agent IA personnalisé est généré automatiquement
15
+ 4. ✅ Prêt à utiliser immédiatement
16
+
17
+ **Compatible avec :** GitHub Copilot CLI, VSCode, Claude Code, Codex
18
+
19
+ ---
20
+
21
+ ## 📦 Installation (2 minutes)
22
+
23
+ ### Option 1 : NPX (Le plus simple)
24
+
25
+ ```bash
26
+ npx create-byan-agent
27
+ ```
28
+
29
+ C'est tout ! L'installateur se lance automatiquement.
30
+
31
+ ### Option 2 : Installation globale
32
+
33
+ ```bash
34
+ npm install -g create-byan-agent
35
+ create-byan-agent
36
+ ```
37
+
38
+ ### Vérification
39
+
40
+ ```bash
41
+ # Vérifier que BYAN est installé
42
+ npx create-byan-agent --version
43
+ ```
44
+
45
+ ---
46
+
47
+ ## 🚀 Créer votre premier agent (15 min)
48
+
49
+ ### Étape 1 : Lancer BYAN
50
+
51
+ **GitHub Copilot CLI :**
52
+ ```bash
53
+ gh copilot
54
+ # Puis tapez : @byan
55
+ ```
56
+
57
+ **Ligne de commande :**
58
+ ```bash
59
+ npx create-byan-agent
60
+ ```
61
+
62
+ ### Étape 2 : Choisir le mode
63
+
64
+ Deux modes disponibles :
65
+
66
+ **🎤 Interview complète (15-30 min)** - Recommandé pour le premier agent
67
+ - BYAN pose 12-15 questions
68
+ - Analyse approfondie de vos besoins
69
+ - Agent ultra-personnalisé
70
+
71
+ **⚡ Création rapide (5 min)** - Pour les utilisateurs expérimentés
72
+ - 3-5 questions essentielles
73
+ - Agent fonctionnel rapidement
74
+
75
+ ### Étape 3 : Répondre aux questions
76
+
77
+ BYAN vous pose des questions dans 4 catégories :
78
+
79
+ 1. **Contexte** : Votre projet, vos objectifs
80
+ 2. **Métier** : Votre domaine, vos contraintes
81
+ 3. **Agent** : Compétences souhaitées, tâches à automatiser
82
+ 4. **Validation** : Confirmation et ajustements
83
+
84
+ **Exemple de questions :**
85
+ - "Quel est le but principal de votre agent ?"
86
+ - "Quelles tâches doit-il automatiser ?"
87
+ - "Quelles sont vos contraintes ?"
88
+
89
+ ### Étape 4 : Génération automatique
90
+
91
+ BYAN génère votre agent en quelques secondes :
92
+
93
+ ```
94
+ ✅ Analyse complète
95
+ ✅ Agent créé : mon-agent-dev.md
96
+ ✅ Validé et prêt à l'emploi
97
+ ```
98
+
99
+ Votre agent est sauvegardé dans :
100
+ - GitHub Copilot : `.github/copilot/agents/`
101
+ - Autres plateformes : `.codex/prompts/`
102
+
103
+ ---
104
+
105
+ ## 💡 Exemples d'utilisation
106
+
107
+ ### Exemple 1 : Agent de revue de code
108
+
109
+ ```bash
110
+ npx create-byan-agent
111
+
112
+ # Questions posées par BYAN :
113
+ # Q: But de l'agent ? → "Réviser mon code JavaScript"
114
+ # Q: Tâches principales ? → "Détecter bugs, suggérer optimisations"
115
+ # Q: Contraintes ? → "Respecter notre guide de style"
116
+
117
+ # Résultat : code-reviewer.md créé en 2 secondes
118
+ ```
119
+
120
+ ### Exemple 2 : Agent de documentation
121
+
122
+ ```bash
123
+ npx create-byan-agent
124
+
125
+ # Q: But ? → "Générer documentation API"
126
+ # Q: Technologies ? → "Node.js, Express, MongoDB"
127
+ # Q: Format ? → "Markdown avec exemples"
128
+
129
+ # Résultat : doc-generator.md prêt
130
+ ```
131
+
132
+ ### Exemple 3 : Agent de tests
133
+
134
+ ```bash
135
+ npx create-byan-agent
136
+
137
+ # Q: But ? → "Créer tests unitaires"
138
+ # Q: Framework ? → "Jest"
139
+ # Q: Couverture ? → "80% minimum"
140
+
141
+ # Résultat : test-creator.md opérationnel
142
+ ```
143
+
144
+ ---
145
+
146
+ ## 📖 Utiliser votre agent
147
+
148
+ ### Avec GitHub Copilot CLI
149
+
150
+ ```bash
151
+ gh copilot
152
+ @mon-agent-dev
153
+ # Votre agent répond !
154
+ ```
155
+
156
+ ### Avec VSCode
157
+
158
+ 1. Ouvrir la palette de commandes (Ctrl+Shift+P)
159
+ 2. Taper "GitHub Copilot: Chat"
160
+ 3. Taper `@mon-agent-dev`
161
+
162
+ ### Avec Claude Code
163
+
164
+ ```bash
165
+ claude chat --agent mon-agent-dev
166
+ ```
167
+
168
+ ---
169
+
170
+ ## 🎓 Concepts clés de BYAN v2
171
+
172
+ ### 1. Interview intelligente (4 phases)
173
+
174
+ BYAN structure l'interview en 4 phases pour capturer tous vos besoins :
175
+
176
+ - **Phase 1 - CONTEXTE** : Comprendre votre projet
177
+ - **Phase 2 - BUSINESS** : Saisir vos contraintes métier
178
+ - **Phase 3 - AGENT** : Définir les capacités de l'agent
179
+ - **Phase 4 - VALIDATION** : Confirmer et affiner
180
+
181
+ **Minimum 3 questions par phase = 12 questions total**
182
+
183
+ ### 2. Machine à états
184
+
185
+ BYAN v2 utilise une machine à états pour gérer le workflow :
186
+
187
+ ```
188
+ INTERVIEW → ANALYSIS → GENERATION → COMPLETED
189
+ ```
190
+
191
+ Chaque étape est validée avant de passer à la suivante.
192
+
193
+ ### 3. Système de templates
194
+
195
+ Les agents sont générés à partir de templates professionnels :
196
+
197
+ ```yaml
198
+ ---
199
+ name: "mon-agent"
200
+ description: "Description de l'agent"
201
+ ---
202
+
203
+ <agent>
204
+ <activation>...</activation>
205
+ <persona>...</persona>
206
+ <menu>...</menu>
207
+ </agent>
208
+ ```
209
+
210
+ ### 4. Validation automatique
211
+
212
+ BYAN valide automatiquement :
213
+ - ✅ Format YAML correct
214
+ - ✅ Structure XML valide
215
+ - ✅ Pas d'emojis dans le code (Mantra IA-23)
216
+ - ✅ Nom d'agent valide
217
+ - ✅ Description claire
218
+ - ✅ Capacités bien définies
219
+
220
+ ### 5. Méthodologie : 64 Mantras
221
+
222
+ BYAN applique 64 principes de qualité :
223
+
224
+ **Exemples de mantras appliqués :**
225
+ - **#37 Ockham's Razor** : Simplicité d'abord
226
+ - **#39 Évaluation des conséquences** : Prévoir l'impact avant d'agir
227
+ - **IA-1 Trust But Verify** : Vérifier les besoins utilisateur
228
+ - **IA-23 No Emoji Pollution** : Code propre sans emojis
229
+ - **IA-24 Clean Code** : Code auto-documenté
230
+
231
+ ---
232
+
233
+ ## ⚙️ Configuration avancée (optionnel)
234
+
235
+ ### Personnaliser l'output
236
+
237
+ ```javascript
238
+ const ByanV2 = require('create-byan-agent');
239
+
240
+ const byan = new ByanV2({
241
+ outputFolder: './mes-agents', // Dossier de sortie
242
+ language: 'fr', // Langue (fr/en)
243
+ template: 'custom' // Template personnalisé
244
+ });
245
+ ```
246
+
247
+ ### Utilisation programmatique
248
+
249
+ ```javascript
250
+ const ByanV2 = require('create-byan-agent');
251
+
252
+ async function createAgent() {
253
+ const byan = new ByanV2();
254
+
255
+ // Démarrer session
256
+ await byan.startSession();
257
+
258
+ // Simuler réponses (pour automatisation)
259
+ const responses = [
260
+ 'Agent de développement backend',
261
+ 'API REST en Node.js',
262
+ 'Tests, documentation, déploiement',
263
+ // ... 12 réponses total
264
+ ];
265
+
266
+ // Soumettre réponses
267
+ for (const response of responses) {
268
+ await byan.getNextQuestion();
269
+ await byan.submitResponse(response);
270
+ }
271
+
272
+ // Générer agent
273
+ const profile = await byan.generateProfile();
274
+ console.log('Agent créé :', profile);
275
+ }
276
+ ```
277
+
278
+ ---
279
+
280
+ ## 🛠️ Commandes utiles
281
+
282
+ ### Lister vos agents
283
+
284
+ ```bash
285
+ # Voir tous les agents créés
286
+ ls .github/copilot/agents/
287
+ ```
288
+
289
+ ### Éditer un agent
290
+
291
+ ```bash
292
+ # Ouvrir avec votre éditeur
293
+ code .github/copilot/agents/mon-agent.md
294
+ ```
295
+
296
+ ### Valider un agent
297
+
298
+ ```bash
299
+ # Vérifier qu'un agent est valide
300
+ npx create-byan-agent --validate mon-agent.md
301
+ ```
302
+
303
+ ### Voir la version
304
+
305
+ ```bash
306
+ npx create-byan-agent --version
307
+ ```
308
+
309
+ ---
310
+
311
+ ## 🆘 Aide et support
312
+
313
+ ### Obtenir de l'aide
314
+
315
+ **Dans BYAN :**
316
+ ```
317
+ /bmad-help
318
+ ```
319
+
320
+ **Documentation complète :**
321
+ - [Guide d'utilisation complet](https://github.com/Yan-Acadenice/BYAN/blob/main/GUIDE-UTILISATION.md)
322
+ - [API Reference](https://github.com/Yan-Acadenice/BYAN/blob/main/API-BYAN-V2.md)
323
+ - [Exemples](https://github.com/Yan-Acadenice/BYAN/tree/main/examples)
324
+
325
+ ### Problèmes courants
326
+
327
+ **L'agent n'apparaît pas dans Copilot**
328
+ ```bash
329
+ # Vérifier le fichier
330
+ cat .github/copilot/agents/mon-agent.md
331
+
332
+ # Redémarrer Copilot
333
+ gh copilot quit
334
+ gh copilot
335
+ ```
336
+
337
+ **Erreur "Node version too old"**
338
+ ```bash
339
+ # Vérifier version Node
340
+ node --version # Doit être >= 18
341
+
342
+ # Installer Node 18+
343
+ nvm install 18
344
+ nvm use 18
345
+ ```
346
+
347
+ **Tests échouent**
348
+ ```bash
349
+ # Réinstaller les dépendances
350
+ rm -rf node_modules package-lock.json
351
+ npm install
352
+ npm test
353
+ ```
354
+
355
+ ### Signaler un bug
356
+
357
+ GitHub Issues : https://github.com/Yan-Acadenice/BYAN/issues
358
+
359
+ ---
360
+
361
+ ## 🎯 Cas d'usage
362
+
363
+ ### Pour développeurs
364
+
365
+ - ✅ Agents de revue de code
366
+ - ✅ Générateurs de tests
367
+ - ✅ Assistants de refactoring
368
+ - ✅ Analyseurs de sécurité
369
+
370
+ ### Pour rédacteurs
371
+
372
+ - ✅ Générateurs de documentation
373
+ - ✅ Correcteurs orthographiques
374
+ - ✅ Assistants de traduction
375
+ - ✅ Créateurs de contenu
376
+
377
+ ### Pour chefs de projet
378
+
379
+ - ✅ Analyseurs de tickets
380
+ - ✅ Générateurs de rapports
381
+ - ✅ Assistants de planification
382
+ - ✅ Gestionnaires de priorités
383
+
384
+ ### Pour designers
385
+
386
+ - ✅ Générateurs de composants UI
387
+ - ✅ Validateurs d'accessibilité
388
+ - ✅ Optimiseurs de CSS
389
+ - ✅ Assistants de design system
390
+
391
+ ---
392
+
393
+ ## 📊 Statistiques
394
+
395
+ ### BYAN v2.0
396
+
397
+ - ✅ **881/881 tests passing (100%)**
398
+ - ✅ **14 modules** (Context, Interview, Analysis, Generation, Validation...)
399
+ - ✅ **77 Story Points** delivered
400
+ - ✅ **Agent généré en < 2 secondes** après interview
401
+ - ✅ **12 questions minimum** pour interview complète
402
+ - ✅ **64 mantras** appliqués automatiquement
403
+
404
+ ---
405
+
406
+ ## 📄 Licence
407
+
408
+ MIT License - Voir [LICENSE](./LICENSE)
409
+
410
+ ---
411
+
412
+ ## 👥 Contributeurs
413
+
414
+ **Équipe Core BYAN :**
415
+ - **BYAN** : Créateur d'agents intelligent
416
+ - **RACHID** : Spécialiste NPM/NPX deployment
417
+ - **MARC** : Expert GitHub Copilot CLI integration
418
+ - **PATNOTE** : Gestionnaire de mises à jour
419
+ - **CARMACK** : Optimiseur de tokens
420
+
421
+ ---
422
+
423
+ ## 🔗 Liens utiles
424
+
425
+ - 📦 [NPM Package](https://www.npmjs.com/package/create-byan-agent)
426
+ - 🐙 [GitHub Repository](https://github.com/Yan-Acadenice/BYAN)
427
+ - 📚 [Documentation complète](https://github.com/Yan-Acadenice/BYAN/blob/main/install/README.md)
428
+ - ⚡ [Guide rapide 5 min](https://github.com/Yan-Acadenice/BYAN/blob/main/install/QUICKSTART.md)
429
+ - 🎓 [Guide débutant](https://github.com/Yan-Acadenice/BYAN/blob/main/install/GUIDE-INSTALLATION-BYAN-SIMPLE.md)
430
+
431
+ ---
432
+
433
+ **BYAN v2.0** - Créez des agents IA professionnels en 15 minutes 🚀