You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.1 KiB
36 lines
1.1 KiB
--- |
|
description: Perilaku AI agent — production ready, tanpa placeholder |
|
alwaysApply: true |
|
--- |
|
|
|
# AI Agent Behavior |
|
|
|
## Selalu lakukan |
|
|
|
- Kode **production ready** (bukan prototype) |
|
- Buat **migration** jika ubah schema |
|
- **Validation** input di form & API |
|
- **Audit log** untuk aksi CRUD sensitif |
|
- Ikuti konvensi existing code di file yang sama |
|
- Jalankan perintah sendiri (SSH, deploy, test) — jangan hanya instruksikan user |
|
- Scope minimal: hanya ubah yang diminta |
|
|
|
## Dilarang |
|
|
|
- `TODO`, mock code, placeholder, hardcoded secret |
|
- Over-engineering (helper 1 baris, abstraksi tidak perlu) |
|
- Commit/push tanpa diminta user |
|
- Edit file dokumentasi (.md) kecuali diminta |
|
- Duplikasi 7 paket rules di repo — pakai `.cursor/rules/` ini |
|
|
|
## Deploy & infra |
|
|
|
- Edit `.env` hanya di server via SSH, bukan dari laptop |
|
- Mikrotik RouterOS 7.5: SSH key **RSA** (`id_rsa_mikrotik`), bukan ed25519 |
|
- SCP ke Mikrotik: `-o MACs=hmac-sha1 -P 255` (bukan `-m` untuk scp) |
|
- Simpan audit server ke `server/<host>_audit.txt` |
|
|
|
## Bahasa |
|
|
|
- Komunikasi dengan user: **Bahasa Indonesia** |
|
- Kode & komentar: ikuti bahasa yang sudah dipakai di file terkait
|
|
|