test-generator
Generate unit/integration tests with smart edge case analysis (Zero Token Skeleton + Smart Mode).
от Nhqvu2005★ 54 звезды на GitHub
Установить test-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Test Generator
Purpose
Generate test files with real test cases, not just empty stubs. Smart mode analyzes function signatures and type hints to produce null/boundary/injection edge cases automatically.
Usage
1. Quick Skeleton (original)
python .agent/skills/test-generator/scripts/gen_skeleton.py src/utils.py > tests/test_utils.py
2. Smart Mode — Real Test Cases
Analyzes type hints and parameter names → generates null, boundary, XSS, large input tests:
python .agent/skills/test-generator/scripts/gen_skeleton.py src/auth.py --style smart > tests/test_auth.py
3. From Codebase Index — Full Project Coverage
Reads codebase_index.json from codebase-navigator → generates tests for ALL functions:
# Prerequisite: index the codebase first
python .agent/skills/codebase-navigator/scripts/navigator.py --action index --path .
# Generate tests for all indexed functions
python .agent/skills/test-generator/scripts/gen_skeleton.py --from-index --style smart > tests/test_all.py
4. Coverage Report — What's Tested vs Not
python .agent/skills/test-generator/scripts/gen_skeleton.py --from-index --coverage-report
Output: ✅ functions with tests, ❌ untested functions, 📈 total coverage percentage.
Data Files
data/test_patterns.json— 8 test pattern categories (unit, security, performance, E2E, database, error handling)data/edge_cases.json— 7 edge case categories with mandatory QA checklist
Supported Languages
- Python (.py) — pytest
- JavaScript/TypeScript (.js, .ts, .jsx, .tsx) — vitest/jest
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- data/edge_cases.json
- data/test_patterns.json
- scripts/gen_skeleton.py
FAQ
Что делает скилл test-generator?
Generate unit/integration tests with smart edge case analysis (Zero Token Skeleton + Smart Mode).
Как установить скилл test-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл test-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…