Fix sync-readme script to only generate skills-only tree

The script was hard-coding the entire repo structure (references, schemas,
scripts, .claude-plugin) into the README skill tree. Simplified to only
output the skills/ directory, matching the intended structure.
This commit is contained in:
Antoine van der Lee
2026-03-25 11:32:02 +01:00
parent 53b8d8e402
commit a56a465c1b
2 changed files with 30 additions and 78 deletions
+5 -36
View File
@@ -15,43 +15,12 @@ const SKILL_DIRS = [
const beginMarker = "<!-- BEGIN SKILL STRUCTURE -->";
const endMarker = "<!-- END SKILL STRUCTURE -->";
const describeReference = (fileName) => {
const descriptions = {
"benchmarking-workflow.md": "Benchmark contract, clean vs incremental rules, and artifact expectations",
"code-compilation-checks.md": "Swift compile hotspot checks and code-level heuristics",
"project-audit-checks.md": "Build setting, script phase, and dependency audit checklist",
"spm-analysis-checks.md": "Package graph, plugin overhead, and module variant review guide",
"orchestration-report-template.md": "Prioritization, approval, and verification report template",
"fix-patterns.md": "Concrete before/after patterns for each fix category",
};
return descriptions[fileName] || "Reference file";
};
const buildTree = () => {
const lines = [
"xcode-build-optimization-agent-skill/",
" .claude-plugin/",
" marketplace.json",
" plugin.json",
" references/",
" benchmark-artifacts.md",
" build-optimization-sources.md",
" build-settings-best-practices.md",
" recommendation-format.md",
" schemas/",
" build-benchmark.schema.json",
" scripts/",
" benchmark_builds.py",
" diagnose_compilation.py",
" generate_optimization_report.py",
" render_recommendations.py",
" summarize_build_timing.py",
" skills/",
];
const lines = ["skills/"];
for (const skillDir of SKILL_DIRS) {
lines.push(` ${skillDir}/`);
lines.push(" SKILL.md");
lines.push(` ${skillDir}/`);
lines.push(" SKILL.md");
const referencesDir = path.join(SKILLS_ROOT, skillDir, "references");
if (!fs.existsSync(referencesDir)) {
continue;
@@ -63,9 +32,9 @@ const buildTree = () => {
if (references.length === 0) {
continue;
}
lines.push(" references/");
lines.push(" references/");
for (const fileName of references) {
lines.push(` ${fileName} - ${describeReference(fileName)}`);
lines.push(` ${fileName}`);
}
}
+25 -42
View File
@@ -217,48 +217,31 @@ The skills share:
## Skill Structure
<!-- BEGIN SKILL STRUCTURE -->
```text
xcode-build-optimization-agent-skill/
.claude-plugin/
marketplace.json
plugin.json
references/
benchmark-artifacts.md
build-optimization-sources.md
build-settings-best-practices.md
recommendation-format.md
schemas/
build-benchmark.schema.json
scripts/
benchmark_builds.py
diagnose_compilation.py
generate_optimization_report.py
render_recommendations.py
summarize_build_timing.py
skills/
xcode-build-benchmark/
SKILL.md
references/
benchmarking-workflow.md - Benchmark contract, clean vs incremental rules, and artifact expectations
xcode-compilation-analyzer/
SKILL.md
references/
code-compilation-checks.md - Swift compile hotspot checks and code-level heuristics
xcode-project-analyzer/
SKILL.md
references/
project-audit-checks.md - Build setting, script phase, and dependency audit checklist
spm-build-analysis/
SKILL.md
references/
spm-analysis-checks.md - Package graph, plugin overhead, and module variant review guide
xcode-build-orchestrator/
SKILL.md
references/
orchestration-report-template.md - Prioritization, approval, and verification report template
xcode-build-fixer/
SKILL.md
references/
fix-patterns.md - Concrete before/after patterns for each fix category
skills/
xcode-build-benchmark/
SKILL.md
references/
benchmarking-workflow.md
xcode-compilation-analyzer/
SKILL.md
references/
code-compilation-checks.md
xcode-project-analyzer/
SKILL.md
references/
project-audit-checks.md
spm-build-analysis/
SKILL.md
references/
spm-analysis-checks.md
xcode-build-orchestrator/
SKILL.md
references/
orchestration-report-template.md
xcode-build-fixer/
SKILL.md
references/
fix-patterns.md
```
<!-- END SKILL STRUCTURE -->