Skip to content
Back to skills

Agents Test

ASecurity

Run targeted tests using src.agents.scripts.test after code changes. Use when you need to execute only affected tests, pass a custom pytest command, or collect JSON test summaries with sub-agent fixes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolspythonbash

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill agents-test --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agents Test?

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

Security grade badge for Agents Test
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-agents-test/badge)](https://www.skillsdirectory.com/skills/david-li0406-agents-test)

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: agents-test
description: Run targeted tests using src.agents.scripts.test after code changes. Use when you need to execute only affected tests, pass a custom pytest command, or collect JSON test summaries with sub-agent fixes.
---

# Agents Test

## Overview

Use this skill to run only the affected tests and capture a JSON summary.

## Quick start

Run the default test command (pytest with `-q -n auto`) through the sub-agent.

```bash
uv run python -m src.agents.scripts.test
```

## Targeted tests (required by repo policy)

Always pass a narrowed `task.test_cmd` for affected files.

```bash
uv run python -m src.agents.scripts.test \
  'task.test_cmd=uv run --no-sync pytest -q -n auto tests/unit/test_affected.py'
```

Use a specific test case when needed.

```bash
uv run python -m src.agents.scripts.test \
  'task.test_cmd=uv run --no-sync pytest -q tests/test_example.py::test_case'
```

## Output and logs

The script prints a single-line JSON summary and stores logs under
`agents_workspace/sub_agents/logs/pytest_*.log`.

## Cache workaround

If `uv` cache permissions fail, use a workspace cache:

```bash
uv run python -m src.agents.scripts.test \
  'task.test_cmd=uv --cache-dir agents_workspace/tmp_cache/uv_cache run --no-sync pytest -q tests/...'
```

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.

Comments

Loading comments…