working-with-skills
Fungsinya
Skill ini memberikan aturan praktis untuk membuat, membaca, dan mengedit skill bersama PostHog tanpa membuang usaha. Ditujukan untuk orang dan agent yang memelihara skill besar dengan banyak berkas.
Kapan dipakai
- βSaat Anda akan membuat, mengedit, atau memperbarui skill bersama PostHog.
- βSaat perubahan skill ditolak dan Anda perlu memahami alasannya.
- βSaat sebuah skill besar memiliki banyak berkas tambahan dan Anda hanya perlu mengubah sebagiannya.
Link skill
https://github.com/PostHog/posthog/blob/master/products/skills/skills/working-with-skills/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
βPerbarui hanya satu bagian dari skill pelaporan besar kami tanpa menulis ulang seluruhnya.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill menjelaskan alat mana yang dipilih untuk setiap jenis perubahan, seperti edit kecil yang terarah alih-alih penulisan ulang penuh, dan cara menghindari menimpa perubahan terbaru orang lain. Skill menyarankan untuk membaca skill terlebih dahulu guna mendapatkan versi terkininya.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Working with PostHog skills
This skill teaches agents how to use the skill-* MCP tools well β minimum
context, minimum round-trips, minimum mistakes. If you are not yet familiar with
the tool surface itself, read the skills-store skill first for the catalog.
This document is about how to choose between the tools and how to scale the
workflow when skills get big.
Operating principles
- Progressive disclosure is non-negotiable. Lists return descriptions, get returns body + manifest, file-get returns one file. Never preload bundled files "just in case" β every preloaded script is wasted context for the actual task.
- Pick the smallest write primitive that does the job. A targeted
editsorfile_editsis cheaper, safer, and clearer in version history than a full body or full bundle replacement. - Reads are cheap; concurrent overwrites are not. Always have a recent
versionfromskill-get(or from the response of the previous write) before calling any write tool, and pass it asbase_version. - Authoring follows the Agent Skills spec.
Keep
namekebab-case, descriptions trigger-rich, body short, bulky material in bundled files.
Decision tree: which tool do I call?
Need to know what's available?
βββΊ skill-list (names + descriptions only)
Need to use / inspect a specific skill?
βββΊ skill-get (body + file manifest, NO file contents)
βββΊ skill-file-get (one file, on demand, only as referenced)
Authoring a brand new skill?
βββΊ skill-create (body + all initial files in one call)
Editing an existing skill?
ββ Body change?
β ββ Substantial rewrite ............. update(body=...)
β ββ Surgical tweak .................. update(edits=[{old, new}, ...])
ββ Bundled file content change?
β ββ update(file_edits=[{path, edits:[...]}, ...])
ββ Add / remove / rename a file?
β ββ Add ............................. skill-file-create
β ββ Delete .......................... skill-file-delete
β ββ Rename .......................... skill-file-rename
ββ Wholesale bundle reset (rare!) ....... update(files=[...]) # replaces ALL files
Renaming the skill itself?
βββΊ skill-rename (keeps versions, files, and owners)
Want a fork as the starting point?
βββΊ skill-duplicate (then update the copy)
Done with a skill entirely?
βββΊ skill-archive (hides ALL versions; cannot be undone)
If you find yourself reaching for update(body=...) plus a sprawling files=[...]
to change one paragraph and one script, stop β that's two narrower calls
(update(edits=[...]) plus update(file_edits=[...])) or even a single
update carrying both edits and file_edits.
Discover before you fetch
posthog:skill-list
{ "search": "fractal" }
skill-list is the right tool to "find a skill" β it returns names and
descriptions only. Reading the descriptions is the entire point: pick the right
skill before pulling any body. If search doesn't narrow it enough, list
without it and scan, but do not start fetching candidate bodies blindly.
skill-get should be called once per skill per task, not per question.
Cache the body in your working memory; fetch again only if you suspect the
skill changed under you (e.g. a 409 on write β see "Concurrency" below).
Reading a large skill efficiently
Big skills (long body, many bundled files) are the case where lazy loading matters most.
skill-get(skill_name=...)β readbody+files[]manifest.- Scan the body's table of contents / headings. The body should already tell you which file goes with which task β that's why bodies stay short and reference files by path.
- For each file the body explicitly points at for the current task, call
skill-file-get(file_path=...). Skip everything else. - If the body references "see scripts/X for the rare case Y" and you are not
in case Y, do not fetch
scripts/X.
When in doubt, fewer files. You can always fetch one more on the next turn.
Authoring a new skill
Use a single skill-create call with body and initial files β the
skill lands at version: 1 complete. Do not create the skill empty and then
make N follow-up skill-file-create calls; that's N extra versions and N
extra round-trips for no benefit.
posthog:skill-create
{
"nam
Pertanyaan umum
Mengapa menghindari penulisan ulang seluruh skill?
Edit kecil yang terarah lebih aman dan lebih mudah ditinjau dalam riwayat versi.
Bagaimana jika dua orang mengedit skill yang sama?
Skill menyertakan pemeriksaan versi, sehingga perubahan terbaru tidak tertimpa diam-diam.
Apakah skill ini menjelaskan format skill?
Ya. Skill ini mengikuti spesifikasi Agent Skills, yang menjaga nama tetap sederhana dan deskripsi tetap jelas.
Detail
Deskripsi asli dari pembuat
Best practices for agents managing PostHog skills via the MCP `skill-*` tools β how to discover, read, create, update, and refactor skills efficiently, especially large skills with many bundled files. Use whenever you are about to call any `skill-*` tool, asked to author or edit a shared skill, or troubleshoot why a skill write was rejected. Also use when asked what skills are good for or how to shape one (project hub, runbook, catalog, handover, daily driver). Pairs with `skills-store` (which covers the raw tool surface) by adding the decision-tree, efficiency, pattern, and pitfall guidance.
repo: PostHog/posthog
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6953
- Lisensi
- β
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
depot-ci
41kMembantu agent Anda menyiapkan dan menjalankan alur kerja Depot CI, alternatif GitHub Actions, termasuk memigrasikan alur kerja yang ada dan membaca log eksekusi.
depot-container-builds
41kMembantu agent Anda membangun image Docker di builder jarak jauh Depot, termasuk image multi-platform, pengiriman ke registry, dan perbaikan kegagalan build.
depot-github-runners
41kMembantu agent Anda memindahkan job GitHub Actions ke runner yang dikelola Depot, memilih ukuran dan label runner, serta memecahkan masalah pengaturan runner.
editing-agents-md
41kMembantu agent Anda memutuskan apakah sebuah aturan layak masuk ke berkas AGENTS.md atau CLAUDE.md, dan menulisnya agar tetap dipatuhi tanpa membuat berkas membengkak.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.