pma-rust
Rust Project Implementation Guide
Use this skill together with /pma. /pma controls workflow, approval, and task tracking; this guide defines the implementation baseline after approval.
Keep this entry file small. Load only the reference packs needed for the task.
Scope
For PMA-managed Rust workspace projects, especially services and CLIs built from multiple crates.
Not for ad hoc one-file Rust examples, embedded targets, or non-PMA workflows.
Loading Order
- Always load
references/baseline.mdfirst. - Load
references/toolchain-and-workspace.mdfor workspace structure, Cargo defaults, toolchain pinning, lint setup, and common crate conventions. - Load
references/runtime-and-data.mdfor error handling, architecture, Axum, Diesel, SQLx, config loading, and signal handling. - Load
references/delivery.mdfor security, logging, observability, testing, CI, and Git workflow.
Quick Routing
- New workspace or crate layout:
references/toolchain-and-workspace.md - Axum services, config layering, DB access, signal handling:
references/runtime-and-data.md - security review, telemetry, testing, CI, release readiness:
references/delivery.md - default stack, quality gates, naming, core conventions:
references/baseline.md
Reference Packs
references/baseline.mdScope, stack defaults, quality gates, naming, and core code quality expectations.references/toolchain-and-workspace.mdWorkspace layout,Cargo.toml, toolchain pinning, compiler flags, and lint configuration.references/runtime-and-data.mdError handling, architecture patterns, database strategy, config layering, Axum runtime, and shutdown.references/delivery.mdSecurity, logging, observability, testing, CI, and Git conventions.
If the repository has already chosen a different path, keep that choice explicit and apply it consistently across code, scripts, docs, and CI.
More from zzci/skills
pma
Project development lifecycle management with a strict three-phase workflow (investigate -> proposal -> implement), file-based plan tracking in docs/plan/, task tracking in docs/task/, and claim-before-work multi-agent coordination. Use when handling feature development, bug fixes, refactors, planning, progress tracking, or multi-agent execution in an existing codebase. English-first for repository docs and remote-visible metadata; use Chinese docs only when the user explicitly requests a specific document in Chinese.
116pma-web
Frontend implementation guide for PMA-managed React 19 + TypeScript + Vite 8 SPA projects. Defaults to a single-app layout (the right choice for a Rust/Go service that ships a UI); promotes to a Bun monorepo only when multiple apps or shared packages exist. UI is hard-locked to shadcn/ui (base-nova) + `@base-ui/react` — Radix and other UI ecosystems (MUI / Mantine / Chakra / Ant Design / Headless UI / Ariakit / NextUI / …) are forbidden. Covers required quality gates, file-based type-safe routing with TanStack Router, state conventions (TanStack Query + Zustand), Tailwind CSS v4 patterns, Vitest 4 testing, dual-channel theming, i18n, nsl-based dev integration with backend services, and delivery rules for frontend applications.
108bkd
Operate a BKD kanban board over its REST API. Use when the user wants to manage BKD projects, issue execution workflows, cron jobs, or execution capacity through a reachable BKD server.
93pma-cr
Stack-aware review for local diffs, pull requests, and repository-wide audits. Routes review across shared policy plus language packs for TypeScript frontend, TypeScript backend/Bun, Go, Rust, and Python. Use after implementation, before merge, or when auditing an existing codebase.
91pma-go
Go implementation guide for PMA-managed service and CLI projects. Covers project layout (cmd/internal), strict linting with golangci-lint v2, database access (sqlc + pgx or GORM), HTTP patterns (stdlib + Chi or Gin), layered config with koanf, structured logging with slog, OpenTelemetry observability, and CI quality gates.
91pma-bun
Bun implementation guide for PMA-managed backend services. Defaults to a single-API-project layout; promotes to a Bun monorepo only when multiple deployable apps or shared packages exist. Covers API modules under `src/modules`, strict linting with ESLint + @antfu/eslint-config, Drizzle over SQLite-first storage, OpenAPIHono on top of `Bun.serve()`, validated env config, nsl-based dev URL routing (paired with `pma-web`), standalone binary compilation with embedded assets and migrations, and CI quality gates.
90