File contents Code Quality Skill
Review Criteria
1. Correctness
2. Readability
3. Security
4. Performance
5. Maintainability
Common Issues
Security
// ❌ BAD: SQL injection
db.query(`SELECT * FROM users WHERE id = ${req.params.id}`);
// ✅ GOOD: Parameterized query
db.query('SELECT * FROM users WHERE id = $1', [req.params.id]);
// ❌ BAD: XSS
html = `<div>${userInput}</div>`;
// ✅ GOOD: Escaped
html = `<div>${escapeHtml(userInput)}</div>`;
Performance
// ❌ BAD: N+1 queries
for (const user of users) {
user.posts = await db.query('SELECT * FROM posts WHERE user_id = $1', [user.id]);
}
// ✅ GOOD: Single query
const posts = await db.query('SELECT * FROM posts WHERE user_id = ANY($1)', [userIds]);
Readability
// ❌ BAD: Unclear names
const d = new Date();
const x = u.map(i => i.n);
// ✅ GOOD: Clear names
const currentDate = new Date();
const userNames = users.map(user => user.name);
Code Review Checklist
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: dhamija-claude-workflow-agents-code-quality 3 description: Code Quality Skill 4 --- 5 6 # Code Quality Skill 7 8 ## Review Criteria 9 10 ### 1. Correctness 11 - [ ] Logic is correct 12 - [ ] Edge cases handled 13 - [ ] No obvious bugs 14 - [ ] Tests pass 15 16 ### 2. Readability 17 - [ ] Clear variable/function names 18 - [ ] Appropriate comments 19 - [ ] Consistent formatting 20 - [ ] Reasonable complexity 21 22 ### 3. Security 23 - [ ] No SQL injection 24 - [ ] No XSS vulnerabilities 25 - [ ] Secrets not in code 26 - [ ] Input validation present 27 - [ ] Authentication/authorization correct 28 29 ### 4. Performance 30 - [ ] No N+1 queries 31 - [ ] Appropriate caching 32 - [ ] No memory leaks 33 - [ ] Efficient algorithms 34 35 ### 5. Maintainability 36 - [ ] DRY (Don't Repeat Yourself) 37 - [ ] Single Responsibility 38 - [ ] Appropriate abstraction 39 - [ ] Tests included 40 41 ## Common Issues 42 43 ### Security 44 ```typescript 45 // ❌ BAD: SQL injection 46 db.query(`SELECT * FROM users WHERE id = ${req.params.id}`); 47 48 // ✅ GOOD: Parameterized query 49 db.query('SELECT * FROM users WHERE id = $1', [req.params.id]); 50 51 // ❌ BAD: XSS 52 html = `<div>${userInput}</div>`; 53 54 // ✅ GOOD: Escaped 55 html = `<div>${escapeHtml(userInput)}</div>`; 56 ``` 57 58 ### Performance 59 ```typescript 60 // ❌ BAD: N+1 queries 61 for (const user of users) { 62 user.posts = await db.query('SELECT * FROM posts WHERE user_id = $1', [user.id]); 63 } 64 65 // ✅ GOOD: Single query 66 const posts = await db.query('SELECT * FROM posts WHERE user_id = ANY($1)', [userIds]); 67 ``` 68 69 ### Readability 70 ```typescript 71 // ❌ BAD: Unclear names 72 const d = new Date(); 73 const x = u.map(i => i.n); 74 75 // ✅ GOOD: Clear names 76 const currentDate = new Date(); 77 const userNames = users.map(user => user.name); 78 ``` 79 80 ## Code Review Checklist 81 82 - [ ] Code solves the problem 83 - [ ] No security vulnerabilities 84 - [ ] Performance is acceptable 85 - [ ] Code is readable 86 - [ ] Tests are comprehensive 87 - [ ] Documentation updated 88 - [ ] No commented-out code 89 - [ ] No console.logs in production 90 91 --- 92 > Converted and distributed by [TomeVault](https://tomevault.io/claim/dhamija) — claim your Tome and manage your conversions. 93 <!-- tomevault:4.0:skill_md:2026-04-14 -->
tomevault-io/skills-registry/tree/main/dhamija--claude-workflow-agents--code-quality commit 046ff1ee36
Frequently asked questions How do I install the Dhamija Claude Workflow Agents Code Quality skill? Run npx skillmds@latest add tomevault-io/dhamija-claude-workflow-agents-code-quality in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Dhamija Claude Workflow Agents Code Quality skill do? Code Quality Skill It is listed under Productivity on SkillMD.
Is Dhamija Claude Workflow Agents Code Quality safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Dhamija Claude Workflow Agents Code Quality? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Dhamija Claude Workflow Agents Code Quality free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Dhamija Claude Workflow Agents Code Quality? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.