← 教程列表
coding

Code Reuse Strategy

📅 2026/6/12 16:30:02⏱ 约 5 分钟阅读👁 8 阅读

Extract common functionality from `.codex/superpowers-codex` into shared module: ```javascript // lib/skills-core.js module.exports = { extractFrontmatter(filePath), // Parse name + description from YAML findSkillsInDir(dir, maxDepth), // Recursive SKILL.md discovery findAllSkills(dirs), // Scan multiple directories resolveSkillPath(skillName, dirs), // Handle shadowing (personal > core) checkForUpdates(repoDir) // Git fetch/status check }; ```

← 返回教程列表 AI8899 · 内容仅供学习参考