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/backend-skills

v0.2.1

Published

Claude Code / Copilot agent skills with HERCA backend conventions.

Readme

@herca/backend-skills

Skill agent (Claude Code / GitHub Copilot) berisi konvensi backend HERCA.

Isi

| Skill | Cakupan | | --- | --- | | herca-laravel-app-conventions | app/**: cek versi dan prasyarat project, fallback Laravel lama, struktur per domain, PHPDoc Indonesia, helper global, enum, Data object | | herca-laravel-api-conventions | app/Http/**, app/Exports/**, routes/api.php: response lewat ApiResponse, pesan __('api.*'), handler error, permission, route master, FormRequest, Resource, export, commit | | herca-laravel-models-conventions | app/Models/**, app/Observers/**, database/**: trait model, filter/sort, observer *_by, activity log, migration | | herca-laravel-services-conventions | app/Services/**, app/Jobs/**: service di-inject, DB::transaction, bentuk method, kalkulasi dan data historis | | herca-laravel-commands-conventions | app/Console/Commands/**: PHPDoc Indonesia, signature app: | | herca-laravel-email-conventions | view email, app/Mail/**, app/Notifications/**: contoh Blade dengan CSS inline (tanpa Tailwind), layout dan format untuk semua email notifikasi, teks pengajuan sebagai acuan | | herca-laravel-tests-conventions | tests/**: PHPUnit #[Test], LazilyRefreshDatabase, Passport::actingAs, assertion response | | laravel-best-practices | Laravel Boost | | testing-best-practices | Laravel Boost | | passport-development | Laravel Boost | | tailwindcss-development | Laravel Boost | | infer-conventions | Laravel Boost |

Cara kerja di project lain

Skill herca-laravel-* tidak terikat ke satu project:

  • Aturan ditulis generik, dengan contoh yang seragam memakai model User.
  • Sebelum menulis kode, agent mengecek versi Laravel/PHP/PHPUnit project dan memakai fallback untuk versi lama (mis. HRIS di Laravel 8).
  • Agent juga mengecek apakah infrastruktur bersama (ApiResponse, HasSoftDeleteFilter, Sortable, handler error, lang/*/api.php) sudah ada. Kalau belum, agent bertanya dulu sebelum memasangnya dari folder references/ di skill. Untuk activity log, agent menyarankan paket herca/activity-log setelah mengecek kompatibilitasnya.
  • CLAUDE.md atau skill milik project tetap menang kalau mengatur hal yang sama.

Install

Global (berlaku di semua project, disarankan):

npx @herca/backend-skills --global --force
# dari clone repo ini: node bin/install.js --global --force

Per project, jalankan dari root project:

npx @herca/backend-skills                      # .claude/skills
npx @herca/backend-skills --only claude,copilot   # juga ke .github/skills
npx @herca/backend-skills --global             # ~/.claude/skills
npx @herca/backend-skills --skill herca-laravel-api-conventions,herca-laravel-models-conventions
npx @herca/backend-skills --force              # timpa yang sudah ada
npx @herca/backend-skills --list

Secara default, skill yang sudah ada tidak ditimpa, dan perintah berakhir dengan exit 1 supaya tidak terbaca sebagai sudah diperbarui. Pakai --force untuk memperbarui.

Setiap kali isi skills/ berubah, jalankan ulang install dengan --force. Salinan di ~/.claude/skills tidak ikut berubah otomatis.

Memperbarui isi paket

  1. Ubah skill di skills/. Konvensi area baru dibuat sebagai skill herca-<stack>-<area>-conventions tersendiri, misalnya herca-laravel-api-conventions atau herca-python-api-conventions.
  2. Naikkan versi: npm version patch.
  3. Catat perubahan di CHANGELOG.md.
  4. Jalankan npm test.
  5. Merge ke main. CI menjalankan test lalu publish bila versinya belum ada di npm.