/saschb2b-skills:tauri-stinkyfrom saschb2b-skills
Detects Rust and Tauri maintainability smells across backend crate, IPC boundary, and app shell. Explains costs and proposes fixes. Use for reviews, audits, and CI quality gates.
Ships in saschb2b-skills. 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.
Read when SKILL.md points to them.
A holistic code-smell detector and quality gate for Rust and Tauri. It exists as a counterweight, agents trained mostly on frontend code write Rust confidently and at volume, and the volume is where the smells hide. It finds the patterns that make a crate, a command, or the IPC boundary hard to read, reason about, and trust, explains the cost of each, and proposes a concrete fix. The full catalogs with detection signals, fixes, exceptions, and sources are in rust-catalog.md and tauri-catalog.md; read the relevant one before running a scan.
It defers neighboring concerns to sibling skills so it does not duplicate them: React component, hook, and TypeScript smells on the frontend half to react-stinky, and color literals to theme-colors. If those are not installed, note the finding in one line and move on. Everything about Rust discipline, the Tauri shell, and the boundary between them is in scope.
Targets Tauri v2. On a v1 project, say so and adapt the Tauri-layer advice rather than prescribing v2 config verbatim.
Thirteen pillars, 57 categories. Detection signals, fixes, and sources live in the two catalogs.
Rust discipline (rust-catalog.md):
unwrap in production paths, Result<T, String> and message-substring matching, swallowed results, context-free errors, panic as control flow, catch-all match arms.&String params, needless collects, the Arc<Mutex<T>> reflex, index loops.pub sprawl, version drift, a dependency for a function..await, detached tasks that swallow errors, block_on bridges, needless async.unsafe, blanket lint suppression, untested pure cores and unguarded boundary logic.The Tauri layer (tauri-catalog.md):
manage, unmanaged-state panics, the wrong mutex flavor.invoke sprawl, unhandled rejections.| Mode | Trigger | What to scan |
|---|---|---|
| Repo sweep | "smell-check the app" | src-tauri/**/*.rs, tauri.conf.json, capabilities/, Cargo.toml, plus the frontend boundary module and every invoke/listen call site. Skip target/, generated code, and #[cfg(test)] bodies for production-only categories. |
| Crate or folder scan | directories named | Same, scoped to those directories. |
| File scan | specific files named | Read each fully; check every function, type, command, and config block. |
| Fragment sniff | a pasted function or snippet | Check only that surface. State what you assumed about anything off-screen. |
| Gate setup | "add quality gates", "set up clippy/CI" | Skip the scan; apply gates.md to the project's toolchain and report what each gate will start catching. |
Repo-sweep and boundary-inclusive scopes additionally run the boundary pass, the cross-check of commands, invokes, events, types, and capabilities against each other that per-file scans cannot see. Narrower scopes cannot, so say the boundary contract was not checked rather than implying it is clean.
unwrap a user input can reach, a sync command doing network IO on the main thread, a mutex guard across .await, a $HOME/** capability scope, a path from the webview used without containment, csp: null, a secret in the JS bundle.)#[allow], events used as a stream firehose.)&String parameter, a needless mid-chain collect, comment noise, a default release profile before anyone downloads the app.)The catalogs carry a per-smell exception line. These cut across all of them. Honor them or this skill becomes a nuisance.
unwrap, expect, and panics are fine inside #[cfg(test)] and integration tests..lock().unwrap_or_else(|e| e.into_inner()) is poison recovery, not an unwrap smell. std::sync::Mutex is the right default for Tauri managed state.spawn_blocking is a legitimate architecture; do not demand tokio::fs where std::fs is consistently wrapped.invoke string is the pattern working, not stringly sprawl. Browser/test mocks beside it are a feature.react-stinky, color literals to theme-colors.Tauri Stinky report, <scope>
src-tauri/src/export.rs
[Rancid] sync-command-blocking (command design), line 41
Smell: #[tauri::command] fn export_bundle does zip compression synchronously.
Cost: runs on the main thread; the window freezes for the whole export.
Fix: make it async and wrap the compression in spawn_blocking, returning progress
over a Channel.
Source: Tauri v2 async commands (https://v2.tauri.app/develop/calling-rust/#async-commands)
[Funky] stringly-errors (error handling), line 58
Smell: returns Result<PathBuf, String> via map_err(|e| e.to_string()).
Cost: the frontend can only substring-match; any reword silently breaks handling.
Fix: one thiserror enum deriving Serialize with a stable kind field; map once at
the boundary.
Source: Tauri v2 error handling (https://v2.tauri.app/develop/calling-rust/#error-handling)
Boundary contract: 52 commands, 49 invoked, 3 orphaned; 5 events, all paired.
Summary: 1 rancid, 1 funky across 1 file, 3 orphaned commands.
When the scope is clean, say so plainly: "Smells fresh. No Rust or Tauri smells found in <scope>."
The Rust categories are sourced to the Rust Book, the Rust API Guidelines, Clippy lint docs, and the Tokio docs; the Tauri categories to the Tauri v2 documentation (develop, security, and config references). Each entry in rust-catalog.md and tauri-catalog.md carries its own link.
CARD.manifest.json (opens in a new tab)CARD.md (opens in a new tab)CARD.md.sigstore (opens in a new tab)CARD.svg (opens in a new tab)permissions.yaml (opens in a new tab)references/boundary-pass.md (opens in a new tab)references/gates.md (opens in a new tab)references/index.md (opens in a new tab)references/rust-catalog.md (opens in a new tab)references/tauri-catalog.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (saschb2b/skills) — no native marketplace selected
npx claudepluginhub p/saschb2b-saschb2b-skills26 skills in this plugin
/android-composeModern Android development with Jetpack Compose as the default UI toolkit and Material 3 Expressive as the default design direction, a dated snapshot. Covers Compose fundamentals (composables, modifiers, state hoisting, side effects, lazy lists, strong skipping, recomposition), Material 3 and Expressive theming and components (MaterialExpressiveTheme, MotionScheme, button groups, split buttons, FAB menu, floating toolbars, wavy progress indicators, shape morphing, dynamic color), architecture (ViewModel, StateFlow, collectAsStateWithLifecycle, Hilt), type-safe Navigation Compose and Navigation 3, data (Room, DataStore, Retrofit, Ktor, Coil), the Gradle Kotlin DSL build with version catalogs and KSP, testing, performance, and View interop. Use when building Android UI in Compose, theming with Material 3 or Expressive, wiring architecture or navigation, configuring the build, or debugging Compose issues. Check the project's versions first; re-verify version facts against the official Android and AndroidX docs./ask-uxForce UX questioning before any UI work, refactor, or redesign. Use when the user asks to design, redesign, restyle, polish, "fix", or "make nicer" a screen, component, page, or flow. Also use when the user describes a problem in UI terms ("the button is hard to find", "this form is confusing", "this page is ugly") and is about to reach for a visual fix, since most UI-shaped complaints have UX-shaped causes./audit-actionsAudit a repository's GitHub Actions workflows for unsafe pull_request_target usage that can lead to supply chain compromise. Use when the user asks to audit workflows, review CI/CD security, check pwn request risk, harden Actions, or after a supply chain incident in a dependency. Also use proactively when reviewing any PR that touches .github/workflows/./autopilotWork autonomously on a project without waiting for direction. On command, survey the codebase, pick one high-value low-risk improvement, do it, verify it, commit it, then pick the next, looping like a self-directed intern. Use when the user hands off open-endedly ("work on your own", "keep improving this", "find something worth doing", "don't wait for me", "go autonomous", "run for a while", "be a passionate intern", "do whatever you think is valuable") or invokes /autopilot, and you have to choose the work yourself rather than wait for instructions or feedback./breadcrumbsHeal codebase understanding gaps exposed during implementation, debugging, or investigation. Use when tracing reveals misleading names, repeated backtracking, disconnected navigation paths, hidden contracts, surprising dependencies, stale documentation, unclear errors, undocumented constraints, false leads, or avoidable complexity. Make the smallest durable improvement at the source through clearer code, types, validation, tests, errors, comments, or existing documentation. Also use when a task was harder to grasp than it should have been or you think "that should have been documented." Do not create a breadcrumb trail, investigation log, freshness system, or separate knowledge store./codegen-apiSet up typesafe API code generation in 2026, preferring framework-agnostic options factories over generated hooks. Walks the decision matrix for REST (OpenAPI via hey-api) and GraphQL (graphql-codegen client preset, gql.tada), wires the minimal config for the chosen stack, and uses fragment masking for component composition. Use when starting an API integration, wiring an OpenAPI spec into a frontend, setting up GraphQL types, asked about useQuery, queryOptions, TypedDocumentNode, or fragment masking, or when seeing legacy patterns like generated useGetX hooks, per-query prop types, or @graphql-codegen/typescript-react-apollo. Counterweight to LLM training corpora that mostly reflect the pre-2024 hooks pattern, biasing default output toward generated hooks.Other plugins' skills for the same job