musubix 3.3.9 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/.github/AGENTS.md +949 -0
  2. package/.github/prompts/sdd-change-apply.prompt.md +283 -0
  3. package/.github/prompts/sdd-change-archive.prompt.md +241 -0
  4. package/.github/prompts/sdd-change-init.prompt.md +269 -0
  5. package/.github/prompts/sdd-design.prompt.md +250 -0
  6. package/.github/prompts/sdd-implement.prompt.md +387 -0
  7. package/.github/prompts/sdd-requirements.prompt.md +193 -0
  8. package/.github/prompts/sdd-review.prompt.md +155 -0
  9. package/.github/prompts/sdd-security.prompt.md +228 -0
  10. package/.github/prompts/sdd-steering.prompt.md +269 -0
  11. package/.github/prompts/sdd-tasks.prompt.md +255 -0
  12. package/.github/prompts/sdd-test.prompt.md +230 -0
  13. package/.github/prompts/sdd-validate.prompt.md +304 -0
  14. package/.github/skills/musubix-adr-generation/SKILL.md +209 -0
  15. package/.github/skills/musubix-best-practices/SKILL.md +315 -0
  16. package/.github/skills/musubix-c4-design/SKILL.md +162 -0
  17. package/.github/skills/musubix-code-generation/SKILL.md +237 -0
  18. package/.github/skills/musubix-domain-inference/SKILL.md +196 -0
  19. package/.github/skills/musubix-ears-validation/SKILL.md +161 -0
  20. package/.github/skills/musubix-sdd-workflow/SKILL.md +217 -0
  21. package/.github/skills/musubix-technical-writing/SKILL.md +444 -0
  22. package/.github/skills/musubix-test-generation/SKILL.md +212 -0
  23. package/.github/skills/musubix-traceability/SKILL.md +141 -0
  24. package/AGENTS.md +1134 -0
  25. package/LICENSE +21 -0
  26. package/README.ja.md +313 -0
  27. package/README.md +315 -50
  28. package/bin/musubix-mcp.js +15 -0
  29. package/bin/musubix.js +9 -1
  30. package/docs/API-REFERENCE.md +1425 -0
  31. package/docs/GITHUB-ACTIONS-NPM-SETUP.md +132 -0
  32. package/docs/INSTALL-GUIDE.ja.md +459 -0
  33. package/docs/INSTALL-GUIDE.md +459 -0
  34. package/docs/MIGRATION-v3.0.md +324 -0
  35. package/docs/MUSUBI-enhancement_roadmap_20260105.md +651 -0
  36. package/docs/MUSUBIX-v3.0-User-Guide.md +1357 -0
  37. package/docs/MUSUBIXv2.2.0-Manual-outline.md +136 -0
  38. package/docs/MUSUBIXv2.2.0-Manual.md +3123 -0
  39. package/docs/MUSUBIXv2.3.5-Refactering.md +1310 -0
  40. package/docs/MUSUBIv1.6.1-enhancement_roadmap_20260105.md +291 -0
  41. package/docs/MUSUBIv2.2.0-USERGUIDE.md +2079 -0
  42. package/docs/ROADMAP-v1.5.md +116 -0
  43. package/docs/SwarmCoding.md +1284 -0
  44. package/docs/Test-prompt.md +105 -0
  45. package/docs/USER-GUIDE-v1.8.0.md +2371 -0
  46. package/docs/USER-GUIDE.ja.md +2147 -0
  47. package/docs/USER-GUIDE.md +3022 -0
  48. package/docs/YATA-GLOBAL-GUIDE.ja.md +750 -0
  49. package/docs/YATA-GLOBAL-GUIDE.md +595 -0
  50. package/docs/YATA-LOCAL-GUIDE.ja.md +989 -0
  51. package/docs/YATA-LOCAL-GUIDE.md +730 -0
  52. package/docs/adr/0001-real-time-pattern-learning-architecture-for-v1-5-0.md +75 -0
  53. package/docs/adr/0002-pattern-sharing-protocol-for-cross-team-collaborat.md +79 -0
  54. package/docs/adr/0003-owl-2-rl-implementation-strategy-for-advanced-infe.md +90 -0
  55. package/docs/adr/ADR-v3.4.0-001-deep-research-architecture.md +217 -0
  56. package/docs/adr/ADR-v3.4.0-002-search-provider-selection.md +308 -0
  57. package/docs/adr/ADR-v3.4.0-003-lm-api-integration.md +475 -0
  58. package/docs/enterprise-knowledge-management.md +1737 -0
  59. package/docs/evolution-from-musubi-to-musubix.md +2170 -0
  60. package/docs/getting-started-with-sdd.md +1602 -0
  61. package/docs/moodle-refactering-codegraph-musubix.md +391 -0
  62. package/docs/moodle-refactering-codegraph.md +278 -0
  63. package/docs/overview/MUSUBIX-CodeGraph.md +322 -0
  64. package/docs/overview/MUSUBIX-Core.md +671 -0
  65. package/docs/overview/MUSUBIX-Decisions.md +494 -0
  66. package/docs/overview/MUSUBIX-FormalVerify.md +566 -0
  67. package/docs/overview/MUSUBIX-Knowledge.md +1231 -0
  68. package/docs/overview/MUSUBIX-Learning.md +837 -0
  69. package/docs/overview/MUSUBIX-MCP-Server.md +535 -0
  70. package/docs/overview/MUSUBIX-Overview.md +264 -0
  71. package/docs/overview/MUSUBIX-Phase1-Complete.md +271 -0
  72. package/docs/overview/MUSUBIX-Phase2-Complete.md +310 -0
  73. package/docs/overview/MUSUBIX-Policy.md +477 -0
  74. package/docs/overview/MUSUBIX-Roadmap-v2.md +399 -0
  75. package/docs/overview/MUSUBIX-Security-Plan.md +939 -0
  76. package/docs/overview/MUSUBIX-Security-v2.1.md +668 -0
  77. package/docs/overview/MUSUBIX-Security.md +891 -0
  78. package/docs/overview/MUSUBIX-YATA.md +666 -0
  79. package/docs/overview/MUSUBIX-v2.2.0-Advanced-Learning.md +513 -0
  80. package/docs/overview/Neuro-SymbolicAI.md +159 -0
  81. package/docs/packages/knowledge.md +594 -0
  82. package/docs/qiita-linux-kernel-knowledge-graph.md +596 -0
  83. package/package.json +55 -49
  84. package/scripts/generate-quality-gate-report.ts +106 -0
  85. package/scripts/postinstall.js +94 -0
  86. package/steering/.musubi-version +1 -0
  87. package/steering/product.ja.md +572 -0
  88. package/steering/project.yml +66 -0
  89. package/steering/rules/constitution.md +491 -0
  90. package/steering/structure.ja.md +503 -0
  91. package/steering/tech.ja.md +208 -0
  92. package/dist/index.d.ts +0 -25
  93. package/dist/index.d.ts.map +0 -1
  94. package/dist/index.js +0 -74
  95. package/dist/index.js.map +0 -1
@@ -0,0 +1,459 @@
1
+ # MUSUBIX Installation Guide
2
+
3
+ **Document ID**: INSTALL-GUIDE
4
+ **Version**: 1.7.5
5
+ **Last Updated**: 2026-01-07
6
+
7
+ ---
8
+
9
+ ## Table of Contents
10
+
11
+ 1. [Overview](#overview)
12
+ 2. [System Requirements](#system-requirements)
13
+ 3. [Installation Methods](#installation-methods)
14
+ 4. [YATA Installation](#yata-installation)
15
+ 5. [AI Platform Integration](#ai-platform-integration)
16
+ 6. [Verification](#verification)
17
+ 7. [Troubleshooting](#troubleshooting)
18
+
19
+ ---
20
+
21
+ ## Overview
22
+
23
+ MUSUBIX consists of two main components:
24
+
25
+ ```mermaid
26
+ flowchart LR
27
+ subgraph MUSUBIX["MUSUBIX (Node.js)"]
28
+ Core["@nahisaho/musubix-core"]
29
+ MCP["@nahisaho/musubix-mcp-server"]
30
+ Client["@nahisaho/musubix-yata-client"]
31
+ end
32
+
33
+ subgraph YATA["YATA (Python)"]
34
+ Server["YATA MCP Server"]
35
+ KG["Knowledge Graph"]
36
+ end
37
+
38
+ Client <-->|MCP| Server
39
+ ```
40
+
41
+ | Component | Language | Role | Required |
42
+ |-----------|----------|------|----------|
43
+ | **MUSUBIX** | Node.js | Neuro-Symbolic AI Coding System | ✅ |
44
+ | **YATA** | Python | Knowledge Graph MCP Server | Optional |
45
+
46
+ ### Usage Patterns
47
+
48
+ | Pattern | Installation | Available Features |
49
+ |---------|--------------|-------------------|
50
+ | **Basic** | MUSUBIX only | EARS requirements, C4 design, code generation |
51
+ | **Symbolic** | MUSUBIX only | Above + symbolic reasoning, formal verification, quality gates |
52
+ | **Full** | MUSUBIX + YATA | Above + knowledge graph, external verification, explanations |
53
+
54
+ ---
55
+
56
+ ## System Requirements
57
+
58
+ ### MUSUBIX (Required)
59
+
60
+ | Item | Requirement |
61
+ |------|-------------|
62
+ | **OS** | Windows 10+, macOS 12+, Linux (Ubuntu 20.04+) |
63
+ | **Node.js** | >= 20.0.0 |
64
+ | **npm** | >= 10.0.0 |
65
+ | **TypeScript** | >= 5.3 (for development) |
66
+ | **Disk Space** | ~100MB |
67
+
68
+ ### YATA (Optional)
69
+
70
+ | Item | Requirement |
71
+ |------|-------------|
72
+ | **Python** | >= 3.11 |
73
+ | **uv** | Latest (recommended) or pip |
74
+ | **Disk Space** | ~500MB (including framework knowledge) |
75
+
76
+ ---
77
+
78
+ ## Installation Methods
79
+
80
+ ### Method 1: npm/npx (Recommended)
81
+
82
+ ```bash
83
+ # Global installation
84
+ npm install -g musubix
85
+
86
+ # Verify installation
87
+ musubix --version
88
+ musubix-mcp --version
89
+ ```
90
+
91
+ ### Method 2: Run directly with npx
92
+
93
+ ```bash
94
+ # Run without installation
95
+ npx musubix --help
96
+ npx musubix init
97
+
98
+ # Start MCP server
99
+ npx @nahisaho/musubix-mcp-server
100
+ npx musubix-mcp --transport stdio
101
+ ```
102
+
103
+ ### Method 3: Install to project
104
+
105
+ ```bash
106
+ # All-in-one package (recommended)
107
+ npm install musubix
108
+
109
+ # Show installation banner (npm v11+)
110
+ npm install musubix --foreground-scripts
111
+
112
+ # Or install individual packages
113
+ npm install @nahisaho/musubix-core
114
+ npm install @nahisaho/musubix-mcp-server
115
+ npm install @nahisaho/musubix-yata-client # For YATA integration
116
+ ```
117
+
118
+ #### Auto-Generated Files
119
+
120
+ When you run `npm install musubix`, the following files are automatically created:
121
+
122
+ | File/Directory | Purpose | Target Agent |
123
+ |----------------|---------|-------------|
124
+ | `AGENTS.md` | AI Agent guidelines | GitHub Copilot |
125
+ | `CLAUDE.md` | AI Agent guidelines (copy) | Claude Code |
126
+ | `.github/skills/` | 9 Agent Skills | GitHub Copilot |
127
+ | `.github/prompts/` | 9 SDD prompts | GitHub Copilot |
128
+ | `.claude/skills/` | 9 Agent Skills (copy) | Claude Code |
129
+ | `.claude/prompts/` | 9 SDD prompts (copy) | Claude Code |
130
+
131
+ #### Package Comparison
132
+
133
+ | Package | Description | Use Case |
134
+ |---------|-------------|----------|
135
+ | `musubix` | All-in-one bundle | Full features, quick setup |
136
+ | `@nahisaho/musubix-core` | Core library only | Minimal installation |
137
+ | `@nahisaho/musubix-mcp-server` | MCP server only | AI platform integration |
138
+ | `@nahisaho/musubix-yata-client` | YATA client only | Knowledge graph features |
139
+
140
+ ### Method 4: Build from source
141
+
142
+ ```bash
143
+ # Clone the repository
144
+ git clone https://github.com/nahisaho/MUSUBIX.git
145
+ cd MUSUBIX
146
+
147
+ # Install dependencies
148
+ npm install
149
+
150
+ # Build
151
+ npm run build
152
+
153
+ # Link CLI (for development)
154
+ npm link
155
+ ```
156
+
157
+ ---
158
+
159
+ ## YATA Installation
160
+
161
+ YATA is required for neuro-symbolic features (knowledge graph integration, formal verification, explanation generation).
162
+
163
+ ### Prerequisites
164
+
165
+ ```bash
166
+ # Check Python 3.11+
167
+ python --version # Python 3.11.x or higher
168
+
169
+ # Install uv (recommended)
170
+ curl -LsSf https://astral.sh/uv/install.sh | sh
171
+ ```
172
+
173
+ ### Install YATA
174
+
175
+ ```bash
176
+ # Clone the repository
177
+ git clone https://github.com/nahisaho/YATA.git
178
+ cd YATA
179
+
180
+ # Install dependencies with uv
181
+ uv sync --all-packages
182
+
183
+ # Verify installation
184
+ uv run yata --version
185
+ uv run yata info
186
+ ```
187
+
188
+ ### Start YATA Server
189
+
190
+ ```bash
191
+ # stdio mode (MCP standard)
192
+ uv run yata serve
193
+
194
+ # SSE mode (via HTTP)
195
+ uv run yata serve --transport sse --port 8080
196
+ ```
197
+
198
+ ### Basic YATA Operations
199
+
200
+ ```bash
201
+ # Parse source code to build knowledge graph
202
+ uv run yata parse ./src --pattern "**/*.ts" --output graph.json
203
+
204
+ # Search entities
205
+ uv run yata query "function" --type function
206
+
207
+ # Show statistics
208
+ uv run yata stats --graph graph.json
209
+
210
+ # Validate graph integrity
211
+ uv run yata validate --graph graph.json --repair
212
+ ```
213
+
214
+ ---
215
+
216
+ ## AI Platform Integration
217
+
218
+ ### GitHub Copilot (VS Code)
219
+
220
+ Create `.vscode/mcp.json`:
221
+
222
+ ```json
223
+ {
224
+ "mcpServers": {
225
+ "musubix": {
226
+ "command": "npx",
227
+ "args": ["@nahisaho/musubix-mcp-server"]
228
+ },
229
+ "yata": {
230
+ "command": "uv",
231
+ "args": ["run", "yata", "serve"],
232
+ "cwd": "/path/to/YATA"
233
+ }
234
+ }
235
+ }
236
+ ```
237
+
238
+ ### Claude Desktop
239
+
240
+ Configuration file locations:
241
+ - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
242
+ - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
243
+ - **Linux**: `~/.config/Claude/claude_desktop_config.json`
244
+
245
+ ```json
246
+ {
247
+ "mcpServers": {
248
+ "musubix": {
249
+ "command": "npx",
250
+ "args": ["@nahisaho/musubix-mcp-server"]
251
+ },
252
+ "yata": {
253
+ "command": "uv",
254
+ "args": ["run", "yata", "serve"],
255
+ "cwd": "/path/to/YATA"
256
+ }
257
+ }
258
+ }
259
+ ```
260
+
261
+ ### Claude Code (CLI)
262
+
263
+ Create `.mcp.json` in your project root:
264
+
265
+ ```json
266
+ {
267
+ "mcpServers": {
268
+ "musubix": {
269
+ "command": "npx",
270
+ "args": ["@nahisaho/musubix-mcp-server"]
271
+ },
272
+ "yata": {
273
+ "command": "uv",
274
+ "args": ["run", "yata", "serve"],
275
+ "cwd": "/path/to/YATA"
276
+ }
277
+ }
278
+ }
279
+ ```
280
+
281
+ Or configure via `claude mcp add`:
282
+
283
+ ```bash
284
+ # Add MUSUBIX MCP server
285
+ claude mcp add musubix -- npx @nahisaho/musubix-mcp-server
286
+
287
+ # Add YATA MCP server (optional)
288
+ claude mcp add yata -- uv run yata serve
289
+
290
+ # Verify configuration
291
+ claude mcp list
292
+ ```
293
+
294
+ ### Cursor IDE
295
+
296
+ Create `.cursor/mcp.json`:
297
+
298
+ ```json
299
+ {
300
+ "mcpServers": {
301
+ "musubix": {
302
+ "command": "npx",
303
+ "args": ["@nahisaho/musubix-mcp-server"]
304
+ },
305
+ "yata": {
306
+ "command": "uv",
307
+ "args": ["run", "yata", "serve"],
308
+ "cwd": "/path/to/YATA"
309
+ }
310
+ }
311
+ }
312
+ ```
313
+
314
+ ---
315
+
316
+ ## Verification
317
+
318
+ ### Verify MUSUBIX
319
+
320
+ ```bash
321
+ # Show CLI help
322
+ musubix --help
323
+
324
+ # Initialize a project
325
+ musubix init my-project
326
+
327
+ # Test MCP server
328
+ musubix-mcp --help
329
+ ```
330
+
331
+ ### Verify YATA
332
+
333
+ ```bash
334
+ # Show server info
335
+ uv run yata info
336
+
337
+ # Parse sample code
338
+ uv run yata parse ./sample --pattern "**/*.py"
339
+ ```
340
+
341
+ ### Integration Test
342
+
343
+ ```bash
344
+ # Start YATA server (in another terminal)
345
+ cd /path/to/YATA
346
+ uv run yata serve
347
+
348
+ # Verify MUSUBIX can connect to YATA
349
+ # (Use an application with @nahisaho/musubix-yata-client)
350
+ ```
351
+
352
+ ---
353
+
354
+ ## Troubleshooting
355
+
356
+ ### Node.js Version Error
357
+
358
+ ```
359
+ Error: MUSUBIX requires Node.js >= 20.0.0
360
+ ```
361
+
362
+ **Solution**:
363
+ ```bash
364
+ # Switch version with nvm
365
+ nvm install 20
366
+ nvm use 20
367
+
368
+ # Or install directly from
369
+ # https://nodejs.org/
370
+ ```
371
+
372
+ ### Python Version Error
373
+
374
+ ```
375
+ Error: Python 3.11+ is required
376
+ ```
377
+
378
+ **Solution**:
379
+ ```bash
380
+ # Switch version with pyenv
381
+ pyenv install 3.11
382
+ pyenv local 3.11
383
+
384
+ # Or install directly from
385
+ # https://www.python.org/
386
+ ```
387
+
388
+ ### uv Not Found
389
+
390
+ ```
391
+ command not found: uv
392
+ ```
393
+
394
+ **Solution**:
395
+ ```bash
396
+ # Install uv
397
+ curl -LsSf https://astral.sh/uv/install.sh | sh
398
+
399
+ # Update PATH
400
+ source ~/.bashrc # or ~/.zshrc
401
+ ```
402
+
403
+ ### MCP Server Connection Error
404
+
405
+ ```
406
+ Error: Failed to connect to MCP server
407
+ ```
408
+
409
+ **Solution**:
410
+ 1. Check if the server is running
411
+ 2. Check if the port is in use
412
+ 3. Check firewall settings
413
+
414
+ ```bash
415
+ # Check port
416
+ lsof -i :3000
417
+
418
+ # Check processes
419
+ ps aux | grep musubix
420
+ ps aux | grep yata
421
+ ```
422
+
423
+ ### npm Permission Error
424
+
425
+ ```
426
+ EACCES: permission denied
427
+ ```
428
+
429
+ **Solution**:
430
+ ```bash
431
+ # Change npm global directory
432
+ mkdir ~/.npm-global
433
+ npm config set prefix '~/.npm-global'
434
+ echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
435
+ source ~/.bashrc
436
+ ```
437
+
438
+ ---
439
+
440
+ ## Next Steps
441
+
442
+ After installation, refer to the following documentation:
443
+
444
+ | Document | Description |
445
+ |----------|-------------|
446
+ | [USER-GUIDE.ja.md](USER-GUIDE.ja.md) | User Guide (Japanese) |
447
+ | [API-REFERENCE.md](API-REFERENCE.md) | API Reference |
448
+ | [evolution-from-musubi-to-musubix.md](evolution-from-musubi-to-musubix.md) | Evolution from MUSUBI to MUSUBIX |
449
+
450
+ ---
451
+
452
+ ## References
453
+
454
+ - [MUSUBIX GitHub](https://github.com/nahisaho/MUSUBIX)
455
+ - [YATA GitHub](https://github.com/nahisaho/YATA)
456
+ - [Node.js Official Site](https://nodejs.org/)
457
+ - [Python Official Site](https://www.python.org/)
458
+ - [uv Documentation](https://docs.astral.sh/uv/)
459
+ - [MCP Specification](https://modelcontextprotocol.io/)