Analyze Rust Ffi Crate Surface
Helps with analysis, Rust as part of developing backend services and APIs workflows.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add analyze-rust-ffi-crate-surface npx -- -y @trustedskills/analyze-rust-ffi-crate-surface
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"analyze-rust-ffi-crate-surface": {
"command": "npx",
"args": [
"-y",
"@trustedskills/analyze-rust-ffi-crate-surface"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes Rust Foreign Function Interface (FFI) crates or files to identify C-visible symbols and determine their usage within a C codebase. It compiles a list of these symbols, such as functions annotated with #[unsafe(no_mangle)] or type definitions, and then identifies which modules in the C code utilize them. The skill leverages auto-generated header files for assistance when available.
When to use it
- When integrating Rust code into existing C/C++ projects via FFI.
- To understand how specific Rust functions or types are being used within a larger C codebase.
- During refactoring or maintenance of systems that combine Rust and C components.
- To verify the correctness of generated header files for FFI interfaces.
Key capabilities
- Identifies C-visible symbols (functions, types) in Rust FFI crates/files.
- Determines which modules in a C codebase use those symbols.
- Generates reports detailing symbol name, usage module(s), and type.
- Distinguishes between symbols used in production code versus unit tests.
- Utilizes auto-generated header files (located in
src/redisearch_rs/headers) for analysis.
Example prompts
- "Analyze the
numeric_range_tree_fficrate to identify all exposed FFI symbols and their usage." - "What C modules use the function defined in
src/redisearch_rs/c_entrypoint/some_file.rs?" - "Generate a report for the
src/redisearch_rs/another_file.rsfile, listing all FFI symbols and their usage locations."
Tips & gotchas
- Paths to Rust files should typically start with
src/. If not, the skill assumes they are located within thesrc/redisearch_rs/c_entrypointdirectory. - If a directory is provided as input, the skill will review all Rust files within that directory.
- Auto-generated header files in
src/redisearch_rs/headerscan be helpful resources during analysis.
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.