Langsung ke konten
Skillpedia
Website & UI (frontend)75k · #2780

console-cleanup

Fungsinya

Skill ini memeriksa JavaScript untuk pernyataan console yang seharusnya tidak berjalan di situs yang aktif. Cocok untuk pengembang yang menyiapkan skrip untuk dirilis.

Kapan dipakai

  • ✓Saat skrip produksi berisi pemanggilan console.log atau console.debug.
  • ✓Saat pesan debug dapat mengungkap informasi pribadi kepada pengunjung.
  • ✓Saat Anda mengatur build yang seharusnya menghapus logging secara otomatis.

Link skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/console-cleanup/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/thedaviddias/Front-End-Checklist/blob/main/skills/console-cleanup/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

“Hapus log debug dari skrip checkout saya sebelum kita merilisnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menemukan pernyataan console, menghapusnya atau mengubahnya ke pengaturan logging yang nonaktif di produksi, dan tetap mempertahankan logging error di tempat yang dibutuhkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Remove console statements in production

Console statements leak sensitive information, impact performance, and create unprofessional user experiences when visible in production.

Quick Reference

  • Remove console.log, console.debug, console.table before production
  • Use environment-aware logging utilities
  • Configure build tools to strip console statements automatically
  • Keep console.error for critical error tracking if needed

Check

Scan this JavaScript code for console.log, console.debug, console.warn, console.error, and other console statements that should be removed before production deployment.

Fix

Remove or conditionally disable console statements for production, or replace them with a proper logging service.

Explain

Explain why console statements should be removed from production code and alternatives for logging.

Code Review

Review scripts, client components, and browser execution paths related to Remove console statements in production. Flag exact imports, event handlers, runtime side effects, or blocking operations that violate the rule, and state how the change should be verified in the browser.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/javascript/console-cleanup

Pertanyaan umum

Mengapa pernyataan console menjadi masalah di produksi?

Skill menyatakan pernyataan itu dapat membocorkan informasi sensitif, memengaruhi kinerja, dan terlihat tidak profesional.

Apakah error masih bisa dicatat?

Ya. Skill menyatakan console.error boleh tetap ada jika diperlukan untuk pelacakan error.

Apa alternatif yang baik untuk log console?

Alat logging yang sadar lingkungan atau layanan logging yang sesuai.

Detail

Deskripsi asli dari pembuat

Use when reviewing scripts, client components, bundles, or runtime behavior related to Remove console statements in production. Inspect both source code and the browser execution path so fixes target the real bottleneck or bug.

repo: thedaviddias/Front-End-Checklist

Popularitas

Bintang GitHub
75k
Peringkat
#2780
Lisensi
MIT
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa