Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)101k ยท #978

build-test

Fungsinya

Memeriksa apakah kode Anda berjalan dengan benar dan apakah tes lulus. Alat ini menjalankan perintah untuk mengecek kesalahan dan mengeksekusi tes, lalu melaporkan apakah semuanya 'passing' atau 'failing'.

Kapan dipakai

  • โœ“Setelah membuat perubahan pada kode.
  • โœ“Sebelum mengirimkan pekerjaan Anda.
  • โœ“Untuk memastikan semuanya berfungsi sebelum melanjutkan.

Link skill

https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/build-test/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/nexu-io/open-design/blob/main/plugins/_official/atoms/build-test/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œCek apakah kode dan tes-nya berjalan dengan baik.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Alat ini menjalankan perintah build dan tes yang sudah ditentukan untuk proyek Anda. Setelah itu, alat ini memberi tahu Anda apakah build dan tes berhasil atau tidak.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa itu 'build' dan 'test'?

'Build' adalah proses memeriksa apakah kode Anda ditulis dengan benar, tanpa salah ketik atau kesalahan sintaks. 'Test' adalah menjalankan pemeriksaan otomatis untuk melihat apakah fitur kode Anda berfungsi sebagaimana mestinya.

Apa yang terjadi jika ada yang gagal?

Jika 'build' atau 'test' gagal, alat ini akan memberi tahu Anda. Anda perlu memperbaiki kesalahan pada kode sebelum melanjutkan.

Bagaimana alat ini tahu perintah mana yang harus dijalankan?

Alat ini menggunakan perintah default untuk jenis proyek yang Anda gunakan (seperti Next, Vite, dan lainnya) atau membaca perintah yang sudah Anda tentukan dalam file proyek.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
101k
Peringkat
#978
Lisensi
Apache-2.0
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa