cover

A command that creates unit tests for packages or individual files across React Native, Node.js, and Android projects. Unit tests check small pieces of code in isolation.

In plain words
What is it for?
Use it to scan for untested slices, thunks, hooks, and services, then generate test files in batches or for specific source files and run Jest after each one.
Why use it?
It helps find code that has no tests and reduces the effort of planning, writing, and running those tests.

Command

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.

agentmods
npx agentmods add commands/shiyas1331/devkit/cover
Clone the repo
git clone --depth 1 https://github.com/shiyas1331/devkit
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,125 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.02125
Opus 5 $0.00011 $0.01063
Sonnet 5 $0.00004 $0.00425
Haiku 4.5 $0.00002 $0.00213

Measured yesterday against content hash 8155833719b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cover 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.

commands/cover.md · 182 lines

How it starts

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

Cover with unit tests — router

This is a thin dispatcher. The picker fires when $ARGUMENTS is empty; otherwise the command parses input and delegates to a sub-command. All mode bodies live in commands/cover/<mode>.md — they are self-contained.

Response format — always (except final reports):

  • What was done (max 2-3 bullets)
  • Exactly what the developer needs to do right now
  • What happens next

Never narrate reasoning. Be terse. Directional.

Input

$ARGUMENTS

Routing rules — apply in order

1. Empty input → interactive picker

Trigger: $ARGUMENTS is empty.

Use the AskUserQuestion tool. Do NOT print a menu in text. Do NOT read any help file.

Question 1 — mode selection:

question: "What do you want to do?"
header: "Mode"
multiSelect: false
options:
  - label: "Discover untested code"
    description: "Scan a package and list untested slices/thunks/hooks/services. Outputs a plan with suggested batches. Example: scan packages/establishment → shows 18 slices, 24 thunks, 12 hooks untested."
  - label: "Write tests"
    description: "Generate test files for one source file or a batch (slices, thunks, hooks). Runs jest after each. Example: write tests for every slice in packages/establishment in one batch."
  - label: "Setup foundation (one-time)"
    description: "Scaffold jest.config.js, setup.ts, test-utils, and native module mocks. Run this once on a fresh package before generating tests. Example: setup packages/establishment from zero test infra."
  - label: "Show coverage report"
    description: "Print coverage delta against baseline plus latent bugs flagged in earlier runs. Example: see that establishment went from 12% to 67% coverage."

After answer, ask for the path (regular text prompt, NOT a tool):

Path? (e.g. `packages/establishment`, or a specific file path for "Write tests"). Type `?` for the verbose reference.

If the user picked "Write tests" AND the path they provide is a directory (not a file), first detect the platform for that path (list <plugin-root>/platforms/, apply each detect.md), then ask the platform-appropriate Question 2 — scope.

Read the full file on GitHub · 182 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 First seen · 182 lines · 22 tokens per session scan A 8155833719b0

Subscribe to this mod's changes

cover is a command published in the GitHub repository shiyas1331/devkit (4 stars, last pushed 1mo ago), licensed MIT. It adds 22 tokens to every session and 2,125 once invoked, about $0.0001 per session on Opus 5. 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-08-31.