agentleFS
semihkayansemihkayan/codeweave-mcp/.claude/skills/test-harness/SKILL.md

test-harness

Skill4 starsChanged 6 months agoApache-2.0View on GitHub

Test codeweave-mcp tools against any project using TestHarness. Use this whenever verifying tool behavior, testing a code change, or running custom assertions — e.g. "test the harness", "run tests against X project", "does semantic_search work correctly".

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. Mathews-Tom/armory★ 340same name
    2. zernie/vigiles★ 15same name
    3. NaveenGumaste/keyskills★ 2same name
    4. Asno-dev/apex★ 1same name
    5. manav8498/processfork★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

Files
SKILL.md

codeweave-mcp Test Harness

TestHarness in src/test-harness.ts. Write a temp .ts file and run with npx tsx <file> from the project root.

Modes

import { TestHarness } from "./src/test-harness.js";

const h = await TestHarness.setup("/absolute/path/to/project");

// All built-in tests (covers the 3 retained tools)
await h.testAll();

// Single tool
await h.test("semantic_search");

// Custom assertions
await h.run([
  {
    tool: "semantic_search",
    args: { query: "user authentication", top_k: 5 },
    label: "search: auth",
    assert: d => d?.results?.length > 0 || "no results",
  },
]);

// Manual call — returns parsed JSON
const data = await h.call("get_index_status", { workspace: "wordbox-api" });

await h.close(); // always close

Tool params & response shapes

semantic_search

Params: query (string, required), workspace?, scope?, top_k? (default 10), tags_filter? (string[]), side_effects_filter? (string[]) Response: { results, total_indexed, search_mode, warning? } Each result: { function, file, module, signature, summary, tags, score, line_start, line_end, workspace? }

reindex

Params: workspace?, files? (string[]), force? (default false) Response: { workspace?, status, mode, ast_index: { files, functions, classes }, embedded, vector_store_rows, elapsed_ms }

get_index_status

Params: workspace? Single: { status, workspace, ast_index, vector_store, call_graph, type_graph, embedding_available, docstring_coverage, languages } Multi: { status, workspaces[], embedding_available, model }

assert

Receives parsed JSON response. Return true = pass, string = fail reason.

Multi-workspace

Pass workspace as the short name (not full path): { workspace: "wordbox-api" }

Notes

  • setup() loads from cache — fast after first run.
  • testAll() includes a force-full reindex at the end — slow on large projects.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.