Unsafe Checker
The Unsafe Checker identifies potentially dangerous Rust code constructs, preventing runtime errors and improving application stability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add rustfs-unsafe-checker npx -- -y @trustedskills/rustfs-unsafe-checker
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"rustfs-unsafe-checker": {
"command": "npx",
"args": [
"-y",
"@trustedskills/rustfs-unsafe-checker"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The rustfs-unsafe-checker skill analyzes Rust code to identify potential issues arising from unsafe blocks. It helps developers proactively find and address problems related to memory safety, data races, and undefined behavior that can occur when using raw pointers or interacting with external code. This improves the robustness and security of Rust projects.
When to use it
- Code Review: Integrate into a CI/CD pipeline to automatically scan pull requests for
unsafeblock usage and potential issues. - Security Audits: Perform targeted analysis on critical sections of code containing
unsafeblocks to identify vulnerabilities. - Refactoring Legacy Code: When migrating or refactoring older Rust projects, use the checker to ensure that
unsafeoperations are handled correctly. - Learning and Education: New Rust developers can leverage this skill to understand best practices for using
unsafecode safely.
Key capabilities
- Static analysis of Rust source code.
- Detection of potential issues within
unsafeblocks. - Identification of memory safety concerns.
- Reporting on data race possibilities.
- Highlighting undefined behavior risks.
Example prompts
- "Analyze this Rust file for unsafe block usage and report any potential problems."
- "Check the 'critical_section.rs' file for memory safety issues related to raw pointers."
- "Can you identify any data races in this code that involve
unsafeblocks?"
Tips & gotchas
The skill requires a Rust development environment with access to the Rust compiler and standard library. While it can highlight potential problems, it is not a substitute for careful manual review of unsafe code by experienced developers.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.