askill
agent-tests

agent-testsSafety 90Repository

Agent-runnable e2e tests that validate workflows with real commands

0 stars
1.2k downloads
Updated 3/5/2026

Package Files

Loading files...
SKILL.md

Agent Tests

End-to-end tests that an agent (or human) can execute using real CLI calls. No mocking — run real commands, observe real outcomes, assert expected state.

Location

.agents/tests/<test-name>/
├── TEST.md          # Required: test definition
├── test-*.sh        # Optional: executable test script
└── fixtures/        # Optional: test data

TEST.md Format

# Test: <Name>

## Context
[What this test validates and why]

## Workflow
1. [Step with real command]
2. [Step with real command]
3. ...

## Assertions

| Step | What to check | How |
|------|--------------|-----|
| ... | ... | `command to verify` |

## Commands
[Optional: bash script or inline commands that run the full test]

## Cleanup
[How to undo side effects, flags like --no-cleanup]

Guidelines

  • Tests use real tools (gh, kubectl, curl, etc.) — no mocks
  • Each test is self-contained in its directory
  • TEST.md is the source of truth, scripts are optional automation
  • Include cleanup steps or --no-cleanup flag for inspection
  • Use polling with timeouts for async workflows
  • Print step-by-step progress when scripted
  • Tests can accept arguments (target repo, environment, flags)

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

55/100Analyzed 3/11/2026

Testing convention skill that defines a framework for agent-runnable e2e tests using real CLI commands. Well-structured with clear TEST.md template and guidelines. However, it's tailored to a specific repo structure (.agents/tests/) and appears to be internal agent configuration (.opencode), limiting reusability. Lacks explicit 'when to use' trigger section and step-by-step execution instructions, reducing actionability."

90
80
40
65
50

Metadata

Licenseunknown
Version-
Updated3/5/2026
Publisheryurifrl

Tags

github-actionstesting