Convert CPU-X output format to CPU-Z format for cross-tool compatibility. Includes validation against real-world test cases and handles system info variations.
Converts `cpu-x` output to `cpu-z` format for cross-tool compatibility between hardware information utilities.
This skill provides GitHub Copilot with context for developing a tool that converts CPU-X output format to CPU-Z format. The project includes a structured test suite with real-world input/output pairs to validate conversion logic and handle edge cases across different systems and OS configurations.
- Each `case N/` folder contains paired files from both tools
- Example: `tests/case 1/cpu-x.txt` and `tests/case 1/CPU-Z.txt`
- Input file from CPU-X (e.g., `cpu-x.txt`)
- Expected output in CPU-Z format (e.g., `CPU-Z.txt`)
- Different CPU architectures
- Varying system information formats
- OS-specific differences
When encountering new conversion scenarios:
```
1. Implement/modify conversion code in src/
2. Run code against test files in tests/case N/
3. Compare output to provided cpu-z.txt files
4. Iterate until all test cases pass
5. Add new test cases for edge cases discovered
```
**Parsing CPU-X Output:**
```
input_file = "tests/case 1/cpu-x.txt"
cpu_x_data = parse_cpu_x(input_file)
```
**Converting to CPU-Z Format:**
```
cpu_z_data = convert_to_cpu_z(cpu_x_data)
```
**Validation:**
```
reference = "tests/case 1/CPU-Z.txt"
validate_output(cpu_z_data, reference)
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/cpu-x-to-cpu-z-converter/raw