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.
Potentially problematic release.
This version of claudeos-core might be problematic. Click here for more details.
- package/CHANGELOG.md +42 -0
- package/README.de.md +38 -8
- package/README.es.md +38 -8
- package/README.fr.md +38 -8
- package/README.hi.md +38 -8
- package/README.ja.md +38 -8
- package/README.ko.md +38 -9
- package/README.md +38 -9
- package/README.ru.md +38 -8
- package/README.vi.md +38 -8
- package/README.zh-CN.md +38 -8
- package/content-validator/index.js +3 -6
- package/health-checker/index.js +7 -9
- package/manifest-generator/index.js +9 -46
- package/package.json +1 -2
- package/pass-json-validator/index.js +2 -2
- package/pass-prompts/templates/java-spring/pass3.md +45 -8
- package/pass-prompts/templates/kotlin-spring/pass3.md +48 -9
- package/pass-prompts/templates/node-express/pass3.md +45 -7
- package/pass-prompts/templates/node-nextjs/pass3.md +44 -7
- package/pass-prompts/templates/python-django/pass3.md +45 -7
- package/pass-prompts/templates/python-fastapi/pass3.md +45 -7
- package/plan-installer/index.js +9 -2
- package/plan-validator/index.js +6 -0
- package/sync-checker/index.js +4 -1
- package/import-linter/index.js +0 -173
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Role: Generate 4 types of metadata JSON + initialize stale-report
|
|
7
7
|
* Output (claudeos-core/generated/):
|
|
8
8
|
* - rule-manifest.json : rules/standard/skills/guide file list + frontmatter
|
|
9
|
-
* - import-graph.json :
|
|
9
|
+
* - import-graph.json : (deprecated — kept for backward compatibility, @import removed)
|
|
10
10
|
* - sync-map.json : plan/ <file> block → file path mapping
|
|
11
11
|
* - plan-manifest.json : plan/ file list + <file> block count
|
|
12
12
|
* - stale-report.json : initialized (each verification tool appends results)
|
|
@@ -54,25 +54,6 @@ function frontmatter(f) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
function extractImports(f) {
|
|
58
|
-
const content = fs.readFileSync(f, "utf-8");
|
|
59
|
-
const result = [];
|
|
60
|
-
let inCodeFence = false;
|
|
61
|
-
for (const line of content.split("\n")) {
|
|
62
|
-
if (/^```/.test(line)) { inCodeFence = !inCodeFence; continue; }
|
|
63
|
-
if (inCodeFence) continue;
|
|
64
|
-
const m = line.match(/^@(\.\.?\/[^\s]+)/);
|
|
65
|
-
if (m) {
|
|
66
|
-
const target = path.resolve(path.dirname(f), m[1]);
|
|
67
|
-
result.push({
|
|
68
|
-
raw: m[0],
|
|
69
|
-
resolved: rel(target),
|
|
70
|
-
exists: fs.existsSync(target),
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return result;
|
|
75
|
-
}
|
|
76
57
|
|
|
77
58
|
function extractFileBlocks(f) {
|
|
78
59
|
if (!fs.existsSync(f)) return [];
|
|
@@ -136,34 +117,16 @@ async function main() {
|
|
|
136
117
|
fs.writeFileSync(path.join(GEN, "rule-manifest.json"), JSON.stringify(mf, null, 2));
|
|
137
118
|
console.log(` ✅ rule-manifest.json — ${mf.summary.total} files indexed`);
|
|
138
119
|
|
|
139
|
-
// ─── import-graph.json
|
|
140
|
-
const gr = {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
for (const f of await glob("**/*.md", { cwd: scanDir, absolute: true })) {
|
|
147
|
-
const r = rel(f);
|
|
148
|
-
ns.add(r);
|
|
149
|
-
for (const i of extractImports(f)) {
|
|
150
|
-
ns.add(i.resolved);
|
|
151
|
-
gr.edges.push({ from: r, to: i.resolved, exists: i.exists });
|
|
152
|
-
if (!i.exists) {
|
|
153
|
-
gr.errors.push({ type: "broken_import", file: r, target: i.resolved });
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
gr.nodes = Array.from(ns).sort();
|
|
160
|
-
gr.summary = {
|
|
161
|
-
totalNodes: gr.nodes.length,
|
|
162
|
-
totalEdges: gr.edges.length,
|
|
163
|
-
brokenImports: gr.errors.length,
|
|
120
|
+
// ─── import-graph.json (deprecated — @import removed) ──
|
|
121
|
+
const gr = {
|
|
122
|
+
generatedAt: new Date().toISOString(),
|
|
123
|
+
deprecated: true,
|
|
124
|
+
note: "@import is not a Claude Code feature and has been removed. Rules now use paths: [\"**/*\"] frontmatter.",
|
|
125
|
+
nodes: [], edges: [], errors: [],
|
|
126
|
+
summary: { totalNodes: 0, totalEdges: 0, brokenImports: 0 },
|
|
164
127
|
};
|
|
165
128
|
fs.writeFileSync(path.join(GEN, "import-graph.json"), JSON.stringify(gr, null, 2));
|
|
166
|
-
console.log(
|
|
129
|
+
console.log(" ✅ import-graph.json — deprecated (no @imports)");
|
|
167
130
|
|
|
168
131
|
// ─── sync-map.json ─────────────────────────────────────
|
|
169
132
|
const sm = { generatedAt: new Date().toISOString(), mappings: [] };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claudeos-core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Auto-generate Claude Code documentation from your actual source code — Standards, Rules, Skills, and Guides tailored to your project",
|
|
5
5
|
"main": "bin/cli.js",
|
|
6
6
|
"bin": {
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"bin/",
|
|
11
11
|
"content-validator/",
|
|
12
12
|
"health-checker/",
|
|
13
|
-
"import-linter/",
|
|
14
13
|
"manifest-generator/",
|
|
15
14
|
"pass-json-validator/",
|
|
16
15
|
"pass-prompts/",
|
|
@@ -215,9 +215,9 @@ async function main() {
|
|
|
215
215
|
const normalizedKeys = keys.map(normalize);
|
|
216
216
|
for (const section of sectionsToCheck) {
|
|
217
217
|
const sectionNorm = normalize(section);
|
|
218
|
-
// Exact normalized match first, then
|
|
218
|
+
// Exact normalized match first, then check if any key contains the section name (one-direction only to avoid false positives)
|
|
219
219
|
const found = normalizedKeys.some(k => k === sectionNorm)
|
|
220
|
-
|| (sectionNorm.length >= 6 && normalizedKeys.some(k => k.includes(sectionNorm)
|
|
220
|
+
|| (sectionNorm.length >= 6 && normalizedKeys.some(k => k.includes(sectionNorm)));
|
|
221
221
|
if (!found) {
|
|
222
222
|
warnings.push({
|
|
223
223
|
file: "pass2-merged.json",
|
|
@@ -39,15 +39,52 @@ Generation targets:
|
|
|
39
39
|
- Key rules summary table
|
|
40
40
|
|
|
41
41
|
3. .claude/rules/ (active domains only)
|
|
42
|
-
-
|
|
43
|
-
- Write
|
|
44
|
-
-
|
|
45
|
-
-
|
|
42
|
+
- Every rule file MUST include `paths: ["**/*"]` in YAML frontmatter — this ensures Claude Code always loads the rule regardless of which file is being edited
|
|
43
|
+
- Write the full rule content directly in each file (self-contained, no external references)
|
|
44
|
+
- Include 5-15 lines of key rules with concrete examples
|
|
45
|
+
- Do NOT use @import — it is not a Claude Code feature and does not work
|
|
46
|
+
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a mandatory rule file that instructs Claude Code to Read the standard documents before coding. Structure it as:
|
|
47
|
+
```
|
|
48
|
+
---
|
|
49
|
+
paths:
|
|
50
|
+
- "**/*"
|
|
51
|
+
---
|
|
52
|
+
# Required Standard Documents
|
|
53
|
+
Before writing or modifying code, you MUST Read the relevant standard files below using the Read tool.
|
|
54
|
+
## Core (always read)
|
|
55
|
+
- claudeos-core/standard/00.core/01.project-overview.md
|
|
56
|
+
- claudeos-core/standard/00.core/02.architecture.md
|
|
57
|
+
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
58
|
+
## Backend API
|
|
59
|
+
- claudeos-core/standard/10.backend-api/01.controller-patterns.md
|
|
60
|
+
- claudeos-core/standard/10.backend-api/02.service-patterns.md
|
|
61
|
+
- claudeos-core/standard/10.backend-api/03.data-access-patterns.md
|
|
62
|
+
- claudeos-core/standard/10.backend-api/04.response-exception.md
|
|
63
|
+
- claudeos-core/standard/10.backend-api/05.dto-validation.md
|
|
64
|
+
- claudeos-core/standard/10.backend-api/06.interceptor-filter-aop.md
|
|
65
|
+
## Security & DB
|
|
66
|
+
- claudeos-core/standard/30.security-db/01.security-auth.md
|
|
67
|
+
- claudeos-core/standard/30.security-db/02.database-schema.md
|
|
68
|
+
- claudeos-core/standard/30.security-db/03.common-utilities.md
|
|
69
|
+
## Infra & Verification
|
|
70
|
+
- claudeos-core/standard/40.infra/01.environment-config.md
|
|
71
|
+
- claudeos-core/standard/40.infra/02.logging-monitoring.md
|
|
72
|
+
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
73
|
+
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
74
|
+
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
75
|
+
## DO NOT Read (context waste)
|
|
76
|
+
- claudeos-core/plan/ — Master Plan backup files. Never read during coding.
|
|
77
|
+
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
78
|
+
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
79
|
+
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
80
|
+
```
|
|
81
|
+
List only the standard files that were actually generated above. Include frontend standards only if frontend was detected.
|
|
46
82
|
|
|
47
|
-
4. .claude/rules/50.sync/ (3 sync rules)
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
83
|
+
4. .claude/rules/50.sync/ (3 sync rules — AI fallback reminders)
|
|
84
|
+
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
85
|
+
- 01.standard-sync.md — Remind AI to update plan/10 when standard is modified
|
|
86
|
+
- 02.rules-sync.md — Remind AI to update plan/20 when rules are modified
|
|
87
|
+
- 03.skills-sync.md — Remind AI to update plan/30 when skills are modified
|
|
51
88
|
|
|
52
89
|
5. claudeos-core/skills/ (active domains only)
|
|
53
90
|
- 10.backend-crud/01.scaffold-crud-feature.md (orchestrator)
|
|
@@ -42,16 +42,55 @@ Generation targets:
|
|
|
42
42
|
- Key rules summary table
|
|
43
43
|
|
|
44
44
|
3. .claude/rules/ (active domains only)
|
|
45
|
-
-
|
|
46
|
-
- Write
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
- CQRS-specific rules:
|
|
45
|
+
- Every rule file MUST include `paths: ["**/*"]` in YAML frontmatter — this ensures Claude Code always loads the rule regardless of which file is being edited
|
|
46
|
+
- Write the full rule content directly in each file (self-contained, no external references)
|
|
47
|
+
- Include 5-15 lines of key rules with concrete examples
|
|
48
|
+
- Do NOT use @import — it is not a Claude Code feature and does not work
|
|
49
|
+
- CQRS-specific rules: include command/query separation rules directly in the rule file content
|
|
50
|
+
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a mandatory rule file that instructs Claude Code to Read the standard documents before coding. Structure it as:
|
|
51
|
+
```
|
|
52
|
+
---
|
|
53
|
+
paths:
|
|
54
|
+
- "**/*"
|
|
55
|
+
---
|
|
56
|
+
# Required Standard Documents
|
|
57
|
+
Before writing or modifying code, you MUST Read the relevant standard files below using the Read tool.
|
|
58
|
+
## Core (always read)
|
|
59
|
+
- claudeos-core/standard/00.core/01.project-overview.md
|
|
60
|
+
- claudeos-core/standard/00.core/02.architecture.md
|
|
61
|
+
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
62
|
+
## Backend API
|
|
63
|
+
- claudeos-core/standard/10.backend-api/01.controller-patterns.md
|
|
64
|
+
- claudeos-core/standard/10.backend-api/02.service-patterns.md
|
|
65
|
+
- claudeos-core/standard/10.backend-api/03.data-access-patterns.md
|
|
66
|
+
- claudeos-core/standard/10.backend-api/04.response-exception.md
|
|
67
|
+
- claudeos-core/standard/10.backend-api/05.dto-vo-validation.md
|
|
68
|
+
- claudeos-core/standard/10.backend-api/06.aggregate-patterns.md (if generated)
|
|
69
|
+
- claudeos-core/standard/10.backend-api/07.bff-feign-patterns.md (if generated)
|
|
70
|
+
- claudeos-core/standard/10.backend-api/08.inter-module-communication.md (if generated)
|
|
71
|
+
## Security & DB
|
|
72
|
+
- claudeos-core/standard/30.security-db/01.security-auth.md
|
|
73
|
+
- claudeos-core/standard/30.security-db/02.database-schema.md
|
|
74
|
+
- claudeos-core/standard/30.security-db/03.common-utilities.md
|
|
75
|
+
## Infra & Verification
|
|
76
|
+
- claudeos-core/standard/40.infra/01.environment-config.md
|
|
77
|
+
- claudeos-core/standard/40.infra/02.logging-monitoring.md
|
|
78
|
+
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
79
|
+
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
80
|
+
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
81
|
+
## DO NOT Read (context waste)
|
|
82
|
+
- claudeos-core/plan/ — Master Plan backup files. Never read during coding.
|
|
83
|
+
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
84
|
+
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
85
|
+
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
86
|
+
```
|
|
87
|
+
List only the standard files that were actually generated above. Include frontend standards only if frontend was detected.
|
|
50
88
|
|
|
51
|
-
4. .claude/rules/50.sync/ (3 sync rules)
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
89
|
+
4. .claude/rules/50.sync/ (3 sync rules — AI fallback reminders)
|
|
90
|
+
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
91
|
+
- 01.standard-sync.md — Remind AI to update plan/10 when standard is modified
|
|
92
|
+
- 02.rules-sync.md — Remind AI to update plan/20 when rules is modified
|
|
93
|
+
- 03.skills-sync.md — Remind AI to update plan/30 when skills is modified
|
|
55
94
|
|
|
56
95
|
5. claudeos-core/skills/ (active domains only)
|
|
57
96
|
- 10.backend-crud/01.scaffold-crud-feature.md (orchestrator — CQRS-aware: creates both command and query modules)
|
|
@@ -38,14 +38,52 @@ Generation targets:
|
|
|
38
38
|
- Key rules summary table
|
|
39
39
|
|
|
40
40
|
3. .claude/rules/ (active domains only)
|
|
41
|
-
-
|
|
42
|
-
- Write
|
|
43
|
-
-
|
|
41
|
+
- Every rule file MUST include `paths: ["**/*"]` in YAML frontmatter — this ensures Claude Code always loads the rule regardless of which file is being edited
|
|
42
|
+
- Write the full rule content directly in each file (self-contained, no external references)
|
|
43
|
+
- Include 5-15 lines of key rules with concrete examples
|
|
44
|
+
- Do NOT use @import — it is not a Claude Code feature and does not work
|
|
45
|
+
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a mandatory rule file that instructs Claude Code to Read the standard documents before coding. Structure it as:
|
|
46
|
+
```
|
|
47
|
+
---
|
|
48
|
+
paths:
|
|
49
|
+
- "**/*"
|
|
50
|
+
---
|
|
51
|
+
# Required Standard Documents
|
|
52
|
+
Before writing or modifying code, you MUST Read the relevant standard files below using the Read tool.
|
|
53
|
+
## Core (always read)
|
|
54
|
+
- claudeos-core/standard/00.core/01.project-overview.md
|
|
55
|
+
- claudeos-core/standard/00.core/02.architecture.md
|
|
56
|
+
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
57
|
+
## Backend API
|
|
58
|
+
- claudeos-core/standard/10.backend-api/01.router-controller-patterns.md
|
|
59
|
+
- claudeos-core/standard/10.backend-api/02.service-patterns.md
|
|
60
|
+
- claudeos-core/standard/10.backend-api/03.data-access-patterns.md
|
|
61
|
+
- claudeos-core/standard/10.backend-api/04.response-exception.md
|
|
62
|
+
- claudeos-core/standard/10.backend-api/05.validation-dto.md
|
|
63
|
+
- claudeos-core/standard/10.backend-api/06.middleware-interceptor.md
|
|
64
|
+
## Security & DB
|
|
65
|
+
- claudeos-core/standard/30.security-db/01.security-auth.md
|
|
66
|
+
- claudeos-core/standard/30.security-db/02.database-schema.md
|
|
67
|
+
- claudeos-core/standard/30.security-db/03.common-utilities.md
|
|
68
|
+
## Infra & Verification
|
|
69
|
+
- claudeos-core/standard/40.infra/01.environment-config.md
|
|
70
|
+
- claudeos-core/standard/40.infra/02.logging-monitoring.md
|
|
71
|
+
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
72
|
+
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
73
|
+
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
74
|
+
## DO NOT Read (context waste)
|
|
75
|
+
- claudeos-core/plan/ — Master Plan backup files. Never read during coding.
|
|
76
|
+
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
77
|
+
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
78
|
+
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
79
|
+
```
|
|
80
|
+
List only the standard files that were actually generated above.
|
|
44
81
|
|
|
45
|
-
4. .claude/rules/50.sync/ (3 sync rules)
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
82
|
+
4. .claude/rules/50.sync/ (3 sync rules — AI fallback reminders)
|
|
83
|
+
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
84
|
+
- 01.standard-sync.md — Remind AI to update plan/10 when standard is modified
|
|
85
|
+
- 02.rules-sync.md — Remind AI to update plan/20 when rules is modified
|
|
86
|
+
- 03.skills-sync.md — Remind AI to update plan/30 when skills is modified
|
|
49
87
|
|
|
50
88
|
5. claudeos-core/skills/ (active domains only)
|
|
51
89
|
- 10.backend-crud/01.scaffold-crud-feature.md (orchestrator)
|
|
@@ -36,14 +36,51 @@ Generation targets:
|
|
|
36
36
|
- Key rules summary table
|
|
37
37
|
|
|
38
38
|
3. .claude/rules/ (active domains only)
|
|
39
|
-
-
|
|
40
|
-
- Write
|
|
41
|
-
-
|
|
39
|
+
- Every rule file MUST include `paths: ["**/*"]` in YAML frontmatter — this ensures Claude Code always loads the rule regardless of which file is being edited
|
|
40
|
+
- Write the full rule content directly in each file (self-contained, no external references)
|
|
41
|
+
- Include 5-15 lines of key rules with concrete examples
|
|
42
|
+
- Do NOT use @import — it is not a Claude Code feature and does not work
|
|
43
|
+
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a mandatory rule file that instructs Claude Code to Read the standard documents before coding. Structure it as:
|
|
44
|
+
```
|
|
45
|
+
---
|
|
46
|
+
paths:
|
|
47
|
+
- "**/*"
|
|
48
|
+
---
|
|
49
|
+
# Required Standard Documents
|
|
50
|
+
Before writing or modifying code, you MUST Read the relevant standard files below using the Read tool.
|
|
51
|
+
## Core (always read)
|
|
52
|
+
- claudeos-core/standard/00.core/01.project-overview.md
|
|
53
|
+
- claudeos-core/standard/00.core/02.architecture.md
|
|
54
|
+
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
55
|
+
## Frontend UI
|
|
56
|
+
- claudeos-core/standard/20.frontend-ui/01.component-patterns.md
|
|
57
|
+
- claudeos-core/standard/20.frontend-ui/02.page-routing-patterns.md
|
|
58
|
+
- claudeos-core/standard/20.frontend-ui/03.data-fetching.md
|
|
59
|
+
- claudeos-core/standard/20.frontend-ui/04.state-management.md
|
|
60
|
+
- claudeos-core/standard/20.frontend-ui/05.styling-patterns.md
|
|
61
|
+
## Backend API
|
|
62
|
+
- claudeos-core/standard/10.backend-api/01.api-routes.md
|
|
63
|
+
## Security & DB
|
|
64
|
+
- claudeos-core/standard/30.security-db/01.security-auth.md
|
|
65
|
+
## Infra & Verification
|
|
66
|
+
- claudeos-core/standard/40.infra/01.environment-config.md
|
|
67
|
+
- claudeos-core/standard/40.infra/02.logging-monitoring.md
|
|
68
|
+
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
69
|
+
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
70
|
+
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
71
|
+
## DO NOT Read (context waste)
|
|
72
|
+
- claudeos-core/plan/ — Master Plan backup files. Never read during coding.
|
|
73
|
+
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
74
|
+
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
75
|
+
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
76
|
+
```
|
|
77
|
+
List only the standard files that were actually generated above.
|
|
42
78
|
|
|
43
|
-
4. .claude/rules/50.sync/ (3 sync rules)
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
79
|
+
4. .claude/rules/50.sync/ (3 sync rules — AI fallback reminders)
|
|
80
|
+
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
81
|
+
- 01.standard-sync.md — Remind AI to update plan/10 when standard is modified
|
|
82
|
+
- 02.rules-sync.md — Remind AI to update plan/20 when rules is modified
|
|
83
|
+
- 03.skills-sync.md — Remind AI to update plan/30 when skills is modified
|
|
47
84
|
|
|
48
85
|
5. claudeos-core/skills/ (active domains only)
|
|
49
86
|
- 20.frontend-page/01.scaffold-page-feature.md (orchestrator)
|
|
@@ -38,14 +38,52 @@ Generation targets:
|
|
|
38
38
|
- Key rules summary table
|
|
39
39
|
|
|
40
40
|
3. .claude/rules/ (active domains only)
|
|
41
|
-
-
|
|
42
|
-
- Write
|
|
43
|
-
-
|
|
41
|
+
- Every rule file MUST include `paths: ["**/*"]` in YAML frontmatter — this ensures Claude Code always loads the rule regardless of which file is being edited
|
|
42
|
+
- Write the full rule content directly in each file (self-contained, no external references)
|
|
43
|
+
- Include 5-15 lines of key rules with concrete examples
|
|
44
|
+
- Do NOT use @import — it is not a Claude Code feature and does not work
|
|
45
|
+
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a mandatory rule file that instructs Claude Code to Read the standard documents before coding. Structure it as:
|
|
46
|
+
```
|
|
47
|
+
---
|
|
48
|
+
paths:
|
|
49
|
+
- "**/*"
|
|
50
|
+
---
|
|
51
|
+
# Required Standard Documents
|
|
52
|
+
Before writing or modifying code, you MUST Read the relevant standard files below using the Read tool.
|
|
53
|
+
## Core (always read)
|
|
54
|
+
- claudeos-core/standard/00.core/01.project-overview.md
|
|
55
|
+
- claudeos-core/standard/00.core/02.architecture.md
|
|
56
|
+
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
57
|
+
## Backend API
|
|
58
|
+
- claudeos-core/standard/10.backend-api/01.view-patterns.md
|
|
59
|
+
- claudeos-core/standard/10.backend-api/02.serializer-patterns.md
|
|
60
|
+
- claudeos-core/standard/10.backend-api/03.model-patterns.md
|
|
61
|
+
- claudeos-core/standard/10.backend-api/04.response-exception.md
|
|
62
|
+
- claudeos-core/standard/10.backend-api/05.business-logic.md
|
|
63
|
+
- claudeos-core/standard/10.backend-api/06.admin-patterns.md
|
|
64
|
+
## Security & DB
|
|
65
|
+
- claudeos-core/standard/30.security-db/01.security-auth.md
|
|
66
|
+
- claudeos-core/standard/30.security-db/02.database-schema.md
|
|
67
|
+
- claudeos-core/standard/30.security-db/03.common-utilities.md
|
|
68
|
+
## Infra & Verification
|
|
69
|
+
- claudeos-core/standard/40.infra/01.environment-config.md
|
|
70
|
+
- claudeos-core/standard/40.infra/02.logging-monitoring.md
|
|
71
|
+
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
72
|
+
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
73
|
+
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
74
|
+
## DO NOT Read (context waste)
|
|
75
|
+
- claudeos-core/plan/ — Master Plan backup files. Never read during coding.
|
|
76
|
+
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
77
|
+
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
78
|
+
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
79
|
+
```
|
|
80
|
+
List only the standard files that were actually generated above.
|
|
44
81
|
|
|
45
|
-
4. .claude/rules/50.sync/ (3 sync rules)
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
82
|
+
4. .claude/rules/50.sync/ (3 sync rules — AI fallback reminders)
|
|
83
|
+
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
84
|
+
- 01.standard-sync.md — Remind AI to update plan/10 when standard is modified
|
|
85
|
+
- 02.rules-sync.md — Remind AI to update plan/20 when rules is modified
|
|
86
|
+
- 03.skills-sync.md — Remind AI to update plan/30 when skills is modified
|
|
49
87
|
|
|
50
88
|
5. claudeos-core/skills/ (active domains only)
|
|
51
89
|
- 10.backend-crud/01.scaffold-crud-feature.md (orchestrator)
|
|
@@ -38,14 +38,52 @@ Generation targets:
|
|
|
38
38
|
- Key rules summary table
|
|
39
39
|
|
|
40
40
|
3. .claude/rules/ (active domains only)
|
|
41
|
-
-
|
|
42
|
-
- Write
|
|
43
|
-
-
|
|
41
|
+
- Every rule file MUST include `paths: ["**/*"]` in YAML frontmatter — this ensures Claude Code always loads the rule regardless of which file is being edited
|
|
42
|
+
- Write the full rule content directly in each file (self-contained, no external references)
|
|
43
|
+
- Include 5-15 lines of key rules with concrete examples
|
|
44
|
+
- Do NOT use @import — it is not a Claude Code feature and does not work
|
|
45
|
+
- MUST generate `.claude/rules/00.core/00.standard-reference.md` — a mandatory rule file that instructs Claude Code to Read the standard documents before coding. Structure it as:
|
|
46
|
+
```
|
|
47
|
+
---
|
|
48
|
+
paths:
|
|
49
|
+
- "**/*"
|
|
50
|
+
---
|
|
51
|
+
# Required Standard Documents
|
|
52
|
+
Before writing or modifying code, you MUST Read the relevant standard files below using the Read tool.
|
|
53
|
+
## Core (always read)
|
|
54
|
+
- claudeos-core/standard/00.core/01.project-overview.md
|
|
55
|
+
- claudeos-core/standard/00.core/02.architecture.md
|
|
56
|
+
- claudeos-core/standard/00.core/03.naming-conventions.md
|
|
57
|
+
## Backend API
|
|
58
|
+
- claudeos-core/standard/10.backend-api/01.router-endpoint-patterns.md
|
|
59
|
+
- claudeos-core/standard/10.backend-api/02.schema-pydantic-patterns.md
|
|
60
|
+
- claudeos-core/standard/10.backend-api/03.data-access-patterns.md
|
|
61
|
+
- claudeos-core/standard/10.backend-api/04.response-exception.md
|
|
62
|
+
- claudeos-core/standard/10.backend-api/05.dependency-injection.md
|
|
63
|
+
- claudeos-core/standard/10.backend-api/06.middleware-patterns.md
|
|
64
|
+
## Security & DB
|
|
65
|
+
- claudeos-core/standard/30.security-db/01.security-auth.md
|
|
66
|
+
- claudeos-core/standard/30.security-db/02.database-schema.md
|
|
67
|
+
- claudeos-core/standard/30.security-db/03.common-utilities.md
|
|
68
|
+
## Infra & Verification
|
|
69
|
+
- claudeos-core/standard/40.infra/01.environment-config.md
|
|
70
|
+
- claudeos-core/standard/40.infra/02.logging-monitoring.md
|
|
71
|
+
- claudeos-core/standard/40.infra/03.cicd-deployment.md
|
|
72
|
+
- claudeos-core/standard/50.verification/01.development-verification.md
|
|
73
|
+
- claudeos-core/standard/50.verification/02.testing-strategy.md
|
|
74
|
+
## DO NOT Read (context waste)
|
|
75
|
+
- claudeos-core/plan/ — Master Plan backup files. Never read during coding.
|
|
76
|
+
- claudeos-core/generated/ — Build metadata. Not for coding reference.
|
|
77
|
+
- claudeos-core/guide/ — Onboarding/usage guides for humans. Not for coding reference.
|
|
78
|
+
- claudeos-core/mcp-guide/ — MCP server integration docs. Not for coding reference.
|
|
79
|
+
```
|
|
80
|
+
List only the standard files that were actually generated above.
|
|
44
81
|
|
|
45
|
-
4. .claude/rules/50.sync/ (3 sync rules)
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
82
|
+
4. .claude/rules/50.sync/ (3 sync rules — AI fallback reminders)
|
|
83
|
+
- NOTE: These rules remind AI to run `npx claudeos-core refresh` after modifying standard/rules/skills files.
|
|
84
|
+
- 01.standard-sync.md — Remind AI to update plan/10 when standard is modified
|
|
85
|
+
- 02.rules-sync.md — Remind AI to update plan/20 when rules is modified
|
|
86
|
+
- 03.skills-sync.md — Remind AI to update plan/30 when skills is modified
|
|
49
87
|
|
|
50
88
|
5. claudeos-core/skills/ (active domains only)
|
|
51
89
|
- 10.backend-crud/01.scaffold-crud-feature.md (orchestrator)
|
package/plan-installer/index.js
CHANGED
|
@@ -197,7 +197,7 @@ async function detectStack() {
|
|
|
197
197
|
let pkg;
|
|
198
198
|
try { pkg = JSON.parse(fs.readFileSync(path.join(ROOT, "package.json"), "utf-8")); }
|
|
199
199
|
catch { console.warn(" ⚠️ package.json parse error — skipping Node.js detection"); pkg = null; }
|
|
200
|
-
if (
|
|
200
|
+
if (pkg) {
|
|
201
201
|
stack.detected.push("package.json");
|
|
202
202
|
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
203
203
|
|
|
@@ -231,6 +231,7 @@ async function detectStack() {
|
|
|
231
231
|
: fs.existsSync(path.join(ROOT, "yarn.lock")) ? "yarn" : "npm";
|
|
232
232
|
|
|
233
233
|
if (pkg.engines && pkg.engines.node && !stack.languageVersion) stack.languageVersion = pkg.engines.node;
|
|
234
|
+
} // end if (pkg)
|
|
234
235
|
}
|
|
235
236
|
|
|
236
237
|
// ── Python ──
|
|
@@ -1374,4 +1375,10 @@ async function main() {
|
|
|
1374
1375
|
console.log(" ✅ Plan Installer complete\n");
|
|
1375
1376
|
}
|
|
1376
1377
|
|
|
1377
|
-
main().catch(e => {
|
|
1378
|
+
main().catch(e => {
|
|
1379
|
+
console.error(`\n ❌ Plan Installer failed: ${e.message || e}`);
|
|
1380
|
+
if (e.code === "EACCES" || e.code === "EPERM") {
|
|
1381
|
+
console.error(" Check file/directory permissions.");
|
|
1382
|
+
}
|
|
1383
|
+
process.exit(1);
|
|
1384
|
+
});
|
package/plan-validator/index.js
CHANGED
|
@@ -126,6 +126,12 @@ async function main() {
|
|
|
126
126
|
total++;
|
|
127
127
|
const abs = path.join(ROOT, b.path);
|
|
128
128
|
|
|
129
|
+
// Block path traversal attempts
|
|
130
|
+
if (!path.resolve(abs).startsWith(path.resolve(ROOT))) {
|
|
131
|
+
console.log(` ⚠️ SKIPPED: ${b.path} (path traversal blocked)`);
|
|
132
|
+
continue;
|
|
133
|
+
}
|
|
134
|
+
|
|
129
135
|
// File does not exist
|
|
130
136
|
if (!fs.existsSync(abs)) {
|
|
131
137
|
if (mode === "--execute") {
|
package/sync-checker/index.js
CHANGED
|
@@ -76,7 +76,10 @@ async function main() {
|
|
|
76
76
|
// ─── [2/2] Plan → Disk: detect orphaned files ───────────────
|
|
77
77
|
console.log(" [2/2] Plan → Disk...");
|
|
78
78
|
for (const m of sm.mappings) {
|
|
79
|
-
|
|
79
|
+
const abs = path.join(ROOT, m.sourcePath);
|
|
80
|
+
// Skip path traversal attempts
|
|
81
|
+
if (!path.resolve(abs).startsWith(path.resolve(ROOT))) continue;
|
|
82
|
+
if (!fs.existsSync(abs)) {
|
|
80
83
|
issues.orphan.push({ path: m.sourcePath, plan: m.planFile });
|
|
81
84
|
}
|
|
82
85
|
}
|