# Dev Run Tests

> Run typecheck, lint, and tests with the right scope; analyze failures

- **Type:** Skill
- **Install:** `agentstack add skill-ainova-systems-intelligence-dev-packs-dev-run-tests`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ainova-systems](https://agentstack.voostack.com/s/ainova-systems)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ainova-systems](https://github.com/ainova-systems)
- **Source:** https://github.com/ainova-systems/intelligence-dev-packs/tree/main/packs/core/skills/dev-run-tests

## Install

```sh
agentstack add skill-ainova-systems-intelligence-dev-packs-dev-run-tests
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Run the Gates

Cheapest-first verification with scope detection. Invoke per task slice, at phase boundaries, and before push.

## Steps

1. Resolve commands: profile `typecheck` / `lint` / `test`; else detect (`package.json` scripts, `*.sln` - `dotnet test`, `pyproject.toml` - pytest, `go.mod` - `go test ./...`, `Makefile` targets). Confirm detected commands in one line on the first run.
2. Detect scope: `git status --porcelain` + `git diff --name-only` - map changed files to their test areas. Docs/markdown-only change - report "no tests to run" and stop. An explicit argument overrides.
3. Typecheck first - it fails fastest. On error: report the file and the first error, STOP.
4. Lint second. On error: report the finding, STOP.
5. Tests: scoped by default; full suite when shared code changed, at phase boundaries, and before push. Enforce the profile `coverage_gate` when set.
6. On failure: failing test name, the assertion, trimmed relevant output; classify the cause (production change / the test itself / environment); propose the fix. Re-run after fixes with the same scope discipline.
7. Report per area: pass/fail counts, duration, coverage vs the gate.

## Verify

- All gates green for the declared scope, or a precise failure analysis delivered - never "mostly passing".

## Scope / hand-off

- Fixing production code - the executing skill/subagent; CI-level failures - `git-finalize-pr`.

## CRITICAL

- Never modify tests, configs, or thresholds to make a failing gate pass.
- A flaky test (passes on rerun) is reported as flaky with evidence; never silently retried into green.
- Missing env/dependency - report the precondition; never stub the environment to force a pass.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ainova-systems](https://github.com/ainova-systems)
- **Source:** [ainova-systems/intelligence-dev-packs](https://github.com/ainova-systems/intelligence-dev-packs)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ainova-systems-intelligence-dev-packs-dev-run-tests
- Seller: https://agentstack.voostack.com/s/ainova-systems
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
