Langsung ke konten
Skillpedia
Pemrograman umum13k Β· #11390

react-doctor

Fungsinya

Skill ini menjalankan pemindai yang memeriksa kode React untuk masalah keamanan, kinerja, kebenaran, dan struktur. Skill ini ditujukan untuk pengembang yang ingin menjaga aplikasi React tetap sehat sebelum commit.

Kapan dipakai

  • βœ“Saat Anda selesai membuat fitur atau perbaikan bug React dan ingin memeriksanya sebelum commit.
  • βœ“Saat Anda menginginkan pembersihan menyeluruh atas peringatan dalam proyek React.
  • βœ“Saat Anda mengetik slash doctor untuk memulai triase penuh masalah React.

Link skill

https://github.com/humanlayer/humanlayer/blob/main/.claude/skills/react-doctor/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/humanlayer/humanlayer/blob/main/.claude/skills/react-doctor/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

β€œPindai aplikasi React saya dan perbaiki masalah yang paling serius lebih dulu.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menjalankan pemindai react-doctor, yang memberikan skor 0 sampai 100, lalu mengerjakan masalah dari yang paling parah ke yang paling ringan. Untuk triase penuh, agent mengikuti panduan daring alat tersebut.

Konten teknis (SKILL.md asli)

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

React Doctor

Scans React codebases for security, performance, correctness, and architecture issues. Outputs a 0–100 health score.

After making React code changes:

Run npx react-doctor@latest --verbose --scope changed and check the score did not regress.

If the score dropped, fix the regressions before committing.

For general cleanup or code improvement:

Run npx react-doctor@latest --verbose (the default --scope full) to scan the full codebase. Fix issues by severity β€” errors first, then warnings.

/doctor β€” full local triage workflow

When the user types /doctor, says "run react doctor", or asks for a full triage / cleanup pass (not just a regression check), fetch the canonical local-triage playbook and follow every step in it:

curl --fail --silent --show-error \
  --header 'Cache-Control: no-cache' \
  https://www.react.doctor/prompts/react-doctor-agent.md

The playbook is the single source of truth β€” a scan β†’ filter β†’ triage β†’ fix β†’ validate loop that edits the working tree directly (never commits, never opens PRs). Updating the prompt at its source updates every agent on its next fetch β€” no skill reinstall needed.

Pair it with the matching per-rule prompts at https://www.react.doctor/prompts/rules/<plugin>/<rule>.md (fetched on demand inside the playbook) so each fix uses the canonical, reviewer-tested recipe.

Configuring or explaining rules

When the user wants to understand a rule, disagrees with one, or wants to disable / tune which rules run (not fix code), read references/explain.md and follow it. Start with npx react-doctor@latest rules explain <rule>, then apply the narrowest control via npx react-doctor@latest rules disable|set|category|ignore-tag …, which edits your doctor.config.* (or package.json#reactDoctor).

Command

npx react-doctor@latest --verbose --scope changed
Flag Purpose
. Scan current directory
--verbose Show affected files and line numbers per rule
--scope changed Only report issues introduced vs the base branch (default: full)
--scope lines Only report issues on the changed lines
--score Output only the numeric score
Pertanyaan umum

Apakah perlu dipasang?

Alat ini berjalan melalui npx, sehingga agent mengambil pemindainya saat dijalankan.

Apakah ia akan meng-commit perubahan ke git?

Tidak. Alur kerja triase penuh mengedit file kerja dan tidak pernah meng-commit atau membuka pull request.

Apa arti skornya?

Itu adalah skor kesehatan 0 sampai 100. Setelah perubahan, agent memeriksa bahwa skornya tidak turun.

Detail

Deskripsi asli dari pembuat

Use when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.

repo: humanlayer/humanlayer

Popularitas

Bintang GitHub
13k
Peringkat
#11390
Lisensi
Apache-2.0
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa