mirror of
https://github.com/daffy0208/ai-dev-standards.git
synced 2026-09-14 20:49:49 +08:00
e9661bdc9e
Registry Updates: - Added codex-review-workflow skill to META/registry.json (45 total) - Added supabase MCP to META/registry.json (50 total) - Added 4 Phase 3 skills to relationship-mapping.json (asset-manager, figma-developer, prototype-designer, supabase-developer) - Added backward-compatible relationships.skills_to_mcps structure Documentation Updates: - Updated README.md: 42 → 45 skills, 36 → 48 MCPs, 112 → 216 resources - Updated DOCS/INDEX.md: 37 → 45 skills - Updated DOCS/MCP-DEVELOPMENT-ROADMAP.md: 37 → 45 skills, updated ratios Scripts: - Added scripts/fix-relationship-mapping.cjs for relationship mapping maintenance Validation Results: ✅ All 45 skills present in all registries ✅ All 50 MCPs present in registry.json ✅ 100% relationship mapping coverage ✅ All documentation counts updated 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
#!/usr/bin/env node
|
|
// Fix relationship-mapping.json to add backward-compatible "relationships" section
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const ROOT = path.join(__dirname, '..');
|
|
const relationshipsPath = path.join(ROOT, 'META', 'relationship-mapping.json');
|
|
|
|
console.log('🔧 Adding backward-compatible relationships section...\n');
|
|
|
|
// Read current relationship-mapping.json
|
|
const data = JSON.parse(fs.readFileSync(relationshipsPath, 'utf-8'));
|
|
|
|
// Generate relationships.skills_to_mcps from skills section
|
|
const skillsToMcps = {};
|
|
for (const [skillName, skillData] of Object.entries(data.skills)) {
|
|
skillsToMcps[skillName] = skillData.required_mcps || [];
|
|
}
|
|
|
|
// Add or update relationships section
|
|
if (!data.relationships) {
|
|
data.relationships = {};
|
|
}
|
|
data.relationships.skills_to_mcps = skillsToMcps;
|
|
|
|
// Write back to file
|
|
fs.writeFileSync(relationshipsPath, JSON.stringify(data, null, 2) + '\n');
|
|
|
|
console.log(`✅ Added relationships.skills_to_mcps with ${Object.keys(skillsToMcps).length} skills`);
|
|
console.log(' This provides backward compatibility for validation scripts\n');
|