/fp:first-plan-lens-rustfrom first-plan
Analyzes Rust projects during discovery: detects binary vs library, async runtime, web framework, error handling style, and project structure from Cargo.toml.
Ships in first-plan. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
| Sinal | Variante |
|---|---|
[[bin]] em Cargo.toml ou src/main.rs | Binário |
[lib] em Cargo.toml ou src/lib.rs | Lib |
axum / actix-web / rocket / warp em deps | HTTP API |
tonic em deps | gRPC |
tokio em deps | Async runtime tokio |
async-std em deps | Async runtime async-std |
clap em deps + bin | CLI |
tauri em deps | Tauri (desktop) |
bevy | Game/3D |
[workspace] em Cargo.toml | Workspace (monorepo Rust) |
src/main.rs ou src/bin/<name>.rssrc/lib.rs + módulostests/ integration testsexamples/ exemplosbenches/ benchmarksthiserror (typed errors)anyhow (boxed errors em apps)? operator usageSend + Sync constraintstokio::spawn)tokio::sync::mpsc, crossbeam)derive macros customizados (sinal: dependências de proc-macro crates)macro_rules! definidos no projeto#[test] unit tests inlinetests/ integrationcriterion para benchmarksproptest, quickcheck (property testing)mockall (mocks)wiremock (HTTP mocks)axum:
async fn(...) -> impl IntoResponseState, Json, Path, Query)actix-web:
web::Data, web::Jsontracing ecosystem (tracing + tracing-subscriber + tracing-opentelemetry)log crate + env_logger (legacy)cargo-make, just em vez de Makefileclippy.toml, rustfmt.tomlMSRV (minimum supported Rust version)Padrão. Atenção:
02-conventions/errors.md - thiserror vs anyhow vs custom02-conventions/di.md - Rust geralmente usa State/Context structs em vez de DI clássicoAumentar:
clippy.toml strict + zero warnings nos commits recentesReduzir:
unsafe blocks em código não-justificado por SAFETY: commentunwrap() / expect() em produção sem justificativaunwrap() sem expect("razão") em produçãoclone() excessivo (smell de fight com borrow checker)Arc<Mutex<T>> quando RwLock ou channel resolveria melhorpanic! em lib (deveria retornar Result)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/first-plan-co-change-analysisSkill que constrói o Co-change Graph - "quando arquivo X muda, qual outro arquivo geralmente muda junto?". Use durante Discovery e em /fp:cochange. Baseado em git history. Detecta arquivos co-dependentes que devem ser editados juntos para evitar PRs incompletos. v0.3.0+ usa engine nativo Rust quando disponível (10-100x mais rápido)./first-plan-engine-bootstrapSkill que detecta e instala o binário nativo first-plan-engine (Rust) na primeira invocação. Use quando algum command (cochange, hash, futuramente ast/index/search) for invocado e o binário não estiver presente. Oferece download via GitHub Releases. Plugin funciona sem o engine (graceful fallback), mas com ele fica 10-100x mais rápido./first-plan-git-intelligenceSkill que extrai inteligência do git history - heatmap de atividade, ownership, branches/PRs in-flight. Use durante Discovery e em /fp:hot, /fp:owner, /fp:in-flight. Tudo via comandos git read-only./first-plan-lens-engineSkill que define o motor de detecção e roteamento de stack lenses do first-plan. Mapeia manifestos (go.mod, package.json, etc) -> stack -> papel -> lens skill correspondente. Use quando precisar decidir qual lens aplicar a uma pasta durante Discovery, ou quando estender suporte a uma nova stack./first-plan-lens-genericStack lens fallback para projetos onde nenhuma lens específica detectou. Use quando o projeto tem estrutura inusual, stack rara (Elixir, OCaml, Haskell, Erlang, Zig, etc) ou poliglota além das lenses cobertas. Aplica heurística genérica baseada em extensões e comportamento observável./first-plan-lens-goStack lens para projetos Go. Use durante Discovery quando go.mod for detectado. Extrai padrões de layout (cmd/internal/pkg), error handling, context.Context, concurrency, code generation, build tags.npx claudepluginhub vynazevedo/first-plan --plugin fpOther plugins' skills for the same job