validator-role-skill
БесплатноБез исполняемых скриптовНе проверенProfessional software QA and code review skill for ensuring code quality, comprehensive test coverage, standards compliance, and security through rigorous…
Об этом скилле
Validator Role Skill
Description
Ensure code quality, comprehensive test coverage, standards compliance, and security through rigorous testing and review workflows. This skill implements professional QA practices including test creation, test execution, code review, coverage analysis, security assessment, and performance validation.
When to Use This Skill
- Validating pull requests before merge
- Creating comprehensive test suites (TDD support)
- Performing security assessments
- Analyzing test coverage and quality
- Executing regression testing after changes
- Reviewing code for quality and standards compliance
- Performance validation and benchmarking
When NOT to Use This Skill
- For production code implementation (use builder-role-skill)
- For infrastructure deployment (use devops-role-skill)
- For system design decisions (use architect-role-skill)
- For documentation generation (use scribe-role-skill)
Prerequisites
- Test framework configured (Jest, pytest, JUnit, etc.)
- Linting tools installed (ESLint, flake8, Clippy, etc.)
- Security scanning tools available (npm audit, safety, snyk)
- Coverage tools configured
- Git repository with pull request workflow
Workflow
Phase 1: Pre-Implementation Test Creation (TDD Support)
Support test-driven development by creating tests before implementation.
Step 1.1: Review Feature Specification
Load context files:
- DEVELOPMENT_PLAN.md (overall plan)
- ARCHITECTURE.md (design specs)
- IMPLEMENTATION_PLAN.md (implementation details)
Step 1.2: Create Test Specification
Generate TEST_PLAN.md with comprehensive test strategy:
# Test Plan: [Feature Name]
## Test Strategy
- Unit Test Coverage Target: 95%
- Integration Test Coverage: All public APIs
- E2E Test Coverage: Critical user paths
- Performance Benchmarks: [Specific targets]
## Test Categories
### Unit Tests
**Component**: [Name]
- Test 1: [Scenario] - Expected: [Result]
- Test 2: [Scenario] - Expected: [Result]
- Test 3: [Edge case] - Expected: [Error handling]
### Integration Tests
**Integration Point**: [Name]
- Test 1: [Interaction scenario]
- Test 2: [Data flow validation]
- Test 3: [Error propagation]
### End-to-End Tests
**User Journey**: [Name]
- Test 1: [Happy path]
- Test 2: [Alternate path]
- Test 3: [Error scenarios]
## Test Data Requirements
[Fixtures, mocks, test databases needed]
## Performance Criteria
- Response time: < [X]ms
- Throughput: > [Y] requests/sec
- Memory usage: < [Z]MB
## Security Test Cases
- [ ] Input validation
- [ ] SQL injection protection
- [ ] XSS prevention
- [ ] Authentication bypass attempts
- [ ] Authorization boundary tests
Step 1.3: Write Failing Tests First
// Example: Jest/JavaScript
describe('UserService', () => {
describe('createUser', () => {
it('should create user with valid data', async () => {
// Arrange
const userData = {
email: '[email protected]',
password: 'SecurePass123!'
};
// Act
const result = await userService.createUser(userData);
// Assert
expect(result).toHaveProperty('id');
expect(result.email).toBe(userData.email);
expect(result.password).not.toBe(userData.password); // hashed
});
it('should reject invalid email format', async () => {
// Arrange
const userData = {
email: 'invalid-email',
password: 'SecurePass123!'
};
// Act & Assert
await expect(userService.createUser(userData))
.rejects.toThrow('Invalid email format');
});
it('should reject weak password', async () => {
// Arrange
const userData = {
email: '[email protected]',
password: '123'
};
// Act & Assert
await expect(userService.createUser(userData))
.rejects.toThrow('Password does not meet security requirements');
});
});
});
Step 1.4: Handoff to Builder
---
TO: Builder (or use builder-role-skill)
FEATURE: [Feature Name]
TEST_SPEC: TEST_PLAN.md
TESTS_WRITTEN: [List of test files]
STATUS: Failing (as expected - TDD)
IMPLEMENTATION_REQUIRED:
Builder should implement code to make these tests pass.
VALIDATION_CRITERIA:
- All unit tests passing
- Coverage >= 95%
- No security warnings
---
Phase 2: Post-Implementation Validation
Validate code after implementation is complete.
Step 2.1: Receive Implementation Handoff
Load context files:
- IMPLEMENTATION_PLAN.md (what was built)
- PR description (change summary)
- Modified files list (scope of changes)
Step 2.2: Execute Comprehensive Test Suite
# Run all tests
npm test || pytest || mvn test || cargo test
# Generate coverage report
npm run coverage || pytest --cov --cov-report=html || mvn jacoco:report
# Run linter
npm run lint || flake8 || mvn checkstyle:check || cargo clippy
# Run security scan
npm audit || safety check || mvn dependency-check:check || cargo audit
**S
Установить validator-role-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл validator-role-skill?
Professional software QA and code review skill for ensuring code quality, comprehensive test coverage, standards compliance, and security through rigorous testing and validation workflows.
Как установить скилл validator-role-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл validator-role-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic