test-add:prompt

test-add:prompt is a skill for Claude Code from DanialDaeHyunNam/omniscitus. It costs 70 tokens per session (2,862 once invoked), scanned A, original, MIT.

A test-scaffold generator for AI prompts whose responses cannot be checked reliably with exact text comparisons. It creates evaluations where another language model scores qualities such as correctness, naturalness, and safety.

In plain words
What is it for?
Use it to create tests for chat prompts, evaluations, and other non-deterministic AI outputs with `/test-add:prompt`.
Why use it?
AI responses can vary while still being acceptable, so fixed expected-output tests are often too strict. This tool provides structured criteria and judge-based scoring instead.

Skill for Claude Code

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

Part of the omniscitus plugin — 16 skills, 3 hooks shipped together

Good fit Use it to create tests for chat prompts, evaluations, and other non-deterministic AI outputs with /test-add:prompt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/danialdaehyunnam/omniscitus/test-add-prompt
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 DanialDaeHyunNam/omniscitus --skill test-add-prompt
Clone the repo
git clone --depth 1 https://github.com/DanialDaeHyunNam/omniscitus

Made for: Claude Code.

Or install omniscitus, the plugin that ships this one along with the rest of its 16 skills, 3 hooks.

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-add:prompt

README.md
[![agentmods](https://agentmods.dev/badge/skills/danialdaehyunnam/omniscitus/test-add-prompt/github.svg)](https://agentmods.dev/skills/danialdaehyunnam/omniscitus/test-add-prompt)
Your own site
<a href="https://agentmods.dev/skills/danialdaehyunnam/omniscitus/test-add-prompt"><img src="https://agentmods.dev/badge/skills/danialdaehyunnam/omniscitus/test-add-prompt/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-add:prompt

Your own site · 80×15
<a href="https://agentmods.dev/skills/danialdaehyunnam/omniscitus/test-add-prompt"><img src="https://agentmods.dev/badge/skills/danialdaehyunnam/omniscitus/test-add-prompt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,862 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.00070 $0.02862
Opus 5 $0.00035 $0.01431
Sonnet 5 $0.00014 $0.00572
Haiku 4.5 $0.00007 $0.00286

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

Security

Grade A, and why

test-add:prompt 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.

plugins/omniscitus/skills/test-add-prompt/SKILL.md · 342 lines

How it starts

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

Test-Add:Prompt — LLM Judge Test Scaffold

Create structured test definitions for AI prompts that require LLM-based evaluation rather than programmatic assertion. This is fundamentally different from /test-add — prompt outputs are non-deterministic and must be evaluated by judge models on multi-dimensional criteria.

When to Use

  • User types /test-add:prompt {prompt-name}
  • Testing AI prompt outputs (chat responses, evaluations, generations)
  • Outputs can't be compared with === — they need semantic evaluation
  • Quality is multi-dimensional (correctness, naturalness, safety, etc.)

Why This Exists Separately from /test-add

Aspect /test-add (code) /test-add:prompt
Assertion assert(output === expected) judgeScore >= threshold
Variability Deterministic Non-deterministic (mitigated by T=0)
Validation Logic checks LLM meta-judges check reasoning
Test data Exact input/output pairs Intent-based criteria + rubrics
Speed Milliseconds Seconds (API calls per test + judge)
Failure "Expected X, got Y" "Scored 65 on naturalness (threshold: 70)"

Instructions

Step 1: Identify the Prompt

Read the prompt template/implementation that will be tested. Understand:

  • What input variables it takes
  • What output format it produces (structured, free-text, JSON, etc.)
  • What "good" vs "bad" output looks like
  • Any safety constraints or hard rules

Step 2: Create Test Directory

mkdir -p .omniscitus/tests/prompts/{prompt-name}

Step 3: Generate prompt-meta.yaml

Create .omniscitus/tests/prompts/{prompt-name}/prompt-meta.yaml:

target: {path-to-prompt-template-or-implementation}
type: prompt                           # distinguishes from code tests
prompt_name: {prompt-name}
last_updated: {YYYY-MM-DD}

# --- Test infrastructure references ---
# For new prompts, omniscitus generates these in-place.
# For existing projects, these point to where things already live.

test_root: .omniscitus/tests/prompts/{prompt-name}/   # default (self-contained)
# test_root: web/scripts/prompt-optimization/          # or point to existing infra

runner: runner.ts                       # relative to test_root
config: null                            # e.g., .env.local if needed

# --- Judge configuration ---
judge:
  model: gpt-4o                        # or project-specific model
  temperature: 0                       # deterministic judging
  max_retries: 2                       # retry on judge failure

# --- Evaluation type ---
# Determines how outputs are scored.
#   multi_criteria — weighted rubric scoring (default)
#   binary         — pass/fail per case
#   comparison     — A/B: which output is better
#   regression     — did this version get worse than previous
evaluation:
  type: multi_criteria

# --- Criteria ---
# Each criterion can have rubric inline (string) or as external file path.
criteria:
  - name: correctness
    weight: 0.4                        # 40% of final score
    rubric: |
      Does the output correctly address the input?
      5: Perfectly correct, no errors
      4: Minor issues that don't affect meaning
      3: Some errors but core message is right
      2: Significant errors
      1: Fundamentally wrong
    scale: 5                           # 1-5 scale

  - name: naturalness
    weight: 0.3
    rubric: |
      Does the output sound natural and fluent?
      5: Indistinguishable from a native speaker
      4: Natural with minor awkwardness
      3: Understandable but clearly non-native
      2: Awkward and hard to follow
      1: Incomprehensible
    scale: 5

  - name: safety
    weight: 0.2
    rubric: |
      Does the output follow safety constraints?
      5: Fully compliant
      1: Violates constraints
    scale: 5

  - name: format_compliance
    weight: 0.1
    rubric: |
      Does the output follow the expected format?
      5: Perfect format
      3: Minor deviations
      1: Wrong format entirely
    scale: 5

# --- Specs (optional) ---
# External specification documents that define evaluation rules in detail.
# Omit for simple prompts. Use for complex systems with language-specific scoring.
# specs:
#   pattern: "docs/prompt/specs/**/*.md"   # glob relative to project root

# --- Validation checks ---
checks:
  - name: output_not_empty
    type: deterministic                # deterministic | llm_judge
    rule: "output.length > 0"

  - name: no_hallucination
    type: llm_judge
    prompt: |
      Given this input: {input}
      And this output: {output}
      Does the output contain claims not supported by the input?
      Answer YES or NO with brief explanation.
    pass_condition: "NO"

# --- Thresholds ---
thresholds:
  pass: 70                             # weighted score >= 70 to pass
  warn: 50                             # below 50 = critical failure
  per_criterion:                       # optional per-criterion minimums
    safety: 80                         # safety must score >= 80 regardless

# --- Test cases ---
# Two modes:
#   inline   — cases listed directly below (default, good for <30 cases)
#   external — cases in separate files (for large/partitioned test suites)
cases:
  source: inline                       # "inline" | "external"
  # When external:
  #   pattern: "test-cases/**/*.{ts,yaml,json}"   # glob relative to test_root
  #   schema: test-cases/_schema.yaml              # optional case format definition
  items:
    - title: "{descriptive name}"
      category: element                # element | mixed | edge | zero_condition
      input:
        {variable}: {value}           # prompt input variables
      expected_behavior: |
        {natural language description of what good output looks like}
      expected_score_range:
        min: 75
        max: 90

    - title: "{zero condition test}"
      category: zero_condition
      input:
        {variable}: {nonsense or wrong-language input}
      expected_behavior: |
        Should reject or score very low
      expected_score_range:
        min: 0
        max: 10

# --- Overrides (optional) ---
# Manual score overrides for cases where AI evaluation is inconsistent.
# Stored separately to keep test cases clean.
# overrides:
#   source: overrides/overrides.yaml   # or inline list
#   items:
#     - case_ref: "english/countable-uncountable"
#       score: 85
#       timestamp: "2026-02-18T11:01:29Z"
#       reason: "Consistent across 10 validation runs"

# --- Logs & Analysis (optional) ---
# Where test execution results are stored.
# logs:
#   directory: logs/                   # relative to test_root (default)
#   format: jsonl                      # jsonl | json | csv
# analysis:
#   directory: logs/analysis/          # relative to test_root (default)

Read the full file on GitHub · 342 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 · 342 lines · 70 tokens per session scan A 86fe0314e45d

Subscribe to this mod's changes

test-add:prompt is a skill published in the GitHub repository DanialDaeHyunNam/omniscitus (5 stars, last pushed 1mo ago), licensed MIT. It adds 70 tokens to every session and 2,862 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-31.