Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Code Quality Testing

ASecurity

Write clean, runnable, tested code and execute unit/integration test

3 stars
0 votes
0 copies
0 views
Added 9/20/2026
code-qualitypythongoreacttestingdebuggingrefactoringapisecurity

Works with

cursorapi

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add ruskicoder/system-prompts --skill code-quality-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Quality Testing?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Code Quality Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ruskicoder-code-quality-testing-d4e96568/badge)](https://www.skillsdirectory.com/skills/ruskicoder-code-quality-testing-d4e96568)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: code-quality-testing
description: Write clean, runnable, tested code and execute unit/integration test
  suites and linter passes. Trigger with "run tests", "fix test failure", "add unit
  tests", or when debugging root causes, verifying immediate code runnability, or
  enforcing coding standards.
argument-hint: <test command or test target>
---

<!-- Generated from skills/code-quality-testing.md by tools/generate_integrations.py. Edit the source file, not this one. -->

# Skill: Code Quality & Testing

## Purpose
Write clean, correct, well-tested code through systematic quality practices. _Source: Cursor (Category A)_

## Tools Required
- Linter/analyzer tools
- Test framework commands
- Code execution tools

## General Principles
- Code must be immediately runnable — all imports, deps, endpoints included _Source: Qoder (Category E)_
- Write minimal code — only what's needed for the task, nothing extra _Source: Cursor (Category E)_
- Follow existing codebase conventions (style, patterns, libraries) _Source: Aider (Category E)_
- Prefer simple solutions — don't overengineer _Source: Cursor (Category E)_
- Verify before presenting — test your code _Source: Cursor (Category E)_

## Immediately Runnable Code

### Checklist Before Presenting
- [ ] All imports/requires are present _Source: Aider (Category Q)_
- [ ] All referenced variables/functions are defined
- [ ] Dependencies listed in package manifest
- [ ] No syntax errors (proper brackets, semicolons, indentation) _Source: Kiro (Category Q)_
- [ ] Type definitions match usage _Source: Amp (Category E)_
- [ ] API endpoints exist and match _Source: Cursor (Category E)_

### Web Apps
- Give beautiful, modern UI (Windsurf rule) _Source: Windsurf (Category E)_
- Use responsive design (Lovable rule) _Source: Lovable (Category E)_
- shadcn/ui + Tailwind default stack (Lovable rule) _Source: Lovable (Category E)_
- lucide-react for icons, recharts for charts _Source: Lovable (Category Q)_

## Testing Practices

### Unit Tests
- Test core logic and edge cases _Source: Cursor (Category E)_
- One test file per source module _Source: Cursor (Category E)_
- Test both success and failure paths _Source: Augment (Category E)_
- Mock external dependencies _Source: Cursor (Category E)_

### Integration Tests
- Test component interactions
- Test data flow through layers
- Test API endpoints end-to-end

### Running Tests
- After making changes, run relevant tests _Source: Cursor (Category E)_
- Don't commit if tests fail _Source: Cursor (Category E)_
- Fix test failures before marking task complete _Source: Cursor (Category E)_

## Debugging (Windsurf pattern)
- Address root cause, not symptoms _Source: Codex (Category E)_
- Add descriptive logging before trying fixes _Source: Windsurf (Category F)_
- Use test functions to isolate problem
- Only make changes when you're certain of the fix _Source: Windsurf (Category F)_
- If uncertain, gather more data first _Source: Windsurf (Category F)_

```python
# Debugging workflow
1. Observe symptom (error message, wrong output)
2. Gather data (logs, state, inputs)
3. Form hypothesis about root cause
4. Add targeted logging to confirm
5. Apply minimal fix
6. Verify fix resolves the symptom
```

## Error Handling Philosophy
- For prototypes/rapid dev: let errors bubble up (Lovable pattern) — they'll surface for AI to fix _Source: Lovable (Category G)_
- For production: proper try/catch with meaningful error messages _Source: Amp (Category E)_
- Never expose stack traces to end users _Source: Amp (Category G)_
- Log errors for debugging without leaking sensitive data _Source: Warp (Category G)_

## Linter Integration (Cursor pattern)
- After editing a file, check linter results _Source: Cursor (Category E)_
- Fix introduced errors (max 3 cycles per file) _Source: Cursor (Category E)_
- Don't make uneducated guesses to fix lint errors _Source: Cursor (Category E)_
- If stuck after 3 cycles, present to user with what you know _Source: Cursor (Category E)_

## Code Review Before Presenting
- [ ] Does it match the requirement? _Source: Cursor (Category E)_
- [ ] Is it the minimal implementation? _Source: Cursor (Category E)_
- [ ] Are there edge cases not handled? _Source: Augment (Category E)_
- [ ] Does it follow codebase conventions? _Source: Aider (Category E)_
- [ ] Are there security concerns? _Source: Kiro (Category G)_
- [ ] Is it readable and maintainable? _Source: Factory (Category A)_

## Refactoring
- Small, focused commits _Source: Factory (Category E)_
- One concern per change _Source: Factory (Category E)_
- Don't mix refactoring with feature work _Source: Amp (Category E)_
- Preserve existing behavior during refactoring _Source: Orchids (Category E)_
- Add tests before refactoring if coverage is lacking _Source: Cursor (Category E)_

Attribution

ruskicoderruskicoder
View sourceMore from ruskicoder →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman Review

Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.

1023331 votes

Caveman Commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.

1023331 votes

Verification Loop

一个全面的 Claude Code 会话验证系统。

2456590 votes

Springboot Verification

Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.

2456590 votes

Django Verification

Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.

2456590 votes
View all in code-quality →