← 教程列表
coding

Task 6: Replace extractFrontmatter with Core Version

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

**Files:** - Modify: `.codex/superpowers-codex` (lines 40-74) **Step 1: Remove local extractFrontmatter function** Delete lines 40-74 (the entire extractFrontmatter function definition). **Step 2: Update all extractFrontmatter calls** Find and replace all calls from `extractFrontmatter(` to `skillsCore.extractFrontmatter(` Affected lines approximately: 90, 310 **Step 3: Verify script still works** Run: `.codex/superpowers-codex find-skills | head -20` Expected: Shows list of skills **Step 4: Commit** ```bash git add .codex/superpowers-codex git commit -m "refactor: use shared extractFrontmatter in codex" ``` ---

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