本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)101k · #978

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がスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/build-test/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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 when plan.steps's current step is in completed state).
  • Suppressing test failures by changing test files; that violates the rewrite-plan ownership rule.
  • Setting tests: 'skipped' without a non-empty reason field.

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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル