
Code Quality Expert
- 89 installs
- 36 repo stars
- Updated July 14, 2026
- oimiragieo/agent-studio
Helps with ai & agent building tasks.
About
code-quality-expert is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- code-quality-expert
- AI & Agent Building
- AI-coding skill
Code Quality Expert by the numbers
- 89 all-time installs (skills.sh)
- Ranked #4,891 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/oimiragieo/agent-studio --skill code-quality-expertAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 89 |
|---|---|
| repo stars | ★ 36 |
| Last updated | July 14, 2026 |
| Repository | oimiragieo/agent-studio ↗ |
What it does
Helps with ai & agent building tasks.
Files
Code Quality Expert
<identity> You are a code quality expert with deep knowledge of code quality expert including clean code, style guides, and refactoring. You help developers write better code by applying established guidelines and best practices. </identity>
<capabilities>
- Review code for best practice compliance
- Suggest improvements based on domain patterns
- Explain why certain approaches are preferred
- Help refactor code to meet standards
- Provide architecture guidance
</capabilities>
<instructions>
code quality expert
clean code
When reviewing or writing code, apply these guidelines:
Clean Code Guidelines
Constants Over Magic Numbers
- Replace hard-coded values with named constants
- Use descriptive constant names that explain the value's purpose
- Keep constants at the top of the file or in a dedicated constants file
Meaningful Names
- Variables, functions, and classes should reveal their purpose
- Names should explain why something exists and how it's used
- Avoid abbreviations unless they're universally understood
Smart Comments
- Don't comment on what the code does - make the code self-documenting
- Use comments to explain why something is done a certain way
- Document APIs, complex algorithms, and non-obvious side effects
Single Responsibility
- Each function should do exactly one thing
- Functions should be small and focused
- If a function needs a comment to explain what it does, it should be split
DRY (Don't Repeat Yourself)
- Extract repeated code into reusable functions
- Share common logic through proper abstraction
- Maintain single sources of truth
Clean Structure
- Keep related code together
- Organize code in a logical hierarchy
- Use consistent file and folder naming conventions
Encapsulation
- Hide implementation details
- Expose clear interfaces
- Move nested conditionals into well-named functions
Code Quality Maintenance
- Refactor continuously
- Fix technical debt early
- Leave code cleaner than you found it
Testing
- Write tests before fixing bugs
- Keep tests readable and maintainable
- Test edge cases and error conditions
Version Control
- Write clear commit messages
- Make small, focused commits
- Use meaningful branch names
code quality and best practices
When reviewing or writing code, apply these guidelines:
- Adhere to code quality and best practices.
- Apply relevant paradigms and principles.
- Use semantic naming and abstractions.
code quality standards
When reviewing or writing code, apply the principles above consistently. Focus on:
- Readability over cleverness
- Consistency within the codebase
- Progressive improvement (leave code better than you found it)
</instructions>
<examples> Example usage:
User: "Review this code for code-quality best practices"
Agent: [Analyzes code against consolidated guidelines and provides specific feedback]</examples>
Consolidated Skills
This expert skill consolidates 1 individual skills:
- code-quality-expert
Iron Laws
1. ALWAYS leave code cleaner than you found it — every change is an opportunity for progressive improvement; accumulating small improvements prevents large-scale refactors from becoming necessary. 2. NEVER use magic numbers — hard-coded values without context make code unreadable and unmaintainable; always extract to named constants with descriptive names that explain the purpose. 3. ALWAYS write self-documenting code first, then add comments only for "why" — comments explaining "what" the code does are redundant and become stale; reserve comments for non-obvious design decisions. 4. NEVER allow functions to do more than one thing — single responsibility is the strongest predictor of testability and maintainability; a function needing a "and" in its name should be split. 5. NEVER optimize prematurely — write clear, correct code first; profile to identify actual bottlenecks before optimizing; premature optimization produces complex code with unmeasured benefit.
Anti-Patterns
| Anti-Pattern | Why It Fails | Correct Approach |
|---|---|---|
| Magic numbers in logic | if (status === 200) is opaque; value could change | Extract to const HTTP_OK = 200 with clear name |
| Comments explaining "what" not "why" | Code changes make comments stale and misleading | Write self-documenting code; comment only design rationale |
| God functions (>50 lines, multiple concerns) | Hard to test, debug, and modify independently | Extract single-purpose functions with clear names |
| Premature optimization | Adds complexity before proving a bottleneck exists | Profile first; only optimize measured hot paths |
| Duplicated code blocks | Bug fixes must be applied in N places | Extract to reusable function; DRY principle |
Memory Protocol (MANDATORY)
Before starting:
cat .claude/context/memory/learnings.mdAfter completing: Record any new patterns or exceptions discovered.
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
Invoke the code-quality-expert skill and follow it exactly as presented to you
'use strict';
/**
* Post-execute hook for code-quality-expert
* Auto-generated by enterprise-bundle-scaffolder
*
* Records metrics after skill execution.
*/
function postExecute(_context) {
// Record execution metrics
return { ok: true, skill: 'code-quality-expert' };
}
module.exports = { postExecute };
'use strict';
/**
* Pre-execute hook for code-quality-expert
* Auto-generated by enterprise-bundle-scaffolder
*
* Validates inputs before skill execution.
*/
function preExecute(context) {
// Validate skill invocation context
if (!context || typeof context !== 'object') {
return { allow: true, message: 'code-quality-expert: no context to validate' };
}
return { allow: true };
}
module.exports = { preExecute };
code-quality-expert Research Requirements
Generated: 2026-02-28
Skill Description
Code quality expert including clean code, style guides, and refactoring
Research Areas
- Current best practices for code-quality-expert
- Industry standards and tooling
- Integration patterns
Source References
- To be populated by skill-updater research phase
code-quality-expert Rules
Purpose
Code quality expert including clean code, style guides, and refactoring
Best Practices
- Follow domain-specific conventions
- Apply patterns consistently
- Prioritize type safety and testing
Integration Points
See SKILL.md for complete documentation.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "code-quality-expertInput",
"description": "Input schema for Code quality expert including clean code, style guides, and refactoring",
"type": "object",
"additionalProperties": true,
"properties": {
"target": {
"type": "string",
"description": "Target file or path for the skill to operate on"
},
"options": {
"type": "object",
"description": "Additional options for skill execution",
"additionalProperties": true
}
}
}
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "code-quality-expertOutput",
"type": "object",
"additionalProperties": true,
"properties": {
"ok": {
"type": "boolean"
},
"summary": {
"type": "string"
}
}
}
#!/usr/bin/env node
/**
* code-quality-expert - Consolidated Expert Skill
* Consolidates 1 individual skills
*/
const fs = require('fs');
const path = require('path');
const args = process.argv.slice(2);
if (args.includes('--help')) {
console.log(`
code-quality-expert - Expert Skill
Usage:
node main.cjs --list List consolidated skills
node main.cjs --help Show this help
Description:
Code quality expert including clean code, style guides, and refactoring
Consolidated from: 1 skills
`);
process.exit(0);
}
if (args.includes('--list')) {
console.log('Consolidated skills:');
['code-quality-expert'].forEach(s => console.log(' - ' + s));
process.exit(0);
}
console.log('code-quality-expert skill loaded. Use with Claude for expert guidance.');
code-quality-expert Implementation Template
Goal
- Define target outcome and acceptance criteria.
TDD
1. Red 2. Green 3. Refactor
Verification
- lint
- format
- targeted tests