farooqarahim/grove/rust-patterns
Claude Code and agent skill by farooqarahim/grove
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Rust-specific coding patterns and conventions used in the Grove codebase. Loaded for Builder and Reviewer agents working on Rust code.
Install
npx vskill@latest install farooqarahim/grove/rust-patternsSKILL.md
The same SKILL.md was published earlier as farooqarahim/grove/rust-patterns.
Grove Rust Patterns
Error Handling
- Use
GroveResult<T>(alias forResult<T, GroveError>) everywhere - Use
?operator for propagation — no.unwrap()in production code - Map external errors:
external_call().map_err(|e| GroveError::External(e.to_string()))? - Use
GroveError::NotFoundfor missing resources,GroveError::Configfor config issues
Database (rusqlite)
- All DB operations through
rusqlite::Connection - Use
conn.execute()for writes,conn.query_row()for single reads - Use
conn.prepare()+stmt.query_map()for multi-row reads - Always use parameterized queries:
[&run_id], never string interpolation - Migrations in
crates/grove-core/src/db/migrations/— numbered sequentially
Serialization
#[derive(Serialize, Deserialize)]on all IPC types#[serde(rename_all = "snake_case")]for enums#[serde(default)]for optional fields that may be missing in older data
File I/O
- Use
std::fsfor sync file operations - Always create parent directories:
fs::create_dir_all(parent)? - Use
PathandPathBuf— never string concatenation for paths
Tauri Commands
- All commands are
#[tauri::command]async functions - Use
spawn_blockingfor sync operations (DB, git, file I/O) - Return
Result<T, String>whereT: Serialize - Error conversion:
.map_err(|e| e.to_string())?
Testing
#[cfg(test)] mod testsat bottom of each module- Use
tempfile::tempdir()for filesystem tests - Use in-memory SQLite:
Connection::open_in_memory() - Test names:
snake_case_describing_behavior
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rust-patterns/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/farooqarahim/grove/rust-patterns)