fix(makefile): add skills-copy dependency to sync target - #44
Conversation
The sync target was missing the skills-copy dependency, causing it to sync stale intermediate files from .ruler/skills/ to destination directories without first updating them from the source skills/ directory. This resulted in destination skill files (e.g., ~/.codex/skills/) not reflecting the latest changes even after running make sync. Fix: Add skills-copy as a dependency to ensure the two-stage sync process works correctly: 1. skills-copy: skills/ → .ruler/skills/ (source to intermediate) 2. skills-sync: .ruler/skills/ → destinations (intermediate to agents) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. 📝 WalkthroughSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughThis PR adds YAML front matter metadata to six skill definition files, declaring name, allowed-tools, and description fields for each skill. Additionally, the Makefile is updated to add a Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR fixes a synchronization issue in the Makefile where the sync target wasn't updating skill files to their latest versions. The fix adds skills-copy as a dependency to ensure the two-stage sync process (source → intermediate → destinations) runs completely when make sync is invoked.
Changes:
- Added
skills-copydependency to thesynctarget in Makefile to ensure intermediate.ruler/skills/directory is updated from source before syncing to destinations - Updated all
.ruler/skills/*/SKILL.mdfiles with thenamefield that matches their directory names (result of running the fixed sync)
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Makefile | Added skills-copy as a prerequisite dependency to sync target to fix stale file propagation |
| .ruler/skills/serena/SKILL.md | Added name: serena field to frontmatter metadata |
| .ruler/skills/pr-label/SKILL.md | Added name: pr-label field to frontmatter metadata |
| .ruler/skills/pr-create/SKILL.md | Added name: pr-create field to frontmatter metadata |
| .ruler/skills/issue-create/SKILL.md | Added name: issue-create field to frontmatter metadata |
| .ruler/skills/commit-lint/SKILL.md | Added name: commit-lint field to frontmatter metadata |
| .ruler/skills/changesets/SKILL.md | Added name: changesets field to frontmatter metadata |
Summary
make syncnot updating skill files to their latest versionsskills-copyas a dependency to thesynctarget in Makefilenamefield that was previously missingProblem
The
synctarget was missing theskills-copydependency, causing it to sync stale intermediate files from.ruler/skills/to destination directories (like~/.codex/skills/) without first updating them from the sourceskills/directory.Example:
Root Cause
The sync process has two stages:
skills-copy):skills/→.ruler/skills/(source to intermediate)skills-sync):.ruler/skills/→ destinations (intermediate to agents)The
synctarget only calledskills-sync(Stage 2) but neverskills-copy(Stage 1), so the intermediate.ruler/skills/directory was never updated.Solution
This ensures both stages run in the correct order when
make syncis called.Test Plan
make syncand verify it executesskills-copyfirst~/.codex/skills/pr-label/SKILL.md) now include thenamefieldFiles Changed
Makefile: Addedskills-copydependency tosynctarget.ruler/skills/*.md: Updated withnamefield from source files (result of running the fixed sync)🤖 Generated with Claude Code
Summary by cubic
Fixes make sync so it refreshes skills from source before syncing to destinations, preventing stale files. Adds the skills-copy dependency and updates .ruler/skills with the missing name field.
Written for commit 38f5cbf. Summary will update on new commits.