test-expert

Generate AAA-pattern unit and integration tests for Python, TypeScript/JavaScript, and Go projects.

Updated Jan 31, 2026
One-click install
npx skills add https://github.com/MGriot/.gemini --skill test-expert-mgriot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-expert
Source: https://github.com/MGriot/.gemini/tree/main/skills/test-expert
Command: npx skills add https://github.com/MGriot/.gemini --skill test-expert-mgriot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill guides developers in creating high-quality unit and integration tests across Python (pytest), TypeScript/JavaScript (Vitest/Jest), and Go, ensuring tests are placed in the correct locations and follow best practices.

Core Features & Use Cases

  • Environment Detection: Identifies the project language and testing framework by inspecting files like pyproject.toml, package.json, or go.mod.
  • Location Determination: Suggests standard test directories such as Python's tests/ or src/tests/, TS/JS collocated tests, Go *_test.go files, or Java/Kotlin's src/test/java/.
  • Test Case Generation: Produces clear AAA-structured tests with descriptive names, and ensures isolation via mocks or fixtures.
  • Verification: Encourages running tests to observe RED -> GREEN results as a quality gate.

Quick Start

Use Test Expert to scaffold a basic test for your project. For example, create a Python test file under tests/test_sample.py that asserts a simple function behaves as expected, then run pytest.

Frequently Asked Questions about test-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AAA-pattern tests for Python and TypeScript projects?

To generate AAA-pattern tests, this skill analyzes your project to detect the language and framework, then produces isolated unit and integration tests with descriptive names for Python, TypeScript/JavaScript, or Go.

Can I use this to scaffold Vitest and Jest tests for JavaScript?

Yes, you can scaffold Vitest and Jest tests for JavaScript and TypeScript. The tool inspects your package.json to determine the framework and generates tests in standard collocated directories.

What is the best way to structure pytest files in a Python project?

The best way to structure pytest files is placing them in a standard tests/ or src/__tests__/ directory. This skill identifies your project structure and suggests the correct locations for your test suites.

How do I ensure my generated unit tests have proper isolation?

To ensure generated unit tests have proper isolation, the skill automatically incorporates mocks or fixtures into the AAA-structured test cases, verifying behavior through RED to GREEN test execution.

Do I need pytest installed before generating Python tests?

Yes, you need pytest installed for Python, Vitest or Jest for TS/JS, and Go's testing tools available. The skill requires your environment's testing tools to be present to scaffold and run tests.