lint-and-validate
Fungsinya
Alat ini memeriksa apakah kode Anda ditulis dengan rapi dan benar, sesuai aturan yang ditetapkan proyek. Alat ini membantu menemukan kesalahan sebelum menimbulkan masalah.
Kapan dipakai
- ✓Setelah membuat perubahan pada kode.
- ✓Sebelum menyelesaikan tugas atau menyerahkan pekerjaan.
- ✓Saat proyek memiliki aturan format dan pemeriksaan tipe data.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/lint-and-validate/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Periksa apakah kode Python saya sudah rapi dan tidak ada kesalahan tipe data.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat ini menjalankan perintah khusus proyek yang memeriksa kualitas dan ketepatan tipe kode. Alat ini melaporkan apakah pemeriksaan berhasil atau gagal, serta pemeriksaan mana yang tidak bisa dijalankan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Lint and Validate
When to Use
Use after behavior or configuration changes when a repository has relevant lint or type checks. Read the repository's instructions and package scripts first. Run focused checks during development and the required checks before completion.
Procedure
- Identify the changed languages, configured commands, and installed tools. Inspect package scripts before executing them: a script named
lintcan modify files or run arbitrary project code. - Run the project's read-only lint/type-check commands. For Node projects, prefer declared scripts such as
npm run lintandnpm run typecheck. Do not usenpxto silently fetch an absent checker. - For Python, use configured, already installed tools such as
ruff check .ormypy .. Do not assume everypyproject.tomlconfigures both. Never add--fixwithout inspecting the proposed changes and the task's authorization. - Fix relevant failures without deleting user work, weakening rules, or raising timeouts just to pass. If a required tool is unavailable, report the exact check that did not run.
- Report commands, exit results, scope and remaining limitations. Passing lint does not prove the absence of runtime or security defects.
Example
After correcting a TypeScript behavior, inspect package.json, run the configured focused regression test, then npm run lint and npm run typecheck if those scripts exist. If TypeScript is declared but not installed, report the missing local checker; do not substitute a downloaded package or call the result a pass.
Bundled helpers
python scripts/lint_runner.py /absolute/project: runs a conservative set of candidate checks. Node fallback checkers must exist in localnode_modules/.bin; Python candidates must be installed. Inspect the project scripts first. A missing command or failing check exits 1; no configured checks or invalid project metadata exits 2. Exit 0 means the invoked checks passed, not that every needed check was discovered. Python detection is heuristic and may suggest unconfigured Ruff/MyPy commands.python scripts/type_coverage.py /absolute/project: read-only annotation inventory, despite its retained compatibility filename. Samples at most 30 files per language, skips links and build/dependency directories, and bounds file reads. Python uses AST nodes to avoid double-counting functions. TypeScript reports lexical: anyoccurrences, including possible comments and strings. No quality percentage or pass/fail threshold is inferred. Exit 2 means no applicable files; parse/read errors exit 1.
Limitations
The runner executes trusted project commands, which may mutate files or access the network. It does not install dependencies, detect every monorepo configuration, or replace the project's CI contract. The inventory is a bounded source sample, not semantic type coverage; inferred types, generics, decorator behavior and correctness require the actual type checker. Do not label unrun checks as successful.
Pertanyaan umum
Apa itu 'lint' dan 'type check'?
Keduanya adalah pemeriksaan otomatis yang membantu menemukan salah ketik, masalah format, dan ketidakkonsistenan dalam kode, sehingga kode lebih mudah dibaca dan dirawat.
Apakah alat ini memperbaiki kesalahan secara otomatis?
Tidak, alat ini hanya mengidentifikasi kesalahan. Anda perlu memperbaikinya sendiri setelah meninjau sarannya.
Apa artinya jika sebuah pemeriksaan tidak berjalan?
Artinya alat tidak dapat menjalankan pemeriksaan tersebut, mungkin karena alat yang dibutuhkan belum terpasang atau belum dikonfigurasi dengan benar untuk proyek tersebut.
Detail
Deskripsi asli dari pembuat
Run configured lint and type checks, distinguish failures from checks that did not run, and report concrete validation results.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #5068
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- …
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
test-driven-development
311kMengajari agent Anda menulis tes yang gagal dulu, melihatnya gagal, lalu menulis kode terkecil yang lulus, sebelum membangun fitur atau perbaikan apa pun.
verification-before-completion
311kMengajari agent Anda menjalankan pemeriksaan nyata dan membaca keluarannya sebelum menyatakan tugas, perbaikan, atau build sudah selesai atau lulus.
migrate-to-shoehorn
310kMengganti type cast berisiko di file tes Anda dengan pustaka shoehorn, sehingga tes bisa memakai data parsial dan tetap lulus pemeriksaan tipe.