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.
- package/API-BYAN-V2.md +741 -0
- package/BMAD-QUICK-REFERENCE.md +370 -0
- package/CHANGELOG-v2.1.0.md +371 -0
- package/LICENSE +1 -1
- package/MIGRATION-v2.0-to-v2.1.md +430 -0
- package/README-BYAN-V2.md +446 -0
- package/README.md +264 -201
- package/install/.eslintrc.js +20 -0
- package/install/.prettierrc +7 -0
- package/install/BUGFIX-CHALK.md +173 -0
- package/install/BUGFIX-DOCUMENTATION-INDEX.md +299 -0
- package/install/BUGFIX-PATH-RESOLUTION.md +293 -0
- package/install/BUGFIX-QUICKSTART.md +184 -0
- package/install/BUGFIX-SUMMARY.txt +91 -0
- package/install/BUGFIX-VISUAL-SUMMARY.md +253 -0
- package/install/DEPLOYMENT-GUIDE-V2.md +431 -0
- package/install/DOCS-INDEX.md +261 -0
- package/install/GUIDE-INSTALLATION-BYAN-SIMPLE.md +1083 -0
- package/install/INSTALLER-V2-CHANGES.md +472 -0
- package/install/LICENSE +21 -0
- package/install/PUBLICATION-CHECKLIST.md +265 -0
- package/install/PUBLISH-GUIDE.md +190 -0
- package/install/QUICKSTART.md +311 -0
- package/install/README-NPM-PUBLISH.md +298 -0
- package/install/README-NPM-SHORT.md +298 -0
- package/install/README-NPM.md +433 -0
- package/install/README-RACHID.md +302 -0
- package/install/README-V2-INDEX.md +306 -0
- package/install/README.md +298 -0
- package/install/RESUME-EXECUTIF-YAN.md +408 -0
- package/install/UPDATE-SUMMARY.md +205 -0
- package/install/__tests__/integration/detection-flow.test.js +154 -0
- package/install/__tests__/platforms/claude-code.test.js +175 -0
- package/install/__tests__/platforms/codex.test.js +80 -0
- package/install/__tests__/platforms/copilot-cli.test.js +118 -0
- package/install/__tests__/platforms/vscode.test.js +67 -0
- package/install/__tests__/utils/file-utils.test.js +87 -0
- package/install/__tests__/utils/git-detector.test.js +80 -0
- package/install/__tests__/utils/logger.test.js +83 -0
- package/install/__tests__/utils/node-detector.test.js +71 -0
- package/install/__tests__/utils/os-detector.test.js +63 -0
- package/install/__tests__/utils/yaml-utils.test.js +85 -0
- package/install/__tests__/yanstaller/detector.test.js +210 -0
- package/install/coverage/clover.xml +219 -0
- package/install/coverage/coverage-final.json +13 -0
- package/install/coverage/lcov-report/base.css +224 -0
- package/install/coverage/lcov-report/block-navigation.js +87 -0
- package/install/coverage/lcov-report/favicon.png +0 -0
- package/install/coverage/lcov-report/index.html +146 -0
- package/install/coverage/lcov-report/lib/errors.js.html +268 -0
- package/install/coverage/lcov-report/lib/exit-codes.js.html +247 -0
- package/install/coverage/lcov-report/lib/index.html +131 -0
- package/install/coverage/lcov-report/lib/platforms/claude-code.js.html +343 -0
- package/install/coverage/lcov-report/lib/platforms/codex.js.html +361 -0
- package/install/coverage/lcov-report/lib/platforms/copilot-cli.js.html +454 -0
- package/install/coverage/lcov-report/lib/platforms/index.html +176 -0
- package/install/coverage/lcov-report/lib/platforms/index.js.html +127 -0
- package/install/coverage/lcov-report/lib/platforms/vscode.js.html +238 -0
- package/install/coverage/lcov-report/lib/utils/config-loader.js.html +322 -0
- package/install/coverage/lcov-report/lib/utils/file-utils.js.html +397 -0
- package/install/coverage/lcov-report/lib/utils/git-detector.js.html +190 -0
- package/install/coverage/lcov-report/lib/utils/index.html +206 -0
- package/install/coverage/lcov-report/lib/utils/logger.js.html +277 -0
- package/install/coverage/lcov-report/lib/utils/node-detector.js.html +259 -0
- package/install/coverage/lcov-report/lib/utils/os-detector.js.html +307 -0
- package/install/coverage/lcov-report/lib/utils/yaml-utils.js.html +346 -0
- package/install/coverage/lcov-report/lib/yanstaller/backuper.js.html +409 -0
- package/install/coverage/lcov-report/lib/yanstaller/detector.js.html +508 -0
- package/install/coverage/lcov-report/lib/yanstaller/index.html +236 -0
- package/install/coverage/lcov-report/lib/yanstaller/index.js.html +364 -0
- package/install/coverage/lcov-report/lib/yanstaller/installer.js.html +505 -0
- package/install/coverage/lcov-report/lib/yanstaller/interviewer.js.html +349 -0
- package/install/coverage/lcov-report/lib/yanstaller/recommender.js.html +379 -0
- package/install/coverage/lcov-report/lib/yanstaller/troubleshooter.js.html +352 -0
- package/install/coverage/lcov-report/lib/yanstaller/validator.js.html +679 -0
- package/install/coverage/lcov-report/lib/yanstaller/wizard.js.html +412 -0
- package/install/coverage/lcov-report/platforms/claude-code.js.html +343 -0
- package/install/coverage/lcov-report/platforms/codex.js.html +361 -0
- package/install/coverage/lcov-report/platforms/copilot-cli.js.html +454 -0
- package/install/coverage/lcov-report/platforms/index.html +176 -0
- package/install/coverage/lcov-report/platforms/index.js.html +127 -0
- package/install/coverage/lcov-report/platforms/vscode.js.html +238 -0
- package/install/coverage/lcov-report/prettify.css +1 -0
- package/install/coverage/lcov-report/prettify.js +2 -0
- package/install/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/install/coverage/lcov-report/sorter.js +210 -0
- package/install/coverage/lcov-report/utils/file-utils.js.html +397 -0
- package/install/coverage/lcov-report/utils/git-detector.js.html +190 -0
- package/install/coverage/lcov-report/utils/index.html +191 -0
- package/install/coverage/lcov-report/utils/logger.js.html +277 -0
- package/install/coverage/lcov-report/utils/node-detector.js.html +259 -0
- package/install/coverage/lcov-report/utils/os-detector.js.html +307 -0
- package/install/coverage/lcov-report/utils/yaml-utils.js.html +346 -0
- package/install/coverage/lcov-report/yanstaller/detector.js.html +508 -0
- package/install/coverage/lcov-report/yanstaller/index.html +116 -0
- package/install/coverage/lcov.info +414 -0
- package/install/install.sh +239 -0
- package/install/jest.config.js +33 -0
- package/install/lib/errors.js +61 -0
- package/install/lib/exit-codes.js +54 -0
- package/install/lib/platforms/claude-code.js +86 -0
- package/install/lib/platforms/codex.js +92 -0
- package/install/lib/platforms/copilot-cli.js +123 -0
- package/install/lib/platforms/index.js +14 -0
- package/install/lib/platforms/vscode.js +51 -0
- package/install/lib/utils/config-loader.js +79 -0
- package/install/lib/utils/file-utils.js +104 -0
- package/install/lib/utils/git-detector.js +35 -0
- package/install/lib/utils/logger.js +64 -0
- package/install/lib/utils/node-detector.js +58 -0
- package/install/lib/utils/os-detector.js +74 -0
- package/install/lib/utils/yaml-utils.js +87 -0
- package/install/lib/yanstaller/backuper.js +108 -0
- package/install/lib/yanstaller/detector.js +141 -0
- package/install/lib/yanstaller/index.js +93 -0
- package/install/lib/yanstaller/installer.js +140 -0
- package/install/lib/yanstaller/interviewer.js +88 -0
- package/install/lib/yanstaller/recommender.js +98 -0
- package/install/lib/yanstaller/troubleshooter.js +89 -0
- package/install/lib/yanstaller/validator.js +198 -0
- package/install/lib/yanstaller/wizard.js +109 -0
- package/install/package-npm.json +55 -0
- package/install/package.json +63 -0
- package/install/src/byan-v2/context/copilot-context.js +79 -0
- package/install/src/byan-v2/context/session-state.js +98 -0
- package/install/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
- package/install/src/byan-v2/dispatcher/local-executor.js +221 -0
- package/install/src/byan-v2/dispatcher/task-router.js +122 -0
- package/install/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
- package/install/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
- package/install/src/byan-v2/generation/agent-profile-validator.js +113 -0
- package/install/src/byan-v2/generation/profile-template.js +113 -0
- package/install/src/byan-v2/generation/templates/default-agent.md +49 -0
- package/install/src/byan-v2/generation/templates/test-template.md +1 -0
- package/install/src/byan-v2/index.js +199 -0
- package/install/src/byan-v2/observability/error-tracker.js +105 -0
- package/install/src/byan-v2/observability/logger.js +154 -0
- package/install/src/byan-v2/observability/metrics-collector.js +194 -0
- package/install/src/byan-v2/orchestrator/analysis-state.js +268 -0
- package/install/src/byan-v2/orchestrator/generation-state.js +340 -0
- package/install/src/byan-v2/orchestrator/interview-state.js +271 -0
- package/install/src/byan-v2/orchestrator/state-machine.js +204 -0
- package/install/src/core/cache/cache.js +126 -0
- package/install/src/core/context/context.js +86 -0
- package/install/src/core/dispatcher/dispatcher.js +135 -0
- package/install/src/core/worker-pool/worker-pool.js +194 -0
- package/install/src/core/workflow/workflow-executor.js +220 -0
- package/install/src/index.js +139 -0
- package/install/src/observability/dashboard/dashboard.js +191 -0
- package/install/src/observability/logger/structured-logger.js +254 -0
- package/install/src/observability/metrics/metrics-collector.js +325 -0
- package/install/switch-to-v2.sh +126 -0
- package/install/test-chalk-fix.sh +210 -0
- package/install/test-installer-v2.sh +204 -0
- package/install/test-path-resolution.sh +200 -0
- package/package.json +53 -33
- package/src/byan-v2/context/copilot-context.js +79 -0
- package/src/byan-v2/context/session-state.js +98 -0
- package/src/byan-v2/data/mantras.json +852 -0
- package/src/byan-v2/dispatcher/complexity-scorer.js +232 -0
- package/src/byan-v2/dispatcher/five-whys-analyzer.js +310 -0
- package/src/byan-v2/dispatcher/local-executor.js +221 -0
- package/src/byan-v2/dispatcher/task-router.js +122 -0
- package/src/byan-v2/dispatcher/task-tool-interface-mock.js +134 -0
- package/src/byan-v2/dispatcher/task-tool-interface.js +123 -0
- package/src/byan-v2/generation/agent-profile-validator.js +113 -0
- package/src/byan-v2/generation/mantra-validator.js +416 -0
- package/src/byan-v2/generation/profile-template.js +113 -0
- package/src/byan-v2/generation/templates/default-agent.md +49 -0
- package/src/byan-v2/generation/templates/test-template.md +1 -0
- package/src/byan-v2/index.js +652 -0
- package/src/byan-v2/integration/voice-integration.js +295 -0
- package/src/byan-v2/observability/error-tracker.js +105 -0
- package/src/byan-v2/observability/logger.js +154 -0
- package/src/byan-v2/observability/metrics-collector.js +194 -0
- package/src/byan-v2/orchestrator/active-listener.js +541 -0
- package/src/byan-v2/orchestrator/analysis-state.js +268 -0
- package/src/byan-v2/orchestrator/generation-state.js +340 -0
- package/src/byan-v2/orchestrator/glossary-builder.js +431 -0
- package/src/byan-v2/orchestrator/interview-state.js +353 -0
- package/src/byan-v2/orchestrator/state-machine.js +253 -0
- package/src/core/cache/cache.js +126 -0
- package/src/core/context/context.js +86 -0
- package/src/core/dispatcher/dispatcher.js +135 -0
- package/src/core/worker-pool/worker-pool.js +194 -0
- package/src/core/workflow/workflow-executor.js +220 -0
- package/src/index.js +139 -0
- package/src/observability/dashboard/dashboard.js +191 -0
- package/src/observability/logger/structured-logger.js +254 -0
- package/src/observability/metrics/metrics-collector.js +325 -0
- package/templates/.github/agents/bmad-agent-test-dynamic.md +0 -21
- package/templates/.github/agents/franck.md +0 -379
- /package/{CHANGELOG.md → install/CHANGELOG.md} +0 -0
- /package/{bin → install/bin}/create-byan-agent-backup.js +0 -0
- /package/{bin → install/bin}/create-byan-agent-fixed.js +0 -0
- /package/{bin → install/bin}/create-byan-agent-v2.js +0 -0
- /package/{bin → install/bin}/create-byan-agent.js +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmad-master.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-agent-builder.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-module-builder.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmb-workflow-builder.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-analyst.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-architect.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-dev.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-pm.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quick-flow-solo-dev.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-quinn.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-sm.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-tech-writer.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-bmm-ux-designer.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-byan-test.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-byan.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-carmack.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-brainstorming-coach.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-creative-problem-solver.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-design-thinking-coach.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-innovation-strategist.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-presentation-master.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-cis-storyteller.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-marc.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-patnote.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-rachid.md +0 -0
- /package/{templates → install/templates}/.github/agents/bmad-agent-tea-tea.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/agent-builder.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/byan-test.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/byan.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/marc.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/module-builder.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/patnote.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/rachid.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/agents/workflow-builder.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/mantras.yaml +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/data/templates.yaml +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/delete-agent-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/edit-agent-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/interview-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/quick-create-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/templates/base-agent-template.md +0 -0
- /package/{templates → install/templates}/_bmad/bmb/workflows/byan/validate-agent-workflow.md +0 -0
- /package/{templates → install/templates}/_bmad/core/agents/carmack.md +0 -0
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
# ⚡ BYAN Quickstart - 5 Minutes Install
|
|
2
|
+
|
|
3
|
+
**Version:** 1.1.1
|
|
4
|
+
**Target:** Experienced developers who just want commands
|
|
5
|
+
|
|
6
|
+
> 💡 **Promise:** Copy-paste these commands, you'll have BYAN running in 5 minutes.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 🎯 What You'll Get
|
|
11
|
+
|
|
12
|
+
**6 specialized agents:**
|
|
13
|
+
- 🏗️ **BYAN** / ⚡ **BYAN-Test** → Create agents
|
|
14
|
+
- 🤖 **Marc** → Fix Copilot CLI issues
|
|
15
|
+
- 📦 **Rachid** → Publish to npm
|
|
16
|
+
- 🛡️ **Patnote** → Update without breaking
|
|
17
|
+
- ⚡ **Carmack** → Optimize tokens (-40%)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## 🚀 GitHub Copilot CLI - Quickstart
|
|
22
|
+
|
|
23
|
+
### Prerequisites
|
|
24
|
+
```bash
|
|
25
|
+
# Required: GitHub CLI + Copilot extension
|
|
26
|
+
gh --version # Should show v2.40.0+
|
|
27
|
+
gh extension list # Should show github/gh-copilot
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
**If missing:**
|
|
31
|
+
```bash
|
|
32
|
+
# Install GitHub CLI (choose your OS)
|
|
33
|
+
# Windows: winget install --id GitHub.cli
|
|
34
|
+
# Linux: See https://cli.github.com/
|
|
35
|
+
|
|
36
|
+
# Install Copilot extension
|
|
37
|
+
gh extension install github/gh-copilot
|
|
38
|
+
|
|
39
|
+
# Auth (one-time)
|
|
40
|
+
gh auth login
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
### Install BYAN
|
|
46
|
+
```bash
|
|
47
|
+
cd ~
|
|
48
|
+
npx create-byan-agent@1.1.1
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
**Prompts:**
|
|
52
|
+
- Name? → Your name
|
|
53
|
+
- Language? → `Francais` or `English`
|
|
54
|
+
- Output? → Press Enter (default)
|
|
55
|
+
|
|
56
|
+
**⏱️ Time:** 2-3 minutes
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
### Validate
|
|
61
|
+
```bash
|
|
62
|
+
# Check files created
|
|
63
|
+
ls .github/agents/ # Should show 29 .md files
|
|
64
|
+
|
|
65
|
+
# Launch Copilot
|
|
66
|
+
gh copilot
|
|
67
|
+
|
|
68
|
+
# In Copilot, type:
|
|
69
|
+
/agent # Should list byan, marc, rachid, etc.
|
|
70
|
+
|
|
71
|
+
# Test invoke
|
|
72
|
+
@byan # Should show BYAN menu
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 🤖 Claude Code - Quickstart
|
|
78
|
+
|
|
79
|
+
### Config File
|
|
80
|
+
|
|
81
|
+
**Windows:**
|
|
82
|
+
```powershell
|
|
83
|
+
mkdir $env:APPDATA\Claude\
|
|
84
|
+
notepad $env:APPDATA\Claude\claude_desktop_config.json
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Linux/macOS:**
|
|
88
|
+
```bash
|
|
89
|
+
mkdir -p ~/.config/Claude/
|
|
90
|
+
nano ~/.config/Claude/claude_desktop_config.json
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### JSON Config
|
|
94
|
+
```json
|
|
95
|
+
{
|
|
96
|
+
"mcpServers": {
|
|
97
|
+
"byan-agents": {
|
|
98
|
+
"command": "node",
|
|
99
|
+
"args": ["/absolute/path/to/_bmad/mcp-server.js"],
|
|
100
|
+
"env": {
|
|
101
|
+
"BMAD_ROOT": "/absolute/path/to/_bmad"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**⚠️ Replace paths with your actual paths**
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
### MCP Server Script
|
|
113
|
+
|
|
114
|
+
**Create `_bmad/mcp-server.js`:**
|
|
115
|
+
```javascript
|
|
116
|
+
#!/usr/bin/env node
|
|
117
|
+
const fs = require('fs');
|
|
118
|
+
const path = require('path');
|
|
119
|
+
const BMAD_ROOT = process.env.BMAD_ROOT || process.cwd();
|
|
120
|
+
|
|
121
|
+
function listByanAgents() {
|
|
122
|
+
const agents = [];
|
|
123
|
+
['byan', 'byan-test', 'marc', 'rachid', 'patnote', 'carmack'].forEach(name => {
|
|
124
|
+
const p = path.join(BMAD_ROOT, 'bmb', 'agents', `${name}.md`);
|
|
125
|
+
if (fs.existsSync(p)) agents.push({ name, path: p, content: fs.readFileSync(p, 'utf-8') });
|
|
126
|
+
});
|
|
127
|
+
return agents;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
console.log('BYAN MCP Server started');
|
|
131
|
+
console.log(`Agents: ${listByanAgents().map(a => a.name).join(', ')}`);
|
|
132
|
+
|
|
133
|
+
process.stdin.on('data', (data) => {
|
|
134
|
+
const req = JSON.parse(data.toString());
|
|
135
|
+
if (req.method === 'list_agents') {
|
|
136
|
+
process.stdout.write(JSON.stringify({ agents: listByanAgents() }));
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Restart Claude Desktop** → Done!
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## 🎯 Agent Invocation
|
|
146
|
+
|
|
147
|
+
### In GitHub Copilot CLI
|
|
148
|
+
```bash
|
|
149
|
+
gh copilot --agent=byan # Create agents (standard)
|
|
150
|
+
gh copilot --agent=byan-test # Create agents (optimized)
|
|
151
|
+
gh copilot --agent=marc # Fix Copilot CLI issues
|
|
152
|
+
gh copilot --agent=rachid # Publish to npm
|
|
153
|
+
gh copilot --agent=patnote # Update manager
|
|
154
|
+
gh copilot --agent=carmack # Token optimizer
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
### In Claude Code
|
|
158
|
+
```
|
|
159
|
+
@byan # Create agents
|
|
160
|
+
@marc # Fix issues
|
|
161
|
+
@rachid # Publish npm
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 🔴 Troubleshooting - 1 Minute Fixes
|
|
167
|
+
|
|
168
|
+
### "gh: command not found"
|
|
169
|
+
```bash
|
|
170
|
+
# Install GitHub CLI
|
|
171
|
+
# Windows: winget install --id GitHub.cli
|
|
172
|
+
# Linux: curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list && sudo apt update && sudo apt install gh
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
### "extension not installed: copilot"
|
|
178
|
+
```bash
|
|
179
|
+
gh extension install github/gh-copilot
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
### "/agent doesn't list my agents"
|
|
185
|
+
```bash
|
|
186
|
+
# Check files exist
|
|
187
|
+
ls .github/agents/bmad-agent-*.md # Should show 29 files
|
|
188
|
+
|
|
189
|
+
# Call Marc to fix
|
|
190
|
+
gh copilot --agent=marc
|
|
191
|
+
# Type: 1 (Validate)
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
### "npx: command not found"
|
|
197
|
+
```bash
|
|
198
|
+
# Install Node.js
|
|
199
|
+
# Windows: Download from https://nodejs.org/
|
|
200
|
+
# Linux: curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - && sudo apt-get install -y nodejs
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
### "Permission denied" on Linux
|
|
206
|
+
```bash
|
|
207
|
+
# Fix npm permissions
|
|
208
|
+
mkdir ~/.npm-global
|
|
209
|
+
npm config set prefix '~/.npm-global'
|
|
210
|
+
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
|
|
211
|
+
source ~/.bashrc
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## 📋 Validation Checklist
|
|
217
|
+
|
|
218
|
+
```bash
|
|
219
|
+
# Run these commands, all should pass:
|
|
220
|
+
gh --version # ✅ v2.40.0+
|
|
221
|
+
gh extension list | grep copilot # ✅ Shows copilot
|
|
222
|
+
node --version # ✅ v18.0.0+
|
|
223
|
+
ls .github/agents/*.md | wc -l # ✅ Shows 29
|
|
224
|
+
gh copilot # ✅ Launches
|
|
225
|
+
# In Copilot: /agent # ✅ Lists agents
|
|
226
|
+
# In Copilot: @byan # ✅ Shows menu
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
231
|
+
## 🎯 Quick Use Cases
|
|
232
|
+
|
|
233
|
+
### Create an agent
|
|
234
|
+
```bash
|
|
235
|
+
gh copilot --agent=byan
|
|
236
|
+
# Type: 1 (Intelligent Interview)
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Publish to npm
|
|
240
|
+
```bash
|
|
241
|
+
gh copilot --agent=rachid
|
|
242
|
+
# Type: 5 (Publish)
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
### Fix detection issue
|
|
246
|
+
```bash
|
|
247
|
+
gh copilot --agent=marc
|
|
248
|
+
# Type: 1 (Validate)
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Optimize tokens
|
|
252
|
+
```bash
|
|
253
|
+
gh copilot --agent=carmack
|
|
254
|
+
# Type: 1 (Optimize)
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Update safely
|
|
258
|
+
```bash
|
|
259
|
+
gh copilot --agent=patnote
|
|
260
|
+
# Type: 1 (Update)
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
## 📚 Full Documentation
|
|
266
|
+
|
|
267
|
+
**Need more details?** See [GUIDE-INSTALLATION-BYAN-SIMPLE.md](GUIDE-INSTALLATION-BYAN-SIMPLE.md)
|
|
268
|
+
- Beginner-friendly explanations
|
|
269
|
+
- Windows + Linux detailed
|
|
270
|
+
- 10 troubleshooting scenarios
|
|
271
|
+
- 8 FAQ with solutions
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## 🆘 Get Help
|
|
276
|
+
|
|
277
|
+
**Stuck?** Call Marc:
|
|
278
|
+
```bash
|
|
279
|
+
gh copilot --agent=marc
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Marc diagnoses and fixes Copilot CLI issues automatically.
|
|
283
|
+
|
|
284
|
+
---
|
|
285
|
+
|
|
286
|
+
## 📊 Agent Reference Table
|
|
287
|
+
|
|
288
|
+
| Agent | Icon | Role | Command |
|
|
289
|
+
|-------|------|------|---------|
|
|
290
|
+
| BYAN | 🏗️ | Create agents (standard) | `--agent=byan` |
|
|
291
|
+
| BYAN-Test | ⚡ | Create agents (optimized -46% tokens) | `--agent=byan-test` |
|
|
292
|
+
| Marc | 🤖 | GitHub Copilot CLI expert | `--agent=marc` |
|
|
293
|
+
| Rachid | 📦 | NPM deployment specialist | `--agent=rachid` |
|
|
294
|
+
| Patnote | 🛡️ | Update manager (safe updates) | `--agent=patnote` |
|
|
295
|
+
| Carmack | ⚡ | Token optimizer (reduce costs) | `--agent=carmack` |
|
|
296
|
+
|
|
297
|
+
---
|
|
298
|
+
|
|
299
|
+
## 🔗 Links
|
|
300
|
+
|
|
301
|
+
- **Main README:** [README.md](README.md)
|
|
302
|
+
- **Full Installation Guide:** [GUIDE-INSTALLATION-BYAN-SIMPLE.md](GUIDE-INSTALLATION-BYAN-SIMPLE.md)
|
|
303
|
+
- **CHANGELOG:** [CHANGELOG.md](CHANGELOG.md)
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
**⏱️ Total time:** 5 minutes
|
|
308
|
+
**Commands:** 8 essential
|
|
309
|
+
**Validation:** 7 checks
|
|
310
|
+
|
|
311
|
+
**Happy speed-running!** ⚡🏗️
|
|
@@ -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 🚀
|