← 教程列表
coding

Phase 1: Refactor Shared Core

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

1. Create `lib/skills-core.js` - Extract frontmatter parsing from `.codex/superpowers-codex` - Extract skill discovery logic - Extract path resolution (with shadowing) - Update to use only `name` and `description` (no `when_to_use`) 2. Update `.codex/superpowers-codex` to use shared core - Import from `../lib/skills-core.js` - Remove duplicated code - Keep CLI wrapper logic 3. Test Codex implementation still works - Verify bootstrap command - Verify use-skill command - Verify find-skills command

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