Skip to content
Back to skills

Runner Detection

ASecurity

Use to figure out how to run a repo's tests and type/compile checks, and to write the green-keeper config. Covers common ecosystems and the config schema.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added August 31, 2026
developmentpythonrustgoshellnodegit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned August 31, 2026

npx -y skills add localplugins/plugins --skill runner-detection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Runner Detection?

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

Security grade badge for Runner Detection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/localplugins-runner-detection/badge)](https://www.skillsdirectory.com/skills/localplugins-runner-detection)

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: runner-detection
description: Use to figure out how to run a repo's tests and type/compile checks, and to write the green-keeper config. Covers common ecosystems and the config schema.
---

# Runner Detection

Green Keeper needs two concrete shell commands for a repo: how to run the tests, and how to run the type/compile check. Detect them, confirm with the user, and cache them to `.green-keeper/config.json`.

## Use when

- Running `/green-setup` on a new repo.
- A configured command is wrong and needs re-detecting.
- Writing or editing `.green-keeper/config.json`.

## Decision guide

1. **Identify the ecosystem** from the manifest present: `package.json` (Node/TS), `pyproject.toml`/`setup.cfg`/`tox.ini` (Python), `go.mod` (Go), `Cargo.toml` (Rust), `Makefile` (any).
2. **Read the real commands, don't guess them.** Prefer `scripts`/targets already defined; CI config (`.github/workflows`) usually names the exact commands the team runs.
3. **Pick a fast `quickTest`.** The hooks run it on every turn end and session start, so choose a changed-files or single-package subset when one exists; otherwise fall back to the full `test`.
4. **Honor explicit overrides** from `--test` / `--typecheck` / `--quick` arguments — they win over detection.
5. **Confirm before saving.** These commands run automatically via hooks. Show them and get a yes.
6. **Never guess a destructive command.** If you can't detect one, ask the user.

## Quick reference

| Ecosystem | Typical `test` | Typical `typecheck` |
| --- | --- | --- |
| Node / TS | `npm test` / `vitest run` / `jest` | `tsc --noEmit` |
| Python | `pytest` | `mypy .` or `pyright` |
| Go | `go test ./...` | `go build ./...` or `go vet ./...` |
| Rust | `cargo test` | `cargo check` |
| Make-based | `make test` | `make check` / `make lint` |

## Deep references

- **`references/ecosystem-detection.md`** — per-ecosystem detection walkthroughs (where to look, which runner to infer, how to pick a fast `quickTest`), plus Make/CI fallbacks.
- **`references/config-schema.md`** — the full `.green-keeper/config.json` schema: every field, type, default, validation notes, and worked examples per ecosystem.

Files in this skill

  • SKILL.md2.1 KB
  • references/config-schema.md4 KB
  • references/ecosystem-detection.md4.7 KB

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.