nara-testing

nara-testing is a skill for Claude Code, Codex from MasRama/nara. It costs 24 tokens per session (997 once invoked), scanned A, original, MIT.

A testing guide for adding or changing tests in a TypeScript application, including Hono web routes, Vue pages, repositories, and command-line tools. It recommends testing public behavior rather than private implementation details.

In plain words
What is it for?
It helps place tests near the code they cover, test HTTP routes through the application boundary, run focused Vitest tests, run the repository check, and build when production serving is affected.
Why use it?
It helps developers focus tests on changed contracts and boundaries while avoiding brittle checks of internal code. It also identifies narrow commands for development and broader checks before delivery.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { app } from '../../../app/server';.

Good fit It helps place tests near the code they cover, test HTTP routes through the application boundary, run focused Vitest tests, run the repository check, and build when production serving is affected.

Compare 6 skills from other repositories ↓
View source ↗ MasRama/nara
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/MasRama/nara
agentmods
npx agentmods add skills/masrama/nara/nara-testing

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 nara-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/masrama/nara/nara-testing.svg)](https://agentmods.dev/skills/masrama/nara/nara-testing)
Your own site
<a href="https://agentmods.dev/skills/masrama/nara/nara-testing"><img src="https://agentmods.dev/badge/skills/masrama/nara/nara-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 997 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.00024 $0.00997
Opus 5 $0.00012 $0.00498
Sonnet 5 $0.00005 $0.00199
Haiku 4.5 $0.00002 $0.00100

Measured 2d ago against content hash 94d0140070f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

nara-testing 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.

.agents/skills/nara-testing/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Testing Patterns

Test layout

Keep tests near the Feature or subsystem they exercise:

src/features/<feature>/tests/   # Feature contracts, repositories, routes, clients
src/app/*.test.ts               # app composition and error handling
src/shared/**/*.test.ts         # shared modules
official-features/<feature>/tests/
tests/v3/                         # cross-cutting frontend, CLI, config, health

Use one focused test file per behavior or source module. Add a test when a changed contract or boundary would otherwise be uncovered; do not test incidental implementation details.

Running tests

During development, run the narrowest affected file:

npx vitest run src/features/auth/tests/routes.test.ts
npx vitest run tests/v3/frontend.test.ts
npx vitest run tests/v3/

Before delivery, run the repository check:

npm run check

The check covers the server typecheck (lint), the Vue typecheck (check:frontend), the Vitest suite, and nara doctor (architecture:doctor). Finish with npm run build when the change affects production serving.

Hono route tests

Exercise routes through the app's public HTTP boundary instead of calling private handlers:

import { randomUUID } from 'node:crypto';
import { describe, expect, it } from 'vitest';
import { app } from '../../../app/server';

describe('auth route', () => {
  it('rejects malformed input with field diagnostics', async () => {
    const response = await app.request('/api/auth/register', {
      method: 'POST',
      headers: { 'Content-Type': 'application/json' },
      body: JSON.stringify({
        name: 'A',
        email: `${randomUUID()}@example.com`,
        password: 'short',
      }),
    });

    expect(response.status).toBe(422);
    await expect(response.json()).resolves.toMatchObject({
      success: false,
      code: 'VALIDATION_ERROR',
      errors: { name: expect.any(Array), email: expect.any(Array), password: expect.any(Array) },
    });
  });
});

Read the full file on GitHub · 119 lines

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 · 119 lines · 24 tokens per session scan A 94d0140070f2

Subscribe to this mod's changes

nara-testing is a skill published in the GitHub repository MasRama/nara (5 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 997 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-05.

Related

Other skills, from other repositories

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

knowledge-engineering-quality-and-delivery-unit-integration-and-shared-test-harnesses

A testing guide for the CLI and web interfaces, covering unit, integration, end-to-end, and real-process test setup with shared fixtures and cleanup.

echoVic/blade-code · 184 tokens

mandu-testing

Testing patterns for Mandu applications. Use when writing unit tests, integration tests, or E2E tests. Triggers on test, spec, Bun test, Playwright, or testing tasks.

konamgil/mandu · 42 tokens

qamap-pr-qa

Local zero-LLM PR QA workflow. Use when an agent is preparing, updating, finalizing, or reviewing a pull request, asks what the PR should test, or needs commit-backed change intent, affected behavior, QA scenarios, evidence, validation commands, optional automation drafts, and manifest repair guidance.

IvoryCanvas/QAMap · 67 tokens

component-tester

Run Vitest tests for a specific component with coverage. Use when making changes to React components to ensure tests pass and coverage is maintained.

motormetrics/motormetrics · 31 tokens

jest-patterns

Jest and Vitest testing patterns including describe/it blocks, expect matchers, mocking, and async test strategies for JavaScript and TypeScript.

vladkesler/initrunner · 34 tokens