Laman kursus / Bengkel AI / W08
W08 · M08 · 15 minit · Hari 2, 16:10 hingga 16:25

Permohonan pindaan, analisis impak dan semakan CI dibantu AI

AI change request, impact analysis and CI review

Matlamat / Goal

Bangkitkan permohonan pindaan PPrISA10 untuk kod promo baharu, biar AI menjejak impak melalui RTM dan kes ujian, dan semak aliran kerja quality gate CI.

Raise a PPrISA10 change request for a new promo code, let the AI trace the impact through the RTM and test cases, and review the CI quality gate workflow.

Peraturan data: guna data sintetik ShopFast sahaja. Model percuma dihoskan di luar negara. Output AI ialah draf yang mesti disemak manusia.

Langkah demi langkah dengan tangkapan skrin sebenar

Langkah 1 / Step 1 · opencode (Build)

Jalankan /change-request untuk kod promo RAYA26. AI membaca dokumen dahulu dan mungkin berhenti seketika pada Preparing write. Apabila dialog Permission required muncul, baca pratonton dan pilih Allow once.

Run /change-request for promo code RAYA26. The AI reads the documents first and may pause at Preparing write. When the Permission required dialog appears, read the preview and choose Allow once.

/change-request Tambah kod promo RAYA26 (diskaun 26 peratus, sah 1 hingga 31 Mac 2027) pada checkout ShopFast
Jalankan /change-request untuk kod promo RAYA26. AI membaca dokumen dahulu dan mungkin berhenti seketika pada Preparing write. Apabila dialog Permission required muncul, baca pratonton dan pilih Allow once.
Langkah 2 / Step 2 · opencode

Allow once. Permohonan pindaan gaya PPrISA10 disimpan.

Allow once. The PPrISA10-style change request is saved.

Allow once (Enter)
Allow once. Permohonan pindaan gaya PPrISA10 disimpan.
Langkah 3 / Step 3 · opencode (Plan)

Jalankan /impact-analysis dalam mod Plan.

Run /impact-analysis in Plan mode.

/impact-analysis RAYA26
Jalankan /impact-analysis dalam mod Plan.
Langkah 4 / Step 4 · opencode (Plan)

Minta ejen Plan menyemak quality gate GitHub Actions.

Ask the Plan agent to review the GitHub Actions quality gate.

Semak ../.github/workflows/shopfast-quality-gate.yml sebagai quality gate. Nyatakan apa yang disemak, apa yang tiada (contoh imbasan keselamatan atau ambang liputan) dan 3 cadangan. Jangan tulis fail.
Minta ejen Plan menyemak quality gate GitHub Actions.

Semakan manusia / Human check

  1. RAYA26 pada 26 peratus melanggar had 25 peratus dalam REQ-CHK-03: adakah AI perasan?
    RAYA26 at 26 percent breaks the 25 percent cap in REQ-CHK-03: did the AI notice?
  2. Set regresi adalah minimum dan dijejak ke ID REQ-CHK
    The regression set is minimal and traced to REQ-CHK IDs
  3. Rollback mempunyai pencetus yang jelas dan pemilik
    Rollback has a clear trigger and an owner

Contoh output sebenar

Jawapan AI berbeza setiap larian. Bandingkan struktur dan semak kandungan.

Jika ada masalah / Troubleshooting

MasalahTindakan
opencode is not recognisedClose and reopen PowerShell so PATH refreshes. Still failing: powershell -ExecutionPolicy Bypass -File .\setup\install-opencode.ps1 -Portable
Scripts are disabled on this systemSet-ExecutionPolicy -Scope CurrentUser RemoteSigned, or run opencode.cmd instead of opencode
The model is slow or stopsWait up to 2 minutes. Press Esc to interrupt, then send the prompt again. Try another free model with /models
Permission required dialogRead the preview. Choose Allow once for files in outputs/. Reject anything outside the lab folder
File or command not foundCheck the status bar path ends with \lab. Commands and @files are relative to the lab folder
Answer uses Indonesian words or dashesReply: Ikut AGENTS.md peraturan 1 dan 14, tulis semula dalam Bahasa Melayu Malaysia
Network or proxy error$env:HTTPS_PROXY = "http://proxy:port" and $env:NO_PROXY = "localhost,127.0.0.1" before starting opencode
Port 3000 already in use$env:PORT = 3001 before npm start, and use http://localhost:3001

Pautan