testing-patterns

A collection of testing rules for Speekify, a command-line tool that turns text and online content into WAV audio files.

In plain words
What is it for?
Use it when testing command-line behavior, files, standard input, asynchronous URLs, translation, audio generation, setup, or error handling.
Why use it?
It helps tests stay fast and predictable by replacing real machine-learning models and external services with controlled test inputs.

Agent

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.

agentmods
npx agentmods add agents/otterlyspacelabs/speekify/testing-patterns
Clone the repo
git clone --depth 1 https://github.com/OtterlySpaceLabs/speekify
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 171 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00171
Opus 5 $0.00000 $0.00086
Sonnet 5 $0.00000 $0.00034
Haiku 4.5 $0.00000 $0.00017

Measured 2d ago against content hash 1c227937e7d1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

testing-patterns 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 2d 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.

docs/agents/testing-patterns.md · 7 lines

What it actually says

Testing Patterns

  • CLI generation and inspection tests should prefer monkeypatching speekify.application.run_generation() or speekify.application.run_inspection() rather than private helpers in speekify.__main__.
  • Tests avoid loading real models by monkeypatching the remaining CLI builders only for setup/doctor paths, or by injecting fake synthesizers/translators into workflow.generate_audio().
  • Use tmp_path, monkeypatch.chdir(), and fake stdin objects for CLI tests that touch files or input streams.
  • For async URL/workflow behavior, prefer pytest.mark.asyncio or asyncio.run() as the nearby tests already do.
  • Preserve existing fake backend style in tests/test_tts.py and tests/test_translation.py when covering Supertonic, torch, or transformers behavior.
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. 2d ago First seen · 7 lines · 0 tokens per session scan A 1c227937e7d1

Subscribe to this mod's changes

testing-patterns is an agent published in the GitHub repository OtterlySpaceLabs/speekify (10 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 171 tokens. 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.

Related

Other agents, from other repositories

ios-dev

You are an iOS/macOS SwiftUI development expert.

hanamizuki/solopreneur · 29 tokens

podcast-producer-agent

Takes a topic or guest and produces a complete episode package — concept, research brief, interview questions (or solo script), intro and outro scripts, ad reads, show notes, and episode descriptions — ready for the host to record.

ur-grue/autopunk-media-skills · 5 tokens

odoo-marketing-writer

Use this agent when the odoo-doc-illustration skill needs the BUYER-facing App-Store landing page (static/description/index.html) assembled for a single Odoo module - lay out a brand-aware, sanitizer-safe Bootstrap-5 fragment from marketing copy the skill SUPPLIES (pre-drafted by odoo-content-draft) plus the REQUIRED…

Viindoo/odoo-mcp-client · 241 tokens

odoo-user-doc-writer

Use this agent when the odoo-doc-illustration skill needs an END-USER how-to guide (doc/index.rst) written for a single Odoo module - capture the live screens the user actually sees, then write plain, task-oriented steps ("open menu X > Y, click Create, fill ...") grounded in the UI labels reported by OSM, one file…

Viindoo/odoo-mcp-client · 242 tokens

translator

Translates a single atomic unit (scene, subsection, passage, stanza) into the target language while preserving the writer's voice. Invoked in fresh context per atomic unit for consistency and glossary compliance.

hannsxpeter/scriveno · 42 tokens

frontend-engineer

Ingénieur front-end Hookstack (Next.js 15 App Router, Tailwind v4, Motion). Utiliser pour créer/modifier des composants React, des pages, le catalogue, le HookConfigurator, des animations, ou toucher au design system. Connaît les pièges du repo (m. pas motion., tokens motion.ts, i18n via T, Zustand persisté) — les…

steve-magne/hookstack · 94 tokens