browser-automation
Browser automation for rendered UI exploration, validation, screenshots,
Improve test design, speed, and coverage with behavior-focused tests,
$ npx -y skills add alexei-led/cc-thingz --skill improving-tests --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/improving-testsContext preview
The summary Claude sees to decide when to auto-load this skill.
Improve test design, speed, and coverage with behavior-focused tests,
description: Improve test design, speed, and coverage with behavior-focused tests, useful seams, characterization tests, TDD, and test refactoring. Use when improving tests, optimizing slow suites, adding coverage, refactoring brittle tests, removing test waste, or working test-first. NOT for fixing production bugs (use fixing-code), production-code refactors (use refactoring-code), or reviewing non-test code quality (use reviewing-code). name: improving-tests
Improve tests so they catch real behavior regressions without blocking safe code changes. Suite latency is a quality attribute. Coverage is a signal, not the goal.
Detect capability from tools:
Use an interactive question tool when available for mode selection, missing scope, missing framework approval, or unsafe test-stack choices.
Do not use this for:
Detect languages from files in scope and read only the matching reference:
Use generic rules only for unsupported languages.
If mode is missing, ask one question with these options.
Test through the contract that users or adjacent modules rely on:
Use graph tools only when available and when they help choose the seam or risk:
For performance mode or any slow-suite work:
1. Measure the baseline command and wall time. 2. Classify the bottleneck: discovery, import/compile/transform, setup, test body, external boundary, runner config, or parallel balance. 3. Make one cluster of changes that removes waste without weakening behavior. 4. Rerun the same command and record before/after time. 5. Add or recommend a guard: durations output, per-test ceiling, slow marker, cache, or focused command.
Prefer focused deterministic checks during edits and the broader relevant suite before final output. Do not hide failures, delete edge cases, or skip important fast tests to make a number look better.
TDD:
1. Name one behavior at the public seam. 2. Write one failing test that fails for the expected reason. 3. Implement the smallest passing code. 4. Refactor only while green. 5. Repeat one behavior at a time.
Characterization tests:
Look for:
Portable skills, agents, hooks, and Pi-native extensions for Claude Code, Codex CLI, GitHub Copilot, Cursor, Grok, and Pi. Gemini is retired.
Repo: alexei-led/cc-thingz
Browser automation for rendered UI exploration, validation, screenshots,
Support-only Playwright runtime/reference for browser-automation — dev-server
Create normal git commits with logical grouping. Use when committing,
Create or update human-facing docs, agent-facing instructions, architecture
Fix code defects with a reproducible feedback loop, root-cause diagnosis,
Batch behavior-preserving refactors for multi-file, repeated-pattern,