- Home
- Skills
- Testing & Debugging
- testing framework detector
More screenshots
Works with the AI Agents you already use
testing framework detector
by Dias Franny
Automatically detects your project's test framework and generates compatible, high-coverage unit tests.
Free
testing framework detector
Example session with this skill installed
I need unit tests for my new auth utility. Check the project structure and write them using whatever framework we are using here.
- Read your context and instructions
- Compiled the testing framework detector
I have scanned the repository and detected the testing environment.
Detected stack
Framework: Vitest (vitest.config.ts found)
Runner: npm run test
Convention: *.test.ts files colocated with source
Tests to add
auth-utils.test.ts
- src/utils/auth.test.ts (Unit tests for token validation and permission checking)
import { describe, it, expect, vi } from 'vitest';
import { validateToken, checkPermission } from './auth';
describe('auth utilities', () => {
describe('validateToken', () => {
it('returns true for a valid jwt string', () => {
const result = validateToken('valid_token_string');
expect(result).toBe(true);
});
it('returns false for null or undefined input', () => {
expect(validateToken(null as any)).toBe(false);
expect(validateToken(undefined as any)).toBe(false);
});
it('handles expired tokens correctly', () => {
// Mocking Date to simulate expiry
vi.useFakeTimers();
const result = validateToken('expired_token');
expect(result).toBe(false);
vi.useRealTimers();
});
});
describe('checkPermission', () => {
const mockUser = { role: 'editor' };
it('allows access for matching roles', () => {
expect(checkPermission(mockUser, ['admin', 'editor'])).toBe(true);
});
it('denies access when role is missing', () => {
expect(checkPermission(mockUser, ['admin'])).toBe(false);
});
});
});
Run
npm run test src/utils/auth.test.ts
Next steps
- Review the token expiry mock to ensure it aligns with your JWT library's internal clock handling.
- Run the test command to verify passing status in your local environment.
Connects securely to your tools. The creator never sees your data.
About this skill
Manually configuring test suites for a new project or legacy codebase is tedious and error-prone. This skill eliminates the guesswork by analyzing your specific repository structure to deliver tests that match your existing framework, runner, and style conventions perfectly.
What it does
- Auto-detects stack by scanning configuration files like
jest.config.js,pyproject.toml, orgo.modto identify the active framework. - Enforces conventions by matching existing file naming patterns, directory structures, and assertion styles.
- Generates edge cases including null inputs, boundary values, and failure paths to ensure high coverage.
- Mocks dependencies using framework-native tools like
jest.mock,vi.fn, or pytest fixtures to prevent flaky tests. - Provides run commands mapped directly to your local project scripts for immediate execution.
How it works
- The skill scans your project root for config files, lockfiles, and existing test markers.
- It identifies the specific runner and assertion library version currently in use.
- It analyzes the target source code to define the happy path and necessary boundaries.
- It outputs runnable test files formatted to your project's exact specifications.
Framework & tools
Works with Jest, Vitest, Mocha, pytest, Go testing, and RSpec. It handles JavaScript, TypeScript, Python, Go, and Ruby environments.
Why this beats prompting it yourself
Generic prompts often produce tests using the wrong library version or syntax, causing immediate import errors. This skill validates the environment first, ensuring every line of code is compatible with your specific package.json or environment config.
Use cases
- Adding unit tests to a legacy module with zero existing coverage.
- Switching a project from Jest to Vitest and needing syntax-correct mocks.
- Generating table-driven tests for complex Go logic.
- Hardening Python functions against edge cases using pytest parametrization.
Known limitations
Does not support end-to-end or integration tests unless explicitly requested. It will not modify your existing CI/CD pipelines or runner configurations without permission.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
3 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 1 month ago
- Free with an Agensi account
- Software
- jest
Node.js
Permissions
No special permissions declared or detected
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.