create-unit-test
プロジェクトですぐに使える単体テストを作成
単体テストはプロジェクトの規約から外れやすく、保守が難しくなることがあります。このスキルは、Claude、Codex、Claude Code に、Android および Kotlin プロジェクトの標準に合った信頼性の高いテストを作成するための集中的なワークフローを提供します。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "create-unit-test" from https://skillstore.io/skills/anysoftkeyboard-create-unit-test.md and its manifest at https://skillstore.io/api/skills/anysoftkeyboard-create-unit-test/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「create-unit-test」を使用しています。 データベースマッパークラスにテストを追加します。
期待される結果:
- 対応するテストソースパス内の新しいマッパーテストファイル。
- 有効なマッピング動作に対する正常系テスト。
- 関連する場合は、null、空、または無効な値に対するエッジケーステスト。
- 変更を検証するために使用した Gradle モジュールテストコマンド。
「create-unit-test」を使用しています。 Android アクティビティヘルパーの単体テストを作成します。
期待される結果:
- Android フレームワークとの相互作用に対する Robolectric ベースの単体テスト。
- 決定的なセットアップのためのフェイクまたは提供されたリソース。
- 明確な Arrange-Act-Assert テストメソッド。
- 単体テストではなくインストゥルメンテーションが必要な動作に関するメモ。
「create-unit-test」を使用しています。 実装後に単体テストが失敗しました。
期待される結果:
- 確認すべき関連する Gradle XML レポートパス。
- レポートに基づく簡潔な失敗診断。
- 焦点を絞った修正と、関連するテストタスクの再実行。
セキュリティ監査
安全The static findings are false positives caused by Markdown backticks around filenames, paths, Gradle commands, and testing terminology. No prompt injection, data exfiltration, unsafe networking, credential access, or malicious intent was found in SKILL.md.
リスク要因
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/anysoftkeyboard-create-unit-test/audits/11?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/anysoftkeyboard-create-unit-test?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/anysoftkeyboard-create-unit-test?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/anysoftkeyboard-create-unit-test/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/anysoftkeyboard-create-unit-test.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
AnySoftKeyboard. (2026). create-unit-test security audit report (audit version 11) [Author version unspecified]. Skillstore. https://skillstore.io/skills/anysoftkeyboard-create-unit-test/audits/11BibTeX形式の引用
@techreport{anysoftkeyboard-anysoftkeyboard-create-unit-test-2026,
author = {AnySoftKeyboard},
title = {create-unit-test security audit report (audit version 11)},
institution = {Skillstore},
year = {2026},
number = {11},
url = {https://skillstore.io/skills/anysoftkeyboard-create-unit-test/audits/11},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "create-unit-test security audit report (audit version 11)"
version: "unspecified"
type: report
authors:
- name: "AnySoftKeyboard"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/anysoftkeyboard-create-unit-test/audits/11"
identifiers:
- type: other
value: "skillstore:anysoftkeyboard-create-unit-test:audit:11"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 高作成できるもの
新しい Kotlin クラスにテストを追加
対応するテストファイルを作成し、有用な正常系とエッジケースを選び、正しい Gradle テストタスクを実行します。
コントリビューター間でテスト作業を標準化
アシスタントとチームメンバーに、テスト名、配置場所、フェイク、Robolectric、信頼性に関する同じルールを提供します。
失敗した単体テストを診断
Gradle のテスト出力と XML レポートを使用して失敗箇所を特定し、焦点を絞った修正をガイドします。
これらのプロンプトを試す
Use the create-unit-test skill to add unit tests for this class. Focus on observable behavior, use the correct test file location, and run the module test task.
Use the create-unit-test skill to identify happy path, edge case, and error case tests for this source file. Implement the most valuable cases and explain any skipped cases.
Use the create-unit-test skill to write a Robolectric unit test for this Android component. Provide resources or fakes as needed and keep the test deterministic.
Use the create-unit-test skill to run the relevant Gradle unit tests, inspect the failure report, fix the test or source issue, and rerun the test task until it passes.
ベストプラクティス
- 実装の詳細を選ぶ前に、動作とテスト結果を理解することから始めます。
- テストをよりシンプルで現実的に保てる場合は、モックよりフェイクを優先します。
- まず最小限の関連する Gradle テストタスクを実行し、コミット前により広範なスイートを実行します。
回避
- タスクが特にインストゥルメンテーションテストでない限り、単体テストを androidTest に配置しないでください。
- タイミング、外部サービス、または非決定的な状態に依存するテストを書かないでください。
- リクエストがテスト動作のみを求めている場合は、ソース実装の詳細を提案しないでください。
よくある質問
このスキルはテストを自動的に書きますか?
このスキルはどのようなプロジェクトに最適ですか?
Robolectric はいつ使用すべきですか?
モックとフェイクのどちらを優先しますか?
失敗したテストを診断できますか?
このスキルはインストールしても安全ですか?
開発者情報
作成者
AnySoftKeyboardライセンス
MIT
Skillstore リビジョン
r1
バージョンに関する注意
作者はバージョンを宣言していません。
参照
7db9b9f06e0ab79c575b58bc48c4d8dc9849f424
メンテナンスの新しさ
2026/7/26
利用状況
5 ダウンロード · 181 閲覧
ファイル構成
📄 SKILL.md