CommandMate: Command for Claude Code

.claude/commands/acceptance-test.md

acceptance-test is a command for Claude Code from Kewton/CommandMate. It costs 15 tokens per session (713 once invoked), scanned B, original, MIT.

An automated check that tests whether a feature meets the conditions written in a GitHub issue. It can run integration and end-to-end tests, which check how several parts work together and how the feature works from a user's point of view.

In plain words
What is it for?
Use it to create test scenarios from acceptance conditions, run them, verify every condition, and report the results.
Why use it?
It replaces uncertainty about whether an issue is complete with test results and collected evidence such as logs or screenshots.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

This is Kewton/CommandMate's own configuration. It tells Claude Code how to work on CommandMate itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything CommandMate configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Kewton/CommandMate. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Kewton/CommandMate/main/.claude/commands/acceptance-test.md
Clone the repo
git clone --depth 1 https://github.com/Kewton/CommandMate

Made for: Claude Code.

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 acceptance-test

README.md
[![agentmods](https://agentmods.dev/badge/commands/kewton/commandmate/acceptance-test/github.svg)](https://agentmods.dev/commands/kewton/commandmate/acceptance-test)
Your own site
<a href="https://agentmods.dev/commands/kewton/commandmate/acceptance-test"><img src="https://agentmods.dev/badge/commands/kewton/commandmate/acceptance-test/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 acceptance-test

Your own site · 80×15
<a href="https://agentmods.dev/commands/kewton/commandmate/acceptance-test"><img src="https://agentmods.dev/badge/commands/kewton/commandmate/acceptance-test.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 713 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00015 $0.00713
Opus 5.5 $0.00006 $0.00285
Sonnet 5.5 $0.00003 $0.00143
Haiku 4.5 $0.00002 $0.00071

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

Security

Grade B, and why

acceptance-test scanned grade B with 1 finding 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat .claude/prompts/acceptance-test-core.md
.claude/commands/acceptance-test.md · 107 lines

What it actually says

受入テストスキル

概要

Issue要件に基づいて受入テスト(Acceptance Test)を自動実行し、すべての受入条件が満たされていることを検証するスキルです。

このスキルはスラッシュコマンドモードで動作します(ユーザーが直接実行)。

使用方法

  • /acceptance-test [Issue番号]
  • 「Issue #[番号]の受入テストを実行してください」
  • 「[機能名]の受入条件を検証してください」

実行内容

共通プロンプトを読み込んで実行します:

cat .claude/prompts/acceptance-test-core.md

↑ このプロンプトの内容に従って、受入テストを実行してください。


動作モード

スラッシュコマンドモード:

  • ユーザーから対話的に情報を取得
  • Issue番号、受入条件、テストシナリオなどを確認
  • 結合テスト/E2Eテストを実行
  • 結果をターミナルに表示

テストシナリオ作成

受入条件に基づいてテストシナリオを作成:

// tests/integration/xxx.test.ts
import { describe, it, expect } from 'vitest'

describe('Feature: [機能名]', () => {
  it('シナリオ1: [シナリオ説明]', async () => {
    // Given: 前提条件
    // When: 操作
    // Then: 期待結果
  })
})

完了条件

以下をすべて満たすこと:

  • すべてのテストシナリオが成功
  • すべての受入条件が検証済み
  • エビデンスが収集済み(ログ、スクリーンショットなど)

出力例

受入テスト完了

## 機能概要
新機能の追加

## テストシナリオ結果
シナリオ1: 正常系のテスト
   - test_scenario_1: PASSED

シナリオ2: エラー系のテスト
   - test_scenario_2: PASSED

## 受入条件検証
- 条件1を満たしていること
- 条件2を満たしていること

## エビデンス
- テスト結果ログ: test_results.log
- すべてのテストケース成功: 5/5

すべての受入条件を満たしています

サブエージェントモード

サブエージェントとして呼び出す場合は、PM Auto-Devが以下のように実行します:

Use acceptance-test-agent to verify Issue #166 acceptance criteria.

この場合、.claude/agents/acceptance-test-agent.md が使用されます。

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 · 107 lines · 15 tokens per session scan B f72cf7bfbc17

Subscribe to this mod's changes

acceptance-test is a command published in the GitHub repository Kewton/CommandMate (44 stars, last pushed today), licensed MIT. It adds 15 tokens to every session and 713 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other commands, from other repositories

test-feature

Test a React Native feature on the running simulator/emulator. Verifies UI, user flows, and internal state. Generates a persistent Maestro test file.

Lykhoyda/rn-dev-agent · 30 tokens

qa-pr

Device-test a GitHub pull request on iOS simulator, Android emulator, and/or physical device. Installs the PR head via rn-dev-agent and reports pass/fail with repro steps and screenshots.

Lykhoyda/rn-dev-agent · 40 tokens

ux-grill

Use when a running web app's UX has to be audited reproducibly rather than by feel — a deterministic mechanical pass over routes and viewports (axe, target size, horizontal overflow, page title, scripted journeys) followed by a screenshot-grounded interrogation of the operator, journey by journey, with two persona…

Kanevry/session-orchestrator · 121 tokens

test

Agentic end-to-end test orchestrator — drive web/macOS flows, evaluate UX rubric, reconcile issues.

Kanevry/session-orchestrator · 21 tokens

run-workflow

Validate and establish the proven rn-dev-agent operating sequence before a real React Native journey — declared package manager and dependencies, read-only inventory, typed session recovery, one exclusive device, managed integration and Metro, only the requested proof, reverse-order cleanup.

Lykhoyda/rn-dev-agent · 49 tokens

lock-e2e

Promote a verified action into a frozen, locked e2e regression test. Runs the action once strict (no repair) via cdplocke2etest and freezes it to .rn-agent/e2e/ .yaml only if it passes. v1 supports param-free actions only.

Lykhoyda/rn-dev-agent · 60 tokens