From rust-lambda
Review a Rust Lambda handler for AWS best practices, correctness, and performance. Use when the user wants feedback on their handler code, wants to check compliance with AWS guidelines, or is preparing to deploy and wants a pre-flight check.
npx claudepluginhub lep511/claude-rust-lambda-plugin --plugin rust-lambdaThis skill uses the workspace's default tool permissions.
Review the provided Rust Lambda handler code against AWS official best practices.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
Review the provided Rust Lambda handler code against AWS official best practices.
The user should provide their handler code in $ARGUMENTS or paste it in the conversation.
If no code is provided, ask the user to share their main.rs or handler file.
Evaluate the code against each of the following categories. For each issue found, show the problematic code and suggest the corrected version.
async fn for the handlerservice_fn inside main()#[tokio::main] macro is present on main()run(service_fn(function_handler)).awaitasync fn name(event: LambdaEvent<T>) -> Result<U, Error>U implements serde::Serializemoveenv::var()env::var() errors are handled gracefully (not unwrapped without a message).unwrap() on fallible operations in production paths? operator is used to propagate errorsErr(Error) — they will be logged to CloudWatch automaticallyprintln! (basic) or tracing crate (recommended for structured logs)tracing: subscriber is initialized in main() before run()info for normal flow, error for failures).with_ansi(false).without_time()lambda_http crate for unified HTTP support (preferred over manual ApiGatewayProxyResponse)lambda_runtime separately when using lambda_httpaws_lambda_events to reduce compilation timeCargo.toml specifies correct edition--runtime provided.al2023Provide:
/rust-lambda:build if ready, or list items to fix first