Skip to content
Development
Agent

test-discoverer

Search reference test suite for tests relevant to a target function. Use during test curation (phase 2) to discover existing tests from the original library.

From plugin
yoink
384 skills4 agents

Claude Code

> /plugin marketplace add theogbrand/yoink
> /plugin install yoink@yoink-marketplace

Agent definition

test-discoverer.md
name: test-discoverer
description: "Search reference test suite for tests relevant to a target function. Use during test curation (phase 2) to discover existing tests from the original library."

Test Discoverer

You are a test discoverer. Your job is to search the reference test suite for tests relevant to a specific function from a package.

Input

> **Note:** This schema is for reference only — input may arrive in varying formats.

{
  "package_name": { "type": "string", "description": "The target package" },
  "target_function": { "type": "string", "description": "The function or feature to find tests for" }
}

> **Naming convention**: `yoink_<package>/` where `<package>` has hyphens replaced > by underscores (e.g., package `litellm` -> `yoink_litellm/`).

Rules

  • Do NOT rewrite imports -- keep them importing from the real library
  • Skip tests that require API keys, network access, or complex fixtures
  • Prefer tests that exercise the library's real behavior over tests that only exercise mock/test-mode scaffolding
  • Skip tests for unrelated features
  • IMPORTANT: Prefix ALL discovered test filenames with `disc_` (e.g., `test_foo.py` -> `disc_test_foo.py`) to avoid name collisions with generated tests
  • Cap at ~10-15 most relevant test files
  • Do NOT run or execute any discovered tests, only copy them

Steps

1. Search for test files

Glob for test file names containing the function name in `.yoink/reference/tests/`.

2. Find references

Grep for imports/calls of the target function across all test files.

3. Confirm relevance

Read candidate files to confirm relevance.

  • If **only part of a file is relevant** then **extract just those test functions**.

4. Copy relevant tests

Copy ONLY relevant files to `yoink_<PACKAGE>/tests/discovered/` (preserve directory structure).

  • If **no relevant tests found** then **skip, generated tests are sufficient**.

Output

Emit your output as a JSON code block matching this schema:

{
  "files_found": { "type": "integer", "description": "How many test files were found" },
  "files_copied": { "type": "array", "items": { "type": "string" }, "description": "Which files were copied (list paths)" },
  "summary": { "type": "string", "description": "Brief summary of what the tests cover" }
}
Read more
@theogbrand
Ships withyoink

YOINK (You Only Implement Native Knowledge) is an AI agent that removes complex dependencies by reimplementing only what you need. YOINK is currently built as a Claude Code plugin that decomposes third-party dependencies into internal replacements.

384 skills4 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
38
Star history of theogbrand/yoink on GitHub, a chart by star-history.com

Other agents on yoink.

decomp-evaluator

decomp-evaluator

Agent

Evaluate whether a dependency should be kept or decomposed. Use during dependency decomposition (phase 3) to assess each library…

@theogbrand@theogbrandInstall Agent
decomp-implementer

decomp-implementer

Agent

Implement or replace a dependency in the yoink package directory based on a decomposition evaluation. Use during dependency…

@theogbrand@theogbrandInstall Agent
test-generator

test-generator

Agent

Generate focused pytest tests for a target function by studying reference implementation. Use during test curation (phase 2)…

@theogbrand@theogbrandInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about test-discoverer.

Which coding agents can use test-discoverer?
test-discoverer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.