Universe-Keyboard: Skill for Claude Code

.claude/skills/keyboard-test-writer/SKILL.md

keyboard-test-writer is a skill for Claude Code from shchnk1103/Universe-Keyboard. It costs 42 tokens per session (458 once invoked), scanned A, original, MIT.

A testing guide for the Universe Keyboard project, with patterns for testing keyboard state, the RIME input-engine bridge, and isolated UIKit logic. TDD means writing tests to check expected behavior; this add-on focuses on writing those tests.

In plain words
What is it for?
Adding Swift tests for keyboard actions, text input, RIME key handling, keycode conversion, output parsing, and related pure logic.
Why use it?
It provides project-specific test setup and examples, reducing the effort needed to create reliable tests and verify them with `swift test`.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is shchnk1103/Universe-Keyboard's own configuration. It tells Claude Code how to work on Universe-Keyboard 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 Universe-Keyboard configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shchnk1103/Universe-Keyboard. 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/shchnk1103/Universe-Keyboard/main/.claude/skills/keyboard-test-writer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shchnk1103/Universe-Keyboard

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 keyboard-test-writer

README.md
[![agentmods](https://agentmods.dev/badge/skills/shchnk1103/universe-keyboard/keyboard-test-writer/github.svg)](https://agentmods.dev/skills/shchnk1103/universe-keyboard/keyboard-test-writer)
Your own site
<a href="https://agentmods.dev/skills/shchnk1103/universe-keyboard/keyboard-test-writer"><img src="https://agentmods.dev/badge/skills/shchnk1103/universe-keyboard/keyboard-test-writer/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 keyboard-test-writer

Your own site · 80×15
<a href="https://agentmods.dev/skills/shchnk1103/universe-keyboard/keyboard-test-writer"><img src="https://agentmods.dev/badge/skills/shchnk1103/universe-keyboard/keyboard-test-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 458 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.00042 $0.00458
Opus 5 $0.00021 $0.00229
Sonnet 5 $0.00008 $0.00092
Haiku 4.5 $0.00004 $0.00046

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

Security

Grade A, and why

keyboard-test-writer 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.

.claude/skills/keyboard-test-writer/SKILL.md · 27 lines

What it actually says

Keyboard Test Writer

先从真实被测代码确定模块和既有测试。测试应观察行为或不变式,不能把 fake 的输出当成真实 Bridge 的解析/session 证据。读取 REFERENCE.md 定位目标;需要实际模式时读 EXAMPLES.md,不要复制可能漂移的 API 声明。

被测边界 测试位置 必须执行的入口
KeyboardCore 状态/纯逻辑 Packages/KeyboardCore/Tests/KeyboardCoreTests/ swift test --package-path Packages/KeyboardCore
真实 RimeBridge 解析/引擎合同 Packages/RimeBridge/Tests/RimeBridgeTests/ iOS Simulator 的 RimeBridgeTests scheme
主 App 模型/设置/编排 UniverseKeyboardTests/ Universe Keyboard scheme test
Extension UIKit/候选交互 KeyboardTests/ Universe Keyboard scheme test

遵循现有 actor 隔离和 testable import;RimeBridge 为 iOS 包,不要求其在 macOS SwiftPM 运行。 Core fake 适合验证 Core 如何消费引擎结果,真实解析直接调用 Bridge 的测试入口。

合法产品/架构合同变化时可更新既有测试,并说明行为前后差异;不得删弱断言来隐藏回归。 无行为变化的文案/机械改动不强制新增镜像测试。修复 bug 时优先建立可复现失败断言。

精确 xcodebuild 参数和 merge-bound 完整门禁以根目录 AGENTS.md 为准;改了某测试必须运行 其实际 target。有效证据复用按 docs/AI_WORKFLOW.md;记录运行对象、命令、环境、结果与缺口。

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · -73 lines · -53 tokens per session 1eaa39259397
  2. 12d ago First seen · 100 lines · 95 tokens per session scan A 1005f4add4ab

Subscribe to this mod's changes

keyboard-test-writer is a skill published in the GitHub repository shchnk1103/Universe-Keyboard (5 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 458 once invoked, about $0.0002 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-08-31.