Pass Claude skills through Pi#79
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds Claude skills discovery and wiring: new DiscoverClaudeSkills(cwd) scans home and ancestor Changes
Sequence DiagramsequenceDiagram
participant Client as Client
participant Daemon as Daemon
participant FS as Filesystem
participant Session as SessionActor
participant PI as PIExecutor
Client->>Daemon: ListSkills request (cwd)
activate Daemon
Daemon->>FS: DiscoverClaudeSkills(cwd) — read home + ancestor `.claude/skills`
FS-->>Daemon: skills metadata (name, desc, path, scope)
Daemon-->>Client: ListSkillsResult (skills, error)
deactivate Daemon
Session->>FS: DiscoverClaudeSkills(cwd)
FS-->>Session: list of skill paths
Session->>PI: NewExecutor(..., SkillPaths: paths)
PI->>PI: Build args (one `--skill <path>` per entry)
PI-->>Session: executor ready
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
64257b8 to
c0ed02b
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@internal/skills/discovery.go`:
- Around line 137-141: The deferred file.Close() call is ignored; replace defer
file.Close() with a deferred closure that captures and checks the Close error
(e.g., defer func() { if err := file.Close(); err != nil { log.Printf("failed to
close %s: %v", path, err) } }()), or otherwise handle the error (propagate or
log) so the error return from file.Close() is not silently dropped; locate the
os.Open(path) call and the defer file.Close() in the same function and update
there.
🪄 Autofix (Beta)
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: c9dde1c0-5c7a-49d0-90f2-1f292ed140e1
⛔ Files ignored due to path filters (1)
go.sumis excluded by!**/*.sum
📒 Files selected for processing (8)
go.modinternal/loop/daemon.gointernal/pi/executor.gointernal/relay/conn.gointernal/session/actor.gointernal/session/actor_test.gointernal/skills/discovery.gointernal/skills/discovery_test.go
Summary
Verification
Merge order
Summary by CodeRabbit
New Features
Tests
Chores