pma-web
Web Frontend Implementation Guide
Use this skill together with /pma. /pma controls workflow, approval, and task tracking; this guide defines the implementation baseline after work is approved.
Keep this entry file lean. Load only the reference packs needed for the current task.
Scope
For PMA-managed SPA and internal-tool frontend projects using:
- React 19 + TypeScript + Vite 8
- TanStack Router for file-based type-safe routing
- TanStack Query for server state
- Zustand for UI-only client state
- shadcn/ui (base-nova style) with
@base-ui/reactprimitives and Tailwind CSS v4 — this is the only allowed UI ecosystem; Radix UI and other component libraries are forbidden (seereferences/baseline.mdUI Library Policy)
Single-app layout is the default. Reach for a Bun monorepo only when the repo really hosts multiple apps or shared packages — a single SPA bolted onto a Rust or Go service does not need workspaces.
Not for SSR-first sites, content sites, or non-PMA projects.
Loading Order
- Always load
references/baseline.mdfirst. - Load
references/routing-and-ui.mdwhen touching route structure, providers, theming, Tailwind, or shadcn/ui. - Load
references/runtime-and-data.mdwhen touching API integration, query state, i18n, Vite config, or the frontend-side dev script. For the full nsl protocol (registration patterns,--strip,NSL_PORT, fallback) load/pma references/dev-environment.md. - Load
references/review.mdwhen touching release checks, tests, accessibility, or security-sensitive UI behavior.
Quick Routing
- New app setup or repo restructuring (single-app vs monorepo):
references/baseline.md - Router, layouts, providers, entrypoint, shadcn, Tailwind, theme:
references/routing-and-ui.md - HTTP client, query client, i18n, Vite config, frontend nsl invocation:
references/runtime-and-data.md(full nsl protocol →/pma references/dev-environment.md) - Lint, typecheck, build, test, accessibility, UI security review:
references/review.md
Reference Packs
references/baseline.mdStack defaults, quality gates, workspace layout, conventions, and baseline scripts.references/routing-and-ui.mdTanStack Router layout, provider composition, entry point, shadcn/ui, Tailwind v4, and theming.references/runtime-and-data.mdQuery client, HTTP layer, state boundaries, i18n, Vite config, and the frontend-side nsl invocation. Full nsl protocol lives in/pma references/dev-environment.md.references/review.mdVerification gates and the accessibility and security review checklist for UI changes.
If the project intentionally diverges from these defaults, keep the divergence explicit in the proposal and match the repository's existing patterns consistently.
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-rust
Rust implementation guide for PMA-managed multi-crate workspace projects. Covers workspace config, pinned stable toolchains, strict linting with clippy and cargo-cranky, async data access (Diesel-async or SQLx), Axum/Tokio service patterns, layered config with figment + clap, rustls-only TLS, OpenTelemetry observability, and CI quality gates.
94bkd
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