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 — 140 skills, 15 commands, 5 agents, 2 hooks shipped together

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 skills/s977043/river-review/code-vue
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 140 skills, 15 commands, 5 agents, 2 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.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.svg" alt="Measured on agentmods" 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. 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.1 $0.00022 $0.00853
Opus 5 $0.00011 $0.00426
Sonnet 5 $0.00004 $0.00171
Haiku 4.5 $0.00002 $0.00085

Measured 2d ago against content hash 18604dd81b6a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 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.

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の場合はその旨をコメントで補足)。
  • コンポーネントの propsslotsemit イベントの検証を重点的に洗い出してください。
  • 非同期更新(nextTickawait 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. 2d 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 (3 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. 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

laravel-testing

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

fusengine/agents · 31 tokens

ui-development

Build UI pages and extensions for Falcon Foundry apps using React or Vue with the Shoelace design system and Foundry-JS. TRIGGER when user asks to "create a UI page", "build a UI extension", "add a Shoelace component", "call an API from the UI", runs foundry ui pages create or foundry ui run, or needs help with Vite…

CrowdStrike/foundry-skills · 113 tokens

vue-component-testing

Applies the three-tier test taxonomy for Vue 3 applications: writes unit tests for composables and Pinia stores with Vitest, component tests for behaviour and user interactions with @testing-library/vue, and acceptance tests for full user flows with Playwright. Ensures tests focus on observable behaviour, not…

soulcodex/agentic · 79 tokens

improving-tests

Improve test design, speed, and coverage with behavior-focused tests, useful seams, characterization tests, TDD, and test refactoring. Use when improving tests, optimizing slow suites, adding coverage, refactoring brittle tests, removing test waste, or working test-first. NOT for fixing production bugs (use…

alexei-led/cc-thingz · 89 tokens

mk:vue-testing-best-practices

Use for Vue 3 testing best-practices review and recommendations — designing and auditing Vitest + Vue Test Utils tests for components, composables, Pinia stores, Vue Router, async/Suspense, Teleport, forms, and accessibility, plus Playwright E2E test-design strategy. Advisory/review only — recommends patterns and…

ngocsangyem/MeowKit · 125 tokens

dhpk-tdd-workflow

Framework-agnostic test-driven development guidance for behavior-first unit and integration tests, test scaffolds, and minimal RED-GREEN-REFACTOR changes. Use when building a feature or fixing a bug test-first, writing a test scaffold, or reviewing test seams and mocks. Not for: Playwright journey authoring, pure…

hmj1026/dhpk · 109 tokens