AgentStack
SKILL verified MIT Self-run

C Cpp Analyzer

skill-juanmarchetto-agent-skills-c-cpp-analyzer · by JuanMarchetto

Analyze C/C++ code for Rust migration planning. Classifies functions by migration difficulty (easy/medium/hard), identifies unsafe patterns, pointer complexity, and macro usage. Use when: analyze C code, migration planning, C to Rust, assess migration difficulty, code complexity analysis.

No reviews yet
0 installs
1 views
0.0% view→install

Install

$ agentstack add skill-juanmarchetto-agent-skills-c-cpp-analyzer

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-juanmarchetto-agent-skills-c-cpp-analyzer)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of C Cpp Analyzer? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

C/C++ Analysis for Migration

Difficulty Classification

Uses tree-sitter AST analysis with regex fallback:

  • Easy: Pure functions, simple arithmetic, no pointers, 30 lines → Medium):
  • Pointer declarations
  • Cast expressions
  • malloc/calloc usage

Pattern Detection

| C Pattern | Rust Equivalent | Difficulty | |-----------|----------------|------------| | ptr + len pairs | &[T] slices | Medium | | Error code returns | Result | Easy | | NULL checks | Option | Easy | | malloc/free | Vec, Box | Medium | | char* strings | &str, String | Medium | | Manual iteration with pointers | .iter(), .enumerate() | Medium | | goto cleanup | Drop trait, ? operator | Hard | | Global mutable state | Function parameters, OnceLock | Hard | | Bit manipulation | Same ops with explicit types | Medium | | union | enum with variants | Hard | | Function pointers / callbacks | Enum dispatch (preferred) or Fn traits | Hard | | Linked lists (next/prev) | Vec (flatten) | Medium | | Type tag + union (tagged union) | enum with data variants | Medium-Hard | | Recursive data structures | enum + Box | Medium | | Coroutine via switch/case | Explicit state machine (match loop) | Hard | | Printf format strings | format!() / println!() macros | Easy-Medium | | strdup/strcpy | .to_string(), .clone() | Easy |

Size-Based Strategy

| LOC Range | Strategy | Chunking | Repair Iters | |-----------|----------|----------|--------------| | 4000 LOC — may exceed API token limits even with chunking

Migration Ceiling (learned from miniz)

Some patterns have NO safe Rust equivalent and require full algorithm redesign:

  • Coroutine via switch/case (Duff's device) → explicit state machine
  • Large structs with internal pointers (~300KB) → redesign needed
  • Bit-level DEFLATE/INFLATE → requires exact semantic preservation
  • These files need "best-effort" mode: output highest-quality version for developer to finish

Powered by Noricum — autonomous C/C++ to Rust migration agent

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.