pattern-validation

Official

Automate code pattern validation, ensure consistency.

Authoralldigitalrewards
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Manually enforcing coding patterns, conventions, and best practices across a large codebase is time-consuming and prone to human error, leading to inconsistencies and technical debt. This skill automates the validation of code against Changemaker's established patterns.

Core Features & Use Cases

  • Comprehensive Code Checks: Validates UI components, API routes, pages, server actions, and code organization against predefined patterns.
  • Theme & Structure Enforcement: Ensures consistent theme application (e.g., coral-500), Next.js App Router conventions, and proper file naming.
  • DRY/YAGNI & Accessibility: Checks for code duplication, unnecessary complexity, and adherence to accessibility standards.
  • Use Case: After creating a new UI component, use this skill to validate it. It will check if the component uses shadcn/ui as a base, applies the Changemaker theme, follows naming conventions, and meets accessibility standards, providing a report on any violations and guiding you to maintain code quality.

Quick Start

Validate the new API route app/api/w/[slug]/challenges/route.ts. Check for proper auth checks, response format, and workspace context validation.

Dependency Matrix

Required Modules

serena

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: pattern-validation
Download link: https://github.com/alldigitalrewards/changemaker-minimal/archive/main.zip#pattern-validation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository