More screenshots

    Works with the AI Agents you already use

    testing framework detector

    by Dias Franny

    1

    Automatically detects your project's test framework and generates compatible, high-coverage unit tests.

    Free

    3 usesSecurity scanned

    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

    1. Review the token expiry mock to ensure it aligns with your JWT library's internal clock handling.
    2. 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, or go.mod to 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

    1. The skill scans your project root for config files, lockfiles, and existing test markers.
    2. It identifies the specific runner and assertion library version currently in use.
    3. It analyzes the target source code to define the happy path and necessary boundaries.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    jestNode.js

    Permissions

    No special permissions declared or detected

    Listed1 month ago

    What's inside

    Frequently Asked Questions

    The skill scans your project's configuration files (like package.json or pyproject.toml) to identify your specific test runner, assertion library, and versioning before generating any code.

    It is compatible with all major AI agents that have repository-level file access, including GitHub Copilot, Cursor, and Windsurf, as well as standalone CLI-based agents.

    Yes, the detector is designed to recognize and mimic your existing patterns, including specific directory structures, file naming conventions (e.g., .test.ts vs .spec.ts), and mocking styles.

    No, this skill focuses strictly on unit tests and logic validation; it does not currently generate end-to-end (E2E) flows or integration tests involving external database connections.

    You receive the full skill logic and prompt configuration, which includes built-in support for JavaScript, TypeScript, Python, Go, and Ruby testing ecosystems.

    The skill automatically generates framework-native mocks, such as Jest mocks or Pytest fixtures, to isolate the code under test and prevent external API calls or database errors.

    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.

    Free