Agent skill

Test Bridge

by K9i-0 in K9i-0/ccpocket

Bridge Server (TypeScript) のテスト実行・型チェック・テスト記述ガイド. An agent skill from K9i-0/ccpocket.

MITAuto-check passedTesting & QA

Install Test Bridge

skills CLI
$ npx skills add K9i-0/ccpocket --skill test-bridge -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install K9i-0/ccpocket test-bridge --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/K9i-0/ccpocket.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/test-bridge .claude/skills/test-bridge && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-bridge
GitHub stars
1.1k
Token cost
~490 tokens
SKILL.md length
110 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Bridge Server (TypeScript) のテスト実行・型チェック・テスト記述ガイド. An agent skill from K9i-0/ccpocket.

  • Works in 3 steps: ユニットテスト → TypeScript 型チェック → カバレッジ (任意)
  • Testing & QA work in your project
  • SKILL.md covers 実行手順 and テスト記述規約
  • Calls npx and npm

What it does

Test Bridge is an agent skill from K9i-0/ccpocket. Bridge Server (TypeScript) のテスト実行・型チェック・テスト記述ガイド

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA. It works with TypeScript and Vitest. The repository describes itself as: Mobile client for Codex and Claude — control coding agents from your phone via WebSocket bridge. The licence is MIT.

When your agent uses it

  • Testing & QA work in your project

Example prompts

  • “/test-bridge”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash(npx:*), Bash(npm:*), Read, Glob, Grep

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. ユニットテスト
  2. TypeScript 型チェック
  3. カバレッジ (任意)

What it can do on your machine

Read from SKILL.md and the folder at commit 8354ffd. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(npx:*)
    • Bash(npm:*)
    • Read
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test Bridge loads about 490 tokens when it runs. Until then it costs about 15 tokens; SKILL.md has 110 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~15
When it runs · the whole SKILL.md, loaded when a task matches
~490

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from K9i-0/ccpocket at commit 8354ffd, republished under its MIT licence (© K9i-0). 110 words, ~490 tokens.

Download SKILL.mdSave it as .claude/skills/test-bridge/SKILL.md (or your agent's skills folder).
name
test-bridge
description
Bridge Server (TypeScript) のテスト実行・型チェック・テスト記述ガイド
allowed-tools
Bash(npx:*), Bash(npm:*), Read, Glob, Grep

Bridge Server テスト

実行手順

変更した挙動に対応するテストと静的検証を選ぶ。全体テストは、共通基盤・依存関係への変更や回帰懸念がある場合、または全体検証を依頼された場合に実行する。成功済みの検証を理由なく繰り返さない。以下はコマンドの選択肢。

1. ユニットテスト
bash
npm run test:bridge

特定ファイルのみ:

bash
cd packages/bridge && npx vitest run src/<filename>.test.ts

ウォッチモード (開発中):

bash
cd packages/bridge && npx vitest src/<filename>.test.ts
2. TypeScript 型チェック
bash
npx tsc --noEmit -p packages/bridge/tsconfig.json

テストファイル (*.test.ts) と vitest.config.ts は tsconfig.json の exclude に入っているため、型チェック対象外。

3. カバレッジ (任意)
bash
npm run test:bridge:coverage

テスト記述規約

ファイル配置・命名
  • テストファイルはソースと同じディレクトリに <module>.test.ts として配置
    • 例: src/parser.ts → src/parser.test.ts
  • vitest.config.ts の include パターン: src/**/*.test.ts
import
typescript
import { describe, it, expect } from "vitest";
  • vitest からのみ import する (jest の互換 API は使わない)
  • テスト対象モジュールは .js 拡張子で import する (NodeNext moduleResolution)
    • 例: import { parseRule } from "./claude-process.js";
テスト構造
typescript
describe("関数名 or クラス名", () => {
  it("動作の説明 (英語)", () => {
    expect(actual).toBe(expected);
  });
});
  • describe でテスト対象の関数/クラス単位にグルーピング
  • it の説明は英語で、三人称現在形 ("returns null for empty string")
  • 1つの it で1つの振る舞いを検証する
テスト対象の方針
  • 純粋関数・ロジック中心にテストする (高ROI)
  • プロセスspawn, ファイルシステム, WebSocket等の外部依存は対象外
  • 現在テスト対象のモジュール:
    • parser.ts — parseClaudeEvent, claudeEventToServerMessage, parseClientMessage, normalizeToolResultContent
    • claude-process.ts — parseRule, matchesSessionRule, buildSessionRule, toolNeedsApproval, ACCEPT_EDITS_AUTO_APPROVE
    • image-store.ts — ImageStore.extractImagePaths
新しいテスト追加時
  1. export されている純粋関数があればテスト追加を検討
  2. internal関数をテストしたい場合は export に変更する (テスト可能性のための export は OK)
  3. テスト追加後は型チェックが通ること (npx tsc --noEmit) も確認

© K9i-0, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/test-bridge of K9i-0/ccpocket.

Open the folder on GitHubat commit 8354ffd

Compare with similar skills

Test Bridge next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Bridge compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Bridge this skillK9i-0/ccpocket1.1k—~490Automated safety check: PassMIT
Test Writing WorkflowiOfficeAI/AionUi33k1 repos~1.2kAutomated safety check: PassApache-2.0
Creating A Packagec15t/c15t1.9k—~913Automated safety check: PassApache-2.0
Svelte Testingspences10/sveltest113—~579Automated safety check: PassMIT
Effect TStellahq/opensession392—~3.7kAutomated safety check: PassMIT
Ha Frontend Testinghome-assistant/frontend5.7k—~1.7kAutomated safety check: PassApache-2.0

Similar skills

  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Scaffold a new workspace package in the c15t monorepo. An agent skill from c15t/c15t.

    1.9k GitHub stars~913 tokensUpdated today
    Testing & QAAuto-check passed
  • Svelte Testing

    spences10/sveltest

    Fix and create Svelte 5 tests with vitest-browser-svelte and Playwright.

    113 GitHub stars~579 tokensUpdated today
    Testing & QAAuto-check passed
  • Effect TS

    tellahq/opensession

    Write idiomatic Effect v4 TypeScript verified against the pinned effect@4.0.0-rc.112 source.

    392 GitHub stars~3.7k tokensUpdated today
    Testing & QAAuto-check passed
  • Ha Frontend Testing

    home-assistant/frontend

    Home Assistant frontend testing and validation workflow. An agent skill from home-assistant/frontend.

    5.7k GitHub stars~1.7k tokensUpdated today
    Testing & QAAuto-check passed
  • Eslint Vitest Rule Tester

    antfu-collective/eslint-vitest-rule-tester

    Help users test ESLint rules with Vitest, supporting snapshot testing and custom assertions

    142 GitHub stars~1.3k tokensUpdated 29 days ago
    Testing & QAAuto-check passed

More from K9i-0/ccpocket

All 17 skills in this repo
  • Sim Preview

    K9i-0/ccpocket

    iOSシミュレーターで動くFlutterアプリをExpo Device HubとTailscale HTTPSでスマホのブラウザへ配信・操作するときに使う。

    1.1k GitHub stars~711 tokensUpdated 6 days ago
    Auto-check passed
  • Codex Guide

    K9i-0/ccpocket

    Codex の使い方、CLI/app/IDE、rules・hooks・AGENTS.md・skills・subagents・config などを案内する。Codex や OpenAI 製品の仕様を答える前に必ず公式ドキュメントを確認し、rules/approval は codex execpolicy check で実検証すること。

    1.1k GitHub stars~475 tokensUpdated 6 days ago
    Auto-check passed
  • Submit Store Review

    K9i-0/ccpocket

    既存の安定ビルドをApp Store / Google Playの審査へ提出・再提出する。新規ビルドはrelease-appを使う。

    1.1k GitHub stars~1.8k tokensUpdated 6 days ago
    Auto-check passed
  • Web Preview

    K9i-0/ccpocket

    Flutter Web版をビルドしてユーザーにプレビューURLを案内する。playwright-cliでアクセス確認も行う。

    1.1k GitHub stars~359 tokensUpdated 6 days ago
    Auto-check passed
  • Flutter UI Design

    K9i-0/ccpocket

    Flutter UI実装のアーキテクチャ規約・コンポーネント分割・状態管理ガイド(Bloc/Cubit版). An agent skill from K9i-0/ccpocket.

    1.1k GitHub stars~1.2k tokensUpdated 6 days ago
    Auto-check passed
  • Flutter Upgrade

    K9i-0/ccpocket

    Flutter SDKのアップグレード、または指定バージョンへの移行影響を調査するときに使う. An agent skill from K9i-0/ccpocket.

    1.1k GitHub stars~789 tokensUpdated 6 days ago
    Auto-check passed

Questions about Test Bridge

What does Test Bridge do?

Bridge Server (TypeScript) のテスト実行・型チェック・テスト記述ガイド. An agent skill from K9i-0/ccpocket. Test Bridge is an agent skill from K9i-0/ccpocket.

When should I use Test Bridge?

Test Bridge fits situations like: testing & QA work in your project.

How do I install Test Bridge in Claude Code?

Run `npx skills add K9i-0/ccpocket --skill test-bridge -a claude-code`. Or copy the skill folder (.claude/skills/test-bridge in K9i-0/ccpocket) into .claude/skills/test-bridge in your project. Claude Code loads it when a task matches its description.

How do I install Test Bridge in Codex?

Run `npx skills add K9i-0/ccpocket --skill test-bridge -a codex`. Or copy the skill folder (.claude/skills/test-bridge in K9i-0/ccpocket) into .agents/skills/test-bridge in your project. Codex loads it when a task matches its description.

Can I use Test Bridge in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add K9i-0/ccpocket --skill test-bridge -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-bridge, .gemini/skills/test-bridge, .github/skills/test-bridge and .opencode/skills/test-bridge in your project.

What does Test Bridge need to run?

Going by SKILL.md and its folder, Test Bridge needs the command-line tools its instructions call (npx and npm). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash(npx:*), Bash(npm:*), Read, Glob, Grep.

Does Test Bridge access the network?

SKILL.md contains no URLs. Its commands use npx and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Test Bridge safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Bridge use?

Test Bridge is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Test Bridge use?

About 490 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Test Bridge?

Skills that share tags, products or a category with Test Bridge: Test Writing Workflow (iOfficeAI/AionUi, 33k stars), Creating A Package (c15t/c15t, 1.9k stars), Svelte Testing (spences10/sveltest, 113 stars) and Effect TS (tellahq/opensession, 392 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Bridge?

K9i-0 (a GitHub user) maintains it in K9i-0/ccpocket, which has 1,084 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 3, 2026.

Source: K9i-0/ccpocket on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.