Claude-skill-registry fullstack-testing
Fullstack testing - unit, integration, E2E, coverage
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/fullstack-testing" ~/.claude/skills/majiayu000-claude-skill-registry-fullstack-testing && rm -rf "$T"
manifest:
skills/data/fullstack-testing/SKILL.mdsource content
Fullstack Testing Skill
Atomic skill for testing including unit tests, integration tests, and E2E tests.
Responsibility
Single Purpose: Write and manage tests for fullstack applications
Actions
write_unit_test
write_unit_testWrite unit tests for a component or function.
// Input { action: "write_unit_test", test_framework: "vitest", target: "src/services/user.service.ts" } // Output { success: true, test_code: "describe('UserService', () => {...})", files: [ { path: "src/services/user.service.test.ts", content: "..." } ], coverage: { statements: 85, branches: 80, functions: 90, lines: 85 } }
write_integration_test
write_integration_testWrite integration tests for API endpoints.
write_e2e_test
write_e2e_testWrite E2E tests for user flows.
analyze_coverage
analyze_coverageAnalyze test coverage and identify gaps.
Validation Rules
function validateParams(params: SkillParams): ValidationResult { if (!params.action) { return { valid: false, error: "action is required" }; } if (params.action !== 'analyze_coverage' && !params.target) { return { valid: false, error: "target required for test writing" }; } return { valid: true }; }
Error Handling
| Error Code | Description | Recovery |
|---|---|---|
| TARGET_NOT_FOUND | Test target not found | Verify file path |
| FRAMEWORK_UNSUPPORTED | Test framework not supported | Check supported frameworks |
| COVERAGE_BELOW_THRESHOLD | Coverage below target | Add more tests |
| FLAKY_TEST_DETECTED | Test is non-deterministic | Fix race condition |
Logging Hooks
{ "on_invoke": "log.info('fullstack-testing invoked', { action, target })", "on_success": "log.info('Test created', { files, coverage })", "on_error": "log.error('Testing skill failed', { error })" }
Unit Test Template
import { describe, it, expect } from 'vitest'; import { fullstackTesting } from './fullstack-testing'; describe('fullstack-testing skill', () => { describe('write_unit_test', () => { it('should create test file with proper structure', async () => { const result = await fullstackTesting({ action: 'write_unit_test', test_framework: 'vitest', target: 'src/services/user.service.ts' }); expect(result.success).toBe(true); expect(result.test_code).toContain('describe'); expect(result.test_code).toContain('it('); }); it('should include arrange-act-assert pattern', async () => { const result = await fullstackTesting({ action: 'write_unit_test', target: 'src/utils/format.ts' }); expect(result.test_code).toMatch(/Arrange|Act|Assert/); }); }); describe('analyze_coverage', () => { it('should identify untested code paths', async () => { const result = await fullstackTesting({ action: 'analyze_coverage', coverage_threshold: 80 }); expect(result.success).toBe(true); expect(result.coverage).toBeDefined(); }); }); });
Integration
- Bonded Agent: 06-testing-strategy
- Upstream Skills: frontend-development, backend-development
- Downstream Skills: devops-fullstack
Version History
| Version | Date | Changes |
|---|---|---|
| 1.0.0 | 2024-01 | Initial release |
| 2.0.0 | 2025-01 | Production-grade upgrade with Playwright patterns |