npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@herca/fe-skill

v0.1.4

Published

Skill herca-fe untuk AI agent (Claude Code, Codex, Cursor, Copilot, Gemini): panduan teknis implementasi frontend Herca (Next.js + @herca/r-kit).

Readme

@herca/fe-skill

Skill AI agent herca-fe: panduan teknis implementasi frontend Herca (Next.js 16 + @herca/r-kit). Isi skill ada di skills/herca-fe/.

Pasang

Dari folder tujuan. Nama dan isi folder bebas:

npx @herca/fe-skill release

Default hanya untuk Claude Code. Hasilnya .claude/skills/herca-fe/, herca-fe-bug-fixing/, dan herca-fe-bug-hunter/ di folder itu.

Lokasi app frontend dipilih dengan urutan berikut, dan path perintah di skill mengikutinya:

  1. --app-dir <folder>, disimpan di fe-skill.config.json agar final-gate.sh dan pemasangan ulang memakainya
  2. appDir di fe-skill.config.json
  3. apps/frontend, bila folder itu ada
  4. Root pemasangan itu sendiri

final-gate.sh butuh package.json dan src/ di lokasi app. Sumber di ai-agent (docs/, apps/backend) bersifat opsional: bila tidak ditemukan, skill menanyakan lokasinya.

Bila skill berada di dalam app, eslint bisa crash pada skrip .mjs skill (Error while loading rule ...). Tambahkan .claude/ dan .agents/ ke ignores di eslint.config.ts app.

Untuk tool lain, pilih adaptornya dengan --only:

| Adaptor | File | Dibaca oleh | |---|---|---| | claude | .claude/skills/ | Claude Code | | agents | AGENTS.md + .agents/skills/ | Codex, Cursor, Copilot coding agent, Windsurf, Amp, Jules, Zed, dan tool lain yang mengikuti AGENTS.md | | gemini | GEMINI.md | Gemini CLI | | cursor | .cursor/rules/fe-skill.mdc | Cursor (alwaysApply) | | copilot | .github/copilot-instructions.md | GitHub Copilot Chat |

npx @herca/fe-skill release --only claude,agents,gemini,cursor,copilot   # semua tool

Adaptor selain claude selalu ikut memasang AGENTS.md dan .agents/skills/, karena file adaptor hanya berisi penunjuk ke skill di sana. Salinan .agents/skills/ otomatis merujuk path .agents/.

Di AGENTS.md, GEMINI.md, dan copilot-instructions.md, paket ini hanya menulis di dalam blok <!-- fe-skill:start --> … <!-- fe-skill:end -->. Isi di luar blok tidak disentuh. File rule Cursor sepenuhnya dikelola paket ini dan ditimpa setiap pemasangan. CLAUDE.md tidak ditulis karena Claude Code menemukan skill sendiri.

| Opsi | Fungsi | |---|---| | --dir <path> | root tujuan (default: direktori saat ini) | | --app-dir <path> | lokasi app frontend, relatif ke root | | --only <list> | tool tujuan, pisahkan dengan koma (default: claude) | | --force | timpa skill yang sudah terpasang dan hapus skill bernama lama (fe-skill, fe-bug-fixing, fe-bug-hunter); perubahan lokal pada skill hilang | | --dry-run | tampilkan tujuan tanpa menulis apa pun |

Perbarui: npx @herca/fe-skill@latest release --force, dengan --only yang sama saat memasang.

Skill tidak bisa dipasang global: scripts/final-gate.sh mencari root frontend dari lokasinya sendiri (.claude/skills/herca-fe/scripts/ atau .agents/skills/herca-fe/scripts/).

Skill lain yang dirujuk

Paket ini berisi herca-fe, herca-fe-bug-fixing, dan herca-fe-bug-hunter. Skill berikut dirujuk dari dalamnya dan harus tersedia terpisah: web-ux, qa-testing, create-prd, analyze-legacy. web-ux dipasang dengan npx @herca/ux-skills init --skill web-ux. Skill juga mengasumsikan repo ai-agent sebagai sumber aturan bisnis, skenario, dan kontrak API.

Skill ini tidak bergantung pada modul acuan tertentu di repo FE.

Mengubah skill

Ubah di repo ini, bukan di salinan terpasang. Alurnya: ubah skill, tambah cek final-gate.sh bila mekanis, naikkan versi, catat di CHANGELOG.md, pasang ulang.

Titik yang mencerminkan web-ux

Bagian berikut menulis ulang aturan web-ux sebagai nilai implementasi, supaya herca-fe tetap bisa dipakai tanpa web-ux. Setiap @herca/ux-skills rilis, baca CHANGELOG.md-nya, lalu cek baris yang terkena di tabel ini. Bila berbeda untuk hal UX, agent menanyakannya ke user dengan usulan mengikuti web-ux (SKILL.md Langkah 2 › Bila skill ini dan web-ux berbeda; sama dengan web-ux › Pemeriksaan penutup); perbarui skill ini dan tabel ini bila ada titik baru. Skill ini tetap menang untuk kontrak API, permission, kontrak r-kit, dan struktur kode. Acuan terakhir: web-ux 0.1.4 (ux-skill commit e5871ff).

| herca-fe | Aturan web-ux | Yang dicerminkan | |---|---|---| | forms.md › Konfirmasi simpan | page-patterns.md › Kapan perlu konfirmasi; copy-calibration.md › Konfirmasi | Judul dan tombol, Edit satu kalimat cakupan tanpa daftar perubahan, Edit tanpa perubahan | | forms.md › Konfirmasi simpan (pengecualian) | page-flows.md › Ubah kata sandi | Ubah kata sandi tanpa konfirmasi, sukses lalu masuk ulang | | forms.md › Error submit, Hasil belum diketahui | page-patterns.md › Form, Kegagalan dari server | 422 tanpa errors jadi Alert; tanpa response (timeout, koneksi putus) jadi Alert hasil belum diketahui, juga untuk aksi status dan hapus (workflow-actions.md) | | forms.md › Komponen form (Placeholder wajib) | copy-calibration.md › Label, placeholder, helper | Kalimat placeholder text, select, format, field bergantung; keduanya mewajibkan placeholder di setiap kontrol isian | | forms.md › Komponen form (Nomor telepon) | page-patterns.md › Field nomor telepon | Satu field, bawaan +62, normalisasi tempel | | forms.md › Detail | page-flows.md › Detail; tokens.md › Hiasan kartu pertama View; copy-calibration.md › ID record | Baris ID #{id}, badge Deleted, ornamen, nilai kosong -, section maks 3 level, tooltip label | | forms.md › History | visual-guidance.md › Tipografi; copy-calibration.md › Riwayat | Header p2 semibold, urutan terlama di atas | | tables.md › partials/columns.tsx | page-patterns.md › Daftar data; visual-guidance.md › Tipografi | Sel dua baris t3 medium gray-700, sort hanya bila didukung server, ±7 kolom | | tables.md › Kosong, error, loading | page-patterns.md › Empty dan tanpa hasil | Tiga varian empty state, Clear Filters | | tables.md › Soft delete | page-patterns.md › Daftar data | Baris terhapus ditandai warna baris, tanpa badge | | list-page-partials.md › Params hook, filter-actions.tsx, advanced-actions.tsx, advanced-search-form.tsx | page-patterns.md › Daftar data | Clear Filters tidak menghapus search, Advanced Search memuat filter ringkas, tombol Close/Reset/Search, More hanya bila > 2 aksi | | documents-files.md › Export | page-patterns.md › Daftar data; copy-calibration.md | Toast sukses dan gagal dengan coba lagi | | workflow-actions.md › Alasan penolakan | page-patterns.md › Kapan perlu konfirmasi; copy-calibration.md › Konfirmasi | Kolom alasan tampil opsional, hilang bila PRD atau sistem tidak menyimpannya | | list-page-partials.md › filter-actions.tsx (filter tanggal), forms.md › Placeholder wajib | page-patterns.md › Field khusus › Tanggal | Filter tanpa label: placeholder nama dimensi; form dan panel Advanced Search: placeholder format | | list-page-partials.md › advanced-actions.tsx (Tombol Advanced Search) | visual-guidance.md › Warna dan prominence Button | outline gray, ikon search, jumlah kriteria aktif, aksi pertama; pengecualian larangan gray outline di header | | list-page-partials.md › filter-actions.tsx (Ctrl/Cmd+F) | page-patterns.md › Daftar data | Pintasan memfokuskan pencarian, hanya di Index | | list-page-partials.md › Params hook, tables.md › partials/data.tsx | page-patterns.md › Daftar data (Parameter tidak valid) | Param tak dikenal diabaikan, page ke halaman terakhir, filter hilang dikosongkan | | list-page-partials.md › Page shell (breadcrumb), layout-and-responsive.md › App shell (skip link) | page-patterns.md › Orientasi dan kendali pengguna | Isi breadcrumb per halaman; skip link Skip to content | | numbers-dates.md › Pratinjau | page-patterns.md › Item di dalam form | Satu baris belum valid → total - | | numbers-dates.md › Tanggal dan waktu | content-patterns.md › Lokalisasi dan format | Rentang datetime lintas tengah malam, tanggal lengkap di kedua ujung | | documents-files.md › Export | page-patterns.md › Daftar data | Cakupan seluruh hasil terfilter (kata kunci, filter, status data, kolom) | | forms.md › Teks modal sukses per aksi | copy-calibration.md › Sukses | Judul, deskripsi, dan tombol per aksi; View tidak ada setelah hapus | | forms.md › Error submit (judul toast gagal) | copy-calibration.md › Error | Judul menyebut aksi yang gagal | | forms.md › Bentuk tampilan, Detail (warna bilah, heading) | visual-guidance.md › Warna dan prominence Button; page-patterns.md › Form, Sidebar, top bar, dan judul halaman | Delete outline danger, Edit default primary, Undelete outline success; section h2, kartu anak h3 | | forms.md › History (403) | page-patterns.md › Detail dan relasi | Skeleton lalu panel hilang tanpa teks atau toast | | tables.md › partials/data.tsx (tinggi baris) | visual-guidance.md › Tabel data | Minimal 48 px | | i18n.md › Menulis teks (auth, plural) | terminology.md; copy-calibration.md › Konfirmasi | Sign in / Sign out; n = 1 bentuk tunggal | | auth-permissions.md › 401 dan 403 | page-patterns.md › Halaman error | /forbidden di dalam shell sebagai empty state | | workflow-actions.md › Hapus diblokir | copy-calibration.md › Konfirmasi | Dialog informasi satu tombol Got it; BE memakai 400/422, bukan 409 | | transactions.md › Pemilih item | page-patterns.md › Item di dalam form | Modal cari, checkbox, qty, Remove Selected, Undo | | layout-and-responsive.md › App shell dan menu | page-patterns.md › Sidebar dan top bar; page-flows.md › Pencarian global | Isi dan perilaku sidebar, top bar, menu pengguna | | i18n.md › Menulis teks | content/guide.md | Huruf kapital Indonesia sentence case | | tables.md › Aksi baris | page-patterns.md › Daftar data; visual-guidance.md › Ikon untuk tindakan umum | Pemicu ButtonIcon tertiary gray md bertooltip, hilang bila semua item tersembunyi | | SKILL.md Langkah 1 › Cara bertanya | feature-brief.md › Klarifikasi yang mengubah keputusan | Satu sampai empat pertanyaan saling lepas per tampilan, yang bergantung berurutan. Beda: FE mewajibkan PRD untuk fitur baru | | forms.md (ikon Back / Check Again) | visual-guidance.md › Ikon untuk tindakan umum | arrow-left-small |

Pengembangan

npm test             # uji installer, final-gate.sh, check-stack.mjs, dan isi skill
npm pack --dry-run   # periksa isi paket

Rilis: naikkan versi di package.json dan catat di CHANGELOG.md lewat MR. Setelah merge ke main, CI menjalankan test lalu publish bila versinya belum ada di npm.