
quality-tools
Collection of six skills for testing, linting, and coverage across Python and TypeScript.
- version
- 1.0.0
- GitHub stars
- 2
What it does
- Adds six skills covering pytest and Jest or Vitest testing, Ruff and ESLint linting, and coverage analysis
- Covers module and partial mocking, fake timers, fixtures, and parametrized tests for Python and JavaScript
- Includes mypy and TypeScript type-safety checks, security patterns, and React-specific linting rules
- Designed for teams wanting a shared quality baseline across Python and TypeScript codebases
Testing, code review, linting, coverage analysis
Add marketplace
/plugin marketplace add Agentient/vibekitRun it inside Claude Code once, then install the plugin below.
Install
/plugin install quality-tools@vibekitRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceAdvanced JS Mocking Patterns Skill
Metadata (Tier 1)
Keywords: jest.mock, vi.mock, spyOn, fakeTimers, mockImplementation
File Patterns: *.test.ts, *.spec.js
Modes: testing_frontend, testing_backend
Instructions (Tier 2)
Module Mocking
// Mock entire module
jest.mock('axios');
import axios from 'axios';
test('fetches data', async () => {
(axios.get as jest.Mock).mockResolvedValue({ data: { id: 1 } });
const result = await fetchUser(1);
expect(result).toEqual({ id: 1 });
});
Spies (Partial Mocking)
const obj = {
method1: () => 'original',
method2: () => 'original'
};
const spy = jest.spyOn(obj, 'method1');
spy.mockReturnValue('mocked');
obj.method1(); // 'mocked'
obj.method2(); // 'original' (not mocked)
expect(spy).toHaveBeenCalled();
Mock Lifecycle
beforeEach(() => {
jest.clearAllMocks(); // Reset call counts
});
afterEach(() => {
jest.restoreAllMocks(); // Restore original implementations
});
Fake Timers
jest.useFakeTimers();
test('debounce function', () => {
const callback = jest.fn();
const debounced = debounce(callback, 1000);
debounced();
debounced();
debounced();
jest.advanceTimersByTime(1000);
expect(callback).toHaveBeenCalledTimes(1); // Only last call
});
Mock Implementations
const mock = jest.fn()
.mockImplementationOnce(() => 'first')
.mockImplementationOnce(() => 'second')
.mockImplementation(() => 'default');
mock(); // 'first'
mock(); // 'second'
mock(); // 'default'
Anti-Patterns
- Not clearing mocks between tests
- Over-mocking (testing implementation)
- Mocking internal modules
- Forgetting to restore timers
Details
- Marketplace
- Agentient/vibekit
- Source
- plugins/quality-tools
- Category
- Quality
- Listed since
- Apr 7, 2026
More from Agentient/vibekit
All 16Similar to quality-tools
More Testing & QA
performance-testing-reviewwshobson/agents42.8K starsPerformance analysis, test coverage review, and AI-powered code quality assessment
code-reviewComposioHQ/awesome-claude-plugins2K starsComprehensive code review with best practices
testingaws-solutions-library-samples/guidance-for-claude-code-with-amazon-bedrock412 starsTesting, QA, and quality gates with 3 specialized agents for automated validation and code quality checks
code-quality-pluginlaurigates/claude-plugins60 starsCode review, refactoring, linting, dependency auditing, dead code detection, test quality, complexity metrics, and static analysis
test-coveragemahidalhan/claude-hacks34 starsAnalyze and improve test coverage for code changes.
pr-review-toolkitccplugins/awesome-claude-code-plugins1K starsComprehensive PR review agents specializing in comments, tests, error handling, type design, code quality, and code simplification