claudeos-core 1.2.4 → 1.3.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.
Potentially problematic release.
This version of claudeos-core might be problematic. Click here for more details.
- package/CHANGELOG.md +76 -0
- package/README.de.md +50 -10
- package/README.es.md +51 -10
- package/README.fr.md +51 -10
- package/README.hi.md +51 -10
- package/README.ja.md +52 -10
- package/README.ko.md +51 -10
- package/README.md +62 -15
- package/README.ru.md +51 -10
- package/README.vi.md +51 -10
- package/README.zh-CN.md +51 -10
- package/bin/cli.js +171 -36
- package/bootstrap.sh +71 -23
- package/content-validator/index.js +16 -13
- package/health-checker/index.js +4 -3
- package/lib/safe-fs.js +110 -0
- package/manifest-generator/index.js +13 -7
- package/package.json +4 -2
- package/pass-json-validator/index.js +3 -5
- package/pass-prompts/templates/java-spring/pass1.md +4 -1
- package/pass-prompts/templates/java-spring/pass2.md +3 -3
- package/pass-prompts/templates/java-spring/pass3.md +42 -5
- package/pass-prompts/templates/kotlin-spring/pass1.md +4 -1
- package/pass-prompts/templates/kotlin-spring/pass2.md +5 -5
- package/pass-prompts/templates/kotlin-spring/pass3.md +42 -5
- package/pass-prompts/templates/node-express/pass1.md +4 -1
- package/pass-prompts/templates/node-express/pass2.md +4 -1
- package/pass-prompts/templates/node-express/pass3.md +44 -6
- package/pass-prompts/templates/node-nextjs/pass1.md +14 -4
- package/pass-prompts/templates/node-nextjs/pass2.md +6 -4
- package/pass-prompts/templates/node-nextjs/pass3.md +45 -6
- package/pass-prompts/templates/python-django/pass1.md +4 -2
- package/pass-prompts/templates/python-django/pass2.md +4 -4
- package/pass-prompts/templates/python-django/pass3.md +42 -5
- package/pass-prompts/templates/python-fastapi/pass1.md +4 -1
- package/pass-prompts/templates/python-fastapi/pass2.md +4 -4
- package/pass-prompts/templates/python-fastapi/pass3.md +42 -5
- package/plan-installer/domain-grouper.js +74 -0
- package/plan-installer/index.js +35 -1305
- package/plan-installer/prompt-generator.js +94 -0
- package/plan-installer/stack-detector.js +326 -0
- package/plan-installer/structure-scanner.js +783 -0
- package/plan-validator/index.js +84 -20
- package/sync-checker/index.js +7 -3
package/README.ko.md
CHANGED
|
@@ -107,9 +107,44 @@ npx claudeos-core init
|
|
|
107
107
|
|
|
108
108
|
# 방법 D: git clone (개발/기여용)
|
|
109
109
|
git clone https://github.com/claudeos-core/claudeos-core.git claudeos-core-tools
|
|
110
|
+
|
|
111
|
+
# 크로스 플랫폼 (PowerShell, CMD, Bash, Zsh — 모든 터미널)
|
|
112
|
+
node claudeos-core-tools/bin/cli.js init
|
|
113
|
+
|
|
114
|
+
# Linux/macOS 전용 (Bash만)
|
|
110
115
|
bash claudeos-core-tools/bootstrap.sh
|
|
111
116
|
```
|
|
112
117
|
|
|
118
|
+
### 출력 언어 (10개 언어 지원)
|
|
119
|
+
|
|
120
|
+
`--lang` 없이 `init`을 실행하면 화살표 키로 언어를 선택하는 인터랙티브 화면이 나타납니다:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
╔══════════════════════════════════════════════════╗
|
|
124
|
+
║ Select generated document language (required) ║
|
|
125
|
+
╚══════════════════════════════════════════════════╝
|
|
126
|
+
|
|
127
|
+
생성되는 파일(CLAUDE.md, Standards, Rules,
|
|
128
|
+
Skills, Guides)이 한국어로 작성됩니다.
|
|
129
|
+
|
|
130
|
+
1. en — English
|
|
131
|
+
❯ 2. ko — 한국어 (Korean)
|
|
132
|
+
3. zh-CN — 简体中文 (Chinese Simplified)
|
|
133
|
+
...
|
|
134
|
+
|
|
135
|
+
↑↓ Move ↵ Select
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
화살표 이동 시 설명이 해당 언어로 바뀝니다. 선택 화면을 건너뛰려면 `--lang`을 직접 지정하세요:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
npx claudeos-core init --lang ko # 한국어
|
|
142
|
+
npx claudeos-core init --lang en # English
|
|
143
|
+
npx claudeos-core init --lang ja # 日本語
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
> **참고:** 이 설정은 생성되는 문서 파일의 언어만 변경합니다. 코드 분석(Pass 1–2)은 항상 영어로 실행되며, 생성 결과(Pass 3)만 선택한 언어로 작성됩니다. 코드 예시는 원래 프로그래밍 언어 구문 그대로 유지됩니다.
|
|
147
|
+
|
|
113
148
|
이게 전부입니다. 5–18분 후 모든 문서가 생성되어 바로 사용 가능합니다.
|
|
114
149
|
|
|
115
150
|
### 수동 단계별 설치
|
|
@@ -171,12 +206,12 @@ cat claudeos-core/generated/domain-groups.json | node -e "
|
|
|
171
206
|
"
|
|
172
207
|
|
|
173
208
|
# Run Pass 1 for group 1:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
209
|
+
cp claudeos-core/generated/pass1-backend-prompt.md /tmp/_pass1.md
|
|
210
|
+
DOMAIN_LIST="user, order, product" PASS_NUM=1 \
|
|
211
|
+
perl -pi -e 's/\{\{DOMAIN_GROUP\}\}/$ENV{DOMAIN_LIST}/g; s/\{\{PASS_NUM\}\}/$ENV{PASS_NUM}/g' /tmp/_pass1.md
|
|
212
|
+
cat /tmp/_pass1.md | claude -p --dangerously-skip-permissions
|
|
178
213
|
|
|
179
|
-
#
|
|
214
|
+
# 프론트엔드 그룹은 pass1-frontend-prompt.md를 사용하세요
|
|
180
215
|
```
|
|
181
216
|
|
|
182
217
|
**확인:** `ls claudeos-core/generated/pass1-*.json`으로 그룹당 하나의 JSON이 있는지 확인합니다.
|
|
@@ -218,7 +253,7 @@ node claudeos-core-tools/pass-json-validator/index.js # JSON format
|
|
|
218
253
|
#### Step 8: 결과 확인
|
|
219
254
|
|
|
220
255
|
```bash
|
|
221
|
-
find .claude claudeos-core -type f | grep -v node_modules | wc -l
|
|
256
|
+
find .claude claudeos-core -type f | grep -v node_modules | grep -v '/generated/' | wc -l
|
|
222
257
|
head -30 CLAUDE.md
|
|
223
258
|
ls .claude/rules/*/
|
|
224
259
|
```
|
|
@@ -370,16 +405,21 @@ ClaudeOS-Core가 생성한 문서를 Claude Code가 실제로 읽는 방식입
|
|
|
370
405
|
| 파일 | 시점 | 보장 |
|
|
371
406
|
|---|---|---|
|
|
372
407
|
| `CLAUDE.md` | 매 대화 시작 시 | 항상 |
|
|
373
|
-
| `.claude/rules
|
|
374
|
-
| `.claude/rules/
|
|
408
|
+
| `.claude/rules/00.core/*` | 파일 편집 시 (`paths: ["**/*"]`) | 항상 |
|
|
409
|
+
| `.claude/rules/10.backend/*` | 파일 편집 시 (`paths: ["**/*"]`) | 항상 |
|
|
410
|
+
| `.claude/rules/30.security-db/*` | 파일 편집 시 (`paths: ["**/*"]`) | 항상 |
|
|
411
|
+
| `.claude/rules/40.infra/*` | config/infra 파일 편집 시만 (스코핑된 paths) | 조건부 |
|
|
412
|
+
| `.claude/rules/50.sync/*` | claudeos-core 파일 편집 시만 (스코핑된 paths) | 조건부 |
|
|
375
413
|
|
|
376
|
-
###
|
|
414
|
+
### rule 참조를 통해 온디맨드로 읽는 파일
|
|
377
415
|
|
|
378
|
-
`
|
|
416
|
+
각 rule 파일 하단의 `## Reference` 섹션이 대응하는 standard를 링크합니다. Claude는 현재 작업과 관련된 standard만 읽습니다:
|
|
379
417
|
|
|
380
418
|
- `claudeos-core/standard/**` — 코딩 패턴, ✅/❌ 예시, 네이밍 규칙
|
|
381
419
|
- `claudeos-core/database/**` — DB 스키마 (쿼리, 매퍼, 마이그레이션용)
|
|
382
420
|
|
|
421
|
+
`00.standard-reference.md`는 대응 rule이 없는 standard를 발견하기 위한 디렉토리 역할입니다.
|
|
422
|
+
|
|
383
423
|
### 읽지 않는 파일 (컨텍스트 절약)
|
|
384
424
|
|
|
385
425
|
standard-reference 규칙의 `DO NOT Read` 섹션으로 명시적으로 제외됩니다:
|
|
@@ -439,6 +479,7 @@ npx claudeos-core restore
|
|
|
439
479
|
| **프로젝트 특화 출력** | ✅ 모든 파일이 실제 패턴 반영 | ❌ 제네릭 명령어 | 부분적 | ❌ 획일적 |
|
|
440
480
|
| **멀티스택** | ✅ 자동 감지 + 별도 분석 | ❌ 스택 무관 | 수동 | 다양 |
|
|
441
481
|
| **Kotlin + CQRS/BFF** | ✅ 멀티모듈, Command/Query 분리 | ❌ | ❌ | ❌ |
|
|
482
|
+
| **다국어 지원** | ✅ 10개 언어, 인터랙티브 선택 | ❌ | ❌ | ❌ |
|
|
442
483
|
| **자체 검증** | ✅ 5개 검증 도구 | ❌ | ❌ | ❌ |
|
|
443
484
|
| **백업 / 복원** | ✅ Master Plan 시스템 | ❌ | ❌ | ❌ |
|
|
444
485
|
| **설정 시간** | ~5–18분 (자동화) | ~5분 (수동 설정) | 수 시간–며칠 | ~5분 |
|
package/README.md
CHANGED
|
@@ -105,9 +105,50 @@ npx claudeos-core init
|
|
|
105
105
|
|
|
106
106
|
# Option D: git clone (for development/contribution)
|
|
107
107
|
git clone https://github.com/claudeos-core/claudeos-core.git claudeos-core-tools
|
|
108
|
+
|
|
109
|
+
# Cross-platform (PowerShell, CMD, Bash, Zsh — any terminal)
|
|
110
|
+
node claudeos-core-tools/bin/cli.js init
|
|
111
|
+
|
|
112
|
+
# Linux/macOS (Bash only)
|
|
108
113
|
bash claudeos-core-tools/bootstrap.sh
|
|
109
114
|
```
|
|
110
115
|
|
|
116
|
+
### Output Language (10 languages)
|
|
117
|
+
|
|
118
|
+
When you run `init` without `--lang`, an interactive selector appears — use arrow keys to choose:
|
|
119
|
+
|
|
120
|
+
```
|
|
121
|
+
╔══════════════════════════════════════════════════╗
|
|
122
|
+
║ Select generated document language (required) ║
|
|
123
|
+
╚══════════════════════════════════════════════════╝
|
|
124
|
+
|
|
125
|
+
Generated files (CLAUDE.md, Standards, Rules,
|
|
126
|
+
Skills, Guides) will be written in English.
|
|
127
|
+
|
|
128
|
+
❯ 1. en — English
|
|
129
|
+
2. ko — 한국어 (Korean)
|
|
130
|
+
3. zh-CN — 简体中文 (Chinese Simplified)
|
|
131
|
+
4. ja — 日本語 (Japanese)
|
|
132
|
+
5. es — Español (Spanish)
|
|
133
|
+
6. vi — Tiếng Việt (Vietnamese)
|
|
134
|
+
7. hi — हिन्दी (Hindi)
|
|
135
|
+
8. ru — Русский (Russian)
|
|
136
|
+
9. fr — Français (French)
|
|
137
|
+
10. de — Deutsch (German)
|
|
138
|
+
|
|
139
|
+
↑↓ Move ↵ Select
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
The description changes to the selected language as you navigate. To skip the selector, pass `--lang` directly:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
npx claudeos-core init --lang ko # Korean
|
|
146
|
+
npx claudeos-core init --lang ja # Japanese
|
|
147
|
+
npx claudeos-core init --lang en # English (default)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
> **Note:** This sets the language for generated documentation files only. Code analysis (Pass 1–2) always runs in English; generated output (Pass 3) is written in your chosen language. Code examples inside the generated files remain in their original programming language syntax.
|
|
151
|
+
|
|
111
152
|
That's it. After 5–18 minutes, all documentation is generated and ready to use.
|
|
112
153
|
|
|
113
154
|
### Manual Step-by-Step Installation
|
|
@@ -168,18 +209,18 @@ cat claudeos-core/generated/domain-groups.json | node -e "
|
|
|
168
209
|
g.groups.forEach((g,i) => console.log('Group '+(i+1)+': ['+g.domains.join(', ')+'] ('+g.type+', ~'+g.estimatedFiles+' files)'));
|
|
169
210
|
"
|
|
170
211
|
|
|
171
|
-
# Run Pass 1 for each group (replace
|
|
212
|
+
# Run Pass 1 for each group (replace domains and group number)
|
|
172
213
|
# For group 1:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
214
|
+
cp claudeos-core/generated/pass1-backend-prompt.md /tmp/_pass1.md
|
|
215
|
+
DOMAIN_LIST="user, order, product" PASS_NUM=1 \
|
|
216
|
+
perl -pi -e 's/\{\{DOMAIN_GROUP\}\}/$ENV{DOMAIN_LIST}/g; s/\{\{PASS_NUM\}\}/$ENV{PASS_NUM}/g' /tmp/_pass1.md
|
|
217
|
+
cat /tmp/_pass1.md | claude -p --dangerously-skip-permissions
|
|
177
218
|
|
|
178
219
|
# For group 2 (if exists):
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
220
|
+
cp claudeos-core/generated/pass1-backend-prompt.md /tmp/_pass1.md
|
|
221
|
+
DOMAIN_LIST="payment, system, delivery" PASS_NUM=2 \
|
|
222
|
+
perl -pi -e 's/\{\{DOMAIN_GROUP\}\}/$ENV{DOMAIN_LIST}/g; s/\{\{PASS_NUM\}\}/$ENV{PASS_NUM}/g' /tmp/_pass1.md
|
|
223
|
+
cat /tmp/_pass1.md | claude -p --dangerously-skip-permissions
|
|
183
224
|
|
|
184
225
|
# For frontend groups, use pass1-frontend-prompt.md instead
|
|
185
226
|
```
|
|
@@ -224,7 +265,7 @@ node claudeos-core-tools/pass-json-validator/index.js # Pass JSON format check
|
|
|
224
265
|
|
|
225
266
|
```bash
|
|
226
267
|
# Count generated files
|
|
227
|
-
find .claude claudeos-core -type f | grep -v node_modules | wc -l
|
|
268
|
+
find .claude claudeos-core -type f | grep -v node_modules | grep -v '/generated/' | wc -l
|
|
228
269
|
|
|
229
270
|
# Check CLAUDE.md
|
|
230
271
|
head -30 CLAUDE.md
|
|
@@ -383,16 +424,21 @@ ClaudeOS-Core generates documentation that Claude Code actually reads — here's
|
|
|
383
424
|
| File | When | Guaranteed |
|
|
384
425
|
|---|---|---|
|
|
385
426
|
| `CLAUDE.md` | Every conversation start | Always |
|
|
386
|
-
| `.claude/rules
|
|
387
|
-
| `.claude/rules/
|
|
427
|
+
| `.claude/rules/00.core/*` | When any file is edited (`paths: ["**/*"]`) | Always |
|
|
428
|
+
| `.claude/rules/10.backend/*` | When any file is edited (`paths: ["**/*"]`) | Always |
|
|
429
|
+
| `.claude/rules/30.security-db/*` | When any file is edited (`paths: ["**/*"]`) | Always |
|
|
430
|
+
| `.claude/rules/40.infra/*` | Only when editing config/infra files (scoped paths) | Conditional |
|
|
431
|
+
| `.claude/rules/50.sync/*` | Only when editing claudeos-core files (scoped paths) | Conditional |
|
|
388
432
|
|
|
389
|
-
### What Claude Code reads via
|
|
433
|
+
### What Claude Code reads on-demand via rule references
|
|
390
434
|
|
|
391
|
-
|
|
435
|
+
Each rule file links to its corresponding standard via a `## Reference` section. Claude reads only the relevant standard for the current task:
|
|
392
436
|
|
|
393
437
|
- `claudeos-core/standard/**` — coding patterns, ✅/❌ examples, naming conventions
|
|
394
438
|
- `claudeos-core/database/**` — DB schema (for queries, mappers, migrations)
|
|
395
439
|
|
|
440
|
+
The `00.standard-reference.md` serves as a directory of all standard files for discovering standards that have no corresponding rule.
|
|
441
|
+
|
|
396
442
|
### What Claude Code does NOT read (saves context)
|
|
397
443
|
|
|
398
444
|
These folders are explicitly excluded via the `DO NOT Read` section in the standard-reference rule:
|
|
@@ -452,6 +498,7 @@ npx claudeos-core restore
|
|
|
452
498
|
| **Project-specific output** | ✅ Every file reflects your patterns | ❌ Generic commands | Partially | ❌ One-size-fits-all |
|
|
453
499
|
| **Multi-stack** | ✅ Auto-detected + separate analysis | ❌ Stack-agnostic | Manual | Varies |
|
|
454
500
|
| **Kotlin + CQRS/BFF** | ✅ Multi-module, Command/Query split | ❌ | ❌ | ❌ |
|
|
501
|
+
| **Multi-language** | ✅ 10 languages, interactive selector | ❌ | ❌ | ❌ |
|
|
455
502
|
| **Self-verifying** | ✅ 5 validation tools | ❌ | ❌ | ❌ |
|
|
456
503
|
| **Backup / Restore** | ✅ Master Plan system | ❌ | ❌ | ❌ |
|
|
457
504
|
| **Setup time** | ~5–18min (automated) | ~5min (manual config) | Hours–Days | ~5min |
|
|
@@ -560,7 +607,7 @@ Contributions are welcome! Areas where help is most needed:
|
|
|
560
607
|
|
|
561
608
|
- **New stack templates** — Ruby/Rails, Go/Gin, PHP/Laravel, Rust/Axum
|
|
562
609
|
- **Monorepo deep support** — Separate sub-project roots, workspace detection
|
|
563
|
-
- **Test coverage** —
|
|
610
|
+
- **Test coverage** — Expanding test suite (currently 57 tests covering stack detection, domain grouping, plan validation, and structure scanning)
|
|
564
611
|
|
|
565
612
|
---
|
|
566
613
|
|
package/README.ru.md
CHANGED
|
@@ -107,9 +107,44 @@ npx claudeos-core init
|
|
|
107
107
|
|
|
108
108
|
# Вариант D: git clone (для разработки/контрибуции)
|
|
109
109
|
git clone https://github.com/claudeos-core/claudeos-core.git claudeos-core-tools
|
|
110
|
+
|
|
111
|
+
# Кроссплатформенный (PowerShell, CMD, Bash, Zsh — любой терминал)
|
|
112
|
+
node claudeos-core-tools/bin/cli.js init
|
|
113
|
+
|
|
114
|
+
# Только Linux/macOS (только Bash)
|
|
110
115
|
bash claudeos-core-tools/bootstrap.sh
|
|
111
116
|
```
|
|
112
117
|
|
|
118
|
+
### Язык вывода (10 языков)
|
|
119
|
+
|
|
120
|
+
При запуске `init` без `--lang` появляется интерактивный селектор со стрелками:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
╔══════════════════════════════════════════════════╗
|
|
124
|
+
║ Select generated document language (required) ║
|
|
125
|
+
╚══════════════════════════════════════════════════╝
|
|
126
|
+
|
|
127
|
+
Сгенерированные файлы (CLAUDE.md, Standards, Rules,
|
|
128
|
+
Skills, Guides) будут написаны на русском языке.
|
|
129
|
+
|
|
130
|
+
1. en — English
|
|
131
|
+
...
|
|
132
|
+
❯ 8. ru — Русский (Russian)
|
|
133
|
+
...
|
|
134
|
+
|
|
135
|
+
↑↓ Move ↵ Select
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
При навигации описание переключается на соответствующий язык. Чтобы пропустить селектор:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
npx claudeos-core init --lang ru # Русский
|
|
142
|
+
npx claudeos-core init --lang en # English
|
|
143
|
+
npx claudeos-core init --lang ko # 한국어
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
> **Примечание:** Эта настройка изменяет только язык генерируемых файлов документации. Анализ кода (Pass 1–2) всегда выполняется на английском; только результат генерации (Pass 3) пишется на выбранном языке.
|
|
147
|
+
|
|
113
148
|
Это всё. Через 5–18 минут вся документация сгенерирована и готова к использованию.
|
|
114
149
|
|
|
115
150
|
### Ручная пошаговая установка
|
|
@@ -171,12 +206,12 @@ cat claudeos-core/generated/domain-groups.json | node -e "
|
|
|
171
206
|
"
|
|
172
207
|
|
|
173
208
|
# Run Pass 1 for group 1:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
209
|
+
cp claudeos-core/generated/pass1-backend-prompt.md /tmp/_pass1.md
|
|
210
|
+
DOMAIN_LIST="user, order, product" PASS_NUM=1 \
|
|
211
|
+
perl -pi -e 's/\{\{DOMAIN_GROUP\}\}/$ENV{DOMAIN_LIST}/g; s/\{\{PASS_NUM\}\}/$ENV{PASS_NUM}/g' /tmp/_pass1.md
|
|
212
|
+
cat /tmp/_pass1.md | claude -p --dangerously-skip-permissions
|
|
178
213
|
|
|
179
|
-
#
|
|
214
|
+
# Для фронтенд-групп используйте pass1-frontend-prompt.md
|
|
180
215
|
```
|
|
181
216
|
|
|
182
217
|
**Проверка:** `ls claudeos-core/generated/pass1-*.json` должен показать по одному JSON на группу.
|
|
@@ -218,7 +253,7 @@ node claudeos-core-tools/pass-json-validator/index.js # JSON format
|
|
|
218
253
|
#### Step 8: Проверка результатов
|
|
219
254
|
|
|
220
255
|
```bash
|
|
221
|
-
find .claude claudeos-core -type f | grep -v node_modules | wc -l
|
|
256
|
+
find .claude claudeos-core -type f | grep -v node_modules | grep -v '/generated/' | wc -l
|
|
222
257
|
head -30 CLAUDE.md
|
|
223
258
|
ls .claude/rules/*/
|
|
224
259
|
```
|
|
@@ -352,16 +387,21 @@ npx claudeos-core restore # Восстановление Plan → Диск
|
|
|
352
387
|
| Файл | Когда | Гарантия |
|
|
353
388
|
|---|---|---|
|
|
354
389
|
| `CLAUDE.md` | При начале каждого разговора | Всегда |
|
|
355
|
-
| `.claude/rules
|
|
356
|
-
| `.claude/rules/
|
|
390
|
+
| `.claude/rules/00.core/*` | При редактировании файлов (`paths: ["**/*"]`) | Всегда |
|
|
391
|
+
| `.claude/rules/10.backend/*` | При редактировании файлов (`paths: ["**/*"]`) | Всегда |
|
|
392
|
+
| `.claude/rules/30.security-db/*` | При редактировании файлов (`paths: ["**/*"]`) | Всегда |
|
|
393
|
+
| `.claude/rules/40.infra/*` | Только при редактировании config/infra файлов (ограниченные paths) | Условно |
|
|
394
|
+
| `.claude/rules/50.sync/*` | Только при редактировании claudeos-core файлов (ограниченные paths) | Условно |
|
|
357
395
|
|
|
358
|
-
### Файлы, читаемые через
|
|
396
|
+
### Файлы, читаемые по запросу через ссылки в правилах
|
|
359
397
|
|
|
360
|
-
|
|
398
|
+
Каждый файл правил ссылается на соответствующий standard в секции `## Reference`. Claude читает только standard, релевантный текущей задаче:
|
|
361
399
|
|
|
362
400
|
- `claudeos-core/standard/**` — Паттерны кодирования, примеры ✅/❌, соглашения об именах
|
|
363
401
|
- `claudeos-core/database/**` — Схема БД (для запросов, мапперов, миграций)
|
|
364
402
|
|
|
403
|
+
`00.standard-reference.md` служит каталогом для обнаружения standards без соответствующего правила.
|
|
404
|
+
|
|
365
405
|
### Файлы, которые НЕ читаются (экономия контекста)
|
|
366
406
|
|
|
367
407
|
Явно исключены через секцию `DO NOT Read` правила standard-reference:
|
|
@@ -421,6 +461,7 @@ npx claudeos-core restore
|
|
|
421
461
|
| **Вывод под проект** | ✅ Каждый файл отражает ваши паттерны | ❌ Универсальные команды | Частично | ❌ Один размер для всех |
|
|
422
462
|
| **Мульти-стек** | ✅ Автоопределение + раздельный анализ | ❌ Стек-агностик | Вручную | Неопределённо |
|
|
423
463
|
| **Kotlin + CQRS/BFF** | ✅ Мультимодульный, разделение Command/Query | ❌ | ❌ | ❌ |
|
|
464
|
+
| **Многоязычность** | ✅ 10 языков, интерактивный выбор | ❌ | ❌ | ❌ |
|
|
424
465
|
| **Самопроверка** | ✅ 5 инструментов валидации | ❌ | ❌ | ❌ |
|
|
425
466
|
| **Бэкап / Восстановление** | ✅ Система Master Plan | ❌ | ❌ | ❌ |
|
|
426
467
|
| **Время настройки** | ~5–18 мин (автоматически) | ~5 мин (ручная настройка) | Часы–Дни | ~5 мин |
|
package/README.vi.md
CHANGED
|
@@ -107,9 +107,44 @@ npx claudeos-core init
|
|
|
107
107
|
|
|
108
108
|
# Cách D: git clone (cho phát triển/đóng góp)
|
|
109
109
|
git clone https://github.com/claudeos-core/claudeos-core.git claudeos-core-tools
|
|
110
|
+
|
|
111
|
+
# Đa nền tảng (PowerShell, CMD, Bash, Zsh — mọi terminal)
|
|
112
|
+
node claudeos-core-tools/bin/cli.js init
|
|
113
|
+
|
|
114
|
+
# Chỉ Linux/macOS (chỉ Bash)
|
|
110
115
|
bash claudeos-core-tools/bootstrap.sh
|
|
111
116
|
```
|
|
112
117
|
|
|
118
|
+
### Ngôn ngữ đầu ra (10 ngôn ngữ)
|
|
119
|
+
|
|
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:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
╔══════════════════════════════════════════════════╗
|
|
124
|
+
║ Select generated document language (required) ║
|
|
125
|
+
╚══════════════════════════════════════════════════╝
|
|
126
|
+
|
|
127
|
+
Các file được tạo (CLAUDE.md, Standards, Rules,
|
|
128
|
+
Skills, Guides) sẽ được viết bằng tiếng Việt.
|
|
129
|
+
|
|
130
|
+
1. en — English
|
|
131
|
+
...
|
|
132
|
+
❯ 6. vi — Tiếng Việt (Vietnamese)
|
|
133
|
+
...
|
|
134
|
+
|
|
135
|
+
↑↓ Move ↵ Select
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Mô tả thay đổi sang ngôn ngữ tương ứng khi di chuyển. Bỏ qua bộ chọn:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
npx claudeos-core init --lang vi # Tiếng Việt
|
|
142
|
+
npx claudeos-core init --lang en # English
|
|
143
|
+
npx claudeos-core init --lang ko # 한국어
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
> **Lưu ý:** Chỉ thay đổi ngôn ngữ của file tài liệu được tạo. Phân tích mã (Pass 1–2) luôn chạy bằng tiếng Anh; chỉ kết quả tạo (Pass 3) được viết bằng ngôn ngữ đã chọn.
|
|
147
|
+
|
|
113
148
|
Chỉ vậy thôi. Sau 5–18 phút, tất cả tài liệu được tạo và sẵn sàng sử dụng.
|
|
114
149
|
|
|
115
150
|
### Cài Đặt Thủ Công Từng Bước
|
|
@@ -171,12 +206,12 @@ cat claudeos-core/generated/domain-groups.json | node -e "
|
|
|
171
206
|
"
|
|
172
207
|
|
|
173
208
|
# Run Pass 1 for group 1:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
209
|
+
cp claudeos-core/generated/pass1-backend-prompt.md /tmp/_pass1.md
|
|
210
|
+
DOMAIN_LIST="user, order, product" PASS_NUM=1 \
|
|
211
|
+
perl -pi -e 's/\{\{DOMAIN_GROUP\}\}/$ENV{DOMAIN_LIST}/g; s/\{\{PASS_NUM\}\}/$ENV{PASS_NUM}/g' /tmp/_pass1.md
|
|
212
|
+
cat /tmp/_pass1.md | claude -p --dangerously-skip-permissions
|
|
178
213
|
|
|
179
|
-
#
|
|
214
|
+
# Đối với nhóm frontend, sử dụng pass1-frontend-prompt.md
|
|
180
215
|
```
|
|
181
216
|
|
|
182
217
|
**Xác minh:** `ls claudeos-core/generated/pass1-*.json` phải hiển thị một JSON cho mỗi nhóm.
|
|
@@ -218,7 +253,7 @@ node claudeos-core-tools/pass-json-validator/index.js # JSON format
|
|
|
218
253
|
#### Step 8: Xác minh kết quả
|
|
219
254
|
|
|
220
255
|
```bash
|
|
221
|
-
find .claude claudeos-core -type f | grep -v node_modules | wc -l
|
|
256
|
+
find .claude claudeos-core -type f | grep -v node_modules | grep -v '/generated/' | wc -l
|
|
222
257
|
head -30 CLAUDE.md
|
|
223
258
|
ls .claude/rules/*/
|
|
224
259
|
```
|
|
@@ -352,16 +387,21 @@ npx claudeos-core restore # Khôi phục Plan → Đĩa
|
|
|
352
387
|
| File | Thời điểm | Đảm bảo |
|
|
353
388
|
|---|---|---|
|
|
354
389
|
| `CLAUDE.md` | Mỗi lần bắt đầu cuộc trò chuyện | Luôn luôn |
|
|
355
|
-
| `.claude/rules
|
|
356
|
-
| `.claude/rules/
|
|
390
|
+
| `.claude/rules/00.core/*` | Khi chỉnh sửa file (`paths: ["**/*"]`) | Luôn luôn |
|
|
391
|
+
| `.claude/rules/10.backend/*` | Khi chỉnh sửa file (`paths: ["**/*"]`) | Luôn luôn |
|
|
392
|
+
| `.claude/rules/30.security-db/*` | Khi chỉnh sửa file (`paths: ["**/*"]`) | Luôn luôn |
|
|
393
|
+
| `.claude/rules/40.infra/*` | Chỉ khi chỉnh sửa file config/infra (paths giới hạn) | Có điều kiện |
|
|
394
|
+
| `.claude/rules/50.sync/*` | Chỉ khi chỉnh sửa file claudeos-core (paths giới hạn) | Có điều kiện |
|
|
357
395
|
|
|
358
|
-
### File được đọc qua quy tắc
|
|
396
|
+
### File được đọc theo yêu cầu qua tham chiếu trong quy tắc
|
|
359
397
|
|
|
360
|
-
|
|
398
|
+
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:
|
|
361
399
|
|
|
362
400
|
- `claudeos-core/standard/**` — Pattern coding, ví dụ ✅/❌, quy tắc đặt tên
|
|
363
401
|
- `claudeos-core/database/**` — DB schema (cho query, mapper, migration)
|
|
364
402
|
|
|
403
|
+
`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.
|
|
404
|
+
|
|
365
405
|
### File KHÔNG đọc (tiết kiệm context)
|
|
366
406
|
|
|
367
407
|
Được loại trừ rõ ràng qua phần `DO NOT Read` của quy tắc standard-reference:
|
|
@@ -421,6 +461,7 @@ npx claudeos-core restore
|
|
|
421
461
|
| **Đầ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ả |
|
|
422
462
|
| **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 |
|
|
423
463
|
| **Kotlin + CQRS/BFF** | ✅ Multi-module, Command/Query split | ❌ | ❌ | ❌ |
|
|
464
|
+
| **Đa ngôn ngữ** | ✅ 10 ngôn ngữ, bộ chọn tương tác | ❌ | ❌ | ❌ |
|
|
424
465
|
| **Tự xác thực** | ✅ 5 công cụ validation | ❌ | ❌ | ❌ |
|
|
425
466
|
| **Backup / Khôi phục** | ✅ Hệ thống Master Plan | ❌ | ❌ | ❌ |
|
|
426
467
|
| **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 |
|
package/README.zh-CN.md
CHANGED
|
@@ -107,9 +107,44 @@ npx claudeos-core init
|
|
|
107
107
|
|
|
108
108
|
# 方式 D:git clone(用于开发/贡献)
|
|
109
109
|
git clone https://github.com/claudeos-core/claudeos-core.git claudeos-core-tools
|
|
110
|
+
|
|
111
|
+
# 跨平台(PowerShell、CMD、Bash、Zsh — 任何终端)
|
|
112
|
+
node claudeos-core-tools/bin/cli.js init
|
|
113
|
+
|
|
114
|
+
# 仅 Linux/macOS(仅 Bash)
|
|
110
115
|
bash claudeos-core-tools/bootstrap.sh
|
|
111
116
|
```
|
|
112
117
|
|
|
118
|
+
### 输出语言(支持 10 种语言)
|
|
119
|
+
|
|
120
|
+
不带 `--lang` 运行 `init` 时,会显示箭头键交互选择器:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
╔══════════════════════════════════════════════════╗
|
|
124
|
+
║ Select generated document language (required) ║
|
|
125
|
+
╚══════════════════════════════════════════════════╝
|
|
126
|
+
|
|
127
|
+
生成的文件(CLAUDE.md、Standards、Rules、
|
|
128
|
+
Skills、Guides)将以简体中文编写。
|
|
129
|
+
|
|
130
|
+
1. en — English
|
|
131
|
+
2. ko — 한국어 (Korean)
|
|
132
|
+
❯ 3. zh-CN — 简体中文 (Chinese Simplified)
|
|
133
|
+
...
|
|
134
|
+
|
|
135
|
+
↑↓ Move ↵ Select
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
移动箭头时说明会切换为对应语言。跳过选择器直接指定:
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
npx claudeos-core init --lang zh-CN # 简体中文
|
|
142
|
+
npx claudeos-core init --lang en # English
|
|
143
|
+
npx claudeos-core init --lang ko # 한국어
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
> **注意:** 此设置仅更改生成文档的语言。代码分析(Pass 1–2)始终以英文运行,仅生成结果(Pass 3)以所选语言编写。代码示例保持原始编程语言语法。
|
|
147
|
+
|
|
113
148
|
就这样。5–18 分钟后,所有文档生成完毕,即可使用。
|
|
114
149
|
|
|
115
150
|
### 手动逐步安装
|
|
@@ -171,12 +206,12 @@ cat claudeos-core/generated/domain-groups.json | node -e "
|
|
|
171
206
|
"
|
|
172
207
|
|
|
173
208
|
# Run Pass 1 for group 1:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
209
|
+
cp claudeos-core/generated/pass1-backend-prompt.md /tmp/_pass1.md
|
|
210
|
+
DOMAIN_LIST="user, order, product" PASS_NUM=1 \
|
|
211
|
+
perl -pi -e 's/\{\{DOMAIN_GROUP\}\}/$ENV{DOMAIN_LIST}/g; s/\{\{PASS_NUM\}\}/$ENV{PASS_NUM}/g' /tmp/_pass1.md
|
|
212
|
+
cat /tmp/_pass1.md | claude -p --dangerously-skip-permissions
|
|
178
213
|
|
|
179
|
-
#
|
|
214
|
+
# 前端分组请使用 pass1-frontend-prompt.md
|
|
180
215
|
```
|
|
181
216
|
|
|
182
217
|
**验证:** `ls claudeos-core/generated/pass1-*.json` 应显示每组一个 JSON。
|
|
@@ -218,7 +253,7 @@ node claudeos-core-tools/pass-json-validator/index.js # JSON format
|
|
|
218
253
|
#### Step 8:验证结果
|
|
219
254
|
|
|
220
255
|
```bash
|
|
221
|
-
find .claude claudeos-core -type f | grep -v node_modules | wc -l
|
|
256
|
+
find .claude claudeos-core -type f | grep -v node_modules | grep -v '/generated/' | wc -l
|
|
222
257
|
head -30 CLAUDE.md
|
|
223
258
|
ls .claude/rules/*/
|
|
224
259
|
```
|
|
@@ -352,16 +387,21 @@ ClaudeOS-Core 生成的文档,Claude Code 实际读取方式如下:
|
|
|
352
387
|
| 文件 | 时机 | 保证 |
|
|
353
388
|
|---|---|---|
|
|
354
389
|
| `CLAUDE.md` | 每次对话开始 | 始终 |
|
|
355
|
-
| `.claude/rules
|
|
356
|
-
| `.claude/rules/
|
|
390
|
+
| `.claude/rules/00.core/*` | 编辑文件时(`paths: ["**/*"]`) | 始终 |
|
|
391
|
+
| `.claude/rules/10.backend/*` | 编辑文件时(`paths: ["**/*"]`) | 始终 |
|
|
392
|
+
| `.claude/rules/30.security-db/*` | 编辑文件时(`paths: ["**/*"]`) | 始终 |
|
|
393
|
+
| `.claude/rules/40.infra/*` | 仅编辑 config/infra 文件时(范围限定 paths) | 有条件 |
|
|
394
|
+
| `.claude/rules/50.sync/*` | 仅编辑 claudeos-core 文件时(范围限定 paths) | 有条件 |
|
|
357
395
|
|
|
358
|
-
###
|
|
396
|
+
### 通过规则引用按需读取的文件
|
|
359
397
|
|
|
360
|
-
`
|
|
398
|
+
每个规则文件底部的 `## Reference` 部分链接到对应的 standard。Claude 仅读取与当前任务相关的 standard:
|
|
361
399
|
|
|
362
400
|
- `claudeos-core/standard/**` — 编码模式、✅/❌ 示例、命名规范
|
|
363
401
|
- `claudeos-core/database/**` — 数据库 schema(查询、mapper、迁移用)
|
|
364
402
|
|
|
403
|
+
`00.standard-reference.md` 作为目录,用于发现没有对应规则的 standard 文件。
|
|
404
|
+
|
|
365
405
|
### 不读取的文件(节省上下文)
|
|
366
406
|
|
|
367
407
|
通过 standard-reference 规则的 `DO NOT Read` 部分明确排除:
|
|
@@ -421,6 +461,7 @@ npx claudeos-core restore
|
|
|
421
461
|
| **项目定制输出** | ✅ 每个文件反映你的模式 | ❌ 通用命令 | 部分 | ❌ 一刀切 |
|
|
422
462
|
| **多栈支持** | ✅ 自动检测 + 分别分析 | ❌ 栈无关 | 手动 | 不一定 |
|
|
423
463
|
| **Kotlin + CQRS/BFF** | ✅ 多模块, Command/Query 分离 | ❌ | ❌ | ❌ |
|
|
464
|
+
| **多语言** | ✅ 10 种语言,交互式选择 | ❌ | ❌ | ❌ |
|
|
424
465
|
| **自验证** | ✅ 5 个验证工具 | ❌ | ❌ | ❌ |
|
|
425
466
|
| **备份 / 恢复** | ✅ Master Plan 系统 | ❌ | ❌ | ❌ |
|
|
426
467
|
| **配置时间** | ~5–18分钟(自动) | ~5分钟(手动配置) | 数小时–数天 | ~5分钟 |
|