AgentSkillsCN

rs-crate-search

针对某一问题搜索并评估 Rust 的各类 crate,为用户提供多种方案供其选择与确认。

SKILL.md
--- frontmatter
name: rs-crate-search
description: Search and evaluate Rust crates for a problem. Presents options for user approval.
user-invocable: true
context: fork
allowed-tools: [WebSearch, WebFetch, Bash, Read]

/rs-crate-search

Find and evaluate crates for a problem domain.

Usage

code
/rs-crate-search "json parsing"
/rs-crate-search "http client async"

Workflow

1. Search

bash
# Search crates.io
cargo search "query" --limit 10

# Check lib.rs for alternatives
# WebSearch: "rust crate for [problem] site:lib.rs"

2. Evaluate Each Candidate

CriteriaCheck
MaintenanceLast commit < 6 months
AdoptionDownloads, GitHub stars
Dependenciescargo tree -p crate
API qualityDocs, examples

3. Present to User

markdown
## Crates for [problem]

| Crate | Downloads | Updated | Deps |
|-------|-----------|---------|------|
| `foo` | 10M/month | 2025-01 | 3 |
| `bar` | 500K/month | 2024-12 | 12 |

### `foo`
- Pros: Fast, minimal deps, good docs
- Cons: Less flexible API

### `bar`
- Pros: Feature-rich, active community
- Cons: Heavy dependency tree

**Recommendation:** `foo` - balances simplicity and capability

Add `foo` to Cargo.toml?

4. Wait for User Approval

Never add dependency without explicit user confirmation.

Quick Evaluation

For known-good crates, check version only:

bash
cargo search serde --limit 1