Skip to content
Back to skills

Collection

ASecurity

Run visual tests, compare golden files, and report bugs for Stapledons Voyage. Use when user asks to run tests, check golden files, or report visual regressions.

  • 24 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
testinggobashtestinggit

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-571fbdc3/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-571fbdc3)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Test Manager
description: Run visual tests, compare golden files, and report bugs for Stapledons Voyage. Use when user asks to run tests, check golden files, or report visual regressions.
---

# Test Manager

Manage visual regression testing for Stapledon's Voyage. Run test scenarios, compare against golden files, and generate bug reports.

## Quick Start

**Most common usage:**
```bash
# Run all test scenarios in test mode (no UI)
.claude/skills/test-manager/scripts/run_tests.sh

# Compare current output to golden files
.claude/skills/test-manager/scripts/compare_golden.sh

# Generate bug report for a visual regression
.claude/skills/test-manager/scripts/report_bug.sh <scenario-name> "<description>"
```

## When to Use This Skill

Invoke this skill when:
- User asks to "run tests" or "check tests"
- User mentions "golden files" or "visual regression"
- User wants to compare current rendering against baseline
- User reports a visual bug that needs investigation
- After making changes to rendering code

## Available Scripts

### `scripts/run_tests.sh [scenario-name]`
Run test scenarios and capture screenshots with UI stripped (test mode).

**Usage:**
```bash
# Run all scenarios
.claude/skills/test-manager/scripts/run_tests.sh

# Run specific scenario
.claude/skills/test-manager/scripts/run_tests.sh camera-pan
```

**Output:**
- Screenshots saved to `out/test/<scenario-name>/`
- Summary of pass/fail status

### `scripts/compare_golden.sh [scenario-name]`
Compare current test output against golden files.

**Usage:**
```bash
# Compare all scenarios
.claude/skills/test-manager/scripts/compare_golden.sh

# Compare specific scenario
.claude/skills/test-manager/scripts/compare_golden.sh camera-pan
```

**Output:**
- Lists matching and differing files
- Generates diff images for mismatches (if ImageMagick available)
- Exit code 0 if all match, 1 if differences found

### `scripts/update_golden.sh [scenario-name]`
Update golden files from current test output.

**Usage:**
```bash
# Update all golden files
.claude/skills/test-manager/scripts/update_golden.sh

# Update specific scenario
.claude/skills/test-manager/scripts/update_golden.sh camera-pan
```

### `scripts/report_bug.sh <scenario> <description>`
Generate a bug report design doc for visual regression.

**Usage:**
```bash
.claude/skills/test-manager/scripts/report_bug.sh camera-zoom "Zoom out produces artifacts at edge"
```

## Workflow

### 1. Run Tests

Run all scenarios in test mode to generate current screenshots:
```bash
.claude/skills/test-manager/scripts/run_tests.sh
```

### 2. Compare Against Golden Files

Check if current output matches the baseline:
```bash
.claude/skills/test-manager/scripts/compare_golden.sh
```

### 3. Handle Results

**If tests pass:** No action needed.

**If tests fail:**
- Review the diff images in `out/test/<scenario>/diff/`
- If change is intentional: `scripts/update_golden.sh`
- If change is a bug: `scripts/report_bug.sh <scenario> "<description>"`

### 4. Investigate Bugs

When a visual regression is found:
1. Run the specific scenario: `make scenario-<name>`
2. Review screenshots
3. Create bug report with design doc
4. Fix the issue
5. Re-run tests to verify

## Test Scenarios

Current test scenarios in `scenarios/`:

| Scenario | Purpose |
|----------|---------|
| `camera-pan` | Test WASD camera movement |
| `camera-zoom` | Test Q/E zoom controls |
| `npc-movement` | Capture NPC movement over time |

Add `"test_mode": true` to JSON for golden file testing.

## Golden Files

Golden files are stored in `golden/<scenario-name>/` and should be committed to git.

**Structure:**
```
golden/
├── camera-pan/
│   ├── initial.png
│   ├── after-down.png
│   └── after-right.png
├── camera-zoom/
│   └── ...
└── npc-movement/
    └── ...
```

## Output Organization

Test output follows the project's [out/ directory structure](../../../out/README.md):

| Directory | Purpose |
|-----------|---------|
| `out/test/<scenario>/` | Current test output (screenshots) |
| `out/test/<scenario>/diff/` | Diff images when tests fail |
| `out/scenarios/` | Temporary scenario runner output |
| `golden/<scenario>/` | Baseline golden files (committed to git) |

**Important:**
- Test output in `out/test/` is gitignored and ephemeral
- Golden files in `golden/` are committed and versioned
- Never put test output in `out/` root - always use `out/test/<scenario>/`

## Notes

- Always run tests with `--test-mode` to strip UI elements
- Golden files should be updated intentionally, not automatically
- Use deterministic seeds for reproducible tests
- Screenshots are at 1280x960 internal resolution

## IMPORTANT: Screenshot Method

**NEVER use macOS `screencapture`** - it captures the desktop at native resolution (5K+), producing huge files.

**ALWAYS use in-game screenshot flags:**
```bash
go run ./cmd/game --screenshot 30 --output out/test.png
```

Or use the helper script:
```bash
.claude/skills/sprint-executor/scripts/take_screenshot.sh -f 30 -o out/test.png
```

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.