test-suite-analysis

test-suite-analysis is a skill for Claude Code from prime-radiant-inc/greenfield. It costs 57 tokens per session (3,049 once invoked), scanned A, original, Apache-2.0.

A method for reading a software project's tests to learn what the system is expected to do. It identifies the test framework, test types, and behavior described by each test.

In plain words
What is it for?
It helps analyze unit and end-to-end tests, map steps as Given/When/Then, and extract behavior that can be checked by running the tests.
Why use it?
It turns tests into a reliable source of current system behavior, including exact inputs, expected results, and edge cases. This helps when documentation is incomplete or outdated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the greenfield plugin — 22 skills, 2 commands, 2 agents shipped together

Good fit It helps analyze unit and end-to-end tests, map steps as Given/When/Then, and extract behavior that can be checked by running the tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prime-radiant-inc/greenfield/test-suite-analysis
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 prime-radiant-inc/greenfield --skill test-suite-analysis
Clone the repo
git clone --depth 1 https://github.com/prime-radiant-inc/greenfield

Made for: Claude Code.

Or install greenfield, the plugin that ships this one along with the rest of its 22 skills, 2 commands, 2 agents.

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 test-suite-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/test-suite-analysis/github.svg)](https://agentmods.dev/skills/prime-radiant-inc/greenfield/test-suite-analysis)
Your own site
<a href="https://agentmods.dev/skills/prime-radiant-inc/greenfield/test-suite-analysis"><img src="https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/test-suite-analysis/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 test-suite-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/prime-radiant-inc/greenfield/test-suite-analysis"><img src="https://agentmods.dev/badge/skills/prime-radiant-inc/greenfield/test-suite-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,049 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 229
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
  • medium MCP Rug Pull · line 177
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 201
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 204
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00057 $0.03049
Opus 5 $0.00028 $0.01524
Sonnet 5 $0.00011 $0.00610
Haiku 4.5 $0.00006 $0.00305

Measured 11d ago against content hash 4d998b19aee6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

test-suite-analysis 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 11d 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.

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.

skills/test-suite-analysis/SKILL.md · 267 lines

How it starts

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

Test Suite Analysis Methodology

Extract behavioral intelligence from test suites. Tests are executable specifications -- they encode what the system MUST do in a form that can be verified. A passing test is a confirmed behavioral contract.

When to Use This Mode

Test suite analysis activates when:

  • The target repository contains test files
  • The discovery inventory identifies test files in the project
  • Other modes discover test directories during analysis

This mode runs independently of all other intelligence sources. All output is RAW (test code references internal implementation details).

Why Tests Are High-Value Intelligence

Tests are the only source type that is simultaneously:

  • Behavioral -- they describe what the system does, not how it's built
  • Executable -- they can be run to confirm the behavior still holds
  • Specific -- they provide exact inputs, expected outputs, and edge cases
  • Maintained -- failing tests get fixed, so they track current behavior

A single end-to-end test is worth more than a page of documentation because the test is verified by CI on every commit.

Framework Detection

Identify the test framework(s) in use before analyzing test code. Different frameworks use different assertion styles, test organization, and execution models.

Framework Language Detection Signals
Jest JavaScript/TypeScript jest.config.*, describe( / it( / expect( in __tests__/ or *.test.*, @jest/globals imports
Playwright JavaScript/TypeScript playwright.config.*, @playwright/test imports, page.goto( / page.click(
Cypress JavaScript/TypeScript cypress.config.*, cypress/ directory, cy.visit( / cy.get(
pytest Python conftest.py, pytest.ini / pyproject.toml with [tool.pytest], files named test_*.py / *_test.py, assert statements
Go testing Go *_test.go files, testing.T / testing.B parameters, go test in CI config
RSpec Ruby .rspec, spec/ directory, spec_helper.rb, describe / it / expect blocks
JUnit Java/Kotlin @Test annotations, src/test/ directory, assertEquals / assertThat calls
XCTest Swift/Objective-C XCTestCase subclasses, func test*() methods, XCTAssert* calls
Catch2 C++ #include <catch2/catch.hpp>, TEST_CASE( / SECTION( / REQUIRE( macros

Read the full file on GitHub · 267 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. 11d ago First seen · 267 lines · 57 tokens per session scan A 4d998b19aee6

Subscribe to this mod's changes

test-suite-analysis is a skill published in the GitHub repository prime-radiant-inc/greenfield (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 57 tokens to every session and 3,049 once invoked, about $0.0003 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-30.