build-test
できること
コードが正しく動作するか、テストが合格するかを確認します。コマンドを実行してエラーがないかチェックし、テストを実行したうえで、すべてが「passing(成功)」か「failing(失敗)」かを報告します。
使う場面
- ✓コードを変更した後。
- ✓作業を提出する前。
- ✓次の作業に進む前に、すべてが正常に動いているか確かめたいとき。
スキルのリンク
https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/build-test/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“コードとテストが正しく動いているか確認して。”
毎週5つの新しいスキル。1分で読めます。
仕組み
ツールは、プロジェクトに定義されているビルドコマンドとテストコマンドを実行します。その後、ビルドとテストが成功したかどうかを伝えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Build test
Spec §20.2 / §22.4: the "subjective critique-theater panel" is
not enough on its own — a code-migration / tune-collab run must
prove the build still passes. This atom shells out to the
project's declared test commands and emits structured signals the
devloop's until evaluator reads.
Inputs
- The active target stack (recorded in
code/index.json+plan.md's targetStack block). - The user's optional override (
od plugin run --input testCommand='pnpm test').
Default commands by framework
| framework | typecheck | test |
|---|---|---|
| next | pnpm typecheck |
pnpm test |
| vite | pnpm typecheck |
pnpm test |
| remix | pnpm typecheck |
pnpm test |
| custom | (read from package.json.scripts) |
(read from package.json.scripts) |
Output
project-cwd/
└── critique/
├── build-test.json # { build: 'passing' | 'failing', tests: 'passing' | 'failing' | 'skipped', durationMs, commandsRun: [...], failures: [...] }
└── build-test.log # raw stdout / stderr (truncated to the runner's logBudgetBytes limit, default 1 MiB)
The atom emits two signals the devloop reads:
build.passing: boolean— the typecheck command exited 0.tests.passing: boolean— the test command exited 0.
Plus the legacy critique.score so existing pipelines that read
the score keep working: 5 when both pass, 3 when only build
passes, 1 when both fail.
Convergence
Pipelines wire the atom into a devloop:
{
"id": "verify",
"atoms": ["patch-edit", "build-test"],
"repeat": true,
"until": "(build.passing && tests.passing) || iterations >= 8"
}
Anti-patterns the prompt fragment forbids
- Running tests on a partially-edited working tree (the atom
always runs after
patch-edit, and only whenplan.steps's current step is incompletedstate). - Suppressing test failures by changing test files; that violates the rewrite-plan ownership rule.
- Setting
tests: 'skipped'without a non-emptyreasonfield.
Status
Implemented by the daemon runner in
apps/daemon/src/plugins/atoms/build-test.ts. It executes the configured
build and test commands, bounds runtime and captured logs, and persists the
report and log outputs above.
よくある質問
「build(ビルド)」と「test(テスト)」とは何ですか?
「build」は、コードがきちんと書かれているか(タイプミスや構文エラーがないか)を確認する処理です。「test」は、コードの機能が期待どおりに動くかを自動でチェックする処理です。
何かが失敗したらどうなりますか?
「build」や「test」が失敗した場合は、その旨が通知されます。次に進む前に、コードのエラーを修正する必要があります。
どのコマンドを実行すればよいかは、どうやって判断しますか?
使用しているプロジェクトの種類(Next、Viteなど)に応じた標準のコマンドを使うか、プロジェクトファイルに定義されたコマンドを読み取って使います。
詳細
作者による元の説明
Run the project's build / typecheck / lint / test commands and emit the build.passing + tests.passing signals devloop convergence reads.
repo: nexu-io/open-design
人気
- GitHubのスター
- 101k
- ランキング
- #978
- ライセンス
- Apache-2.0
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
sample-plugin
101kエージェントがテスト用のメタデータファイルを作成できるようにします。さまざまな状況でコードが正しく動作することを確認する助けになります。
aster-atelier
101kエージェントが、クラシックな雰囲気のアート系ウェブサイトを作成できるようにします。映画のような雰囲気を出すために、洗練された画像、青い空、セリフ体のフォントを使用します。
audio-jingle
101kエージェントがジングルや効果音などのオーディオを生成できるようにします。音楽や音声を作成し、その結果をオーディオファイルとして保存できます。
blog-post
101kエージェントが長文の記事やブログ記事を書けるようにします。画像、引用、著者情報を入れるスペースも含まれています。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。