v2.2/skills/v2.2-explore-test-context/SKILL.md
# Skill: /v2.2-explore-test-context **Purpose**: Discover repository-specific testing patterns, utilities, fixtures, and conventions ## Input - **Required**: Repository root (implicit - current working directory) ## Output - **File**: `context.json` - **Format**: Structured JSON containing: ```json { "utilities": { "classes": ["ClassName", ...], "methods": ["method_name", ...], "constants": ["CONSTANT_NAME", ...] }, "fixtures": { "common": ["fixture_name", ...], "sco
npx skillsauth add ruclo/thesis v2.2/skills/v2.2-explore-test-contextInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Purpose: Discover repository-specific testing patterns, utilities, fixtures, and conventions
context.json{
"utilities": {
"classes": ["ClassName", ...],
"methods": ["method_name", ...],
"constants": ["CONSTANT_NAME", ...]
},
"fixtures": {
"common": ["fixture_name", ...],
"scopes": {"fixture_name": "scope"}
},
"imports": {
"common_patterns": ["from ocp_resources import ...", ...]
},
"conventions": {
"markers": ["@pytest.mark.polarion(...)", ...],
"naming": "test_<feature>_<scenario>",
"file_structure": "tests/<domain>/<feature>/test_*.py"
},
"precedents": {
"similar_tests": ["path/to/test.py:line", ...]
}
}
# Read docs/ for testing conventions
- docs/testing_guidelines.md
- docs/pytest_markers.md
- docs/fixture_usage.md
# Analyze libs/ and utilities/
- Scan utilities/*.py for helper classes
- Extract method signatures
- Identify constants (TIMEOUT_*, DEFAULT_*, etc.)
- Map commonly used patterns
# Look at existing tests in tests/
- Find similar test files (by domain)
- Extract import patterns
- Identify fixture usage patterns
- Note pytest markers and decorators
1. READ docs/testing_guidelines.md
2. GLOB utilities/*.py
FOR each utility_file:
EXTRACT classes, methods, constants
3. GLOB tests/**/*.py
FILTER by domain similarity
FOR each test_file:
EXTRACT imports, fixtures, markers
4. GENERATE context.json
5. WRITE context.json to disk
6. RETURN success
{
"utilities": {
"classes": ["VirtualMachineForTests", "DataVolumeForTests"],
"methods": ["wait_for_vm_running", "create_snapshot"],
"constants": ["TIMEOUT_5MIN", "DEFAULT_STORAGE_CLASS"]
},
"fixtures": {
"common": ["namespace", "admin_client", "storage_class_matrix"],
"scopes": {
"namespace": "function",
"admin_client": "session"
}
},
"imports": {
"common_patterns": [
"from ocp_resources.virtual_machine import VirtualMachine",
"from utilities.virt import VirtualMachineForTests"
]
},
"conventions": {
"markers": [
"@pytest.mark.polarion('CNV-XXXXX')",
"@pytest.mark.tier1"
],
"naming": "test_<feature>_<scenario>",
"file_structure": "tests/<domain>/<feature>/test_*.py"
},
"precedents": {
"similar_tests": [
"tests/storage/snapshots/test_snapshots.py:145",
"tests/virt/lifecycle/test_reset.py:89"
]
}
}
# Explore repository context
/v2.2-explore-test-context
Very High - Can be used for:
development
# Skill: /v3-test-heal **Purpose**: Self-healing loop that runs the generated test against a real cluster, analyzes failures from logs, consults documentation and repository code to fix issues, and records lessons learned in GRAVEYARD.md ## Input - **Required**: Path to the generated test file (e.g., `tests/virt/cluster/test_vnc_screenshot.py`) - **Optional**: `--max-iterations N` - Maximum heal attempts (default: 3) ## Output - **Modified File**: Test file edited in-place with fixes applied
development
# Skill: /v3-pyright-heal **Purpose**: Universal Python type checker and self-healing fixer for ANY Python file ## Input - **Required**: Path to Python file (`.py` or `.ipynb`) - **Optional**: `--max-iterations N` - Maximum fix attempts (default: 10) - **Optional**: `--strict` - Use strict type checking mode ## Output - **Modified File**: Same file, edited in-place - **Exit Code**: 0 if clean, 1 if max iterations reached with errors - **Log**: Summary of fixes applied ## Implementation ###
development
# Skill: /v3-graveyard-verify **Purpose**: Post-generation verification that cross-references the generated test code against GRAVEYARD.md to catch known mistakes before runtime ## Input - **Required**: Path to the generated test file ## Output - **Modified File**: Test file edited in-place with fixes for any GRAVEYARD violations found - **Report**: Summary of violations found and fixes applied (conversational output) ## Role You are a **code reviewer specializing in catching known mistakes*
development
# Skill: /v3-generate-std > _This document was created with the assistance of Claude (Anthropic)._ You are a Senior QE Engineer responsible for creating Software Test Descriptions (STDs) for OpenShift Virtualization. Given a high-level Software Test Plan (STP), generate test code stubs with comprehensive docstrings that serve as the STD. **Important:** The generated test code should follow the structure and patterns from the [openshift-virtualization-tests](https://github.com/RedHatQE/openshi