discover-checks

discover-checks is a command for Claude Code from coleam00/Archon. It costs 0 tokens per session (662 once invoked), scanned A, original, MIT.

A command that finds the checks already defined by a project and declares which ones form its validation gate. The gate is the set of checks used to decide whether a change is ready, such as type checks, linting, tests, or a build.

In plain words
What is it for?
Use it to identify the checks a repository should run before accepting a change, including an existing combined check command when the project defines one.
Why use it?
It prevents made-up validation commands and uses the project's own scripts, CI settings, and documentation instead. It also records the correct order and includes the project's locked dependency install command when needed.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it to identify the checks a repository should run before accepting a change, including an existing combined check command when the project defines one.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/coleam00/archon/discover-checks
About the project

Archon is a workflow engine for AI coding agents that turns development processes into YAML-defined sequences with phases, validation gates, and artifacts. Developers use it to run repeatable processes such as planning, implementation, testing, code review, and pull-request creation across projects. The catalogue entries provide commands, agents, skills, hooks, instructions, and settings for working with Archon.

coleam00/Archon · 23,690 stars · on GitHub · archon.diy

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/coleam00/Archon

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discover-checks

README.md
[![agentmods](https://agentmods.dev/badge/commands/coleam00/archon/discover-checks/github.svg)](https://agentmods.dev/commands/coleam00/archon/discover-checks)
Your own site
<a href="https://agentmods.dev/commands/coleam00/archon/discover-checks"><img src="https://agentmods.dev/badge/commands/coleam00/archon/discover-checks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for discover-checks

Your own site · 80×15
<a href="https://agentmods.dev/commands/coleam00/archon/discover-checks"><img src="https://agentmods.dev/badge/commands/coleam00/archon/discover-checks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 662 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00662
Opus 5.5 $0.00000 $0.00265
Sonnet 5.5 $0.00000 $0.00132
Haiku 4.5 $0.00000 $0.00066

Measured yesterday against content hash f748c214bfed, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

discover-checks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.archon/workflows/sdlc/validate/commands/discover-checks.md · 27 lines

How it starts

The opening of the file, as written. The whole thing — 27 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Discover the checks

Find the project's own checks and declare them. You do not run the gate: a script runs exactly what you declare, for as long as it takes, and records every exit status. Your declaration is the whole of what gets validated, so it must be the project's gate and nothing else.

Optional narrowing (may be empty — empty means the full applicable gate):

$INPUTS.scope

The run's trigger message, which may add context:

$ARGUMENTS

Discover

  1. Read the checks from the repository itself: package scripts, task runners, CI workflow definitions, contributor docs. Never invent a generic command the project does not define; never substitute your own idea of a check for the project's.
  2. Honor a documented aggregate gate (a validate/check script) over reassembling its pieces by hand. Declare it as one check in one group. Declare separate checks only when the project has no aggregate gate, and then in the project's own order where one is documented: type checks, lint, tests, build.
  3. Find the independent gates. A project with several independently built parts — a service in one language beside a web app in another, per-module or per-crate gates — has one group per part, so a failure in one never hides another's results. Checks that belong to one gate share a group, in order.
  4. If dependencies are missing, declare the project's own install command in locked mode as the first check (for example a frozen lockfile flag). A gate that fails on a broken environment is reporting the environment, not the code.
  5. Apply the narrowing above when it is not empty: the checks that cover that package, directory or named check.

You may read files and run read-only commands to find these out — list scripts, check whether dependencies are installed, inspect git status. Do not run the checks themselves, and do not modify anything.

Declare

  • checks — each check as { name, argv, group }, in the order to run. argv is the command and its arguments as separate strings, run from the repository root with no shell. When a check genuinely needs a shell (a pipeline, &&, an environment assignment), name the shell explicitly, as in ["bash", "-c", "<the project's own command>"]. On Windows, a command installed as a .cmd shim (such as npm or pnpm) also needs a shell to start. group names the independent gate the check belongs to; within a group order matters and the first failing check ends that group, while every group runs. A project with one gate puts every check in one group. An install step goes first in each group that needs it, so a failed install stops exactly the gates that depend on it; a locked install that already holds is quick to repeat.
  • notes — one or two sentences: where the gate is defined and why these checks. When the repository genuinely defines no checks, checks is empty and notes says what you looked at to establish that. An empty list reads as green, so declare it only when there is truly nothing to run, never because the gate looked hard to run.

Read the full file on GitHub · 27 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · +1 lines f748c214bfed
  2. 10d ago Changed · -5 lines bd3fdb3edb31
  3. 20d ago First seen · 31 lines · 0 tokens per session scan A 70d9133cfac4

Subscribe to this mod's changes

discover-checks is a command published in the GitHub repository coleam00/Archon (23,690 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 662 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.