rust-patterns
Skill48 starsChanged 18 days agoMITView on GitHub
Rust/Tauri patterns and best practices for Agentrium backend
22 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- troskater/flowdeck-claudetheir own version, first seen Oct 25, 2026
- renepf/claude-skillstheir own version, first seen Oct 25, 2026
- davidanthonyn/claude-skillstheir own version, first seen Oct 20, 2026
- gongyijie85/dsh-ecctheir own version, first seen Oct 13, 2026
- MohamedEssam0-0/claude-skillstheir own version, first seen Oct 11, 2026
Used with
Projects with it also use nuxt4-patterns, pytorch-patterns and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
loulanyueSkillnuxt4-patterns
Nuxt 4 app patterns for hydration safety, performance, route rules, lazy loading, and SSR-safe data fetching with useFetch and useAsyncData.
Also in 6 projects that use this
Yog-SothoSkillpytorch-patterns
PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading. Always activate when the user is writing PyTorch models or training scripts, reviewing deep learning code, debugging training loops or data pipelines, optimizing GPU memory or training speed, setting up reproducible experiments, implementing transfer learning or fine-tuning, or asks anything about nn.Module, DataLoader, autograd, AMP, or torch.compile.
Also in 7 projects that use this
loulanyueSkillsanta-method
Multi-agent adversarial verification with convergence loop. Two independent review agents must both pass before output ships.
Also in 4 projects that use this
RojiosSkilldefi-amm-security
Security checklist for Solidity AMM contracts, liquidity pools, and swap flows. Covers reentrancy, CEI ordering, donation or inflation attacks, oracle manipulation, slippage, admin controls, and integer math.
Also in 3 projects that use this
RojiosSkillllm-trading-agent-security
Security patterns for autonomous trading agents with wallet or transaction authority. Covers prompt injection, spend limits, pre-send simulation, circuit breakers, MEV protection, and key handling.
Also in 3 projects that use this
Exploration-labsSkilltoken-budget-advisor
Proactive token budget assessment and task chunking strategy. Use this skill when queries involve multiple large file uploads, requests for comprehensive multi-document analysis, complex multi-step workflows with heavy research (10+ tool calls), phrases like "complete analysis", "full audit", "thorough review", "deep dive", or tasks combining extensive research with large output artifacts. This skill helps assess token consumption risk early and recommend chunking strategies before beginning work.
Also in 3 projects that use this
- +3 more from loulanyue
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- loulanyue/awesome-claude-notes★ 272same name
- FlorianBruniaux/ccboard★ 94same name
- Fmarzochi/EGC★ 61same name
- Bitslix/BLXCode★ 15same name
- gongyijie85/dsh-ecc★ 8same name
- peopleforrester/claude-dotfiles★ 3same name
- aphrody-code/bxc★ 2same name
- idexal/idexal-skills★ 2same name
- lukemurraynz/hve-agent-skills★ 2same name
- ronmkr/PromptBook★ 2same name
12 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agentrium-conventionsSkill
- qaSkill
- agentrium-conventionsSkill
- frontend-patternsSkill
- local-qaSkill
- security-reviewSkill
- tdd-workflowSkill
- verification-loopSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Never .unwrap() in production - use ?
- Very specific: line 11
Use anyhow for internal errors, convert to String at IPC boundary
- Very specific: line 15
Never hold a Mutex lock across .await points
- Very specific: line 19
All commands are async with #[tauri::command]
- Very specific: line 25
Use CREATE_NO_WINDOW flag on process spawns
- Distinctive: line 26
Test path handling with backslashes
- Distinctive: line 31
Always clean up resources even on error paths
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Rust Patterns for Agentrium
Error Handling
- Commands return
Result<T, String>- use.map_err(|e| e.to_string()) - Never
.unwrap()in production - use?operator - Use
anyhowfor internal errors, convert to String at IPC boundary
Thread Safety
AppStateusesArc<Mutex<T>>- lock, use, drop quickly- Never hold a Mutex lock across
.awaitpoints - PTY reader threads use
mpsc::channelto communicate with Tokio tasks
Tauri Commands
- All commands are
asyncwith#[tauri::command] - Access state via
tauri::State<'_, AppState> - Register every command in
main.rsinvoke_handler
Windows Specifics
- Wrap shell commands with
cmd /C - Use
CREATE_NO_WINDOWflag on process spawns - Test path handling with backslashes
PTY Lifecycle
- Spawn → reader thread → mpsc channel → Tokio task → emit events
- On close: signal reader thread, join, close channel, emit
terminal-finished - Always clean up resources even on error paths
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

