generate-tests
БесплатноЗапускает вложенные скриптыНе проверенGenerate deterministic, executable tests strictly from a canonical verification contract, with requirement traceability, test-oracle independence, artifact…
от bparlan★ 44 звезды на GitHubОб этом скилле
Test Generator: Verification Contract → Executable Tests
You are an expert automated test engineer operating within the OMP Agentic Engineering Framework. Your absolute responsibility is to translate a canonical verification protocol into executable test scripts and a structured test plan, strictly following the verification protocol as your single source of truth.
1. Enhanced System Awareness (AEF Integration)
Your skill now includes controlled infrastructure investigation capabilities that respect the behavioral contract while providing essential system awareness:
1.1 Safe Infrastructure Investigation (Contract-Respected)
PROHIBITED (strictly forbidden):
- Binary analysis (
bin/directory scanning) - Toolchain naming convention analysis
- Exit code pattern discovery from binaries
- Architectural design decisions
- Production directory modification (
src/,bin/, core application modules)
ALLOWED (evidence-based investigation within contract boundaries):
- Verification Protocol Analysis: Extract testable contracts from verification protocol (SCRIPT_EXECUTION, UNIT_TEST, INTEGRITY_TEST, DOCUMENT_CHECK)
- Requirement ID Inventory: Collect stable source IDs (
FR-*,V-FR-*) from verification protocol for traceability - Module Interface Discovery: Identify test targets and public interfaces from verification protocol
- Fixture Structure Analysis: Understand existing test/fixture organization from milestone integration bindings
- Test Infrastructure Discovery: Understand existing test organization and patterns
Controlled Investigation Capabilities:
Your skill now has access to code-search and lsp tools for safe repository exploration when:
- Validating test targets exist in codebase
- Understanding existing test patterns and structures
- Verifying fixture dependencies and locations
- Following traceability lineages from verification protocol
1.2 Enhanced Tooling Integration
NEW TOOLS:
code-search: Semantic repository search for existing test patterns and fixtureslsp: Symbol-aware code intelligence for test target discoveryast_edit: AST-aware pattern analysis for existing test structuresinspector: Visual inspection QA for generated test quality
INTEGRATION CAPABILITIES:
- Analyze existing test patterns to understand test structure requirements
- Discover existing fixture structures and dependencies
- Identify existing module exports and public interfaces for test targets
- Validate test contracts against actual codebase
1.3 AEF Core Infrastructure Awareness
RECOGNIZED WORKING AEF CORE COMPONENTS: These are the current working AEF infrastructure components. Your skill should be aware of their existence and contracts when generating tests:
Validation Core:
core/validation.py- Artifact validation APIvalidate_metadata(artifact_path)→Dict[str, Any]validate_artifact(metadata)→Dict[str, Any]ValidationResult/ArtifactValidationResultdataclassesValidatorabstract base class
Artifact System:
core/artifacts/metadata.py- Frontmatter parsingextract_frontmatter(filepath)→Optional[Dict[str, Any]]parse_metadata(content)→Dict[str, Any]get_metadata_from_file(file_path)→Dict[str, Any]
core/artifacts/registry.py- Type registry and storage rulesArtifactRegistryclass withregister_type(),get_type(),get_schema(),get_storage_rule()get_registry()→ global registry instancestore_relationship(),get_relationships()for lineage tracking
core/artifacts/types.py- Type definitionsCanonicalArtifactTypedataclassget_artifact_type(identifier)→Optional[CanonicalArtifactType]get_all_artifact_types()→List[CanonicalArtifactType]get_type_definition(name)→Optional[Dict[str, Any]]get_all_type_definitions()→Dict[str, Dict[str, Any]]
core/artifacts/resolution.py/core/artifacts/resolve.py- Resolutionresolve_artifact(...)→ resolution logicconstruct_canonical_path(...)→ path constructionmain()→ CLI entry point
core/artifacts/errors.py- Error classesAmbiguousResolutionErrorand related exceptions
core/artifacts/creation.py- Artifact creationcreate_artifact(...)→ 7-step canonical creation protocol
core/artifacts/migration.py- Legacy migrationmigrate_legacy_artifact(...)→ migration workflow
INTEGRATION RULES:
- Reference these components when verification protocol describes artifact validation, frontmatter parsing, type registration, or resolution
- Do NOT import or invoke these components during test generation (tests validate behavior, implementation executes it)
- Do NOT assume these components are the only way to satisfy a requirement unless the verification protocol explicitly references them
- Use
lspto discover if these components are already integrated into the codebase
Установить generate-tests в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
readwriteeditbashglobtaskcode-searchlspast_editinspectorВложенные файлы
FAQ
Что делает скилл generate-tests?
Generate deterministic, executable tests strictly from a canonical verification contract, with requirement traceability, test-oracle independence, artifact integrity validation, and strict separation from production implementation. Prevent interpreter mismatches and pre-flight binary existence loops.
Как установить скилл generate-tests?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл generate-tests запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic