Component Test Scaffold (Vue.js)

Component Test Scaffold (Vue.js) is a skill for Claude Code from s977043/river-review. It costs 22 tokens per session (853 once invoked), scanned A, original, MIT.

A generator for Vue.js component test skeletons using Vue Test Utils, a library for mounting Vue components in tests. It creates test cases from written specifications.

In plain words
What is it for?
Use it to outline tests for Vue components, including props, rendered output, and component interactions. The generated structure still needs the actual assertions and test details.
Why use it?
It gives you a consistent starting structure for checking component rendering and behavior without requiring full application or browser tests.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the river-review plugin — 139 skills, 18 commands, 5 agents, 3 hooks shipped together

Good fit Use it to outline tests for Vue components, including props, rendered output, and component interactions. The generated structure still needs the actual assertions and test details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/code-vue
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 s977043/river-review --skill code-vue
Clone the repo
git clone --depth 1 https://github.com/s977043/river-review

Made for: Claude Code.

Or install river-review, the plugin that ships this one along with the rest of its 139 skills, 18 commands, 5 agents, 3 hooks.

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 Component Test Scaffold (Vue.js)

README.md
[![agentmods](https://agentmods.dev/badge/skills/s977043/river-review/code-vue/github.svg)](https://agentmods.dev/skills/s977043/river-review/code-vue)
Your own site
<a href="https://agentmods.dev/skills/s977043/river-review/code-vue"><img src="https://agentmods.dev/badge/skills/s977043/river-review/code-vue/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 Component Test Scaffold (Vue.js)

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/code-vue"><img src="https://agentmods.dev/badge/skills/s977043/river-review/code-vue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 853 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.00022 $0.00853
Opus 5.5 $0.00009 $0.00341
Sonnet 5.5 $0.00004 $0.00171
Haiku 4.5 $0.00002 $0.00085

Measured 1mo ago against content hash 18604dd81b6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Component Test Scaffold (Vue.js) 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 1mo 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.

skills/upstream/code-vue/SKILL.md · 84 lines

What it actually says

Pattern declaration

Primary pattern: Generator Secondary patterns: Inversion Why: 仕様書からVue.jsコンポーネントテストの足場を生成するジェネレーターであり、仕様の抜けをテスト観点から逆照射する。

Role

あなたは熟練したVue.js開発者です。 仕様書で定義されたUI/UX要件を満たすための「コンポーネントテストのスケルトンコード(Vue Test Utils)」を作成してください。

Non-goals / 扱わないこと

  • 実装ロジックや最適化方針は指示しない。
  • E2E/統合テストの網羅は対象外で、コンポーネント単位の足場に限定する。

Pre-execution Gate / 実行前ゲート

このスキルは以下の条件がすべて満たされない限りNO_REVIEWを返す。

  • 差分に仕様書(docs/**/*.md または specs/**/*.md)が含まれている
  • 仕様書にVue.jsコンポーネントに関する記述がある
  • inputContextにfullFileが含まれている

ゲート不成立時の出力: NO_REVIEW: code-vue — 対象となるVue.jsコンポーネント仕様が差分に含まれていない

False-positive guards / 抑制条件

  • 仕様に記載のない要件を推測で追加しない。
  • 対象外と明記された領域(例: 外部API連携の実装詳細)への指摘は行わない。

Output Format

TypeScript/JavaScript のコードブロック。 mount または shallowMount を使用したテストケースを作成します。 describe ブロックで構成し、各テストケース (it) 内に // TODO で検証ステップを記述してください。

Example

import { mount } from '@vue/test-utils';
import { describe, it, expect } from 'vitest';
import UserProfile from '@/components/UserProfile.vue';

describe('UserProfile.vue', () => {
  it('renders user name when passed via props', () => {
    // TODO: Arrange (mount component with props)
    // const wrapper = mount(UserProfile, { props: { name: 'Alice' } })
    // TODO: Assert text content
    // expect(wrapper.text()).toContain('Alice')
  });

  it('emits "update" event on button click', async () => {
    // TODO: Arrange & Act (find button and trigger click)
    // await wrapper.find('button').trigger('click')
    // TODO: Assert event emission
    // expect(wrapper.emitted()).toHaveProperty('update')
  });
});

Constraints

  • テストランナーは Vitest を想定してください(Jestの場合はその旨をコメントで補足)。
  • コンポーネントの props、slots、emit イベントの検証を重点的に洗い出してください。
  • 非同期更新(nextTick や await trigger)が必要な操作については適切な async/await 構文を使用してください。
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. 1mo ago First seen · 84 lines · 22 tokens per session scan A 18604dd81b6a

Subscribe to this mod's changes

Component Test Scaffold (Vue.js) is a skill published in the GitHub repository s977043/river-review (7 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 853 once invoked, about $0.0001 per session on Opus 5.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

brooks-test

Test quality review drawing on twelve classic engineering books — with primary focus on xUnit Test Patterns, The Art of Unit Testing, How Google Tests Software, and Working Effectively with Legacy Code — that diagnoses structural problems in an existing test suite: brittleness, mock abuse, coverage illusions, slow…

hyhmrright/brooks-lint · 161 tokens

coverage

Compute code coverage for active track or module. Targets 95%+ coverage with report and justification for uncovered lines. Complements TDD workflow.

drafthq/draft · 31 tokens

testing-strategy

Design test strategies and test plans with coverage targets. Complements /draft:coverage which measures what this skill plans. Auto-loaded by /draft:implement before TDD.

drafthq/draft · 38 tokens

testing-laravel

Writes Laravel tests using PHPUnit. Use when "write tests", "add tests", "phpunit", "laravel test", "feature test", "unit test", "mock", "factory", or testing controllers, models, services, actions, jobs, artisan commands, or API endpoints.

iliaal/whetstone · 63 tokens

testing-react

Writes React/TypeScript tests using Vitest and React Testing Library. Use when "write react tests", "vitest", "component test", "hook test", "RTL", "testing library", "snapshot test", or testing React components, hooks, and utilities.

iliaal/whetstone · 57 tokens

laravel-testing

Use when testing controllers, services, or models, or implementing TDD on Laravel 13 with Pest 5 / PHPUnit 13 (or Pest 4 / PHPUnit 12 on PHP 8.3).

fusengine/agents · 46 tokens