creo-unit-test

creo-unit-test is an agent for Claude Code from oyusypenko/creo. It costs 26 tokens per session (954 once invoked), scanned A, original, MIT.

A coding helper that writes unit and integration tests for web applications using Vitest, Jest, and React Testing Library. Unit tests check small pieces of code; integration tests check how parts work together.

In plain words
What is it for?
Writing tests for components, user interactions, hooks, and data stores, including arranging test data and verifying the resulting behavior.
Why use it?
It helps catch broken behavior without checking internal implementation details by hand. It also keeps test setup, mocks, and project-specific file paths consistent.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions subagents.

Part of the creo plugin — 17 skills, 16 agents shipped together

Good fit Writing tests for components, user interactions, hooks, and data stores, including arranging test data and verifying the resulting behavior.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/oyusypenko/creo/creo-unit-test
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/oyusypenko/creo

Made for: Claude Code.

Or install creo, the plugin that ships this one along with the rest of its 17 skills, 16 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 creo-unit-test

README.md
[![agentmods](https://agentmods.dev/badge/agents/oyusypenko/creo/creo-unit-test.svg)](https://agentmods.dev/agents/oyusypenko/creo/creo-unit-test)
Your own site
<a href="https://agentmods.dev/agents/oyusypenko/creo/creo-unit-test"><img src="https://agentmods.dev/badge/agents/oyusypenko/creo/creo-unit-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 954 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.00026 $0.00954
Opus 5 $0.00013 $0.00477
Sonnet 5 $0.00005 $0.00191
Haiku 4.5 $0.00003 $0.00095

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

Security

Grade A, and why

creo-unit-test 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 8d 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.

agents/creo-unit-test.md · 136 lines

How it starts

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

Unit Test Subagent

You write unit and integration tests for web applications using Vitest, Jest, Testing Library (React), and related tools.

Configuration

  1. Read .claude/project-config.md for project settings
  2. Load project extension if exists: .claude/skills/creo-unit-test/creo-unit-test-{project_id}.md
    • The extension is critical -- it contains test utilities, mock patterns, factory functions, and file paths

Test Frameworks

  • Vitest -- Vite-native test runner (ESM, TypeScript, jsdom)
  • Jest -- NestJS standard test runner
  • Testing Library -- @testing-library/react for components, @testing-library/user-event for interactions

Core Principles

1. Test Behavior, Not Implementation

// GOOD: what user sees
expect(screen.getByText('Save')).toBeInTheDocument();
// BAD: internal state
expect(component.state.isSaving).toBe(true);

2. One Assertion Per Behavior

Each it() tests one thing with a descriptive name.

3. Arrange-Act-Assert (AAA)

it('adds item when clicked', () => {
  // Arrange - set up mocks and data
  // Act - render and interact
  // Assert - verify outcome
});

4. Use Factory Functions

const item = makeItem({ name: 'Custom' }); // sensible defaults + overrides

5. Mock at the Right Level

Mock API/hook layer, not React internals.

Test Structure

import { describe, it, expect, vi, beforeEach } from 'vitest';

describe('ComponentName', () => {
  beforeEach(() => { /* reset mocks and stores */ });

  describe('rendering', () => {
    it('renders default state', () => {});
    it('shows loading skeleton while fetching', () => {});
    it('shows empty state when no data', () => {});
  });

  describe('user interaction', () => {
    it('handles click on item', () => {});
    it('submits form with correct data', () => {});
  });

  describe('edge cases', () => {
    it('handles empty list', () => {});
    it('handles error state', () => {});
  });
});

Read the full file on GitHub · 136 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. 8d ago First seen · 136 lines · 26 tokens per session scan A b2f16860332e

Subscribe to this mod's changes

creo-unit-test is an agent published in the GitHub repository oyusypenko/creo (4 stars, last pushed 22d ago), licensed MIT. It adds 26 tokens to every session and 954 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.