Agent skill

Test Model

by xybrid-ai in xybrid-ai/xybrid

Test a model end-to-end using the xybrid execution system. An agent skill from xybrid-ai/xybrid.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Test Model

skills CLI
$ npx skills add xybrid-ai/xybrid --skill test-model -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install xybrid-ai/xybrid test-model --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/xybrid-ai/xybrid.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/test-model .claude/skills/test-model && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-model
GitHub stars
467
Token cost
~1.3k tokens
SKILL.md length
479 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Test a model end-to-end using the xybrid execution system. An agent skill from xybrid-ai/xybrid.

  • Works in 7 steps: Locate the Model → Validate model_metadata.json → Determine Test Strategy → …
  • Tasks that involve Speech recognition and synthesis
  • SKILL.md covers Step 1: Locate the Model, Step 2: Validate…, Step 3: Determine Test Strategy and Step 4: Find or Create Test…, plus 4 more sections
  • Calls cargo

What it does

Test Model is an agent skill from xybrid-ai/xybrid. Test a model end-to-end using the xybrid execution system.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Speech recognition and synthesis. It works with llama.cpp, ONNX, Ollama and Kotlin. The repository describes itself as: Cross-platform on-device AI toolkit. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Speech recognition and synthesis

Example prompts

  • “/test-model”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Locate the Model
  2. Validate model_metadata.json
  3. Determine Test Strategy
  4. Find or Create Test Example
  5. Run the Test
  6. Validate Output
  7. Report Results

What it can do on your machine

Read from SKILL.md and the folder at commit 56c3212. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • cargo

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test Model loads about 1.3k tokens when it runs. Until then it costs about 17 tokens; SKILL.md has 479 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from xybrid-ai/xybrid at commit 56c3212, republished under its Apache-2.0 licence (© xybrid-ai). 479 words, ~1,344 tokens.

Download SKILL.mdSave it as .claude/skills/test-model/SKILL.md (or your agent's skills folder).
name
test-model
description
Test a model end-to-end using the xybrid execution system.

Test a model end-to-end using the xybrid execution system.

The user should specify which model to test (e.g., "test kokoro-82m" or "test the TTS model").

Input: $ARGUMENTS (optional — model name or path to model directory)


Step 1: Locate the Model

If $ARGUMENTS is provided, use it to find the model. Otherwise ask which model to test.

Search for the model in these locations (in order):

  1. Direct path if $ARGUMENTS is a directory path
  2. integration-tests/fixtures/models/{name}/
  3. ~/.xybrid/cache/{name}/
  4. Current directory

Verify that model_metadata.json exists in the model directory.


Step 2: Validate model_metadata.json

Read model_metadata.json and check:

  1. All files listed in files array exist in the model directory
  2. model_file in execution_template points to an actual file
  3. JSON is valid and has required fields (model_id, version, execution_template, files)
  4. Preprocessing/postprocessing types are valid enum values

If any check fails, report the specific issue and suggest how to fix it.


Step 3: Determine Test Strategy

Based on the execution_template.type and metadata.task:

TaskInputExpected OutputFeature Flags
text-to-speechEnvelope::Text("Hello world")Audio bytes (length > 0)default
speech-recognition (Onnx)Envelope::Audio(wav_bytes)Text transcriptiondefault
speech-recognition (GgmlWhisper)Envelope::Audio(wav_bytes)Text transcriptionasr-whispercpp (in every platform-* preset)
speech-recognition (SafeTensors)Envelope::Audio(wav_bytes)Text transcriptioncandle,candle-metal — opt-in only; no preset enables Candle
text-generation (Gguf)Envelope::Text("Hello")Text responsellm-llamacpp
text-embeddingEnvelope::Text("test sentence")Embedding vector (f32)default
image_classificationRaw image bytesClass probabilitiesdefault

Step 4: Find or Create Test Example

Check for an existing example in crates/xybrid-core/examples/ that matches the model.

If no example exists, create a minimal one at crates/xybrid-core/examples/{model_id}_test.rs:

rust
//! Test example for {model_id}
use std::collections::HashMap;
use std::path::PathBuf;
use xybrid_core::execution::{ModelMetadata, TemplateExecutor};
use xybrid_core::ir::{Envelope, EnvelopeKind};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let model_dir = PathBuf::from("integration-tests/fixtures/models/{model_id}");
    let metadata_path = model_dir.join("model_metadata.json");
    let metadata: ModelMetadata = serde_json::from_str(&std::fs::read_to_string(&metadata_path)?)?;

    let mut executor = TemplateExecutor::with_base_path(model_dir.to_str().unwrap());

    // Create appropriate input based on model task
    let input = Envelope {
        kind: EnvelopeKind::Text("Hello world".into()), // adjust per task
        metadata: HashMap::new(),
    };

    // Third arg is an optional `&GenerationConfig` override.
    let output = executor.execute(&metadata, &input, None)?;
    println!("Output: {:?}", output.kind);
    println!("Test passed!");
    Ok(())
}

Adjust the input type based on the model task (Text for TTS/LLM/embedding, Audio for ASR).


Step 5: Run the Test

Run from the repos/xybrid/ directory (or the repo root if that's where Cargo.toml is):

bash
cargo run --example {example_name} -p xybrid-core --features {features}

Add feature flags based on the model type (see table in Step 3).


Show full SKILL.md (180 more words)Show less

Step 6: Validate Output

Check the output based on model type:

  • TTS: Output should be EnvelopeKind::Audio(bytes) with bytes.len() > 0. Optionally save to output.wav for manual listening.
  • ASR: Output should be EnvelopeKind::Text(transcription) with non-empty text.
  • LLM: Output should be EnvelopeKind::Text(response) with non-empty text.
  • Embedding: Output should be EnvelopeKind::Embedding(vec) with expected dimensionality.
  • Classification: Output should contain class probabilities or indices.

Step 7: Report Results

Print a summary:

Model: {model_id}
Task:  {task}
Input: {input_type}
Output: {output_summary}
Status: PASS / FAIL

{If FAIL: specific error message and suggestion}

Common Issues

  • "model_metadata.json not found": Check the model directory path
  • "file not found": A file listed in files array doesn't exist — download it or fix the path
  • "preprocessing failed": Wrong preprocessing step for the model type
  • "ONNX error": Model file may be corrupted or wrong format
  • "SafeTensors execution requires the 'candle' feature": the bundle is a Candle/SafeTensors model and no platform-* preset enables Candle any more. Either add --features candle explicitly, or switch to the GGML bundle (ExecutionTemplate::GgmlWhisper) that runs on asr-whispercpp — e.g. whisper-tiny-ggml instead of whisper-tiny.
  • "feature not enabled": Add the required feature flag (e.g. --features asr-whispercpp for GGML Whisper, --features candle for SafeTensors)
  • "llm backend not available": Add --features llm-llamacpp for GGUF models

© xybrid-ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/test-model of xybrid-ai/xybrid.

Open the folder on GitHubat commit 56c3212

Compare with similar skills

Test Model next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Model compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Model this skillxybrid-ai/xybrid467—~1.3kAutomated safety check: PassApache-2.0
Model ScoutRisorseArtificiali/anti-vocale117—~2.9kAutomated safety check: PassApache-2.0
Community Model ConversionRisorseArtificiali/anti-vocale117—~2.2kAutomated safety check: PassApache-2.0
Aider DelegateamElnagdy/delegate-skills2.3k2 repos~3kAutomated safety check: PassMIT
Mobilerun Docs Referencedroidrun/mobilerun9.6k—~943Automated safety check: PassMIT
Hugging Face LLM Trainerhuggingface/skills11k1 repos~7.2kAutomated safety check: PassApache-2.0

Similar skills

  • Model Scout

    RisorseArtificiali/anti-vocale

    A skill your agent uses when the user asks to "scout for new models", "check for model updates", "find better ASR models", "check sherpa-onnx releases", "look for new Whisper models", "search…

    117 GitHub stars~2.9k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Community Model Conversion

    RisorseArtificiali/anti-vocale

    Convert a HuggingFace ASR fine-tune into a sherpa-onnx external model, publish it, and add it to the Anti-Vocale community catalog.

    117 GitHub stars~2.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Aider Delegate

    amElnagdy/delegate-skills

    Delegate a coding task to Aider (aider) as a background implementer, then review its diff and land it yourself.

    2.3k GitHub starsUsed in 2 repos~3k tokens
    AI & LLM EngineeringAuto-check passed
  • Mobilerun Docs Reference

    droidrun/mobilerun

    Answers questions about Mobilerun, the LLM-agent framework for automating Android and iOS devices, by pointing the agent to the right page of its v5 documentation.

    9.6k GitHub stars~943 tokensUpdated 4 days ago
    MobileAuto-check passed
  • Hugging Face LLM Trainer

    huggingface/skills

    Official

    Trains or fine-tunes language and vision models with TRL or Unsloth on Hugging Face Jobs cloud GPUs, then converts the results to GGUF.

    11k GitHub starsUsed in 1 repo~7.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Model

    guoqingbao/xinfer

    Adapt and port new LLM model architectures to this xinfer project.

    334 GitHub stars~4.2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check: notes

More from xybrid-ai/xybrid

  • Xybrid Init

    xybrid-ai/xybrid

    Generate model metadata for an ML model so it works with xybrid.

    467 GitHub stars~3k tokensUpdated yesterday
    Auto-check passed

Questions about Test Model

What does Test Model do?

Test a model end-to-end using the xybrid execution system. An agent skill from xybrid-ai/xybrid. Test Model is an agent skill from xybrid-ai/xybrid. Test a model end-to-end using the xybrid execution system.

When should I use Test Model?

Test Model fits situations like: tasks that involve Speech recognition and synthesis.

How do I install Test Model in Claude Code?

Run `npx skills add xybrid-ai/xybrid --skill test-model -a claude-code`. Or copy the skill folder (.agents/skills/test-model in xybrid-ai/xybrid) into .claude/skills/test-model in your project. Claude Code loads it when a task matches its description.

How do I install Test Model in Codex?

Run `npx skills add xybrid-ai/xybrid --skill test-model -a codex`. Or copy the skill folder (.agents/skills/test-model in xybrid-ai/xybrid) into .agents/skills/test-model in your project. Codex loads it when a task matches its description.

Can I use Test Model in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add xybrid-ai/xybrid --skill test-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-model, .gemini/skills/test-model, .github/skills/test-model and .opencode/skills/test-model in your project.

What does Test Model need to run?

Going by SKILL.md and its folder, Test Model needs the command-line tools its instructions call (cargo).

Does Test Model access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Test Model safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Model use?

Test Model is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Test Model use?

About 1.3k tokens (SKILL.md is roughly 5.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Test Model?

Skills that share tags, products or a category with Test Model: Model Scout (RisorseArtificiali/anti-vocale, 117 stars), Community Model Conversion (RisorseArtificiali/anti-vocale, 117 stars), Aider Delegate (amElnagdy/delegate-skills, 2.3k stars) and Mobilerun Docs Reference (droidrun/mobilerun, 9.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Model?

xybrid-ai (a GitHub organization) maintains it in xybrid-ai/xybrid, which has 467 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 8, 2026.

Source: xybrid-ai/xybrid on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.