claudeos-core 2.1.1 → 2.3.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.
- package/CHANGELOG.md +1649 -481
- package/CONTRIBUTING.md +92 -92
- package/README.de.md +64 -5
- package/README.es.md +64 -5
- package/README.fr.md +64 -5
- package/README.hi.md +64 -5
- package/README.ja.md +64 -5
- package/README.ko.md +1018 -959
- package/README.md +1020 -960
- package/README.ru.md +66 -5
- package/README.vi.md +1019 -960
- package/README.zh-CN.md +64 -5
- package/bin/cli.js +152 -148
- package/bin/commands/init.js +1673 -1518
- package/bin/commands/lint.js +62 -0
- package/bin/commands/memory.js +438 -438
- package/bin/lib/cli-utils.js +206 -206
- package/claude-md-validator/index.js +184 -0
- package/claude-md-validator/reporter.js +66 -0
- package/claude-md-validator/structural-checks.js +528 -0
- package/content-validator/index.js +666 -436
- package/lib/env-parser.js +317 -0
- package/lib/expected-guides.js +23 -23
- package/lib/expected-outputs.js +90 -90
- package/lib/language-config.js +35 -35
- package/lib/memory-scaffold.js +1058 -1052
- package/lib/plan-parser.js +165 -165
- package/lib/staged-rules.js +118 -118
- package/manifest-generator/index.js +174 -174
- package/package.json +90 -87
- package/pass-json-validator/index.js +337 -337
- package/pass-prompts/templates/angular/pass3.md +28 -13
- package/pass-prompts/templates/common/claude-md-scaffold.md +686 -0
- package/pass-prompts/templates/common/pass3-footer.md +402 -39
- package/pass-prompts/templates/common/pass3b-core-header.md +43 -0
- package/pass-prompts/templates/common/pass4.md +375 -302
- package/pass-prompts/templates/common/staging-override.md +26 -26
- package/pass-prompts/templates/java-spring/pass3.md +31 -21
- package/pass-prompts/templates/kotlin-spring/pass3.md +34 -22
- package/pass-prompts/templates/node-express/pass3.md +30 -21
- package/pass-prompts/templates/node-fastify/pass3.md +28 -14
- package/pass-prompts/templates/node-nestjs/pass3.md +29 -14
- package/pass-prompts/templates/node-nextjs/pass3.md +34 -21
- package/pass-prompts/templates/node-vite/pass1.md +117 -117
- package/pass-prompts/templates/node-vite/pass2.md +78 -78
- package/pass-prompts/templates/node-vite/pass3.md +30 -13
- package/pass-prompts/templates/python-django/pass3.md +32 -21
- package/pass-prompts/templates/python-fastapi/pass3.md +33 -21
- package/pass-prompts/templates/python-flask/pass1.md +119 -119
- package/pass-prompts/templates/python-flask/pass2.md +85 -85
- package/pass-prompts/templates/python-flask/pass3.md +31 -13
- package/pass-prompts/templates/vue-nuxt/pass3.md +32 -13
- package/plan-installer/domain-grouper.js +76 -76
- package/plan-installer/index.js +137 -129
- package/plan-installer/prompt-generator.js +188 -128
- package/plan-installer/scanners/scan-frontend.js +505 -473
- package/plan-installer/scanners/scan-java.js +226 -226
- package/plan-installer/scanners/scan-node.js +57 -57
- package/plan-installer/scanners/scan-python.js +85 -85
- package/plan-installer/stack-detector.js +482 -466
- package/plan-installer/structure-scanner.js +65 -65
- package/sync-checker/index.js +177 -177
|
@@ -1,117 +1,117 @@
|
|
|
1
|
-
Read claudeos-core/generated/project-analysis.json and
|
|
2
|
-
perform a deep analysis of the following domains only: {{DOMAIN_GROUP}}
|
|
3
|
-
|
|
4
|
-
For each domain, select one representative file per layer, read its code, and analyze it.
|
|
5
|
-
Prioritize files with the richest patterns.
|
|
6
|
-
|
|
7
|
-
Analysis items (per domain):
|
|
8
|
-
|
|
9
|
-
1. Page/Routing Patterns
|
|
10
|
-
- Client-side routing (React Router, TanStack Router, custom)
|
|
11
|
-
- Route definition approach (file-based, config-based, lazy loading)
|
|
12
|
-
- Layout structure (nested layouts, outlet, wrapper components)
|
|
13
|
-
- Dynamic routes and route parameters
|
|
14
|
-
- Route guards and authentication redirects
|
|
15
|
-
- Error/404 handling
|
|
16
|
-
|
|
17
|
-
2. Component Patterns
|
|
18
|
-
- Component structure (functional, forwardRef, memo)
|
|
19
|
-
- Props type definition (interface vs type, Generic usage)
|
|
20
|
-
- State management (useState, useReducer, external libraries)
|
|
21
|
-
- Styling approach and exact import paths (e.g., `import styles from './index.module.scss'`, `import { cn } from '@/lib/utils'`)
|
|
22
|
-
- Styling utility functions: record the EXACT import path used in source code
|
|
23
|
-
- UI library and exact package names (e.g., `@mui/material`, `antd`, `@shadcn/ui`)
|
|
24
|
-
- Component classification (UI, Feature, Layout, Page)
|
|
25
|
-
- Component entry file pattern: is the main file `index.tsx` or `ComponentName.tsx`? Record exactly.
|
|
26
|
-
- Directory structure pattern: record exact convention
|
|
27
|
-
- export pattern: default export vs named export in component files
|
|
28
|
-
- Reuse patterns (composition, compound components, render props)
|
|
29
|
-
- Accessibility (ARIA, semantic HTML, keyboard navigation)
|
|
30
|
-
|
|
31
|
-
3. Data Fetching Patterns
|
|
32
|
-
- Client-side data fetching (TanStack Query, SWR, useEffect, axios)
|
|
33
|
-
- API client configuration (base URL, interceptors, error handling)
|
|
34
|
-
- Request/response typing
|
|
35
|
-
- Caching strategy (query keys, stale time, refetch)
|
|
36
|
-
- Error/loading state handling
|
|
37
|
-
- Optimistic updates
|
|
38
|
-
- Pagination/infinite scroll patterns
|
|
39
|
-
|
|
40
|
-
4. State Management Patterns
|
|
41
|
-
- Global state (Zustand, Redux Toolkit, Jotai, Recoil, Context)
|
|
42
|
-
- Server state (TanStack Query, SWR)
|
|
43
|
-
- URL state (searchParams, useNavigate)
|
|
44
|
-
- Form state (React Hook Form, Formik)
|
|
45
|
-
- Local component state patterns
|
|
46
|
-
|
|
47
|
-
5. Configuration/Environment Patterns
|
|
48
|
-
- Environment variable management (VITE_ prefix convention, .env separation)
|
|
49
|
-
- vite.config settings (proxy, aliases, plugins)
|
|
50
|
-
- Build optimization (chunk splitting, dynamic imports)
|
|
51
|
-
- Path aliases (@/, src/)
|
|
52
|
-
|
|
53
|
-
6. Logging/Monitoring Patterns
|
|
54
|
-
- Client error tracking (Sentry, DataDog RUM)
|
|
55
|
-
- Performance monitoring
|
|
56
|
-
- Analytics tools (Google Analytics, PostHog, Mixpanel)
|
|
57
|
-
|
|
58
|
-
7. Testing Patterns
|
|
59
|
-
- Test framework (Vitest, Jest, Playwright, Cypress)
|
|
60
|
-
- Component testing (React Testing Library, Storybook)
|
|
61
|
-
- E2E testing strategy
|
|
62
|
-
- Mocking strategy (MSW, vi.mock)
|
|
63
|
-
- Test naming conventions
|
|
64
|
-
|
|
65
|
-
8. Domain-Specific Patterns
|
|
66
|
-
- Authentication/authorization (session, token, OAuth)
|
|
67
|
-
- Internationalization (i18next, react-intl)
|
|
68
|
-
- File upload patterns
|
|
69
|
-
- Real-time features (WebSocket, SSE)
|
|
70
|
-
- API versioning strategy
|
|
71
|
-
|
|
72
|
-
9. Anti-patterns / Inconsistencies
|
|
73
|
-
- Patterns inconsistent with other domains
|
|
74
|
-
- Performance issues (unnecessary re-renders, bundle size)
|
|
75
|
-
- Type safety issues
|
|
76
|
-
- Accessibility issues
|
|
77
|
-
- Security issues (XSS, CSRF)
|
|
78
|
-
|
|
79
|
-
Do not create or modify source files. Analysis only.
|
|
80
|
-
Save results to claudeos-core/generated/pass1-{{PASS_NUM}}.json in the following format:
|
|
81
|
-
|
|
82
|
-
{
|
|
83
|
-
"analyzedAt": "ISO timestamp",
|
|
84
|
-
"passNum": {{PASS_NUM}},
|
|
85
|
-
"domains": ["auth", "dashboard", "settings", "shared"],
|
|
86
|
-
"analysisPerDomain": {
|
|
87
|
-
"dashboard": {
|
|
88
|
-
"representativeFiles": {
|
|
89
|
-
"page": "src/pages/dashboard/index.tsx",
|
|
90
|
-
"component": "src/components/dashboard/StatsCard.tsx",
|
|
91
|
-
"hook": "src/hooks/useDashboardData.ts",
|
|
92
|
-
"api": "src/api/dashboard.ts"
|
|
93
|
-
},
|
|
94
|
-
"patterns": {
|
|
95
|
-
"page": { ... },
|
|
96
|
-
"component": {
|
|
97
|
-
"entryFilePattern": "index.tsx or ComponentName.tsx",
|
|
98
|
-
"exportPattern": "default export or named export",
|
|
99
|
-
"stylingImport": "exact import statement used for styling utility",
|
|
100
|
-
"uiLibraryImport": "exact import statement for UI components",
|
|
101
|
-
...
|
|
102
|
-
},
|
|
103
|
-
"dataFetching": { ... },
|
|
104
|
-
"stateManagement": { ... },
|
|
105
|
-
"config": { ... },
|
|
106
|
-
"logging": { ... },
|
|
107
|
-
"testing": { ... }
|
|
108
|
-
},
|
|
109
|
-
"specialPatterns": [],
|
|
110
|
-
"antiPatterns": []
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"crossDomainCommon": {
|
|
114
|
-
"description": "Patterns commonly used across domains in this group",
|
|
115
|
-
"patterns": []
|
|
116
|
-
}
|
|
117
|
-
}
|
|
1
|
+
Read claudeos-core/generated/project-analysis.json and
|
|
2
|
+
perform a deep analysis of the following domains only: {{DOMAIN_GROUP}}
|
|
3
|
+
|
|
4
|
+
For each domain, select one representative file per layer, read its code, and analyze it.
|
|
5
|
+
Prioritize files with the richest patterns.
|
|
6
|
+
|
|
7
|
+
Analysis items (per domain):
|
|
8
|
+
|
|
9
|
+
1. Page/Routing Patterns
|
|
10
|
+
- Client-side routing (React Router, TanStack Router, custom)
|
|
11
|
+
- Route definition approach (file-based, config-based, lazy loading)
|
|
12
|
+
- Layout structure (nested layouts, outlet, wrapper components)
|
|
13
|
+
- Dynamic routes and route parameters
|
|
14
|
+
- Route guards and authentication redirects
|
|
15
|
+
- Error/404 handling
|
|
16
|
+
|
|
17
|
+
2. Component Patterns
|
|
18
|
+
- Component structure (functional, forwardRef, memo)
|
|
19
|
+
- Props type definition (interface vs type, Generic usage)
|
|
20
|
+
- State management (useState, useReducer, external libraries)
|
|
21
|
+
- Styling approach and exact import paths (e.g., `import styles from './index.module.scss'`, `import { cn } from '@/lib/utils'`)
|
|
22
|
+
- Styling utility functions: record the EXACT import path used in source code
|
|
23
|
+
- UI library and exact package names (e.g., `@mui/material`, `antd`, `@shadcn/ui`)
|
|
24
|
+
- Component classification (UI, Feature, Layout, Page)
|
|
25
|
+
- Component entry file pattern: is the main file `index.tsx` or `ComponentName.tsx`? Record exactly.
|
|
26
|
+
- Directory structure pattern: record exact convention
|
|
27
|
+
- export pattern: default export vs named export in component files
|
|
28
|
+
- Reuse patterns (composition, compound components, render props)
|
|
29
|
+
- Accessibility (ARIA, semantic HTML, keyboard navigation)
|
|
30
|
+
|
|
31
|
+
3. Data Fetching Patterns
|
|
32
|
+
- Client-side data fetching (TanStack Query, SWR, useEffect, axios)
|
|
33
|
+
- API client configuration (base URL, interceptors, error handling)
|
|
34
|
+
- Request/response typing
|
|
35
|
+
- Caching strategy (query keys, stale time, refetch)
|
|
36
|
+
- Error/loading state handling
|
|
37
|
+
- Optimistic updates
|
|
38
|
+
- Pagination/infinite scroll patterns
|
|
39
|
+
|
|
40
|
+
4. State Management Patterns
|
|
41
|
+
- Global state (Zustand, Redux Toolkit, Jotai, Recoil, Context)
|
|
42
|
+
- Server state (TanStack Query, SWR)
|
|
43
|
+
- URL state (searchParams, useNavigate)
|
|
44
|
+
- Form state (React Hook Form, Formik)
|
|
45
|
+
- Local component state patterns
|
|
46
|
+
|
|
47
|
+
5. Configuration/Environment Patterns
|
|
48
|
+
- Environment variable management (VITE_ prefix convention, .env separation)
|
|
49
|
+
- vite.config settings (proxy, aliases, plugins)
|
|
50
|
+
- Build optimization (chunk splitting, dynamic imports)
|
|
51
|
+
- Path aliases (@/, src/)
|
|
52
|
+
|
|
53
|
+
6. Logging/Monitoring Patterns
|
|
54
|
+
- Client error tracking (Sentry, DataDog RUM)
|
|
55
|
+
- Performance monitoring
|
|
56
|
+
- Analytics tools (Google Analytics, PostHog, Mixpanel)
|
|
57
|
+
|
|
58
|
+
7. Testing Patterns
|
|
59
|
+
- Test framework (Vitest, Jest, Playwright, Cypress)
|
|
60
|
+
- Component testing (React Testing Library, Storybook)
|
|
61
|
+
- E2E testing strategy
|
|
62
|
+
- Mocking strategy (MSW, vi.mock)
|
|
63
|
+
- Test naming conventions
|
|
64
|
+
|
|
65
|
+
8. Domain-Specific Patterns
|
|
66
|
+
- Authentication/authorization (session, token, OAuth)
|
|
67
|
+
- Internationalization (i18next, react-intl)
|
|
68
|
+
- File upload patterns
|
|
69
|
+
- Real-time features (WebSocket, SSE)
|
|
70
|
+
- API versioning strategy
|
|
71
|
+
|
|
72
|
+
9. Anti-patterns / Inconsistencies
|
|
73
|
+
- Patterns inconsistent with other domains
|
|
74
|
+
- Performance issues (unnecessary re-renders, bundle size)
|
|
75
|
+
- Type safety issues
|
|
76
|
+
- Accessibility issues
|
|
77
|
+
- Security issues (XSS, CSRF)
|
|
78
|
+
|
|
79
|
+
Do not create or modify source files. Analysis only.
|
|
80
|
+
Save results to claudeos-core/generated/pass1-{{PASS_NUM}}.json in the following format:
|
|
81
|
+
|
|
82
|
+
{
|
|
83
|
+
"analyzedAt": "ISO timestamp",
|
|
84
|
+
"passNum": {{PASS_NUM}},
|
|
85
|
+
"domains": ["auth", "dashboard", "settings", "shared"],
|
|
86
|
+
"analysisPerDomain": {
|
|
87
|
+
"dashboard": {
|
|
88
|
+
"representativeFiles": {
|
|
89
|
+
"page": "src/pages/dashboard/index.tsx",
|
|
90
|
+
"component": "src/components/dashboard/StatsCard.tsx",
|
|
91
|
+
"hook": "src/hooks/useDashboardData.ts",
|
|
92
|
+
"api": "src/api/dashboard.ts"
|
|
93
|
+
},
|
|
94
|
+
"patterns": {
|
|
95
|
+
"page": { ... },
|
|
96
|
+
"component": {
|
|
97
|
+
"entryFilePattern": "index.tsx or ComponentName.tsx",
|
|
98
|
+
"exportPattern": "default export or named export",
|
|
99
|
+
"stylingImport": "exact import statement used for styling utility",
|
|
100
|
+
"uiLibraryImport": "exact import statement for UI components",
|
|
101
|
+
...
|
|
102
|
+
},
|
|
103
|
+
"dataFetching": { ... },
|
|
104
|
+
"stateManagement": { ... },
|
|
105
|
+
"config": { ... },
|
|
106
|
+
"logging": { ... },
|
|
107
|
+
"testing": { ... }
|
|
108
|
+
},
|
|
109
|
+
"specialPatterns": [],
|
|
110
|
+
"antiPatterns": []
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"crossDomainCommon": {
|
|
114
|
+
"description": "Patterns commonly used across domains in this group",
|
|
115
|
+
"patterns": []
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
Read all pass1-*.json files from the claudeos-core/generated/ directory and
|
|
2
|
-
merge all domain analysis results into a single unified report.
|
|
3
|
-
|
|
4
|
-
Merge items:
|
|
5
|
-
|
|
6
|
-
1. Universal Patterns (shared by 100% of all domains)
|
|
7
|
-
- Page/routing structure (React Router / TanStack Router / custom)
|
|
8
|
-
- Component writing conventions (functional, Props types, styling)
|
|
9
|
-
- Data fetching strategy (TanStack Query, SWR, axios patterns)
|
|
10
|
-
- State management approach
|
|
11
|
-
- Error/loading handling patterns
|
|
12
|
-
- Route guard/protection patterns
|
|
13
|
-
|
|
14
|
-
2. Majority Patterns (shared by 50%+ of domains)
|
|
15
|
-
- Specify which domains share them
|
|
16
|
-
|
|
17
|
-
3. Domain-Specific Patterns (unique to a single domain)
|
|
18
|
-
- Auth: which domain
|
|
19
|
-
- Real-time features: which domain
|
|
20
|
-
- File upload: which domain
|
|
21
|
-
- i18n: which domain
|
|
22
|
-
|
|
23
|
-
4. Anti-pattern Summary
|
|
24
|
-
- Consolidate all inconsistencies found across domains
|
|
25
|
-
- Classify by severity (CRITICAL / HIGH / MEDIUM / LOW)
|
|
26
|
-
|
|
27
|
-
5. Naming Conventions Summary
|
|
28
|
-
- File/directory naming (kebab-case, PascalCase)
|
|
29
|
-
- Component entry file pattern (index.tsx vs ComponentName.tsx — pick ONE that the project actually uses)
|
|
30
|
-
- Component export pattern (default export vs named export)
|
|
31
|
-
- Hook naming (use* prefix)
|
|
32
|
-
- API function patterns
|
|
33
|
-
|
|
34
|
-
6. Shared Types/Components List
|
|
35
|
-
- Common UI components with EXACT import paths
|
|
36
|
-
- Shared hooks with exact import paths
|
|
37
|
-
- Utility functions with EXACT import paths
|
|
38
|
-
- Path aliases used in the project (e.g., `@/` -> `src/`)
|
|
39
|
-
- Environment variable types
|
|
40
|
-
- Constants/Enum management
|
|
41
|
-
|
|
42
|
-
7. Security/Authentication Patterns
|
|
43
|
-
- Authentication approach (JWT, session, OAuth)
|
|
44
|
-
- Route protection strategy
|
|
45
|
-
- CSRF/XSS prevention
|
|
46
|
-
- Environment variable management (VITE_ convention)
|
|
47
|
-
|
|
48
|
-
8. Database Patterns
|
|
49
|
-
- API endpoint conventions
|
|
50
|
-
- Request/response format
|
|
51
|
-
- Error response handling
|
|
52
|
-
|
|
53
|
-
9. Testing Strategy Summary
|
|
54
|
-
- Test coverage level
|
|
55
|
-
- Test classification system (unit/component/E2E)
|
|
56
|
-
- Mocking strategy (MSW, vi.mock)
|
|
57
|
-
- Storybook usage
|
|
58
|
-
- Test naming conventions
|
|
59
|
-
|
|
60
|
-
10. Logging/Monitoring Strategy
|
|
61
|
-
- Error tracking approach (Sentry, DataDog)
|
|
62
|
-
- Analytics tools
|
|
63
|
-
- Performance monitoring
|
|
64
|
-
|
|
65
|
-
11. Performance Patterns
|
|
66
|
-
- Code splitting strategy (lazy, Suspense)
|
|
67
|
-
- Bundle optimization (chunk splitting, tree shaking)
|
|
68
|
-
- Image optimization
|
|
69
|
-
- Caching strategy
|
|
70
|
-
|
|
71
|
-
12. Code Quality Tools
|
|
72
|
-
- Lint/Format tools (ESLint, Prettier, Biome)
|
|
73
|
-
- Pre-commit hooks (husky, lint-staged)
|
|
74
|
-
- TypeScript strict mode
|
|
75
|
-
- CI integration status
|
|
76
|
-
|
|
77
|
-
Do not generate code. Merge only.
|
|
78
|
-
Save results to claudeos-core/generated/pass2-merged.json.
|
|
1
|
+
Read all pass1-*.json files from the claudeos-core/generated/ directory and
|
|
2
|
+
merge all domain analysis results into a single unified report.
|
|
3
|
+
|
|
4
|
+
Merge items:
|
|
5
|
+
|
|
6
|
+
1. Universal Patterns (shared by 100% of all domains)
|
|
7
|
+
- Page/routing structure (React Router / TanStack Router / custom)
|
|
8
|
+
- Component writing conventions (functional, Props types, styling)
|
|
9
|
+
- Data fetching strategy (TanStack Query, SWR, axios patterns)
|
|
10
|
+
- State management approach
|
|
11
|
+
- Error/loading handling patterns
|
|
12
|
+
- Route guard/protection patterns
|
|
13
|
+
|
|
14
|
+
2. Majority Patterns (shared by 50%+ of domains)
|
|
15
|
+
- Specify which domains share them
|
|
16
|
+
|
|
17
|
+
3. Domain-Specific Patterns (unique to a single domain)
|
|
18
|
+
- Auth: which domain
|
|
19
|
+
- Real-time features: which domain
|
|
20
|
+
- File upload: which domain
|
|
21
|
+
- i18n: which domain
|
|
22
|
+
|
|
23
|
+
4. Anti-pattern Summary
|
|
24
|
+
- Consolidate all inconsistencies found across domains
|
|
25
|
+
- Classify by severity (CRITICAL / HIGH / MEDIUM / LOW)
|
|
26
|
+
|
|
27
|
+
5. Naming Conventions Summary
|
|
28
|
+
- File/directory naming (kebab-case, PascalCase)
|
|
29
|
+
- Component entry file pattern (index.tsx vs ComponentName.tsx — pick ONE that the project actually uses)
|
|
30
|
+
- Component export pattern (default export vs named export)
|
|
31
|
+
- Hook naming (use* prefix)
|
|
32
|
+
- API function patterns
|
|
33
|
+
|
|
34
|
+
6. Shared Types/Components List
|
|
35
|
+
- Common UI components with EXACT import paths
|
|
36
|
+
- Shared hooks with exact import paths
|
|
37
|
+
- Utility functions with EXACT import paths
|
|
38
|
+
- Path aliases used in the project (e.g., `@/` -> `src/`)
|
|
39
|
+
- Environment variable types
|
|
40
|
+
- Constants/Enum management
|
|
41
|
+
|
|
42
|
+
7. Security/Authentication Patterns
|
|
43
|
+
- Authentication approach (JWT, session, OAuth)
|
|
44
|
+
- Route protection strategy
|
|
45
|
+
- CSRF/XSS prevention
|
|
46
|
+
- Environment variable management (VITE_ convention)
|
|
47
|
+
|
|
48
|
+
8. Database Patterns
|
|
49
|
+
- API endpoint conventions
|
|
50
|
+
- Request/response format
|
|
51
|
+
- Error response handling
|
|
52
|
+
|
|
53
|
+
9. Testing Strategy Summary
|
|
54
|
+
- Test coverage level
|
|
55
|
+
- Test classification system (unit/component/E2E)
|
|
56
|
+
- Mocking strategy (MSW, vi.mock)
|
|
57
|
+
- Storybook usage
|
|
58
|
+
- Test naming conventions
|
|
59
|
+
|
|
60
|
+
10. Logging/Monitoring Strategy
|
|
61
|
+
- Error tracking approach (Sentry, DataDog)
|
|
62
|
+
- Analytics tools
|
|
63
|
+
- Performance monitoring
|
|
64
|
+
|
|
65
|
+
11. Performance Patterns
|
|
66
|
+
- Code splitting strategy (lazy, Suspense)
|
|
67
|
+
- Bundle optimization (chunk splitting, tree shaking)
|
|
68
|
+
- Image optimization
|
|
69
|
+
- Caching strategy
|
|
70
|
+
|
|
71
|
+
12. Code Quality Tools
|
|
72
|
+
- Lint/Format tools (ESLint, Prettier, Biome)
|
|
73
|
+
- Pre-commit hooks (husky, lint-staged)
|
|
74
|
+
- TypeScript strict mode
|
|
75
|
+
- CI integration status
|
|
76
|
+
|
|
77
|
+
Do not generate code. Merge only.
|
|
78
|
+
Save results to claudeos-core/generated/pass2-merged.json.
|
|
@@ -18,17 +18,29 @@ ALL code examples in rules and standards MUST use EXACT method names, class name
|
|
|
18
18
|
and signatures from pass2-merged.json analysis data.
|
|
19
19
|
Do NOT paraphrase, rename, or infer API names.
|
|
20
20
|
|
|
21
|
-
CRITICAL — CLAUDE.md Reference Table Completeness:
|
|
22
|
-
The reference table in CLAUDE.md MUST list ALL generated standard files.
|
|
23
|
-
|
|
24
21
|
Generation targets:
|
|
25
22
|
|
|
26
23
|
1. CLAUDE.md (project root)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
24
|
+
|
|
25
|
+
Follow the scaffold EXACTLY:
|
|
26
|
+
→ `pass-prompts/templates/common/claude-md-scaffold.md`
|
|
27
|
+
|
|
28
|
+
The scaffold enforces an 8-section deterministic structure:
|
|
29
|
+
1. Role Definition → 2. Project Overview → 3. Build & Run Commands →
|
|
30
|
+
4. Core Architecture → 5. Directory Structure → 6. Standard / Rules / Skills Reference →
|
|
31
|
+
7. DO NOT Read → 8. Common Rules & Memory (L4)
|
|
32
|
+
|
|
33
|
+
All section titles, order, and formats are FIXED by the scaffold.
|
|
34
|
+
Content within each section adapts to this project based on pass2-merged.json.
|
|
35
|
+
The scaffold's validation checklist MUST pass.
|
|
36
|
+
|
|
37
|
+
Stack-specific hints for this project (Vite + React SPA):
|
|
38
|
+
- Project type for Section 1 PROJECT_CONTEXT: "SPA"
|
|
39
|
+
(reflect the actual character, e.g., Back Office / Front Office / Full-stack)
|
|
40
|
+
- Architecture diagram (Section 4): client-side routing, state management, data flow
|
|
41
|
+
- Detect multi-entry configs (vite.config.*.ts) and reflect in Section 2 / 4 / 5
|
|
42
|
+
- Detect codegen tools (orval, openapi-generator) and reflect in Section 5 emphasis
|
|
43
|
+
(auto-generated directories → "Do Not Modify Manually")
|
|
32
44
|
|
|
33
45
|
2. claudeos-core/standard/ (active domains only)
|
|
34
46
|
- 00.core/01.project-overview.md — Stack, routing approach, deployment environment
|
|
@@ -64,14 +76,19 @@ Generation targets:
|
|
|
64
76
|
- `00.core/*` rules: `paths: ["**/*"]`
|
|
65
77
|
- `20.frontend/*` rules: `paths: ["**/*"]`
|
|
66
78
|
- `30.security-db/*` rules: `paths: ["**/*"]`
|
|
67
|
-
- `40.infra
|
|
79
|
+
- `40.infra/01.environment-config-rules.md` paths: `["**/*.env*", "**/vite.config.*", "**/*.json"]` — env / build config
|
|
80
|
+
- `40.infra/02.logging-monitoring-rules.md` paths: `["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]` — source code where logs live
|
|
81
|
+
- `40.infra/03.cicd-deployment-rules.md` paths: `["**/*.yml", "**/*.yaml", "**/Dockerfile*", "**/*.ts", "**/*.tsx"]` — CI config + source with API origin / codegen references
|
|
68
82
|
- `50.sync/*` rules: `paths: ["**/claudeos-core/**", "**/.claude/**"]`
|
|
83
|
+
- `60.memory/*` rules: forward reference — Pass 4 will generate 4 files (01.decision-log, 02.failure-patterns, 03.compaction, 04.auto-rule-update), each with file-specific `paths`. Pass 3 must STILL list ```.claude/rules/60.memory/*``` as a row in CLAUDE.md Section 6 Rules table so developers/Claude see the category exists.
|
|
69
84
|
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — directory of all standard files.
|
|
70
85
|
|
|
71
|
-
4. .claude/rules/50.sync/ (
|
|
72
|
-
- 01.
|
|
73
|
-
|
|
74
|
-
|
|
86
|
+
4. .claude/rules/50.sync/ (2 sync rules)
|
|
87
|
+
- 01.doc-sync.md — Bidirectional standard ↔ rules sync reminder (both directions in ONE rule).
|
|
88
|
+
Do NOT generate a separate 02.rules-sync.md mirror file — redundant.
|
|
89
|
+
Express the mapping as a naming convention (standard/<N>.<dir>/<M>.<n>.md ↔
|
|
90
|
+
.claude/rules/<N>.<dir>/<M>.<n>-rules.md), NOT a hardcoded file-to-file table.
|
|
91
|
+
- 02.skills-sync.md — Remind AI to update MANIFEST.md when skills are modified
|
|
75
92
|
|
|
76
93
|
5. claudeos-core/skills/ (active domains only)
|
|
77
94
|
- 20.frontend-page/01.scaffold-page-feature.md (orchestrator)
|
|
@@ -28,20 +28,29 @@ Determine from pass2-merged.json which layer (View/ViewSet vs Service) calls
|
|
|
28
28
|
the response wrapper. This MUST be identical across architecture.md, view-patterns.md,
|
|
29
29
|
response-exception.md, and all rules files. Do NOT describe different response flows in different files.
|
|
30
30
|
|
|
31
|
-
CRITICAL — CLAUDE.md Reference Table Completeness:
|
|
32
|
-
The reference table in CLAUDE.md MUST list ALL generated standard files, not just core.
|
|
33
|
-
Include all backend-api, security-db, infra, and verification standards.
|
|
34
|
-
Alternatively, add a note directing readers to .claude/rules/00.core/00.standard-reference.md
|
|
35
|
-
for the complete list.
|
|
36
|
-
|
|
37
31
|
Generation targets:
|
|
38
32
|
|
|
39
33
|
1. CLAUDE.md (project root)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
-
|
|
34
|
+
|
|
35
|
+
Follow the scaffold EXACTLY:
|
|
36
|
+
→ `pass-prompts/templates/common/claude-md-scaffold.md`
|
|
37
|
+
|
|
38
|
+
The scaffold enforces an 8-section deterministic structure:
|
|
39
|
+
1. Role Definition → 2. Project Overview → 3. Build & Run Commands →
|
|
40
|
+
4. Core Architecture → 5. Directory Structure → 6. Standard / Rules / Skills Reference →
|
|
41
|
+
7. DO NOT Read → 8. Common Rules & Memory (L4)
|
|
42
|
+
|
|
43
|
+
All section titles, order, and formats are FIXED by the scaffold.
|
|
44
|
+
Content within each section adapts to this project based on pass2-merged.json.
|
|
45
|
+
The scaffold's validation checklist MUST pass.
|
|
46
|
+
|
|
47
|
+
Stack-specific hints for this project (Python Django):
|
|
48
|
+
- Project type for Section 1 PROJECT_CONTEXT: "REST API Server" or "Web Application"
|
|
49
|
+
(when DRF is used, "DRF-based REST API Server"; when detected, e.g., "Async Task Queue + Cache Layer")
|
|
50
|
+
- Architecture diagram (Section 4): MTV structure, request flow, app structure
|
|
51
|
+
- Section 3 commands: pip/poetry, manage.py (migrate/runserver/collectstatic), gunicorn/uwsgi
|
|
52
|
+
- Django apps: list in Section 2 (count only or the main apps), details in Section 5 tree
|
|
53
|
+
- Detect Celery/Redis/channels and reflect in Section 2 or Section 4 Absent / Not Adopted
|
|
45
54
|
|
|
46
55
|
2. claudeos-core/standard/ (active domains only)
|
|
47
56
|
- 00.core/01.project-overview.md — Stack, app list, server info
|
|
@@ -80,8 +89,11 @@ Generation targets:
|
|
|
80
89
|
- `00.core/*` rules: `paths: ["**/*"]` — always loaded (architecture, naming are universally needed)
|
|
81
90
|
- `10.backend/*` rules: `paths: ["**/*"]` — always loaded (backend rules needed for any source editing)
|
|
82
91
|
- `30.security-db/*` rules: `paths: ["**/*"]` — always loaded (cross-cutting concerns)
|
|
83
|
-
- `40.infra
|
|
92
|
+
- `40.infra/01.environment-config-rules.md` paths: `["**/.env*", "**/settings*.py", "**/settings/**/*.py", "**/*.toml", "**/*.cfg"]` — env / Django settings
|
|
93
|
+
- `40.infra/02.logging-monitoring-rules.md` paths: `["**/*.py"]` — source code where logs live
|
|
94
|
+
- `40.infra/03.cicd-deployment-rules.md` paths: `["**/*.yml", "**/*.yaml", "**/Dockerfile*", "**/*.py"]` — CI / deploy config + source
|
|
84
95
|
- `50.sync/*` rules: `paths: ["**/claudeos-core/**", "**/.claude/**"]` — loaded only when editing claudeos-core files
|
|
96
|
+
- `60.memory/*` rules: forward reference — Pass 4 will generate 4 files (01.decision-log, 02.failure-patterns, 03.compaction, 04.auto-rule-update), each with file-specific `paths`. Pass 3 must STILL list ```.claude/rules/60.memory/*``` as a row in CLAUDE.md Section 6 Rules table so developers/Claude see the category exists.
|
|
85
97
|
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a directory of all standard files. This is NOT a "read all" instruction. Claude should Read ONLY the standards relevant to the current task. Structure it as:
|
|
86
98
|
```
|
|
87
99
|
---
|
|
@@ -96,6 +108,7 @@ Generation targets:
|
|
|
96
108
|
- claudeos-core/standard/00.core/01.project-overview.md
|
|
97
109
|
- claudeos-core/standard/00.core/02.architecture.md
|
|
98
110
|
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
111
|
+
- claudeos-core/standard/00.core/04.doc-writing-guide.md
|
|
99
112
|
## Backend API
|
|
100
113
|
- claudeos-core/standard/10.backend-api/01.view-patterns.md
|
|
101
114
|
- claudeos-core/standard/10.backend-api/02.serializer-patterns.md
|
|
@@ -113,18 +126,16 @@ Generation targets:
|
|
|
113
126
|
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
114
127
|
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
115
128
|
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
116
|
-
## DO NOT Read (context waste)
|
|
117
|
-
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
118
|
-
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
119
|
-
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
120
129
|
```
|
|
121
|
-
List only the standard files that were actually generated above.
|
|
130
|
+
List only the standard files that were actually generated above. NOTE: `00.core/04.doc-writing-guide.md` is a FORWARD REFERENCE — Pass 4 will generate it; include it anyway. Do NOT add a "DO NOT Read" section here — that information lives in CLAUDE.md Section 7 (the single source of truth).
|
|
122
131
|
|
|
123
|
-
4. .claude/rules/50.sync/ (
|
|
132
|
+
4. .claude/rules/50.sync/ (2 sync rules — AI fallback reminders)
|
|
124
133
|
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
125
|
-
- 01.
|
|
126
|
-
|
|
127
|
-
|
|
134
|
+
- 01.doc-sync.md — Bidirectional standard ↔ rules sync reminder (both directions in ONE rule).
|
|
135
|
+
Do NOT generate a separate 02.rules-sync.md mirror file — redundant.
|
|
136
|
+
Express the mapping as a naming convention (standard/<N>.<dir>/<M>.<n>.md ↔
|
|
137
|
+
.claude/rules/<N>.<dir>/<M>.<n>-rules.md), NOT a hardcoded file-to-file table.
|
|
138
|
+
- 02.skills-sync.md — Remind AI to update MANIFEST.md when skills are modified
|
|
128
139
|
|
|
129
140
|
5. claudeos-core/skills/ (active domains only)
|
|
130
141
|
- 10.backend-crud/01.scaffold-crud-feature.md (orchestrator)
|
|
@@ -28,20 +28,30 @@ Determine from pass2-merged.json which layer (router/endpoint vs service/CRUD) c
|
|
|
28
28
|
the response wrapper. This MUST be identical across architecture.md, router-endpoint-patterns.md,
|
|
29
29
|
response-exception.md, and all rules files. Do NOT describe different response flows in different files.
|
|
30
30
|
|
|
31
|
-
CRITICAL — CLAUDE.md Reference Table Completeness:
|
|
32
|
-
The reference table in CLAUDE.md MUST list ALL generated standard files, not just core.
|
|
33
|
-
Include all backend-api, security-db, infra, and verification standards.
|
|
34
|
-
Alternatively, add a note directing readers to .claude/rules/00.core/00.standard-reference.md
|
|
35
|
-
for the complete list.
|
|
36
|
-
|
|
37
31
|
Generation targets:
|
|
38
32
|
|
|
39
33
|
1. CLAUDE.md (project root)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
|
|
44
|
-
-
|
|
34
|
+
|
|
35
|
+
Follow the scaffold EXACTLY:
|
|
36
|
+
→ `pass-prompts/templates/common/claude-md-scaffold.md`
|
|
37
|
+
|
|
38
|
+
The scaffold enforces an 8-section deterministic structure:
|
|
39
|
+
1. Role Definition → 2. Project Overview → 3. Build & Run Commands →
|
|
40
|
+
4. Core Architecture → 5. Directory Structure → 6. Standard / Rules / Skills Reference →
|
|
41
|
+
7. DO NOT Read → 8. Common Rules & Memory (L4)
|
|
42
|
+
|
|
43
|
+
All section titles, order, and formats are FIXED by the scaffold.
|
|
44
|
+
Content within each section adapts to this project based on pass2-merged.json.
|
|
45
|
+
The scaffold's validation checklist MUST pass.
|
|
46
|
+
|
|
47
|
+
Stack-specific hints for this project (Python FastAPI):
|
|
48
|
+
- Project type for Section 1 PROJECT_CONTEXT: "Asynchronous REST API Server"
|
|
49
|
+
(reflect pydantic-schema-based automatic OpenAPI documentation)
|
|
50
|
+
- Architecture diagram (Section 4): router → dependency → service → repository,
|
|
51
|
+
async request lifecycle, pydantic validation
|
|
52
|
+
- Section 3 commands: pip/poetry install, uvicorn dev, docker deployment
|
|
53
|
+
- Module structure: reflect in Section 5 tree (routers/, models/, schemas/, services/)
|
|
54
|
+
- Detect Celery/Redis/SQLAlchemy async and reflect in Section 2 or Section 4
|
|
45
55
|
|
|
46
56
|
2. claudeos-core/standard/ (active domains only)
|
|
47
57
|
- 00.core/01.project-overview.md — Stack, modules, server info
|
|
@@ -80,8 +90,11 @@ Generation targets:
|
|
|
80
90
|
- `00.core/*` rules: `paths: ["**/*"]` — always loaded (architecture, naming are universally needed)
|
|
81
91
|
- `10.backend/*` rules: `paths: ["**/*"]` — always loaded (backend rules needed for any source editing)
|
|
82
92
|
- `30.security-db/*` rules: `paths: ["**/*"]` — always loaded (cross-cutting concerns)
|
|
83
|
-
- `40.infra
|
|
93
|
+
- `40.infra/01.environment-config-rules.md` paths: `["**/.env*", "**/config/**", "**/*.toml", "**/*.cfg"]` — env / config files
|
|
94
|
+
- `40.infra/02.logging-monitoring-rules.md` paths: `["**/*.py"]` — source code where logs live
|
|
95
|
+
- `40.infra/03.cicd-deployment-rules.md` paths: `["**/*.yml", "**/*.yaml", "**/Dockerfile*", "**/*.py"]` — CI / deploy config + source
|
|
84
96
|
- `50.sync/*` rules: `paths: ["**/claudeos-core/**", "**/.claude/**"]` — loaded only when editing claudeos-core files
|
|
97
|
+
- `60.memory/*` rules: forward reference — Pass 4 will generate 4 files (01.decision-log, 02.failure-patterns, 03.compaction, 04.auto-rule-update), each with file-specific `paths`. Pass 3 must STILL list ```.claude/rules/60.memory/*``` as a row in CLAUDE.md Section 6 Rules table so developers/Claude see the category exists.
|
|
85
98
|
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a directory of all standard files. This is NOT a "read all" instruction. Claude should Read ONLY the standards relevant to the current task. Structure it as:
|
|
86
99
|
```
|
|
87
100
|
---
|
|
@@ -96,6 +109,7 @@ Generation targets:
|
|
|
96
109
|
- claudeos-core/standard/00.core/01.project-overview.md
|
|
97
110
|
- claudeos-core/standard/00.core/02.architecture.md
|
|
98
111
|
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
112
|
+
- claudeos-core/standard/00.core/04.doc-writing-guide.md
|
|
99
113
|
## Backend API
|
|
100
114
|
- claudeos-core/standard/10.backend-api/01.router-endpoint-patterns.md
|
|
101
115
|
- claudeos-core/standard/10.backend-api/02.schema-pydantic-patterns.md
|
|
@@ -113,18 +127,16 @@ Generation targets:
|
|
|
113
127
|
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
114
128
|
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
115
129
|
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
116
|
-
## DO NOT Read (context waste)
|
|
117
|
-
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
118
|
-
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
119
|
-
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
120
130
|
```
|
|
121
|
-
List only the standard files that were actually generated above.
|
|
131
|
+
List only the standard files that were actually generated above. NOTE: `00.core/04.doc-writing-guide.md` is a FORWARD REFERENCE — Pass 4 will generate it; include it anyway. Do NOT add a "DO NOT Read" section here — that information lives in CLAUDE.md Section 7 (the single source of truth).
|
|
122
132
|
|
|
123
|
-
4. .claude/rules/50.sync/ (
|
|
133
|
+
4. .claude/rules/50.sync/ (2 sync rules — AI fallback reminders)
|
|
124
134
|
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
125
|
-
- 01.
|
|
126
|
-
|
|
127
|
-
|
|
135
|
+
- 01.doc-sync.md — Bidirectional standard ↔ rules sync reminder (both directions in ONE rule).
|
|
136
|
+
Do NOT generate a separate 02.rules-sync.md mirror file — redundant.
|
|
137
|
+
Express the mapping as a naming convention (standard/<N>.<dir>/<M>.<n>.md ↔
|
|
138
|
+
.claude/rules/<N>.<dir>/<M>.<n>-rules.md), NOT a hardcoded file-to-file table.
|
|
139
|
+
- 02.skills-sync.md — Remind AI to update MANIFEST.md when skills are modified
|
|
128
140
|
|
|
129
141
|
5. claudeos-core/skills/ (active domains only)
|
|
130
142
|
- 10.backend-crud/01.scaffold-crud-feature.md (orchestrator)
|