claudeos-core 1.2.1 → 1.2.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.2.3] — 2026-04-03
4
+
5
+ ### Changed
6
+ - **50.sync/ rules role clarified** — no longer described as "hooks fallback"; now the primary sync reminder mechanism (`npx claudeos-core refresh`)
7
+ - All 6 pass3 templates updated to reference `npx claudeos-core refresh` instead of PostToolUse hooks
8
+ - All 10 READMEs updated: removed "Automatic plan sync (hooks)" section, plan table now references `refresh` command
9
+
10
+ ### Fixed
11
+ - **`plan-installer`**: malformed `package.json` no longer aborts entire `detectStack()` — Python, DB config, .env, and frontend config detection now continue normally
12
+
13
+ ### Removed
14
+ - **Automatic hook installation removed from `init`** — `installSyncHooks()` function and `[2.5]` step removed from `cli.js`
15
+ - PostToolUse hooks caused instability: npx cache paths broke across environments, added latency to every Edit/Write
16
+ - Plan sync is now manual via `npx claudeos-core refresh` (same result, zero complexity)
17
+ - All references to `PostToolUse`, `sync-hook`, and `.claude/settings.json` hooks removed from pass3 templates and READMEs
18
+
19
+ ## [1.2.1] — 2026-04-02
20
+
21
+ ### Added
22
+ - **Sync Hook** (`sync-hook/index.js`) — Automatic disk → Master Plan sync via Claude Code PostToolUse hooks
23
+ - Triggers on Edit/Write operations, updates the matching plan `<file>` block in-place
24
+ - Supports both `<file>` block format and ` ```markdown ` code block format
25
+ - `npx claudeos-core init` now auto-installs hooks into `.claude/settings.json`
26
+ - Silent no-op for non-tracked files, deleted files, and missing plan directories
27
+
28
+ ### Changed
29
+ - **Standard reference rule** (`00.core/00.standard-reference.md`) — auto-generated rule file that instructs Claude Code to Read standard documents before coding; ensures standard/ files are actually used
30
+ - **Rules now use `paths: ["**/*"]` frontmatter** — ensures Claude Code always loads all rules regardless of which file is being edited
31
+ - **@import removed** — `@import` was never a real Claude Code feature; rules are now self-contained with full content inline
32
+ - **50.sync/ rules role clarified** — these are now AI fallback reminders; actual sync is handled by hooks
33
+ - All 6 pass3 templates updated to generate rules with `paths: ["**/*"]` and no `@import`
34
+ - `content-validator` no longer checks for `@import` presence
35
+ - `manifest-generator` generates empty deprecated `import-graph.json` stub for backward compatibility
36
+
37
+ ### Deprecated
38
+ - **`import-linter`** — removed from health-checker pipeline; `@import` is not a Claude Code feature
39
+ - **`import-graph.json`** — kept as empty stub for backward compatibility
40
+
41
+ ### Removed
42
+ - `import-linter` removed from `health-checker` verification pipeline (6 tools → 5 tools)
43
+ - `extractImports()` function removed from `manifest-generator`
44
+
3
45
  ## [1.2.0] — 2026-04-01
4
46
 
5
47
  ### Added
package/README.de.md CHANGED
@@ -23,7 +23,7 @@ ClaudeOS-Core automatisiert den gesamten Prozess:
23
23
  1. **Scannt** Ihr Projekt — erkennt automatisch Stack, Domänen, ORM, Datenbank, Paketmanager
24
24
  2. **Analysiert** Ihren Quellcode tiefgehend — Controller-Muster, Service-Schichten, Namenskonventionen, Fehlerbehandlung, Sicherheit, Tests und 50+ Kategorien
25
25
  3. **Generiert** ein vollständiges Dokumentationsökosystem — `CLAUDE.md`, Standards (15–19 Dateien), Rules, Skills, Guides (9 Dateien), Master Plans, DB-Dokumentation und MCP-Leitfaden
26
- 4. **Validiert** alles — 6 integrierte Verifizierungstools gewährleisten Konsistenz
26
+ 4. **Validiert** alles — 5 integrierte Verifizierungstools gewährleisten Konsistenz
27
27
 
28
28
  Gesamtzeit: **5–18 Minuten**, abhängig von der Projektgröße. Null manuelle Konfiguration.
29
29
 
@@ -209,7 +209,6 @@ node claudeos-core-tools/manifest-generator/index.js
209
209
  node claudeos-core-tools/health-checker/index.js
210
210
 
211
211
  # Oder einzelne Prüfungen ausführen:
212
- node claudeos-core-tools/import-linter/index.js # @import validation
213
212
  node claudeos-core-tools/plan-validator/index.js --check # Plan ↔ disk
214
213
  node claudeos-core-tools/sync-checker/index.js # Sync status
215
214
  node claudeos-core-tools/content-validator/index.js # Content quality
@@ -289,7 +288,7 @@ your-project/
289
288
  │ ├── 20.frontend/
290
289
  │ ├── 30.security-db/
291
290
  │ ├── 40.infra/
292
- │ └── 50.sync/ ← Auto-Sync-Regeln
291
+ │ └── 50.sync/ ← Sync-Erinnerungsregeln
293
292
 
294
293
  ├── claudeos-core/ ← Hauptausgabeverzeichnis
295
294
  │ ├── generated/ ← Analyse-JSON + dynamische Prompts
@@ -322,7 +321,7 @@ Bei Multi-Stack-Projekten (z.B. Java + React) werden Backend- und Frontend-Domä
322
321
 
323
322
  ## Verifizierungstools
324
323
 
325
- ClaudeOS-Core enthält 6 integrierte Verifizierungstools, die nach der Generierung automatisch ausgeführt werden:
324
+ ClaudeOS-Core enthält 5 integrierte Verifizierungstools, die nach der Generierung automatisch ausgeführt werden:
326
325
 
327
326
  ```bash
328
327
  # Alle Prüfungen auf einmal ausführen (empfohlen)
@@ -336,8 +335,7 @@ npx claudeos-core restore # Plan → Festplatte Wiederherstellung
336
335
 
337
336
  | Tool | Funktion |
338
337
  |---|---|
339
- | **manifest-generator** | Erstellt Metadaten-JSON (rule-manifest, import-graph, sync-map, plan-manifest) |
340
- | **import-linter** | Validiert `@import`-Pfade — erkennt defekte, doppelte und zirkuläre Imports (DFS) |
338
+ | **manifest-generator** | Erstellt Metadaten-JSON (rule-manifest, sync-map, plan-manifest) |
341
339
  | **plan-validator** | Vergleicht `<file>`-Blöcke des Master Plans mit der Festplatte — 3 Modi: check, refresh, restore |
342
340
  | **sync-checker** | Erkennt nicht registrierte Dateien (auf Festplatte, aber nicht im Plan) und verwaiste Einträge |
343
341
  | **content-validator** | Validiert Dateiqualität — leere Dateien, fehlende ✅/❌ Beispiele, erforderliche Abschnitte |
@@ -345,6 +343,38 @@ npx claudeos-core restore # Plan → Festplatte Wiederherstellung
345
343
 
346
344
  ---
347
345
 
346
+ ## Wie Claude Code Ihre Dokumentation Nutzt
347
+
348
+ So liest Claude Code die von ClaudeOS-Core generierte Dokumentation tatsächlich:
349
+
350
+ ### Automatisch gelesene Dateien
351
+
352
+ | Datei | Wann | Garantiert |
353
+ |---|---|---|
354
+ | `CLAUDE.md` | Bei jedem Gesprächsstart | Immer |
355
+ | `.claude/rules/*.md` | Beim Bearbeiten von Dateien (via `paths: ["**/*"]`) | Immer |
356
+ | `.claude/rules/00.core/00.standard-reference.md` | ↑ Oben enthalten | Immer |
357
+
358
+ ### Dateien, die über die standard-reference Regel gelesen werden
359
+
360
+ Die Regel `00.standard-reference.md` weist Claude Code an, die Standard-Dokumente vor dem Schreiben von Code zu Read:
361
+
362
+ - `claudeos-core/standard/**` — Coding-Patterns, ✅/❌ Beispiele, Namenskonventionen
363
+ - `claudeos-core/database/**` — DB-Schema (für Queries, Mapper, Migrationen)
364
+
365
+ ### Dateien, die NICHT gelesen werden (Kontexteinsparung)
366
+
367
+ Explizit durch den `DO NOT Read`-Abschnitt der standard-reference Regel ausgeschlossen:
368
+
369
+ | Ordner | Ausschlussgrund |
370
+ |---|---|
371
+ | `claudeos-core/plan/` | Master Plan Backups (~340KB). Verwenden Sie `npx claudeos-core refresh` zur Synchronisation. |
372
+ | `claudeos-core/generated/` | Build-Metadaten JSON. Keine Coding-Referenz. |
373
+ | `claudeos-core/guide/` | Onboarding-Guides für Menschen. |
374
+ | `claudeos-core/mcp-guide/` | MCP Server Dokumentation. Keine Coding-Referenz. |
375
+
376
+ ---
377
+
348
378
  ## Täglicher Arbeitsablauf
349
379
 
350
380
  ### Nach der Installation
@@ -359,7 +389,7 @@ npx claudeos-core restore # Plan → Festplatte Wiederherstellung
359
389
  ### Nach manueller Bearbeitung der Standards
360
390
 
361
391
  ```bash
362
- # Änderungen zum Master Plan synchronisieren
392
+ # Nach dem Bearbeiten von Standard- oder Rules-Dateien:
363
393
  npx claudeos-core refresh
364
394
 
365
395
  # Konsistenz überprüfen
@@ -391,7 +421,7 @@ npx claudeos-core restore
391
421
  | **Projektspezifische Ausgabe** | ✅ Jede Datei spiegelt Ihre Muster wider | ❌ Generische Befehle | Teilweise | ❌ Einheitsgröße |
392
422
  | **Multi-Stack** | ✅ Auto-Erkennung + separate Analyse | ❌ Stack-agnostisch | Manuell | Variiert |
393
423
  | **Kotlin + CQRS/BFF** | ✅ Multi-Modul, Command/Query-Trennung | ❌ | ❌ | ❌ |
394
- | **Selbstverifizierung** | ✅ 6 Validierungstools | ❌ | ❌ | ❌ |
424
+ | **Selbstverifizierung** | ✅ 5 Validierungstools | ❌ | ❌ | ❌ |
395
425
  | **Backup / Wiederherstellung** | ✅ Master Plan System | ❌ | ❌ | ❌ |
396
426
  | **Einrichtungszeit** | ~5–18 Min (automatisch) | ~5 Min (manuelle Konfig) | Stunden–Tage | ~5 Min |
397
427
 
package/README.es.md CHANGED
@@ -23,7 +23,7 @@ ClaudeOS-Core automatiza todo el proceso:
23
23
  1. **Escanea** tu proyecto — detecta automáticamente stack, dominios, ORM, base de datos y gestor de paquetes
24
24
  2. **Analiza** tu código fuente en profundidad — patrones de controladores, capas de servicio, convenciones de nombrado, manejo de errores, seguridad, testing y más de 50 categorías
25
25
  3. **Genera** un ecosistema documental completo — `CLAUDE.md`, Standards (15–19 archivos), Rules, Skills, Guides (9 archivos), Master Plans, documentación de BD y guía MCP
26
- 4. **Valida** todo — 6 herramientas de verificación integradas garantizan la consistencia
26
+ 4. **Valida** todo — 5 herramientas de verificación integradas garantizan la consistencia
27
27
 
28
28
  Tiempo total: **5–18 minutos**, según el tamaño del proyecto. Cero configuración manual.
29
29
 
@@ -209,7 +209,6 @@ node claudeos-core-tools/manifest-generator/index.js
209
209
  node claudeos-core-tools/health-checker/index.js
210
210
 
211
211
  # O ejecutar verificaciones individuales:
212
- node claudeos-core-tools/import-linter/index.js # @import validation
213
212
  node claudeos-core-tools/plan-validator/index.js --check # Plan ↔ disk
214
213
  node claudeos-core-tools/sync-checker/index.js # Sync status
215
214
  node claudeos-core-tools/content-validator/index.js # Content quality
@@ -289,7 +288,7 @@ your-project/
289
288
  │ ├── 20.frontend/
290
289
  │ ├── 30.security-db/
291
290
  │ ├── 40.infra/
292
- │ └── 50.sync/ ← Reglas de sincronización automática
291
+ │ └── 50.sync/ ← Reglas de recordatorio de sincronización
293
292
 
294
293
  ├── claudeos-core/ ← Directorio principal de salida
295
294
  │ ├── generated/ ← JSON de análisis + prompts dinámicos
@@ -322,7 +321,7 @@ Para proyectos multi-stack (ej: Java + React), los dominios de backend y fronten
322
321
 
323
322
  ## Herramientas de Verificación
324
323
 
325
- ClaudeOS-Core incluye 6 herramientas de verificación integradas que se ejecutan automáticamente después de la generación:
324
+ ClaudeOS-Core incluye 5 herramientas de verificación integradas que se ejecutan automáticamente después de la generación:
326
325
 
327
326
  ```bash
328
327
  # Ejecutar todas las verificaciones a la vez (recomendado)
@@ -336,8 +335,7 @@ npx claudeos-core restore # Restauración Plan → Disco
336
335
 
337
336
  | Herramienta | Función |
338
337
  |---|---|
339
- | **manifest-generator** | Construye JSON de metadatos (rule-manifest, import-graph, sync-map, plan-manifest) |
340
- | **import-linter** | Valida rutas `@import` — detecta imports rotos, duplicados y circulares (DFS) |
338
+ | **manifest-generator** | Construye JSON de metadatos (rule-manifest, sync-map, plan-manifest) |
341
339
  | **plan-validator** | Compara bloques `<file>` del Master Plan con el disco — 3 modos: check, refresh, restore |
342
340
  | **sync-checker** | Detecta archivos no registrados (en disco pero no en plan) y entradas huérfanas |
343
341
  | **content-validator** | Valida calidad de archivos — archivos vacíos, ejemplos ✅/❌ faltantes, secciones requeridas |
@@ -345,6 +343,38 @@ npx claudeos-core restore # Restauración Plan → Disco
345
343
 
346
344
  ---
347
345
 
346
+ ## Cómo Claude Code Usa tu Documentación
347
+
348
+ Así es como Claude Code lee la documentación generada por ClaudeOS-Core:
349
+
350
+ ### Archivos que se leen automáticamente
351
+
352
+ | Archivo | Cuándo | Garantizado |
353
+ |---|---|---|
354
+ | `CLAUDE.md` | Al inicio de cada conversación | Siempre |
355
+ | `.claude/rules/*.md` | Al editar archivos (vía `paths: ["**/*"]`) | Siempre |
356
+ | `.claude/rules/00.core/00.standard-reference.md` | ↑ Incluido arriba | Siempre |
357
+
358
+ ### Archivos leídos vía regla standard-reference
359
+
360
+ La regla `00.standard-reference.md` instruye a Claude Code a Read los documentos estándar antes de escribir código:
361
+
362
+ - `claudeos-core/standard/**` — Patrones de código, ejemplos ✅/❌, convenciones de nombres
363
+ - `claudeos-core/database/**` — Schema DB (para queries, mappers, migraciones)
364
+
365
+ ### Archivos que NO se leen (ahorro de contexto)
366
+
367
+ Excluidos explícitamente por la sección `DO NOT Read` de la regla standard-reference:
368
+
369
+ | Carpeta | Razón de exclusión |
370
+ |---|---|
371
+ | `claudeos-core/plan/` | Backups de Master Plan (~340KB). Usa `npx claudeos-core refresh` para sincronizar. |
372
+ | `claudeos-core/generated/` | Metadatos JSON de build. No es referencia de código. |
373
+ | `claudeos-core/guide/` | Guías de onboarding para humanos. |
374
+ | `claudeos-core/mcp-guide/` | Docs de servidor MCP. No es referencia de código. |
375
+
376
+ ---
377
+
348
378
  ## Flujo de Trabajo Diario
349
379
 
350
380
  ### Después de la Instalación
@@ -359,7 +389,7 @@ npx claudeos-core restore # Restauración Plan → Disco
359
389
  ### Después de Editar Estándares Manualmente
360
390
 
361
391
  ```bash
362
- # Sincroniza tus cambios al Master Plan
392
+ # Después de editar archivos standard o rules:
363
393
  npx claudeos-core refresh
364
394
 
365
395
  # Verifica que todo sea consistente
@@ -391,7 +421,7 @@ npx claudeos-core restore
391
421
  | **Salida específica del proyecto** | ✅ Cada archivo refleja tus patrones | ❌ Comandos genéricos | Parcial | ❌ Talla única |
392
422
  | **Multi-stack** | ✅ Auto-detección + análisis separado | ❌ Agnóstico al stack | Manual | Variable |
393
423
  | **Kotlin + CQRS/BFF** | ✅ Multi-module, Command/Query split | ❌ | ❌ | ❌ |
394
- | **Auto-verificación** | ✅ 6 herramientas de validación | ❌ | ❌ | ❌ |
424
+ | **Auto-verificación** | ✅ 5 herramientas de validación | ❌ | ❌ | ❌ |
395
425
  | **Backup / Restauración** | ✅ Sistema Master Plan | ❌ | ❌ | ❌ |
396
426
  | **Tiempo de configuración** | ~5–18min (automático) | ~5min (config manual) | Horas–Días | ~5min |
397
427
 
package/README.fr.md CHANGED
@@ -23,7 +23,7 @@ ClaudeOS-Core automatise l'ensemble du processus :
23
23
  1. **Scanne** votre projet — détecte automatiquement le stack, les domaines, l'ORM, la base de données et le gestionnaire de paquets
24
24
  2. **Analyse en profondeur** votre code source — patterns de contrôleurs, couches de service, conventions de nommage, gestion des erreurs, sécurité, tests et plus de 50 catégories
25
25
  3. **Génère** un écosystème documentaire complet — `CLAUDE.md`, Standards (15–19 fichiers), Rules, Skills, Guides (9 fichiers), Master Plans, documentation BD et guide MCP
26
- 4. **Valide** tout — 6 outils de vérification intégrés garantissent la cohérence
26
+ 4. **Valide** tout — 5 outils de vérification intégrés garantissent la cohérence
27
27
 
28
28
  Temps total : **5–18 minutes**, selon la taille du projet. Zéro configuration manuelle.
29
29
 
@@ -209,7 +209,6 @@ node claudeos-core-tools/manifest-generator/index.js
209
209
  node claudeos-core-tools/health-checker/index.js
210
210
 
211
211
  # Ou exécuter les vérifications individuellement :
212
- node claudeos-core-tools/import-linter/index.js # @import validation
213
212
  node claudeos-core-tools/plan-validator/index.js --check # Plan ↔ disk
214
213
  node claudeos-core-tools/sync-checker/index.js # Sync status
215
214
  node claudeos-core-tools/content-validator/index.js # Content quality
@@ -289,7 +288,7 @@ your-project/
289
288
  │ ├── 20.frontend/
290
289
  │ ├── 30.security-db/
291
290
  │ ├── 40.infra/
292
- │ └── 50.sync/ ← Règles de synchronisation auto
291
+ │ └── 50.sync/ ← Règles de rappel de synchronisation
293
292
 
294
293
  ├── claudeos-core/ ← Répertoire principal de sortie
295
294
  │ ├── generated/ ← JSON d'analyse + prompts dynamiques
@@ -322,7 +321,7 @@ Pour les projets multi-stack (ex : Java + React), les domaines backend et fronte
322
321
 
323
322
  ## Outils de Vérification
324
323
 
325
- ClaudeOS-Core inclut 6 outils de vérification intégrés, exécutés automatiquement après la génération :
324
+ ClaudeOS-Core inclut 5 outils de vérification intégrés, exécutés automatiquement après la génération :
326
325
 
327
326
  ```bash
328
327
  # Exécuter toutes les vérifications (recommandé)
@@ -336,8 +335,7 @@ npx claudeos-core restore # Restauration Plan → Disque
336
335
 
337
336
  | Outil | Fonction |
338
337
  |---|---|
339
- | **manifest-generator** | Construit les JSON de métadonnées (rule-manifest, import-graph, sync-map, plan-manifest) |
340
- | **import-linter** | Valide les chemins `@import` — détecte les imports cassés, dupliqués et circulaires (DFS) |
338
+ | **manifest-generator** | Construit les JSON de métadonnées (rule-manifest, sync-map, plan-manifest) |
341
339
  | **plan-validator** | Compare les blocs `<file>` du Master Plan avec le disque — 3 modes : check, refresh, restore |
342
340
  | **sync-checker** | Détecte les fichiers non enregistrés (sur disque mais pas dans le plan) et les entrées orphelines |
343
341
  | **content-validator** | Valide la qualité des fichiers — fichiers vides, exemples ✅/❌ manquants, sections requises |
@@ -345,6 +343,38 @@ npx claudeos-core restore # Restauration Plan → Disque
345
343
 
346
344
  ---
347
345
 
346
+ ## Comment Claude Code Utilise Votre Documentation
347
+
348
+ Voici comment Claude Code lit effectivement la documentation générée par ClaudeOS-Core :
349
+
350
+ ### Fichiers lus automatiquement
351
+
352
+ | Fichier | Quand | Garanti |
353
+ |---|---|---|
354
+ | `CLAUDE.md` | Au début de chaque conversation | Toujours |
355
+ | `.claude/rules/*.md` | Lors de l'édition de fichiers (via `paths: ["**/*"]`) | Toujours |
356
+ | `.claude/rules/00.core/00.standard-reference.md` | ↑ Inclus ci-dessus | Toujours |
357
+
358
+ ### Fichiers lus via la règle standard-reference
359
+
360
+ La règle `00.standard-reference.md` indique à Claude Code de Read les documents standards avant d'écrire du code :
361
+
362
+ - `claudeos-core/standard/**` — Patterns de code, exemples ✅/❌, conventions de nommage
363
+ - `claudeos-core/database/**` — Schéma DB (pour requêtes, mappers, migrations)
364
+
365
+ ### Fichiers NON lus (économie de contexte)
366
+
367
+ Explicitement exclus par la section `DO NOT Read` de la règle standard-reference :
368
+
369
+ | Dossier | Raison d'exclusion |
370
+ |---|---|
371
+ | `claudeos-core/plan/` | Sauvegardes Master Plan (~340Ko). Utilisez `npx claudeos-core refresh` pour synchroniser. |
372
+ | `claudeos-core/generated/` | JSON de métadonnées build. Pas une référence de code. |
373
+ | `claudeos-core/guide/` | Guides d'onboarding pour humains. |
374
+ | `claudeos-core/mcp-guide/` | Docs serveur MCP. Pas une référence de code. |
375
+
376
+ ---
377
+
348
378
  ## Flux de Travail Quotidien
349
379
 
350
380
  ### Après l'Installation
@@ -359,7 +389,7 @@ npx claudeos-core restore # Restauration Plan → Disque
359
389
  ### Après Modification Manuelle des Standards
360
390
 
361
391
  ```bash
362
- # Synchroniser les changements vers le Master Plan
392
+ # Après avoir édité des fichiers standard ou rules :
363
393
  npx claudeos-core refresh
364
394
 
365
395
  # Vérifier la cohérence
@@ -391,7 +421,7 @@ npx claudeos-core restore
391
421
  | **Sortie spécifique au projet** | ✅ Chaque fichier reflète vos patterns | ❌ Commandes génériques | Partiel | ❌ Taille unique |
392
422
  | **Multi-stack** | ✅ Auto-détection + analyse séparée | ❌ Agnostique au stack | Manuel | Variable |
393
423
  | **Kotlin + CQRS/BFF** | ✅ Multi-module, Command/Query split | ❌ | ❌ | ❌ |
394
- | **Auto-vérification** | ✅ 6 outils de validation | ❌ | ❌ | ❌ |
424
+ | **Auto-vérification** | ✅ 5 outils de validation | ❌ | ❌ | ❌ |
395
425
  | **Sauvegarde / Restauration** | ✅ Système Master Plan | ❌ | ❌ | ❌ |
396
426
  | **Temps de configuration** | ~5–18 min (automatique) | ~5 min (config manuelle) | Heures–Jours | ~5 min |
397
427
 
package/README.hi.md CHANGED
@@ -23,7 +23,7 @@ ClaudeOS-Core पूरी प्रक्रिया को ऑटोमेट
23
23
  1. **स्कैन** — स्टैक, डोमेन, ORM, डेटाबेस, पैकेज मैनेजर ऑटो-डिटेक्ट
24
24
  2. **गहन विश्लेषण** — कंट्रोलर पैटर्न, सर्विस लेयर्स, नेमिंग कन्वेंशन, एरर हैंडलिंग, सिक्योरिटी, टेस्टिंग और 50+ कैटेगरी
25
25
  3. **जेनरेट** — `CLAUDE.md`, Standards (15–19 फाइलें), Rules, Skills, Guides (9 फाइलें), Master Plans, DB डॉक्स और MCP गाइड का पूरा डॉक्यूमेंटेशन इकोसिस्टम
26
- 4. **वैलिडेट** — 6 बिल्ट-इन वेरिफिकेशन टूल्स कंसिस्टेंसी सुनिश्चित करते हैं
26
+ 4. **वैलिडेट** — 5 बिल्ट-इन वेरिफिकेशन टूल्स कंसिस्टेंसी सुनिश्चित करते हैं
27
27
 
28
28
  कुल समय: प्रोजेक्ट साइज़ के अनुसार **5–18 मिनट**। शून्य मैन्युअल कॉन्फ़िगरेशन।
29
29
 
@@ -209,7 +209,6 @@ node claudeos-core-tools/manifest-generator/index.js
209
209
  node claudeos-core-tools/health-checker/index.js
210
210
 
211
211
  # या इंडिविजुअल चेक रन करें:
212
- node claudeos-core-tools/import-linter/index.js # @import validation
213
212
  node claudeos-core-tools/plan-validator/index.js --check # Plan ↔ disk
214
213
  node claudeos-core-tools/sync-checker/index.js # Sync status
215
214
  node claudeos-core-tools/content-validator/index.js # Content quality
@@ -289,7 +288,7 @@ your-project/
289
288
  │ ├── 20.frontend/
290
289
  │ ├── 30.security-db/
291
290
  │ ├── 40.infra/
292
- │ └── 50.sync/ ← ऑटो-सिंक rules
291
+ │ └── 50.sync/ ← सिंक रिमाइंडर rules
293
292
 
294
293
  ├── claudeos-core/ ← मुख्य आउटपुट डायरेक्टरी
295
294
  │ ├── generated/ ← एनालिसिस JSON + डायनामिक प्रॉम्प्ट्स
@@ -322,7 +321,7 @@ your-project/
322
321
 
323
322
  ## वेरिफिकेशन टूल्स
324
323
 
325
- ClaudeOS-Core में 6 बिल्ट-इन वेरिफिकेशन टूल्स हैं जो जेनरेशन के बाद ऑटोमैटिकली रन होते हैं:
324
+ ClaudeOS-Core में 5 बिल्ट-इन वेरिफिकेशन टूल्स हैं जो जेनरेशन के बाद ऑटोमैटिकली रन होते हैं:
326
325
 
327
326
  ```bash
328
327
  # सभी चेक एक साथ रन करें (अनुशंसित)
@@ -336,8 +335,7 @@ npx claudeos-core restore # Plan → डिस्क रीस्टोर
336
335
 
337
336
  | टूल | क्या करता है |
338
337
  |---|---|
339
- | **manifest-generator** | मेटाडेटा JSON बनाता है (rule-manifest, import-graph, sync-map, plan-manifest) |
340
- | **import-linter** | `@import` पाथ वैलिडेट करता है — टूटे, डुप्लिकेट और सर्कुलर इम्पोर्ट डिटेक्ट (DFS) |
338
+ | **manifest-generator** | मेटाडेटा JSON बनाता है (rule-manifest, sync-map, plan-manifest) |
341
339
  | **plan-validator** | Master Plan `<file>` ब्लॉक्स की डिस्क से तुलना — 3 मोड: check, refresh, restore |
342
340
  | **sync-checker** | अनरजिस्टर्ड फाइलें (डिस्क पर हैं लेकिन plan में नहीं) और ऑर्फन एंट्रीज़ डिटेक्ट |
343
341
  | **content-validator** | फाइल क्वालिटी वैलिडेट — खाली फाइलें, मिसिंग ✅/❌ उदाहरण, आवश्यक सेक्शन |
@@ -345,6 +343,38 @@ npx claudeos-core restore # Plan → डिस्क रीस्टोर
345
343
 
346
344
  ---
347
345
 
346
+ ## Claude Code आपके डॉक्यूमेंटेशन को कैसे उपयोग करता है
347
+
348
+ ClaudeOS-Core द्वारा जेनरेट किए गए डॉक्यूमेंटेशन को Claude Code वास्तव में कैसे पढ़ता है:
349
+
350
+ ### ऑटोमैटिकली पढ़ी जाने वाली फाइलें
351
+
352
+ | फाइल | कब | गारंटी |
353
+ |---|---|---|
354
+ | `CLAUDE.md` | हर कन्वर्सेशन शुरू होने पर | हमेशा |
355
+ | `.claude/rules/*.md` | फाइल एडिट करते समय (`paths: ["**/*"]`) | हमेशा |
356
+ | `.claude/rules/00.core/00.standard-reference.md` | ↑ ऊपर में शामिल | हमेशा |
357
+
358
+ ### standard-reference रूल के ज़रिए पढ़ी जाने वाली फाइलें
359
+
360
+ `00.standard-reference.md` रूल Claude Code को कोड लिखने से पहले ये डॉक्यूमेंट Read करने का निर्देश देता है:
361
+
362
+ - `claudeos-core/standard/**` — कोडिंग पैटर्न, ✅/❌ उदाहरण, नेमिंग कन्वेंशन
363
+ - `claudeos-core/database/**` — DB स्कीमा (क्वेरी, मैपर, माइग्रेशन के लिए)
364
+
365
+ ### न पढ़ी जाने वाली फाइलें (कॉन्टेक्स्ट बचत)
366
+
367
+ standard-reference रूल के `DO NOT Read` सेक्शन द्वारा स्पष्ट रूप से बाहर:
368
+
369
+ | फोल्डर | बाहर करने का कारण |
370
+ |---|---|
371
+ | `claudeos-core/plan/` | Master Plan बैकअप (~340KB)। `npx claudeos-core refresh` से सिंक करें। |
372
+ | `claudeos-core/generated/` | बिल्ड मेटाडेटा JSON। कोडिंग रेफरेंस नहीं। |
373
+ | `claudeos-core/guide/` | इंसानों के लिए ऑनबोर्डिंग गाइड। |
374
+ | `claudeos-core/mcp-guide/` | MCP सर्वर डॉक्स। कोडिंग रेफरेंस नहीं। |
375
+
376
+ ---
377
+
348
378
  ## दैनिक वर्कफ़्लो
349
379
 
350
380
  ### इंस्टॉलेशन के बाद
@@ -359,7 +389,7 @@ npx claudeos-core restore # Plan → डिस्क रीस्टोर
359
389
  ### स्टैंडर्ड्स मैन्युअली एडिट करने के बाद
360
390
 
361
391
  ```bash
362
- # बदलाव Master Plan में सिंक करें
392
+ # standard या rules फाइल एडिट करने के बाद:
363
393
  npx claudeos-core refresh
364
394
 
365
395
  # सब कुछ कंसिस्टेंट है वेरिफाई करें
@@ -391,7 +421,7 @@ npx claudeos-core restore
391
421
  | **प्रोजेक्ट-स्पेसिफिक आउटपुट** | ✅ हर फाइल आपके पैटर्न रिफ्लेक्ट करती है | ❌ जेनेरिक कमांड | आंशिक | ❌ वन-साइज़-फिट्स-ऑल |
392
422
  | **मल्टी-स्टैक** | ✅ ऑटो-डिटेक्ट + अलग विश्लेषण | ❌ स्टैक-एग्नॉस्टिक | मैन्युअल | अनिश्चित |
393
423
  | **Kotlin + CQRS/BFF** | ✅ मल्टी-मॉड्यूल, Command/Query विभाजन | ❌ | ❌ | ❌ |
394
- | **सेल्फ-वेरिफाइंग** | ✅ 6 वैलिडेशन टूल्स | ❌ | ❌ | ❌ |
424
+ | **सेल्फ-वेरिफाइंग** | ✅ 5 वैलिडेशन टूल्स | ❌ | ❌ | ❌ |
395
425
  | **बैकअप / रीस्टोर** | ✅ Master Plan सिस्टम | ❌ | ❌ | ❌ |
396
426
  | **सेटअप समय** | ~5–18 मिनट (ऑटोमेटेड) | ~5 मिनट (मैन्युअल कॉन्फ़िग) | घंटे–दिन | ~5 मिनट |
397
427
 
package/README.ja.md CHANGED
@@ -23,7 +23,7 @@ ClaudeOS-Core がプロセス全体を自動化します:
23
23
  1. **スキャン** — スタック、ドメイン、ORM、DB、パッケージマネージャーを自動検出
24
24
  2. **ディープ分析** — コントローラーパターン、サービス層、命名規則、エラーハンドリング、セキュリティ、テストなど 50+ カテゴリ
25
25
  3. **生成** — `CLAUDE.md`、Standards(15–19 ファイル)、Rules、Skills、Guides(9 ファイル)、Master Plans、DB ドキュメント、MCP ガイドの完全な文書エコシステム
26
- 4. **検証** — 6 つの組み込み検証ツールが整合性を保証
26
+ 4. **検証** — 5 つの組み込み検証ツールが整合性を保証
27
27
 
28
28
  所要時間:プロジェクト規模に応じて **5–18 分**。手動設定ゼロ。
29
29
 
@@ -209,7 +209,6 @@ node claudeos-core-tools/manifest-generator/index.js
209
209
  node claudeos-core-tools/health-checker/index.js
210
210
 
211
211
  # または個別チェック:
212
- node claudeos-core-tools/import-linter/index.js # @import validation
213
212
  node claudeos-core-tools/plan-validator/index.js --check # Plan ↔ disk
214
213
  node claudeos-core-tools/sync-checker/index.js # Sync status
215
214
  node claudeos-core-tools/content-validator/index.js # Content quality
@@ -289,7 +288,7 @@ your-project/
289
288
  │ ├── 20.frontend/
290
289
  │ ├── 30.security-db/
291
290
  │ ├── 40.infra/
292
- │ └── 50.sync/ ← 自動同期ルール
291
+ │ └── 50.sync/ ← 同期リマインダールール
293
292
 
294
293
  ├── claudeos-core/ ← メイン出力ディレクトリ
295
294
  │ ├── generated/ ← 分析 JSON + 動的プロンプト
@@ -322,7 +321,7 @@ your-project/
322
321
 
323
322
  ## 検証ツール
324
323
 
325
- ClaudeOS-Core には生成後に自動実行される 6 つの組み込み検証ツールがあります:
324
+ ClaudeOS-Core には生成後に自動実行される 5 つの組み込み検証ツールがあります:
326
325
 
327
326
  ```bash
328
327
  # 全チェックを一括実行(推奨)
@@ -336,8 +335,7 @@ npx claudeos-core restore # Plan → ディスク復元
336
335
 
337
336
  | ツール | 機能 |
338
337
  |---|---|
339
- | **manifest-generator** | メタデータ JSON を構築(rule-manifest、import-graph、sync-map、plan-manifest) |
340
- | **import-linter** | `@import` パスを検証 — 破損、重複、循環インポートを検出(DFS) |
338
+ | **manifest-generator** | メタデータ JSON を構築(rule-manifest、sync-map、plan-manifest) |
341
339
  | **plan-validator** | Master Plan の `<file>` ブロックとディスクを比較 — 3 モード:check、refresh、restore |
342
340
  | **sync-checker** | 未登録ファイル(ディスク上にあるがプランにない)と孤立エントリを検出 |
343
341
  | **content-validator** | ファイル品質を検証 — 空ファイル、✅/❌ 例の欠落、必須セクション |
@@ -345,6 +343,38 @@ npx claudeos-core restore # Plan → ディスク復元
345
343
 
346
344
  ---
347
345
 
346
+ ## Claude Code がドキュメントを使用する仕組み
347
+
348
+ ClaudeOS-Core が生成したドキュメントを Claude Code が実際に読み取る仕組みです:
349
+
350
+ ### 自動的に読み取るファイル
351
+
352
+ | ファイル | タイミング | 保証 |
353
+ |---|---|---|
354
+ | `CLAUDE.md` | 毎回の会話開始時 | 常に |
355
+ | `.claude/rules/*.md` | ファイル編集時(`paths: ["**/*"]`) | 常に |
356
+ | `.claude/rules/00.core/00.standard-reference.md` | ↑ 上記に含まれる | 常に |
357
+
358
+ ### standard-reference ルール経由で読み取るファイル
359
+
360
+ `00.standard-reference.md` ルールが、コード作成前に以下のドキュメントを Read するよう指示します:
361
+
362
+ - `claudeos-core/standard/**` — コーディングパターン、✅/❌ 例、命名規則
363
+ - `claudeos-core/database/**` — DB スキーマ(クエリ、マッパー、マイグレーション用)
364
+
365
+ ### 読み取らないファイル(コンテキスト節約)
366
+
367
+ standard-reference ルールの `DO NOT Read` セクションで明示的に除外されます:
368
+
369
+ | フォルダ | 除外理由 |
370
+ |---|---|
371
+ | `claudeos-core/plan/` | Master Plan バックアップ(~340KB)。`npx claudeos-core refresh` で同期。 |
372
+ | `claudeos-core/generated/` | ビルドメタデータ JSON。コーディング参照不要。 |
373
+ | `claudeos-core/guide/` | 人間向けオンボーディングガイド。 |
374
+ | `claudeos-core/mcp-guide/` | MCP サーバードキュメント。コーディング参照不要。 |
375
+
376
+ ---
377
+
348
378
  ## 日常ワークフロー
349
379
 
350
380
  ### インストール後
@@ -359,7 +389,7 @@ npx claudeos-core restore # Plan → ディスク復元
359
389
  ### 標準ファイルを手動編集した後
360
390
 
361
391
  ```bash
362
- # 変更を Master Plan に同期
392
+ # standard rules ファイルを編集した後:
363
393
  npx claudeos-core refresh
364
394
 
365
395
  # 整合性を検証
@@ -391,7 +421,7 @@ npx claudeos-core restore
391
421
  | **プロジェクト固有の出力** | ✅ すべてのファイルがあなたのパターンを反映 | ❌ 汎用コマンド | 部分的 | ❌ 画一的 |
392
422
  | **マルチスタック** | ✅ 自動検出 + 個別分析 | ❌ スタック非依存 | 手動 | 不定 |
393
423
  | **Kotlin + CQRS/BFF** | ✅ マルチモジュール、Command/Query分離 | ❌ | ❌ | ❌ |
394
- | **自己検証** | ✅ 6 つの検証ツール | ❌ | ❌ | ❌ |
424
+ | **自己検証** | ✅ 5 つの検証ツール | ❌ | ❌ | ❌ |
395
425
  | **バックアップ / リストア** | ✅ Master Plan システム | ❌ | ❌ | ❌ |
396
426
  | **セットアップ時間** | ~5–18分(自動) | ~5分(手動設定) | 数時間–数日 | ~5分 |
397
427