claudeos-core 1.3.0 → 1.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.

Potentially problematic release.


This version of claudeos-core might be problematic. Click here for more details.

Files changed (34) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.de.md +75 -27
  3. package/README.es.md +75 -27
  4. package/README.fr.md +75 -27
  5. package/README.hi.md +76 -28
  6. package/README.ja.md +94 -28
  7. package/README.ko.md +94 -28
  8. package/README.md +93 -26
  9. package/README.ru.md +75 -27
  10. package/README.vi.md +75 -27
  11. package/README.zh-CN.md +76 -28
  12. package/bin/cli.js +38 -10
  13. package/bootstrap.sh +13 -2
  14. package/content-validator/index.js +18 -13
  15. package/manifest-generator/index.js +24 -1
  16. package/package.json +1 -1
  17. package/pass-prompts/templates/java-spring/pass1.md +1 -1
  18. package/pass-prompts/templates/java-spring/pass3.md +25 -5
  19. package/pass-prompts/templates/kotlin-spring/pass1.md +1 -1
  20. package/pass-prompts/templates/kotlin-spring/pass3.md +25 -5
  21. package/pass-prompts/templates/node-express/pass1.md +1 -1
  22. package/pass-prompts/templates/node-express/pass3.md +24 -5
  23. package/pass-prompts/templates/node-nextjs/pass1.md +1 -1
  24. package/pass-prompts/templates/node-nextjs/pass3.md +25 -5
  25. package/pass-prompts/templates/python-django/pass1.md +1 -1
  26. package/pass-prompts/templates/python-django/pass3.md +24 -5
  27. package/pass-prompts/templates/python-fastapi/pass1.md +1 -1
  28. package/pass-prompts/templates/python-fastapi/pass3.md +24 -5
  29. package/plan-installer/domain-grouper.js +3 -10
  30. package/plan-installer/prompt-generator.js +0 -5
  31. package/plan-installer/stack-detector.js +2 -2
  32. package/plan-installer/structure-scanner.js +58 -7
  33. package/plan-validator/index.js +4 -2
  34. package/sync-checker/index.js +4 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ClaudeOS-Core
2
2
 
3
- **One command. Your entire Claude Code documentation auto-generated from your actual source code.**
3
+ **The only tool that reads your source code first, confirms your stack and patterns with deterministic analysis, then generates Claude Code rules tailored to your exact project.**
4
4
 
5
5
  ```bash
6
6
  npx claudeos-core init
@@ -12,20 +12,60 @@ ClaudeOS-Core reads your codebase, extracts every pattern it finds, and generate
12
12
 
13
13
  ---
14
14
 
15
- ## The Problem
15
+ ## Why ClaudeOS-Core?
16
16
 
17
- Claude Code is powerful, but it doesn't know _your_ project's conventions. Manually writing a `CLAUDE.md`, dozens of rules, and scaffolding skills takes hours — and they go stale the moment your codebase evolves.
17
+ Every other Claude Code tool works like this:
18
18
 
19
- ## The Solution
19
+ > **Human describes the project → LLM generates documentation**
20
20
 
21
- ClaudeOS-Core automates the entire process:
21
+ ClaudeOS-Core works like this:
22
22
 
23
- 1. **Scans** your project detects stack, domains, ORM, DB, package manager automatically
24
- 2. **Analyzes** your source code in depth — controller patterns, service layers, naming conventions, error handling, security, testing, and 50+ categories
25
- 3. **Generates** a complete documentation ecosystem — `CLAUDE.md`, Standards (15–19 files), Rules, Skills, Guides (9 files), Master Plans, DB docs, and MCP guide
26
- 4. **Validates** everything — 5 built-in verification tools ensure consistency
23
+ > **Code analyzes your source Code builds a tailored prompt LLM generates documentation → Code verifies the output**
27
24
 
28
- Total time: **5–18 minutes**, depending on project size. Zero manual configuration.
25
+ This is not a small difference. Here's why it matters:
26
+
27
+ ### The core problem: LLMs guess. Code doesn't.
28
+
29
+ When you ask Claude to "analyze this project," it **guesses** your stack, your ORM, your domain structure.
30
+ It might see `spring-boot` in your `build.gradle` but miss that you use MyBatis (not JPA).
31
+ It might detect a `user/` directory but not realize your project uses layer-first packaging (Pattern A), not domain-first (Pattern B).
32
+
33
+ **ClaudeOS-Core doesn't guess.** Before Claude ever sees your project, Node.js code has already:
34
+
35
+ - Parsed `build.gradle` / `package.json` / `pyproject.toml` and **confirmed** your stack, ORM, DB, and package manager
36
+ - Scanned your directory structure and **confirmed** your domain list with file counts
37
+ - Classified your project structure into one of 5 Java patterns, Kotlin CQRS/BFF, or Next.js App Router/FSD
38
+ - Split domains into optimally-sized groups that fit Claude's context window
39
+ - Assembled a stack-specific prompt with all confirmed facts injected
40
+
41
+ By the time Claude receives the prompt, there's nothing left to guess. The stack is confirmed. The domains are confirmed. The structure pattern is confirmed. Claude's only job is to generate documentation that matches these **confirmed facts**.
42
+
43
+ ### The result
44
+
45
+ Other tools produce "generally good" documentation.
46
+ ClaudeOS-Core produces documentation that knows your project uses `ApiResponse.ok()` (not `ResponseEntity.success()`), that your MyBatis XML mappers live in `src/main/resources/mapper/{domain}/`, and that your package structure is `com.company.module.{domain}.controller` — because it read your actual code.
47
+
48
+ ### Before & After
49
+
50
+ **Without ClaudeOS-Core** — you ask Claude Code to create an Order CRUD:
51
+ ```
52
+ ❌ Uses JPA-style repository (your project uses MyBatis)
53
+ ❌ Creates ResponseEntity.success() (your wrapper is ApiResponse.ok())
54
+ ❌ Places files in order/controller/ (your project uses controller/order/)
55
+ ❌ Generates English comments (your team writes Korean comments)
56
+ → You spend 20 minutes fixing every generated file
57
+ ```
58
+
59
+ **With ClaudeOS-Core** — `.claude/rules/` already contains your confirmed patterns:
60
+ ```
61
+ ✅ Generates MyBatis mapper + XML (detected from build.gradle)
62
+ ✅ Uses ApiResponse.ok() (extracted from your actual source)
63
+ ✅ Places files in controller/order/ (Pattern A confirmed by structure scan)
64
+ ✅ Korean comments (--lang ko applied)
65
+ → Generated code matches your project conventions immediately
66
+ ```
67
+
68
+ This difference compounds. 10 tasks/day × 20 minutes saved = **3+ hours/day**.
29
69
 
30
70
  ---
31
71
 
@@ -77,6 +117,7 @@ Supported module types: `command`, `query`, `bff`, `integration`, `standalone`,
77
117
  - **FSD (Feature-Sliced Design)**: `features/*/`, `widgets/*/`, `entities/*/`
78
118
  - **RSC/Client split**: Detects `client.tsx` pattern, tracks Server/Client component separation
79
119
  - **Config fallback**: Detects Next.js/Vite/Nuxt from config files when not in `package.json` (monorepo support)
120
+ - **Deep directory fallback**: For React/CRA/Vite/Vue/RN projects, scans `**/components/*/`, `**/views/*/`, `**/screens/*/`, `**/containers/*/`, `**/pages/*/`, `**/routes/*/`, `**/modules/*/`, `**/domains/*/` at any depth
80
121
 
81
122
  ---
82
123
 
@@ -115,7 +156,7 @@ bash claudeos-core-tools/bootstrap.sh
115
156
 
116
157
  ### Output Language (10 languages)
117
158
 
118
- When you run `init` without `--lang`, an interactive selector appears — use arrow keys to choose:
159
+ When you run `init` without `--lang`, an interactive selector appears — use arrow keys or number keys to choose:
119
160
 
120
161
  ```
121
162
  ╔══════════════════════════════════════════════════╗
@@ -136,7 +177,7 @@ When you run `init` without `--lang`, an interactive selector appears — use ar
136
177
  9. fr — Français (French)
137
178
  10. de — Deutsch (German)
138
179
 
139
- ↑↓ Move Select
180
+ ↑↓ Move 1-0 Jump Enter Select ESC Cancel
140
181
  ```
141
182
 
142
183
  The description changes to the selected language as you navigate. To skip the selector, pass `--lang` directly:
@@ -424,16 +465,21 @@ ClaudeOS-Core generates documentation that Claude Code actually reads — here's
424
465
  | File | When | Guaranteed |
425
466
  |---|---|---|
426
467
  | `CLAUDE.md` | Every conversation start | Always |
427
- | `.claude/rules/*.md` | When any file is edited (via `paths: ["**/*"]`) | Always |
428
- | `.claude/rules/00.core/00.standard-reference.md` | Included above | Always |
468
+ | `.claude/rules/00.core/*` | When any file is edited (`paths: ["**/*"]`) | Always |
469
+ | `.claude/rules/10.backend/*` | When any file is edited (`paths: ["**/*"]`) | Always |
470
+ | `.claude/rules/30.security-db/*` | When any file is edited (`paths: ["**/*"]`) | Always |
471
+ | `.claude/rules/40.infra/*` | Only when editing config/infra files (scoped paths) | Conditional |
472
+ | `.claude/rules/50.sync/*` | Only when editing claudeos-core files (scoped paths) | Conditional |
429
473
 
430
- ### What Claude Code reads via standard-reference rule
474
+ ### What Claude Code reads on-demand via rule references
431
475
 
432
- The `00.standard-reference.md` rule instructs Claude Code to Read the standard documents before writing code:
476
+ Each rule file links to its corresponding standard via a `## Reference` section. Claude reads only the relevant standard for the current task:
433
477
 
434
478
  - `claudeos-core/standard/**` — coding patterns, ✅/❌ examples, naming conventions
435
479
  - `claudeos-core/database/**` — DB schema (for queries, mappers, migrations)
436
480
 
481
+ The `00.standard-reference.md` serves as a directory of all standard files for discovering standards that have no corresponding rule.
482
+
437
483
  ### What Claude Code does NOT read (saves context)
438
484
 
439
485
  These folders are explicitly excluded via the `DO NOT Read` section in the standard-reference rule:
@@ -487,16 +533,37 @@ npx claudeos-core restore
487
533
 
488
534
  ## How Is This Different?
489
535
 
490
- | | ClaudeOS-Core | SuperClaude | Manual CLAUDE.md | Generic Skills |
491
- |---|---|---|---|---|
492
- | **Reads your code** | Deep analysis (55–95 categories) | Behavioral injection | Manual writing | Pre-built templates |
493
- | **Project-specific output** | ✅ Every file reflects your patterns | ❌ Generic commands | Partially | ❌ One-size-fits-all |
494
- | **Multi-stack** | Auto-detected + separate analysis | ❌ Stack-agnostic | Manual | Varies |
495
- | **Kotlin + CQRS/BFF** | ✅ Multi-module, Command/Query split | ❌ | ❌ | ❌ |
496
- | **Multi-language** | 10 languages, interactive selector | | | |
497
- | **Self-verifying** | 5 validation tools | | | |
498
- | **Backup / Restore** | ✅ Master Plan system | ❌ | ❌ | ❌ |
499
- | **Setup time** | ~5–18min (automated) | ~5min (manual config) | Hours–Days | ~5min |
536
+ ### vs Other Claude Code Tools
537
+
538
+ | | ClaudeOS-Core | Everything Claude Code (50K+ ) | Harness | specs-generator | Claude `/init` |
539
+ |---|---|---|---|---|---|
540
+ | **Approach** | Code analyzes first, then LLM generates | Pre-built config presets | LLM designs agent teams | LLM generates spec docs | LLM writes CLAUDE.md |
541
+ | **Reads your source code** | ✅ Deterministic static analysis | ❌ | ❌ | ❌ (LLM reads) | ❌ (LLM reads) |
542
+ | **Stack detection** | Code confirms (ORM, DB, build tool, pkg manager) | N/A (stack-agnostic) | LLM guesses | LLM guesses | LLM guesses |
543
+ | **Domain detection** | Code confirms (Java 5 patterns, Kotlin CQRS, Next.js FSD) | N/A | LLM guesses | N/A | N/A |
544
+ | **Same project → Same result** | ✅ Deterministic analysis | ✅ (static files) | ❌ (LLM varies) | ❌ (LLM varies) | ❌ (LLM varies) |
545
+ | **Large project handling** | Domain group splitting (4 domains / 40 files per group) | N/A | No splitting | No splitting | Context window limit |
546
+ | **Output** | CLAUDE.md + Rules + Standards + Skills + Guides + Plans (40-50+ files) | Agents + Skills + Commands + Hooks | Agents + Skills | 6 spec documents | CLAUDE.md (1 file) |
547
+ | **Output location** | `.claude/rules/` (auto-loaded by Claude Code) | `.claude/` various | `.claude/agents/` + `.claude/skills/` | `.claude/steering/` + `specs/` | `CLAUDE.md` |
548
+ | **Post-generation verification** | ✅ 5 automated validators | ❌ | ❌ | ❌ | ❌ |
549
+ | **Multi-language output** | ✅ 10 languages | ❌ | ❌ | ❌ | ❌ |
550
+ | **Multi-stack** | ✅ Backend + Frontend simultaneous | ❌ Stack-agnostic | ❌ | ❌ | Partial |
551
+ | **Agent orchestration** | ❌ | ✅ 28 agents | ✅ 6 patterns | ❌ | ❌ |
552
+
553
+ ### The key difference in one sentence
554
+
555
+ **Other tools give Claude "generally good instructions." ClaudeOS-Core gives Claude "instructions extracted from your actual code."**
556
+
557
+ That's why Claude Code stops generating JPA code in your MyBatis project,
558
+ stops using `success()` when your codebase uses `ok()`,
559
+ and stops creating `user/controller/` directories when your project uses `controller/user/`.
560
+
561
+ ### Complementary, not competing
562
+
563
+ ClaudeOS-Core focuses on **project-specific rules and standards**.
564
+ Other tools focus on **agent orchestration and workflows**.
565
+
566
+ You can use ClaudeOS-Core to generate your project's rules, then use ECC or Harness on top for agent teams and workflow automation. They solve different problems.
500
567
 
501
568
  ---
502
569
 
package/README.ru.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ClaudeOS-Core
2
2
 
3
- **Одна команда. Вся документация Claude Code автоматически сгенерирована из вашего исходного кода.**
3
+ **Единственный инструмент, который сначала читает ваш исходный код, подтверждает стек и паттерны детерминированным анализом, а затем генерирует правила Claude Code, точно адаптированные к вашему проекту.**
4
4
 
5
5
  ```bash
6
6
  npx claudeos-core init
@@ -12,20 +12,50 @@ ClaudeOS-Core читает вашу кодовую базу, извлекает
12
12
 
13
13
  ---
14
14
 
15
- ## Проблема
15
+ ## Почему ClaudeOS-Core?
16
16
 
17
- Claude Code мощный, но он не знает конвенций _вашего_ проекта. Ручное написание `CLAUDE.md`, десятков правил и skills для скаффолдинга занимает часы — и они устаревают, как только кодовая база меняется.
17
+ > Человек описывает проект LLM генерирует документацию
18
18
 
19
- ## Решение
19
+ ClaudeOS-Core:
20
20
 
21
- ClaudeOS-Core автоматизирует весь процесс:
21
+ > Код анализирует исходники → Код строит кастомный промпт → LLM генерирует документацию → Код верифицирует вывод
22
22
 
23
- 1. **Сканирует** ваш проект автоматически определяет стек, домены, ORM, базу данных, пакетный менеджер
24
- 2. **Глубоко анализирует** исходный код — паттерны контроллеров, сервисные слои, соглашения об именовании, обработка ошибок, безопасность, тестирование и 50+ категорий
25
- 3. **Генерирует** полную экосистему документации — `CLAUDE.md`, Standards (15–19 файлов), Rules, Skills, Guides (9 файлов), Master Plans, документацию БД и руководство MCP
26
- 4. **Валидирует** всё — 5 встроенных инструментов проверки гарантируют консистентность
23
+ ### Ключевая проблема: LLM угадывает. Код подтверждает.
27
24
 
28
- Общее время: **5–18 минут**, в зависимости от размера проекта. Нулевая ручная настройка.
25
+ Когда вы просите Claude «проанализировать проект», он **угадывает** стек, ORM, структуру доменов.
26
+
27
+ **ClaudeOS-Core не угадывает.** Claude Node.js:
28
+
29
+ - `build.gradle` / `package.json` / `pyproject.toml` → **confirmed**
30
+ - directory scan → **confirmed**
31
+ - Java 5 patterns, Kotlin CQRS/BFF, Next.js App Router/FSD → **classified**
32
+ - domain groups → **split**
33
+ - stack-specific prompt → **assembled**
34
+
35
+ ### Результат
36
+
37
+ Другие инструменты создают «в целом хорошую» документацию.
38
+ ClaudeOS-Core создаёт документацию, которая знает, что ваш проект использует `ApiResponse.ok()` (а не `ResponseEntity.success()`), что MyBatis XML маппер находится в `src/main/resources/mapper/{domain}/` — потому что он прочитал ваш реальный код.
39
+
40
+ ### Before & After
41
+
42
+ **Без ClaudeOS-Core**:
43
+ ```
44
+ ❌ JPA repository (MyBatis)
45
+ ❌ ResponseEntity.success() (ApiResponse.ok())
46
+ ❌ order/controller/ (controller/order/)
47
+ → 20 min fix per file
48
+ ```
49
+
50
+ **С ClaudeOS-Core**:
51
+ ```
52
+ ✅ MyBatis mapper + XML (build.gradle)
53
+ ✅ ApiResponse.ok() (source code)
54
+ ✅ controller/order/ (Pattern A)
55
+ → immediate match
56
+ ```
57
+
58
+ Эта разница накапливается. 10 задач/день × 20 минут экономии = **более 3 часов в день**.
29
59
 
30
60
  ---
31
61
 
@@ -79,6 +109,7 @@ ClaudeOS-Core автоматизирует весь процесс:
79
109
  - **FSD (Feature-Sliced Design)**: `features/*/`, `widgets/*/`, `entities/*/`
80
110
  - **RSC/Client разделение**: Обнаружение паттерна `client.tsx`, отслеживание разделения Server/Client
81
111
  - **Фолбэк конфигурации**: Обнаружение Next.js/Vite/Nuxt из конфиг-файлов (поддержка monorepo)
112
+ - **Фолбэк глубоких директорий**: Для React/CRA/Vite/Vue/RN проектов сканирует `**/components/*/`, `**/views/*/`, `**/screens/*/`, `**/containers/*/`, `**/pages/*/`, `**/routes/*/`, `**/modules/*/`, `**/domains/*/` на любой глубине
82
113
 
83
114
  ---
84
115
 
@@ -117,7 +148,7 @@ bash claudeos-core-tools/bootstrap.sh
117
148
 
118
149
  ### Язык вывода (10 языков)
119
150
 
120
- При запуске `init` без `--lang` появляется интерактивный селектор со стрелками:
151
+ При запуске `init` без `--lang` появляется интерактивный селектор (стрелки или цифровые клавиши):
121
152
 
122
153
  ```
123
154
  ╔══════════════════════════════════════════════════╗
@@ -132,7 +163,7 @@ bash claudeos-core-tools/bootstrap.sh
132
163
  ❯ 8. ru — Русский (Russian)
133
164
  ...
134
165
 
135
- ↑↓ Move Select
166
+ ↑↓ Move 1-0 Jump Enter Select ESC Cancel
136
167
  ```
137
168
 
138
169
  При навигации описание переключается на соответствующий язык. Чтобы пропустить селектор:
@@ -387,16 +418,21 @@ npx claudeos-core restore # Восстановление Plan → Диск
387
418
  | Файл | Когда | Гарантия |
388
419
  |---|---|---|
389
420
  | `CLAUDE.md` | При начале каждого разговора | Всегда |
390
- | `.claude/rules/*.md` | При редактировании файлов (через `paths: ["**/*"]`) | Всегда |
391
- | `.claude/rules/00.core/00.standard-reference.md` | Включено выше | Всегда |
421
+ | `.claude/rules/00.core/*` | При редактировании файлов (`paths: ["**/*"]`) | Всегда |
422
+ | `.claude/rules/10.backend/*` | При редактировании файлов (`paths: ["**/*"]`) | Всегда |
423
+ | `.claude/rules/30.security-db/*` | При редактировании файлов (`paths: ["**/*"]`) | Всегда |
424
+ | `.claude/rules/40.infra/*` | Только при редактировании config/infra файлов (ограниченные paths) | Условно |
425
+ | `.claude/rules/50.sync/*` | Только при редактировании claudeos-core файлов (ограниченные paths) | Условно |
392
426
 
393
- ### Файлы, читаемые через правило standard-reference
427
+ ### Файлы, читаемые по запросу через ссылки в правилах
394
428
 
395
- Правило `00.standard-reference.md` указывает Claude Code Read стандартные документы перед написанием кода:
429
+ Каждый файл правил ссылается на соответствующий standard в секции `## Reference`. Claude читает только standard, релевантный текущей задаче:
396
430
 
397
431
  - `claudeos-core/standard/**` — Паттерны кодирования, примеры ✅/❌, соглашения об именах
398
432
  - `claudeos-core/database/**` — Схема БД (для запросов, мапперов, миграций)
399
433
 
434
+ `00.standard-reference.md` служит каталогом для обнаружения standards без соответствующего правила.
435
+
400
436
  ### Файлы, которые НЕ читаются (экономия контекста)
401
437
 
402
438
  Явно исключены через секцию `DO NOT Read` правила standard-reference:
@@ -450,19 +486,31 @@ npx claudeos-core restore
450
486
 
451
487
  ## Чем отличается?
452
488
 
453
- | | ClaudeOS-Core | SuperClaude | Ручной CLAUDE.md | Универсальные Skills |
454
- |---|---|---|---|---|
455
- | **Читает ваш код** | Глубокий анализ (55–95 категорий) | Инъекция поведения | Ручное написание | Готовые шаблоны |
456
- | **Вывод под проект** | ✅ Каждый файл отражает ваши паттерны | ❌ Универсальные команды | Частично | ❌ Один размер для всех |
457
- | **Мульти-стек** | Автоопределение + раздельный анализ | Стек-агностик | Вручную | Неопределённо |
458
- | **Kotlin + CQRS/BFF** | Мультимодульный, разделение Command/Query | | | |
459
- | **Многоязычность** | ✅ 10 языков, интерактивный выбор | ❌ | ❌ | ❌ |
460
- | **Самопроверка** | 5 инструментов валидации | | | |
461
- | **Бэкап / Восстановление** | Система Master Plan | | | |
462
- | **Время настройки** | ~5–18 мин (автоматически) | ~5 мин (ручная настройка) | Часы–Дни | ~5 мин |
489
+ | | ClaudeOS-Core | Everything Claude Code (50K+ ⭐) | Harness | specs-generator | Claude `/init` |
490
+ |---|---|---|---|---|---|
491
+ | **Approach** | Code analyzes first, then LLM generates | Pre-built config presets | LLM designs agent teams | LLM generates spec docs | LLM writes CLAUDE.md |
492
+ | **Reads your source code** | ✅ Deterministic static analysis | | ❌ | (LLM reads) | ❌ (LLM reads) |
493
+ | **Stack detection** | Code confirms (ORM, DB, build tool, pkg manager) | N/A (stack-agnostic) | LLM guesses | LLM guesses | LLM guesses |
494
+ | **Domain detection** | Code confirms (Java 5 patterns, Kotlin CQRS, Next.js FSD) | N/A | LLM guesses | N/A | N/A |
495
+ | **Same project → Same result** | ✅ Deterministic analysis | (static files) | ❌ (LLM varies) | ❌ (LLM varies) | ❌ (LLM varies) |
496
+ | **Large project handling** | Domain group splitting (4 domains / 40 files per group) | N/A | No splitting | No splitting | Context window limit |
497
+ | **Output** | CLAUDE.md + Rules + Standards + Skills + Guides + Plans (40-50+ files) | Agents + Skills + Commands + Hooks | Agents + Skills | 6 spec documents | CLAUDE.md (1 file) |
498
+ | **Output location** | `.claude/rules/` (auto-loaded by Claude Code) | `.claude/` various | `.claude/agents/` + `.claude/skills/` | `.claude/steering/` + `specs/` | `CLAUDE.md` |
499
+ | **Post-generation verification** | ✅ 5 automated validators | ❌ | ❌ | ❌ | ❌ |
500
+ | **Multi-language output** | ✅ 10 languages | ❌ | ❌ | ❌ | ❌ |
501
+ | **Multi-stack** | ✅ Backend + Frontend simultaneous | ❌ Stack-agnostic | ❌ | ❌ | Partial |
502
+ | **Agent orchestration** | ❌ | ✅ 28 agents | ✅ 6 patterns | ❌ | ❌ |
463
503
 
464
- ---
504
+ ### Key difference
465
505
 
506
+ **Other tools give Claude "generally good instructions." ClaudeOS-Core gives Claude "instructions extracted from your actual code."**
507
+
508
+ ### Complementary, not competing
509
+
510
+ ClaudeOS-Core: **project-specific rules**. Other tools: **agent orchestration**.
511
+ Use both together.
512
+
513
+ ---
466
514
  ## FAQ
467
515
 
468
516
  **В: Изменяет ли он мой исходный код?**
package/README.vi.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ClaudeOS-Core
2
2
 
3
- **Một lệnh duy nhất. Toàn bộ tài liệu Claude Code được tạo tự động từ nguồn thực tế của bạn.**
3
+ **Công cụ duy nhất đọc nguồn trước, xác nhận stack pattern bằng phân tích deterministic, sau đó tạo quy tắc Claude Code phù hợp chính xác với dự án của bạn.**
4
4
 
5
5
  ```bash
6
6
  npx claudeos-core init
@@ -12,20 +12,50 @@ ClaudeOS-Core đọc codebase của bạn, trích xuất mọi pattern tìm th
12
12
 
13
13
  ---
14
14
 
15
- ## Vấn Đề
15
+ ## Tại sao ClaudeOS-Core?
16
16
 
17
- Claude Code rất mạnh mẽ, nhưng nó không biết quy ước của _dự án bạn_. Viết thủ công `CLAUDE.md`, hàng chục rules và scaffolding skills tốn hàng giờ — và chúng trở nên lỗi thời ngay khi codebase thay đổi.
17
+ > Con người tả dự án LLM tạo tài liệu
18
18
 
19
- ## Giải Pháp
19
+ ClaudeOS-Core:
20
20
 
21
- ClaudeOS-Core tự động hóa toàn bộ quy trình:
21
+ > Code phân tích source Code xây dựng prompt tùy chỉnh → LLM tạo tài liệu → Code xác minh đầu ra
22
22
 
23
- 1. **Quét** dự án tự động phát hiện stack, domain, ORM, database, package manager
24
- 2. **Phân tích chuyên sâu** mã nguồn — controller patterns, service layers, quy ước đặt tên, xử lý lỗi, bảo mật, testing và hơn 50 danh mục
25
- 3. **Tạo** hệ sinh thái tài liệu hoàn chỉnh — `CLAUDE.md`, Standards (15–19 file), Rules, Skills, Guides (9 file), Master Plans, tài liệu DB và hướng dẫn MCP
26
- 4. **Xác thực** mọi thứ — 5 công cụ kiểm tra tích hợp đảm bảo tính nhất quán
23
+ ### Vấn đề cốt lõi: LLM đoán. Code xác nhận.
27
24
 
28
- Tổng thời gian: **5–18 phút**, tùy thuộc vào quy dự án. Không cần cấu hình thủ công.
25
+ Khi bạn yêu cầu Claude "phân tích dự án này", **đoán** stack, ORM, cấu trúc domain.
26
+
27
+ **ClaudeOS-Core không đoán.** Claude Node.js:
28
+
29
+ - `build.gradle` / `package.json` / `pyproject.toml` → **confirmed**
30
+ - directory scan → **confirmed**
31
+ - Java 5 patterns, Kotlin CQRS/BFF, Next.js App Router/FSD → **classified**
32
+ - domain groups → **split**
33
+ - stack-specific prompt → **assembled**
34
+
35
+ ### Kết quả
36
+
37
+ Các tool khác tạo tài liệu "tốt một cách chung chung".
38
+ ClaudeOS-Core tạo tài liệu biết rằng dự án sử dụng `ApiResponse.ok()` (không phải `ResponseEntity.success()`), MyBatis XML mapper nằm ở `src/main/resources/mapper/{domain}/` — vì nó đã đọc code thực tế.
39
+
40
+ ### Before & After
41
+
42
+ **Không có ClaudeOS-Core**:
43
+ ```
44
+ ❌ JPA repository (MyBatis)
45
+ ❌ ResponseEntity.success() (ApiResponse.ok())
46
+ ❌ order/controller/ (controller/order/)
47
+ → 20 min fix per file
48
+ ```
49
+
50
+ **Có ClaudeOS-Core**:
51
+ ```
52
+ ✅ MyBatis mapper + XML (build.gradle)
53
+ ✅ ApiResponse.ok() (source code)
54
+ ✅ controller/order/ (Pattern A)
55
+ → immediate match
56
+ ```
57
+
58
+ Sự khác biệt này tích lũy. 10 task/ngày × 20 phút tiết kiệm = **hơn 3 giờ/ngày**.
29
59
 
30
60
  ---
31
61
 
@@ -79,6 +109,7 @@ Loại module hỗ trợ: `command`, `query`, `bff`, `integration`, `standalone`
79
109
  - **FSD (Feature-Sliced Design)**: `features/*/`, `widgets/*/`, `entities/*/`
80
110
  - **RSC/Client split**: Phát hiện pattern `client.tsx`, theo dõi tách Server/Client
81
111
  - **Config fallback**: Phát hiện Next.js/Vite/Nuxt từ file config (hỗ trợ monorepo)
112
+ - **Fallback thư mục sâu**: Với dự án React/CRA/Vite/Vue/RN, quét `**/components/*/`, `**/views/*/`, `**/screens/*/`, `**/containers/*/`, `**/pages/*/`, `**/routes/*/`, `**/modules/*/`, `**/domains/*/` ở mọi độ sâu
82
113
 
83
114
  ---
84
115
 
@@ -117,7 +148,7 @@ bash claudeos-core-tools/bootstrap.sh
117
148
 
118
149
  ### Ngôn ngữ đầu ra (10 ngôn ngữ)
119
150
 
120
- Khi chạy `init` không có `--lang`, bộ chọn tương tác bằng phím mũi tên sẽ xuất hiện:
151
+ Khi chạy `init` không có `--lang`, bộ chọn tương tác bằng phím mũi tên hoặc phím số sẽ xuất hiện:
121
152
 
122
153
  ```
123
154
  ╔══════════════════════════════════════════════════╗
@@ -132,7 +163,7 @@ Khi chạy `init` không có `--lang`, bộ chọn tương tác bằng phím mũ
132
163
  ❯ 6. vi — Tiếng Việt (Vietnamese)
133
164
  ...
134
165
 
135
- ↑↓ Move Select
166
+ ↑↓ Move 1-0 Jump Enter Select ESC Cancel
136
167
  ```
137
168
 
138
169
  Mô tả thay đổi sang ngôn ngữ tương ứng khi di chuyển. Bỏ qua bộ chọn:
@@ -387,16 +418,21 @@ npx claudeos-core restore # Khôi phục Plan → Đĩa
387
418
  | File | Thời điểm | Đảm bảo |
388
419
  |---|---|---|
389
420
  | `CLAUDE.md` | Mỗi lần bắt đầu cuộc trò chuyện | Luôn luôn |
390
- | `.claude/rules/*.md` | Khi chỉnh sửa file (qua `paths: ["**/*"]`) | Luôn luôn |
391
- | `.claude/rules/00.core/00.standard-reference.md` | Bao gồm trên | Luôn luôn |
421
+ | `.claude/rules/00.core/*` | Khi chỉnh sửa file (`paths: ["**/*"]`) | Luôn luôn |
422
+ | `.claude/rules/10.backend/*` | Khi chỉnh sửa file (`paths: ["**/*"]`) | Luôn luôn |
423
+ | `.claude/rules/30.security-db/*` | Khi chỉnh sửa file (`paths: ["**/*"]`) | Luôn luôn |
424
+ | `.claude/rules/40.infra/*` | Chỉ khi chỉnh sửa file config/infra (paths giới hạn) | Có điều kiện |
425
+ | `.claude/rules/50.sync/*` | Chỉ khi chỉnh sửa file claudeos-core (paths giới hạn) | Có điều kiện |
392
426
 
393
- ### File được đọc qua quy tắc standard-reference
427
+ ### File được đọc theo yêu cầu qua tham chiếu trong quy tắc
394
428
 
395
- Quy tắc `00.standard-reference.md` hướng dẫn Claude Code Read tài liệu standard trước khi viết code:
429
+ Mỗi file quy tắc liên kết đến standard tương ứng trong phần `## Reference`. Claude chỉ đọc standard liên quan đến tác vụ hiện tại:
396
430
 
397
431
  - `claudeos-core/standard/**` — Pattern coding, ví dụ ✅/❌, quy tắc đặt tên
398
432
  - `claudeos-core/database/**` — DB schema (cho query, mapper, migration)
399
433
 
434
+ `00.standard-reference.md` đóng vai trò thư mục để khám phá các standard không có quy tắc tương ứng.
435
+
400
436
  ### File KHÔNG đọc (tiết kiệm context)
401
437
 
402
438
  Được loại trừ rõ ràng qua phần `DO NOT Read` của quy tắc standard-reference:
@@ -450,19 +486,31 @@ npx claudeos-core restore
450
486
 
451
487
  ## Khác Biệt Gì?
452
488
 
453
- | | ClaudeOS-Core | SuperClaude | CLAUDE.md Thủ Công | Skills Chung |
454
- |---|---|---|---|---|
455
- | **Đọc code của bạn** | Phân tích sâu (55–95 danh mục) | Tiêm hành vi | Viết thủ công | Template sẵn |
456
- | **Đầu ra riêng dự án** | ✅ Mọi file phản ánh pattern của bạn | ❌ Lệnh chung | Một phần | Một cỡ cho tất cả |
457
- | **Multi-stack** | Tự phát hiện + phân tích riêng | Không phân biệt stack | Thủ công | Không chắc |
458
- | **Kotlin + CQRS/BFF** | Multi-module, Command/Query split | | | |
459
- | **Đa ngôn ngữ** | ✅ 10 ngôn ngữ, bộ chọn tương tác | ❌ | ❌ | ❌ |
460
- | **Tự xác thực** | 5 công cụ validation | | | |
461
- | **Backup / Khôi phục** | Hệ thống Master Plan | | | |
462
- | **Thời gian cài đặt** | ~5–18 phút (tự động) | ~5 phút (cấu hình thủ công) | Hàng giờ–ngày | ~5 phút |
489
+ | | ClaudeOS-Core | Everything Claude Code (50K+ ⭐) | Harness | specs-generator | Claude `/init` |
490
+ |---|---|---|---|---|---|
491
+ | **Approach** | Code analyzes first, then LLM generates | Pre-built config presets | LLM designs agent teams | LLM generates spec docs | LLM writes CLAUDE.md |
492
+ | **Reads your source code** | ✅ Deterministic static analysis | | | ❌ (LLM reads) | ❌ (LLM reads) |
493
+ | **Stack detection** | Code confirms (ORM, DB, build tool, pkg manager) | N/A (stack-agnostic) | LLM guesses | LLM guesses | LLM guesses |
494
+ | **Domain detection** | Code confirms (Java 5 patterns, Kotlin CQRS, Next.js FSD) | N/A | LLM guesses | N/A | N/A |
495
+ | **Same project Same result** | ✅ Deterministic analysis | (static files) | ❌ (LLM varies) | ❌ (LLM varies) | ❌ (LLM varies) |
496
+ | **Large project handling** | Domain group splitting (4 domains / 40 files per group) | N/A | No splitting | No splitting | Context window limit |
497
+ | **Output** | CLAUDE.md + Rules + Standards + Skills + Guides + Plans (40-50+ files) | Agents + Skills + Commands + Hooks | Agents + Skills | 6 spec documents | CLAUDE.md (1 file) |
498
+ | **Output location** | `.claude/rules/` (auto-loaded by Claude Code) | `.claude/` various | `.claude/agents/` + `.claude/skills/` | `.claude/steering/` + `specs/` | `CLAUDE.md` |
499
+ | **Post-generation verification** | ✅ 5 automated validators | ❌ | ❌ | ❌ | ❌ |
500
+ | **Multi-language output** | ✅ 10 languages | ❌ | ❌ | ❌ | ❌ |
501
+ | **Multi-stack** | ✅ Backend + Frontend simultaneous | ❌ Stack-agnostic | ❌ | ❌ | Partial |
502
+ | **Agent orchestration** | ❌ | ✅ 28 agents | ✅ 6 patterns | ❌ | ❌ |
463
503
 
464
- ---
504
+ ### Key difference
465
505
 
506
+ **Other tools give Claude "generally good instructions." ClaudeOS-Core gives Claude "instructions extracted from your actual code."**
507
+
508
+ ### Complementary, not competing
509
+
510
+ ClaudeOS-Core: **project-specific rules**. Other tools: **agent orchestration**.
511
+ Use both together.
512
+
513
+ ---
466
514
  ## FAQ
467
515
 
468
516
  **H: Nó có sửa đổi mã nguồn của tôi không?**