testing-coverage

testing-coverage is a skill for Claude Code, Codex from Gentleman-Programming/gentleman-guardian-angel. It costs 0 tokens per session (693 once invoked), scanned A, original, MIT.

A testing guide for GGA, a command-line tool, that requires behavior changes to include ShellSpec tests. ShellSpec is a framework for testing shell scripts.

In plain words
What is it for?
Use it when changing GGA scripts, providers, caching, commands, hooks, or CI mode, and when running all, unit, integration, or individual tests.
Why use it?
It helps catch regressions by testing both individual shell functions and complete commands, hooks, and continuous-integration flows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when changing GGA scripts, providers, caching, commands, hooks, or CI mode, and when running all, unit, integration, or individual tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gentleman-programming/gentleman-guardian-angel/testing-coverage
About the project

Gentleman Guardian Angel is an AI code-review tool that checks staged files against a repository’s coding standards. Developers use it as a Git pre-commit hook or to review full pull requests, with different AI providers available. The catalogue add-ons support its workflows.

Gentleman-Programming/gentleman-guardian-angel · 1,145 stars · on GitHub

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.

Any agent
npx skills add Gentleman-Programming/gentleman-guardian-angel --skill testing-coverage
Clone the repo
git clone --depth 1 https://github.com/Gentleman-Programming/gentleman-guardian-angel

Made for: Claude Code, Codex.

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 testing-coverage

README.md
[![agentmods](https://agentmods.dev/badge/skills/gentleman-programming/gentleman-guardian-angel/testing-coverage/github.svg)](https://agentmods.dev/skills/gentleman-programming/gentleman-guardian-angel/testing-coverage)
Your own site
<a href="https://agentmods.dev/skills/gentleman-programming/gentleman-guardian-angel/testing-coverage"><img src="https://agentmods.dev/badge/skills/gentleman-programming/gentleman-guardian-angel/testing-coverage/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 testing-coverage

Your own site · 80×15
<a href="https://agentmods.dev/skills/gentleman-programming/gentleman-guardian-angel/testing-coverage"><img src="https://agentmods.dev/badge/skills/gentleman-programming/gentleman-guardian-angel/testing-coverage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00693
Opus 5 $0.00000 $0.00347
Sonnet 5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00069

Measured 9d ago against content hash 5ada0cb82683, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

testing-coverage scanned grade A with 1 finding 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 9d ago.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

! curl -s http://localhost:11434/api/tags >/dev/null 2>&1 && \
skills/testing-coverage/SKILL.md · 89 lines

How it starts

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

Skill: gga-testing-coverage

Purpose

Ensure test coverage for all behavior changes in GGA.

When to Use

When implementing behavior changes in any script (bin/gga, lib/*.sh).

Framework

ShellSpec — https://shellspec.info/

Test Structure

spec/
├── unit/           # Isolated function tests (no external calls)
│   ├── cache_spec.sh
│   └── providers_spec.sh
├── integration/    # Full command + hook + CI mode tests
│   └── commands_spec.sh
├── support/        # Shared helpers, fixtures
└── spec_helper.sh  # Global setup

Unit tests → test functions in lib/cache.sh, lib/providers.sh in isolation. Integration tests → test gga CLI commands, hook injection, CI mode end-to-end.

Running Tests

Command What It Does
make test Run all tests
shellspec spec/unit Unit tests only
shellspec spec/integration/commands_spec.sh Integration tests only
shellspec spec/unit/cache_spec.sh:65 Single test at line 65
shellspec --format documentation Verbose output with names

Critical Rules

  • Every feature or bug fix MUST include tests — no exceptions
  • Use setup/cleanup blocks with temp dirs for test isolation
  • Mock external commands (providers, git) in unit tests — never call real providers
  • Ollama tests skip automatically when no server is running (use skip_if_no_ollama)
  • Run make test before every push

ShellSpec Patterns

# Basic structure
Describe 'function_name'
  setup() { ... }
  cleanup() { ... }

  It 'does something'
    When call function_name arg
    The status should be success
    The output should include "expected"
  End
End

# Custom assertion (use Assert for comparisons, not bare The status)
It 'returns a count less than 10'
  When call get_count
  The output should be present
  Assert [ "$(get_count)" -lt 10 ]
End

# Skip conditionally
skip_if_no_ollama() {
  ! curl -s http://localhost:11434/api/tags >/dev/null 2>&1 && \
    skip "Ollama not running"
}

Read the full file on GitHub · 89 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. 9d ago First seen · 89 lines · 0 tokens per session scan A 5ada0cb82683

Subscribe to this mod's changes

testing-coverage is a skill published in the GitHub repository Gentleman-Programming/gentleman-guardian-angel (1,145 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 693 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.