mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-02-08 16:00:50 +00:00
Add 25 world-class Claude Code skills for comprehensive software development
Created comprehensive skill collection covering all aspects of modern software development with production-ready patterns, best practices, and detailed documentation. ## Skills Organized by Domain ### Code Quality & Architecture (2 skills) - advanced-code-refactoring: SOLID principles, design patterns, refactoring patterns - code-review: Automated/manual review, security, performance, maintainability ### API & Integration (2 skills) - api-integration-expert: REST/GraphQL/WebSocket with auth, retry, caching - graphql-schema-design: Schema design, resolvers, optimization, subscriptions ### Database & Data (3 skills) - database-optimization: SQL/NoSQL tuning, indexing, query optimization - data-pipeline: ETL/ELT with Airflow, Spark, dbt - caching-strategies: Redis, Memcached, CDN, invalidation patterns ### Security & Authentication (2 skills) - security-audit: OWASP Top 10, vulnerability scanning, security hardening - auth-implementation: OAuth2, JWT, session management, SSO ### Testing & Quality (2 skills) - test-automation: Unit/integration/E2E tests, TDD/BDD, coverage - performance-profiling: CPU/memory profiling, Core Web Vitals optimization ### DevOps & Infrastructure (3 skills) - docker-kubernetes: Containerization, orchestration, production deployments - ci-cd-pipeline: GitHub Actions, automated testing, deployment strategies - logging-monitoring: Observability with Datadog, Prometheus, Grafana, ELK ### Frontend Development (3 skills) - frontend-accessibility: WCAG 2.1 compliance, ARIA, keyboard navigation - ui-component-library: Design systems with React/Vue, Storybook - mobile-responsive: Responsive design, mobile-first, PWAs ### Backend & Scaling (2 skills) - backend-scaling: Load balancing, sharding, microservices, horizontal scaling - real-time-systems: WebSockets, SSE, WebRTC for real-time features ### ML & AI (1 skill) - ml-model-integration: Model serving, inference optimization, monitoring ### Development Tools (2 skills) - git-workflow-optimizer: Git workflows, branching strategies, conflict resolution - dependency-management: Package updates, security patches, version conflicts ### Code Maintenance (3 skills) - error-handling: Robust error patterns, logging, graceful degradation - documentation-generator: API docs, README, technical specifications - migration-tools: Database/framework migrations with zero downtime ## Key Features Each skill includes: - YAML frontmatter with name, description, allowed tools - Clear purpose and when to use - Comprehensive capabilities overview - Production-ready code examples - Best practices and patterns - Success criteria - Tool-specific configurations ## Highlights - 25 comprehensive skills covering full development lifecycle - Production-ready patterns and examples - Security-first approach throughout - Performance optimization built-in - Comprehensive testing strategies - DevOps automation and infrastructure as code - Modern frontend with accessibility focus - Scalable backend architectures - Data engineering and ML integration - Advanced Git workflows ## File Structure claude_skills/ ├── README.md (comprehensive documentation) ├── advanced-code-refactoring/ │ ├── SKILL.md (main skill definition) │ ├── reference.md (design patterns, SOLID principles) │ └── examples.md (refactoring examples) ├── api-integration-expert/ │ └── SKILL.md (REST/GraphQL/WebSocket integration) ├── [23 more skills...] Total: 25 skills + comprehensive README + supporting documentation ## Usage Personal skills: cp -r claude_skills/* ~/.claude/skills/ Project skills: cp -r claude_skills/* .claude/skills/ Skills automatically activate based on context and description triggers.
This commit is contained in:
113
claude_skills/test-automation/SKILL.md
Normal file
113
claude_skills/test-automation/SKILL.md
Normal file
@@ -0,0 +1,113 @@
|
||||
---
|
||||
name: test-automation
|
||||
description: Expert in automated testing strategies including unit, integration, E2E tests, TDD/BDD, test coverage, and CI/CD integration. Use when writing tests, setting up test frameworks, improving test coverage, or implementing test automation pipelines.
|
||||
allowed-tools: Read, Write, Edit, Grep, Glob, Bash
|
||||
---
|
||||
|
||||
# Test Automation Expert
|
||||
|
||||
## Purpose
|
||||
Comprehensive test automation including unit tests, integration tests, E2E tests, TDD/BDD, test coverage analysis, and CI/CD integration.
|
||||
|
||||
## Capabilities
|
||||
- Unit testing (Jest, Mocha, pytest, JUnit)
|
||||
- Integration testing
|
||||
- E2E testing (Playwright, Cypress, Selenium)
|
||||
- API testing (Postman, REST Assured)
|
||||
- Test-Driven Development (TDD)
|
||||
- Behavior-Driven Development (BDD)
|
||||
- Mocking and stubbing
|
||||
- Code coverage analysis
|
||||
- Performance testing
|
||||
- Visual regression testing
|
||||
|
||||
## Best Practices
|
||||
```typescript
|
||||
// Unit test example with Jest
|
||||
describe('UserService', () => {
|
||||
let userService: UserService;
|
||||
let mockDb: jest.Mocked<Database>;
|
||||
|
||||
beforeEach(() => {
|
||||
mockDb = { findUser: jest.fn(), createUser: jest.fn() } as any;
|
||||
userService = new UserService(mockDb);
|
||||
});
|
||||
|
||||
it('should create user with hashed password', async () => {
|
||||
const userData = { email: 'test@example.com', password: 'password123' };
|
||||
mockDb.createUser.mockResolvedValue({ id: '1', ...userData });
|
||||
|
||||
const result = await userService.createUser(userData);
|
||||
|
||||
expect(mockDb.createUser).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
email: userData.email,
|
||||
password: expect.not.stringContaining('password123'), // Hashed
|
||||
})
|
||||
);
|
||||
expect(result.id).toBe('1');
|
||||
});
|
||||
|
||||
it('should throw error for duplicate email', async () => {
|
||||
mockDb.createUser.mockRejectedValue(new Error('Duplicate email'));
|
||||
|
||||
await expect(userService.createUser({ email: 'test@example.com', password: 'pass' }))
|
||||
.rejects.toThrow('Duplicate email');
|
||||
});
|
||||
});
|
||||
|
||||
// E2E test with Playwright
|
||||
test('user can complete checkout flow', async ({ page }) => {
|
||||
await page.goto('/products');
|
||||
await page.click('[data-testid="add-to-cart"]');
|
||||
await page.click('[data-testid="cart-icon"]');
|
||||
await page.fill('[data-testid="email"]', 'test@example.com');
|
||||
await page.click('[data-testid="checkout-button"]');
|
||||
|
||||
await expect(page.locator('[data-testid="confirmation"]')).toBeVisible();
|
||||
});
|
||||
|
||||
// API testing
|
||||
describe('POST /api/users', () => {
|
||||
it('should create user and return 201', async () => {
|
||||
const response = await request(app)
|
||||
.post('/api/users')
|
||||
.send({ email: 'new@example.com', password: 'Password123!' })
|
||||
.expect(201);
|
||||
|
||||
expect(response.body).toHaveProperty('id');
|
||||
expect(response.body.email).toBe('new@example.com');
|
||||
});
|
||||
});
|
||||
```
|
||||
|
||||
## Test Coverage Goals
|
||||
- Unit tests: >80% coverage
|
||||
- Integration tests: Critical paths
|
||||
- E2E tests: User journeys
|
||||
- Mutation testing score: >70%
|
||||
|
||||
## CI/CD Integration
|
||||
```yaml
|
||||
# .github/workflows/test.yml
|
||||
name: Test
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- run: npm ci
|
||||
- run: npm test -- --coverage
|
||||
- run: npm run test:e2e
|
||||
- uses: codecov/codecov-action@v3
|
||||
```
|
||||
|
||||
## Success Criteria
|
||||
- ✓ >80% code coverage
|
||||
- ✓ All critical paths tested
|
||||
- ✓ Tests run in CI/CD
|
||||
- ✓ Fast test execution (<5min)
|
||||
- ✓ Reliable tests (no flakiness)
|
||||
|
||||
Reference in New Issue
Block a user