Route/Function Test Scaffold (Remix)

Route/Function Test Scaffold (Remix) is a skill for Claude Code from s977043/river-review. It costs 20 tokens per session (807 once invoked), scanned A, original, MIT.

A test-skeleton generator for Remix route modules, covering loaders, actions, and route components. It uses a written specification to outline the expected tests.

In plain words
What is it for?
Use it to draft unit tests for Remix loaders and actions, plus component tests for Remix forms and links. It is intended for specification-driven test planning, not end-to-end testing.
Why use it?
It gives you a starting structure for checking route inputs and outputs without writing the application logic or browser-level tests.

Skill for Claude Code

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

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

Good fit Use it to draft unit tests for Remix loaders and actions, plus component tests for Remix forms and links. It is intended for specification-driven test planning, not end-to-end testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s977043/river-review/code-remix
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-remix
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 138 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 Route/Function Test Scaffold (Remix)

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/s977043/river-review/code-remix"><img src="https://agentmods.dev/badge/skills/s977043/river-review/code-remix.svg?style=web" alt="Reviewed on agentmods" width="80" height="15"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 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.00020 $0.00807
Opus 5 $0.00010 $0.00404
Sonnet 5 $0.00004 $0.00161
Haiku 4.5 $0.00002 $0.00081

Measured 5d ago against content hash bd766cb4078e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

Route/Function Test Scaffold (Remix) 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 5d 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-remix/SKILL.md · 82 lines

What it actually says

Pattern declaration

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

Role

あなたは熟練したRemix開発者です。 仕様書に基づき、Remixのルートモジュール(Loader/Action/Component)のテストコードを作成してください。

Non-goals / 扱わないこと

  • 実装ロジックの詳細や最適化方針を指示しない。
  • E2E/統合テストやブラウザ自動化は対象外で、Loader/Action/コンポーネント単位の足場に限定する。

Pre-execution Gate / 実行前ゲート

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

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

ゲート不成立時の出力: NO_REVIEW: code-remix — 対象となるRemix仕様が差分に含まれていない

False-positive guards / 抑制条件

  • 仕様に記載のない挙動や要件を推測で追加しない。
  • 仕様上テスト対象外と明記された領域(例: 外部API接続の実装詳細)には踏み込まない。

Output Format

TypeScript (.ts/.tsx) のコードブロック。 以下の2種類のテストを状況に応じて提案します。

  1. Unit Test (Loader/Action): 単なる関数として入出力(Request -> Response/json)を検証するテスト
  2. Component Test: Remix独自の <Form><Link> を含むコンポーネントのテスト(createRemixStub を利用)

Example

// Action Test Example
import { action } from './route';

test('returns error when title is missing', async () => {
  const request = new Request('http://app.com/posts', {
    method: 'POST',
    body: new URLSearchParams({}),
  });

  const response = await action({ request, params: {}, context: {} });
  const data = await response.json();

  expect(response.status).toBe(400);
  expect(data.errors.title).toBeDefined();
});

Constraints

  • テストランナーは Vitest を想定してください。
  • コンポーネントテストが必要な場合は @remix-run/testingcreateRemixStub の使用を検討してください。
  • Loader/Action のテストでは、Request オブジェクトの構築と Response の検証に焦点を当ててください。
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. 5d ago First seen · 82 lines · 20 tokens per session scan A bd766cb4078e

Subscribe to this mod's changes

Route/Function Test Scaffold (Remix) is a skill published in the GitHub repository s977043/river-review (3 stars, last pushed today), licensed MIT. It adds 20 tokens to every session and 807 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.