reaatech/agents-md-kit/confusion-matrix

Claude Code and agent skill by reaatech/agents-md-kit

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Calculates confusion matrix metrics for classification evaluation

Install

npx vskill@latest install reaatech/agents-md-kit/confusion-matrix

SKILL.md

The same SKILL.md was published earlier as reaatech/agents-md-kit/confusion-matrix.

Confusion Matrix Skill

Capability

Computes confusion matrix and derived metrics (accuracy, precision, recall, F1) for classification model evaluation.

MCP Tools

ToolInput SchemaOutputRate Limit
compute_matrixz.object({ predictions: z.array(z.string()), ground_truth: z.array(z.string()) }){ matrix: object, metrics: object }50 RPM
compute_multiclassz.object({ predictions: z.array(z.string()), ground_truth: z.array(z.string()), labels: z.array(z.string()) }){ matrix: object, per_class: object, macro_avg: object }30 RPM
generate_reportz.object({ matrix: z.object() }){ report: string, visualization: string }20 RPM
Tool: compute_matrix

Computes confusion matrix for binary classification.

Input Schema:

typescript
z.object({
predictions: z.array(z.string()).describe('Predicted labels'),
ground_truth: z.array(z.string()).describe('True labels'),
})

Output:

typescript
{
matrix: {
tp: number;
tn: number;
fp: number;
fn: number;
};
metrics: {
accuracy: number;
precision: number;
recall: number;
f1: number;
support: number;
};
}

Usage Examples

Compute Binary Metrics

Request:

json
{
"name": "compute_matrix",
"arguments": {
"predictions": ["positive", "negative", "positive", "positive"],
"ground_truth": ["positive", "negative", "negative", "positive"]
}
}

Response:

json
{
"matrix": {
"tp": 2,
"tn": 1,
"fp": 1,
"fn": 0
},
"metrics": {
"accuracy": 0.75,
"precision": 0.67,
"recall": 1.0,
"f1": 0.8,
"support": 4
}
}

Error Handling

Error TypeCauseRecovery
LENGTH_MISMATCHPredictions and ground truth have different lengthsReturn error with counts
EMPTY_INPUTNo data providedReturn zero metrics

Security Considerations

  • No data is persisted
  • Metrics are computed in-memory

Testing

bash
npm test -- tests/skills/confusion-matrix.test.ts

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/reaatech/agents-md-kit/confusion-matrix/badge)](https://verified-skill.com/skills/reaatech/agents-md-kit/confusion-matrix)

Something wrong with this skill or its page? Tell us.