yq-test-gen

yq-test-gen is a skill for Claude Code, Codex from rockyflux/yq-workflow. It costs 32 tokens per session (634 once invoked), scanned A, original, MIT.

A method for turning requirements, designs, or code changes into executable tests. It covers normal behaviour, edge cases, failures, permissions, and regression risks.

In plain words
What is it for?
Planning unit, integration, contract, or end-to-end tests, preparing test data and mocks, and documenting coverage gaps.
Why use it?
It creates a safety net for new features and bug fixes so later changes are less likely to break existing behaviour.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Planning unit, integration, contract, or end-to-end tests, preparing test data and mocks, and documenting coverage gaps.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rockyflux/yq-workflow/yq-test-gen
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.

Any agent
npx skills add rockyflux/yq-workflow --skill yq-test-gen
Clone the repo
git clone --depth 1 https://github.com/rockyflux/yq-workflow

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for yq-test-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-test-gen/github.svg)](https://agentmods.dev/skills/rockyflux/yq-workflow/yq-test-gen)
Your own site
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-test-gen"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-test-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for yq-test-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockyflux/yq-workflow/yq-test-gen"><img src="https://agentmods.dev/badge/skills/rockyflux/yq-workflow/yq-test-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 634 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00032 $0.00634
Opus 5 $0.00016 $0.00317
Sonnet 5 $0.00006 $0.00127
Haiku 4.5 $0.00003 $0.00063

Measured 8d ago against content hash 4b70c0f2999b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

yq-test-gen 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 8d 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.

templates/yq-skills/yq-test-gen/SKILL.md · 85 lines

What it actually says

YQ Test Generation

Overview

把需求、设计和实现转成可执行测试,覆盖主路径、边界条件、异常分支和回归风险。

Core principle: 测试先服务于行为保护,再服务于实现细节。

When to Use

  • 用户要补测试、写单测、集成测试或回归用例
  • 新功能已实现,需要建立保护网
  • 修 bug 后需要用测试锁住回归
  • 模块复杂、依赖多、改动风险高

Route Elsewhere

  • 行为和边界还没定:先转 yq-req-analysisyq-system-design
  • 主要是实现功能:转 yq-code-gen
  • 主要是审查改动质量:转 yq-code-review

Process

  1. 提炼验收点、关键分支和最高风险行为。
  2. 选择测试层次:单元、集成、契约或端到端。
  3. 设计主流程、边界、异常和权限场景。
  4. 明确测试数据、夹具、mock 和稳定性要求。
  5. 标注当前覆盖缺口和后续补测建议。

Output

# Test Plan or Test Result
## Coverage Targets
## Test Cases
## Test Level Strategy
## Fixtures / Mocks / Data Setup
## Edge Cases
## Known Gaps
## Recommended Next Step
  • 上游通常来自 yq-code-genyq-debug
  • 下游通常接 yq-code-reviewyq-security-scan
  • 写行为保护时建议参考 superpowers:test-driven-development
  • 默认交给 yq-code-review,检查正确性、回归风险和测试缺口
  • 如果改动涉及权限、敏感数据或外部输入,可并行补 yq-security-scan

Common Mistakes

  • 只测 happy path
  • 过度 mock,脱离真实行为
  • 用实现细节驱动测试命名和断言
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. 8d ago First seen · 85 lines · 32 tokens per session scan A 4b70c0f2999b

Subscribe to this mod's changes

yq-test-gen is a skill published in the GitHub repository rockyflux/yq-workflow (2 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 634 once invoked, about $0.0002 per session on Opus 5. 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-09-03.

Related

Other skills, from other repositories

axiom-testing

Use when writing ANY test, debugging flaky tests, making tests faster, or choosing Swift Testing vs XCTest. Covers unit tests, UI tests, async testing, test architecture.

CharlesWiltgen/Axiom · 38 tokens

designing-tests

Designs and implements testing strategies for any codebase. Use when adding tests, improving coverage, setting up testing infrastructure, debugging test failures, or when asked about unit tests, integration tests, or E2E testing.

CloudAI-X/claude-workflow-v2 · 48 tokens

test-automation

Execute Vitest and Playwright test suites with result collection and failure analysis.

a5c-ai/babysitter · 0 tokens

testing-blocks

Use this when you have made AEM Edge Delivery Services code changes to blocks, scripts, or styles and need to validate them before opening a pull request. Covers unit testing for utilities and logic, browser testing with Playwright, linting, and guidance on what to test and how.

adobe/skills · 61 tokens

prd-auto-test-loop

A testing workflow driven by a product requirements document (PRD), which describes what a software version should do. It turns acceptance criteria into unit, integration, and end-to-end tests, then records the plan and results.

yunshu0909/yunshu_skillshub · 79 tokens

test-automation-expert

Comprehensive test automation specialist covering unit, integration, and E2E testing strategies. Expert in Jest, Vitest, Playwright, Cypress, pytest, and modern testing frameworks. Guides test pyramid design, coverage optimization, flaky test detection, and CI/CD integration. Activate on 'test strategy', 'unit tests'…

curiositech/some_claude_skills · 133 tokens