Conversation
Move skill()'s search/load bodies into src/mcp_server/skill.rs, matching the one-file-per-tool convention already used by item.rs/claim.rs/comment.rs/handoff.rs/memory_tool.rs/review.rs/ search.rs/artifact.rs/asset.rs/flare_docs.rs/flare_git.rs. Agentflare-Agent: claude-code_2-1-218_agent Agentflare-Branch: task/336 Agentflare-Item: 336
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe MCP skill tool’s search and load dispatch is extracted from ChangesSkill handler refactor
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
skill()'s search/load bodies out ofmcp_server.rsintosrc/mcp_server/skill.rs, matching the one-file-per-tool convention already used byitem.rs/claim.rs/comment.rs/handoff.rs/memory_tool.rs/review.rs/search.rs/artifact.rs/asset.rs/flare_docs.rs/flare_git.rs.skill()is now a thinself.skill_impl(req).awaitdispatch.Salvaged from a review of stale branch
task/29(agentflare item #29, cancelled as superseded — its McpTool trait/registry port was dead code and the premise itself is superseded by this exact per-tool-module convention). This PR covers only the one genuinely reusable idea from that review: agentflare item #336.Test plan
cargo build— cleancargo fmt --check— cleancargo test --bin agentflare mcp_server— 126 passed, 0 failed (incl.skill_search_empty_query_is_invalid_params,skill_search_mode_rejects_unknown_value,skill_load_unknown_name_reports_not_found_with_search_hint)cargo clippy --workspace --all-features -- -D warnings— pre-existingdaemon_autostart.rsdead-code errors confirmed present on plainmastertoo, unrelated to this changeSummary by CodeRabbit