✨ Symlink skills dir for native goose discovery (#70) - #134
savitharaghunathan wants to merge 2 commits into
Conversation
Assisted-By: Claude Code <noreply@anthropic.com> Signed-off-by: Savitha Raghunathan <saveetha13@gmail.com>
|
Warning Review limit reached
Next review available in: 5 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe migration harness now discovers skill paths, symlinks them into cloned repositories at ChangesSkill discovery and runtime exposure
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Harness as migration-harness
participant Discovery as discoverSkills
participant Symlink as symlinkSkillsDir
participant Repository as cloned repository
Harness->>Discovery: discover SKILL.md paths
Discovery-->>Harness: return skill paths
Harness->>Symlink: mount discovered skills
Symlink->>Repository: create .agents/skills symlink
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@changes/unreleased/70-skill-symlink-for-goose-discovery.yaml`:
- Around line 3-4: Update the change description to document that the symlink
target is configurable through HARNESS_SKILLS_DIR, with /opt/skills identified
as the default target.
In `@harness/cmd/migration-harness/main.go`:
- Around line 373-378: Update symlinkSkillsDir in
harness/cmd/migration-harness/main.go:373-378 to reject a repository-controlled
symlinked .agents directory before MkdirAll or Symlink can write outside
cloneDir, and convert relative skillsSrc values to an absolute path with
filepath.Abs so the link target matches discovery resolution. Add coverage in
harness/cmd/migration-harness/main_test.go:66-96 for both rejecting the .agents
symlink and resolving relative HARNESS_SKILLS_DIR values.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 17260f9c-899e-4a3c-98ed-e592706afbe0
📒 Files selected for processing (6)
changes/unreleased/70-skill-symlink-for-goose-discovery.yamlharness/cmd/migration-harness/main.goharness/cmd/migration-harness/main_test.goharness/internal/prompt/prompt.goharness/internal/prompt/prompt_test.goharness/internal/watcher/patterns.go
Reject repo-controlled .agents symlinks before creating the skills link to prevent writes outside cloneDir. Resolve relative HARNESS_SKILLS_DIR to absolute so the symlink target matches discovery resolution. Assisted-By: Claude Code <noreply@anthropic.com> Signed-off-by: Savitha Raghunathan <saveetha13@gmail.com>
Assisted-By: Claude Code noreply@anthropic.com
Summary by CodeRabbit
New Features
Bug Fixes
.agentsdirectories from file watching to prevent unnecessary change detection.