code-quality-analysis
Code Quality Analysis Skill
Multi-mode code quality specialist with security review, clarity refactoring, and synthesis analysis.
Description
Comprehensive code quality analysis including security vulnerability detection, readability improvements, and cross-file issue synthesis.
What's Included
- Examples: Security reviews, refactoring patterns, quality improvements
- Reference: OWASP Top 10, code smells, refactoring catalog
- Templates: Code review templates, security audit structures
- Checklists: Quality verification, security compliance
Modes
- Security Review - Find vulnerabilities (OWASP Top 10)
- Clarity Refactoring - Improve readability (10 rules)
- Synthesis Analysis - Cross-file issues
- Domain Lens (DDD) - Flag mechanical naming, primitive obsession, and domain rules leaking into routes/components/stores; recommend value-object or branded-type promotions
- Duplication Lens (principled DRY) - Approve extraction only when the same domain concept repeats at ≥3 sites with the same meaning; reject premature DRY and accidental-similarity extractions
Use This Skill When
- Reviewing code for security issues
- Improving code readability
- Comprehensive quality audits
- Pre-deployment checks
Related Agents
code-quality-analyzer- Automated quality analysis
Skill Version: 1.2
More from greyhaven-ai/claude-code-config
grey-haven-creative-writing
Professional writing assistance for blogs, research articles, fiction, essays, and marketing copy. Use when users want to write, edit, or improve any form of written content. Triggers: 'write a blog', 'write an article', 'help me write', 'write a story', 'write a chapter', 'draft an essay', 'creative writing', 'improve my writing', 'edit my writing', 'write copy', 'content writing'.
139grey-haven-ontological-documentation
Create comprehensive ontological documentation for Grey Haven systems - extract domain concepts from TanStack Start and FastAPI codebases, model semantic relationships, generate visual representations of system architecture, and document business domains. Use when onboarding, documenting architecture, or analyzing legacy systems.
12grey-haven-smart-debugging
AI-powered intelligent debugging with stack trace analysis, error pattern recognition, and automated fix suggestions. Use when debugging complex errors, analyzing stack traces, or performing root cause analysis. Triggers: 'debug', 'error analysis', 'stack trace', 'root cause', 'troubleshooting'.
10grey-haven-code-style
Apply Grey Haven Studio's TypeScript/React and Python/FastAPI coding standards from production templates. Use when writing code, reviewing PRs, fixing linting errors, formatting files, or when the user mentions 'code standards', 'Grey Haven style', 'linting', 'Prettier', 'ESLint', 'Ruff', 'formatting rules', or 'coding conventions'. Includes exact Prettier/ESLint/Ruff configs, naming conventions, project structure, and multi-tenant database patterns.
10grey-haven-tdd-typescript
TypeScript/JavaScript Test-Driven Development with Vitest, strict red-green-refactor methodology, React component testing, and comprehensive coverage patterns. Use when implementing TypeScript features with TDD, writing Vitest tests, testing React components, developing with test-first approach, or when user mentions 'TypeScript TDD', 'Vitest', 'React testing', 'JavaScript TDD', 'red-green-refactor', 'TypeScript unit tests', or 'test-driven TypeScript'.
10grey-haven-project-scaffolding
Generate production-ready project scaffolds for Grey Haven stack with Cloudflare Workers, React + TypeScript, Python + Pydantic, PlanetScale, proper structure, and configuration. Use when starting new projects, creating microservices, setting up monorepo workspaces, initializing projects, or when user mentions 'new project', 'project scaffold', 'project template', 'project setup', 'bootstrap project', 'project starter', or 'initialize project'.
10