perses-code-review
Perses Code Review
Review code changes in Perses repositories for domain-specific patterns, API conventions, plugin system compliance, and dashboard correctness. This skill enforces Perses-specific invariants across Go backend, React frontend, CUE schemas, and dashboard definitions — a passing golangci-lint or generic code review does not mean the code follows Perses conventions.
Instructions
Phase 1: CLASSIFY
Goal: Determine the review domains for this PR so you can apply the right checks to each file type.
-
List all changed files and categorize:
- Go backend (
.go) — files under/cmd,/pkg,/internal - React frontend (
.ts,.tsx) — files in@perses-dev/*packages - CUE schemas (
.cue) - Dashboard definitions (
.json,.yamlwithkind: Dashboard)
- Go backend (
-
Identify cross-domain changes, because schema and plugin changes must stay synchronized. When a PR touches both CUE schemas and plugin code, the schema changes must match the plugin's expected input/output types — a plugin PR that adds configuration options without updating the corresponding CUE schema leaves the schema registry out of sync, causing UI options to fail CUE validation or the backend to accept options the UI cannot expose. Flag these for paired review.
-
Flag dashboard definition files for
percli lintin Phase 2. Dashboard JSON can be structurally valid but semantically broken (invalid panel references, wrong plugin kinds, malformed variable expressions). Manual review catches some of these;percli lintcatches all of them deterministically.
More from notque/claude-code-toolkit
generate-claudemd
Generate project-specific CLAUDE.md from repo analysis.
12fish-shell-config
Fish shell configuration and PATH management.
12pptx-generator
PPTX presentation generation with visual QA: slides, pitch decks.
12codebase-overview
Systematic codebase exploration and architecture mapping.
10image-to-video
FFmpeg-based video creation from image and audio.
9data-analysis
Decision-first data analysis with statistical rigor gates.
9