rust-codebase-scanning

Inspect Rust project structure and generate a style profile from Cargo.toml and source trees.

Updated May 26, 2026
One-click install
npx skills add https://github.com/adelabdelgawad/rust-fullstack-agents --skill rust-codebase-scanning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rust-codebase-scanning
Source: https://github.com/adelabdelgawad/rust-fullstack-agents/tree/main/plugins/rusty/skills/rust-codebase-scanning
Command: npx skills add https://github.com/adelabdelgawad/rust-fullstack-agents --skill rust-codebase-scanning

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tomli, and includes scripts (resource) components.

What problem does it solve?

This Skill reads actual project style from Cargo.toml, existing server fns, components, repo modules, error enums, and migrations to tailor code generation and scaffolding before the first generation session.

Core Features & Use Cases

  • Reads workspace vs single-crate structure from Cargo.toml to determine project layout.
  • Detects Leptos metadata, server function encoding, app-error enums, and migrations to build a comprehensive style profile.
  • Caches scan results per session and supports a non-interactive script mode (scripts/scan.py) for CI/hook usage.

Quick Start

Run the rust-codebase-scanning tool to generate a style profile before code generation.

Frequently Asked Questions about rust-codebase-scanning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze a Rust workspace to automate code generation?

To analyze a Rust workspace for code generation, scan Cargo.toml and source trees to extract project layout, Leptos metadata, and error handling details. This builds a cached style profile to guide subsequent scaffolding and ensure consistency across runs.

What is pre-scanning a Rust codebase for tailored codegen?

Pre-scanning a Rust codebase reads existing project styles, including server functions, components, and error enums, before code generation begins. This identifies the project layout to tailor code generation, scaffolding, and gating to match existing conventions.

How do I detect Leptos metadata and server function encoding in Rust projects?

Detect Leptos metadata and server function encoding by inspecting Cargo.toml and the source tree. The scanning process extracts these details alongside app-error enums and migrations to construct a comprehensive style profile for consistent code generation.

Can I run a non-interactive Rust project scan in CI pipelines?

Yes, you can run a non-interactive Rust project scan in CI pipelines using the scripts/scan.py script. This mode inspects Cargo.toml and source trees to generate a cached style profile for automated code generation workflows without manual interaction.

Does the Rust codebase scanner support both single-crate and workspace projects?

Yes, the Rust codebase scanner supports both single-crate and workspace projects. It reads the project structure directly from Cargo.toml to determine the layout and applies the detected style profile to tailor code generation accordingly.