skills/ballee/code-quality-tools/SKILL.md
Automated code quality fixes for linting, types, unused variables, and error handling; use when fixing code quality issues in bulk
npx skillsauth add javeedishaq/ai-workflow-orchestrator code-quality-toolsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill when:
any typesLocation: .claude/skills/code-quality-tools/scripts/
| Script | Description |
|--------|-------------|
| fix-any-types.sh | Replace any types with proper types |
| fix-lint-comprehensive.sh | Comprehensive lint fixes |
| fix-unused-vars.sh | Remove unused variables |
| fix-service-errors.sh | Fix service error patterns |
| fix-service-error-calls.py | Python script for service error fixes |
| validate-error-handling.sh | Validate error handling patterns |
| optimize-images.sh | Optimize image assets |
# Fix all lint issues
./.claude/skills/code-quality-tools/scripts/fix-lint-comprehensive.sh
# Remove unused variables
./.claude/skills/code-quality-tools/scripts/fix-unused-vars.sh
# Validate error handling
./.claude/skills/code-quality-tools/scripts/validate-error-handling.sh
# 1. Fix lint issues
./.claude/skills/code-quality-tools/scripts/fix-lint-comprehensive.sh
# 2. Remove unused vars
./.claude/skills/code-quality-tools/scripts/fix-unused-vars.sh
# 3. Run pnpm quality
pnpm quality
./.claude/skills/code-quality-tools/scripts/optimize-images.sh
tools
# Test Patterns Testing patterns for reliable, maintainable, and fast tests. > **Template Usage:** Customize for your test framework (Vitest, Jest, Playwright, etc.) and assertion library. ## Test Structure ```typescript // user.test.ts import { describe, it, expect, beforeEach, afterEach } from 'vitest'; import { userService } from '@/services/user.service'; import { createTestUser, cleanupTestData } from '@/tests/helpers'; describe('UserService', () => { let testUserId: string; befor
tools
# State Management Patterns Client-side state management patterns for modern applications. > **Template Usage:** Customize for your state library (React Query, Zustand, Jotai, Redux, etc.). ## State Categories | Type | Description | Solution | |------|-------------|----------| | **Server State** | Data from API/database | React Query, SWR | | **Client State** | UI state, user preferences | Zustand, Jotai, useState | | **Form State** | Form inputs, validation | React Hook Form, Formik | | **U
development
# Service Patterns Service layer patterns for clean architecture with proper error handling, logging, and type safety. > **Template Usage:** Customize for your ORM (Prisma, Drizzle, TypeORM, etc.) and logging solution. ## Result Type Pattern Never throw exceptions from services. Always return a Result type. ```typescript // lib/result.ts export type Result<T, E = Error> = | { success: true; data: T } | { success: false; error: E }; export function ok<T>(data: T): Result<T, never> { r
testing
# Row-Level Security Patterns Database security patterns for multi-tenant and user-scoped data. > **Template Usage:** Customize for your database (PostgreSQL, Supabase, etc.) and auth system. ## RLS Fundamentals ### Enable RLS on Tables ```sql -- Enable RLS (required before policies take effect) ALTER TABLE users ENABLE ROW LEVEL SECURITY; ALTER TABLE posts ENABLE ROW LEVEL SECURITY; ALTER TABLE comments ENABLE ROW LEVEL SECURITY; -- Force RLS for table owners too (recommended) ALTER TABLE