Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

test

verified

Smart test runner with watch mode, coverage, and path-specific testing. Use when running tests or checking test coverage.

View on GitHub

Marketplace

dohernandez-claude-skills

dohernandez/claude-skills

Plugin

test

Repository

dohernandez/claude-skills

plugins/test/skills/test/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/dohernandez/claude-skills/blob/main/plugins/test/skills/test/SKILL.md -a claude-code --skill test

Installation paths:

Claude
.claude/skills/test/
Powered by add-skill CLI

Instructions

# Test

## Purpose

Smart test execution with multiple modes. Wraps the project's test command with intelligence: watch mode, coverage reporting, and focused testing.

## Quick Reference

| Command | Purpose |
|---------|---------|
| `/test configure` | Discover test framework and patterns |
| `/test` | Run all tests |
| `/test --watch` | Watch mode |
| `/test --coverage` | Run with coverage report |
| `/test <path>` | Run tests for specific path |

## Commands

### /test configure

**When**: Framework setup (one-time)

Discovers:
- Test framework (jest, vitest, pytest, go test, cargo test)
- Test file patterns (`*.test.ts`, `*_test.py`, etc.)
- Test commands from Taskfile/package.json/Makefile
- Coverage tools if available

**Saves to**: `.claude/skills-config.env` (framework-level test commands)

The configure wizard discovers the test framework and proposes commands:

```bash
# Example discovered configuration
TEST_COMMAND=npm test
TEST_WATCH_COMMAND=npm test -- --watch
TEST_COVERAGE_COMMAND=npm test -- --coverage
```

These enable the Taskfile tasks:
- `task test` - Run all tests
- `task test:watch` - Watch mode
- `task test:coverage` - Coverage report

---

### /test (Run All)

**When**: Run complete test suite

```bash
/test
```

**Behavior**:
1. Reads config from `.claude/skills/test.yaml`
2. Falls back to `task -t .claude/Taskfile.yaml test` if no config
3. Runs all tests
4. Reports summary

---

### /test --watch

**When**: Continuous test running during development

```bash
/test --watch
```

**Behavior**:
1. Start test runner in watch mode
2. Re-runs tests when files change

**Framework support**:
| Framework | Command |
|-----------|---------|
| vitest | `vitest --watch` |
| jest | `jest --watch` |
| pytest | `pytest-watch` or `ptw` |
| go test | External: `watchexec -e go -- go test ./...` |

---

### /test <path>

**When**: Run tests for specific file or directory

```bash
/test src/auth/
/test src/user.test.ts
/test tests/integration/
```

**Behavior*

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
4453 chars