Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)41k Β· #6913

review-hog-authoring

Fungsinya

Skill ini menjelaskan cara menulis sudut pandang dan aturan tinjauan Anda sendiri untuk peninjau pull request otomatis PostHog. Ditujukan untuk tim yang menginginkan tinjauan yang disesuaikan dengan kode mereka.

Kapan dipakai

  • βœ“Saat Anda ingin lensa tinjauan kustom yang memeriksa pull request untuk satu kekhawatiran tertentu.
  • βœ“Saat Anda ingin menetapkan standar sendiri untuk temuan tinjauan mana yang dipublikasikan.
  • βœ“Saat Anda ingin peninjau mencari masalah yang saat ini terlewat dalam kode Anda.

Link skill

https://github.com/PostHog/posthog/blob/master/products/review_hog/skills/review-hog-authoring/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/PostHog/posthog/blob/master/products/review_hog/skills/review-hog-authoring/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

β€œBantu saya menulis aturan tinjauan yang memeriksa pull request kami dari pemeriksaan tenant yang hilang dalam kueri database.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menjelaskan jenis aturan tinjauan, cara setiap aturan diberi nama dan apa yang harus diperiksanya, serta standar yang menentukan temuan mana yang dipertahankan. Skill membantu Anda menulis satu aturan dalam satu waktu.

Konten teknis (SKILL.md asli)

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

Authoring PostHog Review skills

PostHog Review is PostHog's automated PR reviewer. A review splits the PR into chunks, then for each chunk runs every enabled perspective in parallel (independent specialist lenses), a single blind-spot check afterwards (a final sweep conditioned on what the perspectives found), and finally judges every surviving candidate finding against one validation criteria skill β€” only findings that pass get published to the pull request. After a published review, the resolution stage goes back over the PR's unresolved review threads and judges each against one resolution criteria skill β€” worth-and-safe asks get implemented on the PR branch, every thread gets a reply.

All four kinds are team LLMSkill rows the review agents pull over MCP at run time. PostHog ships canonicals; this skill is the guide for authoring custom ones. The skill itself is team-level; whether it runs is a per-user setting in Inbox β†’ Code review.

Kind Name contract Cardinality per user Canonical example
Review perspective review-hog-perspective-<slug> Multi-enable, at least one stays on review-hog-perspective-logic-correctness
Blind-spot check review-hog-blind-spots-<slug> Exactly one active; selecting swaps review-hog-blind-spots-general
Validation criteria review-hog-validation-<slug> Exactly one active; selecting swaps review-hog-validation-criteria
Resolution criteria review-hog-resolution-<slug> Exactly one active; selecting swaps review-hog-resolution-criteria

Authoring flow

  1. Ground yourself. Using the PostHog MCP skill tools, skill-list the team's review-hog-* skills and skill-get the canonical of the kind you're authoring (see the table above) β€” it is the reference for structure and tone. For a perspective, skim the descriptions of every existing review-hog-perspective-* so the new lens doesn't re-cover ground an enabled one already owns (overlap gets deduplicated later, but it wastes review passes).
  2. Interview the user. Ask what the skill should focus on, and offer a few concrete directions the current set doesn't cover β€” grounded in what you saw in step 1 and, when useful, in the project itself. Don't start writing until the direction is picked.
  3. Draft the body following the per-kind guidance below. Keep it a focused instruction set the review agent can apply to one chunk in one pass β€” not an essay.
  4. Create the skill yourself with posthog:skill-create β€” actually create the team LLMSkill row; never hand the user a body to copy-paste. Pass the exact name per the contract above (lowercase slug), a one-paragraph description of what the lens/sweep/bar is, and the body. The name prefix is the whole identity β€” it is how the Code review tab and the review runs discover the skill. There is no category parameter on the skill tools and you don't need one: the backend stamps the review_hog grouping category itself (it only affects grouping on the Skills page) β€” do not spend turns trying to set or verify it. Iterate with posthog:skill-update if the user wants changes. Author fresh β€” don't skill-duplicate a canonical to edit: seeded metadata rides along with the copy, and the canonical sync may overwrite or prune it.
  5. Tell the user how to activate it. A custom skill starts inactive for them:
    • Perspective β€” toggle it on under Inbox β†’ Code review β†’ Perspectives (it appears disabled until they enable it; at least one perspective must stay on).
    • Blind-spot check / validation criteria / resolution criteria β€” select it under the matching section; exactly one runs at a time, so selecting it swaps out the current one for their reviews only. Reviews pin skill versions when a run starts, so an edit mid-review applies from the next run.

Writing a review perspective

The body instructs one specialist review pass over one PR chunk. Match the canonical logic-correctness skill's shape:

  • The lane β€” one sentence on what this lens is responsible for; report everything in lane and leave the rest to the other perspectives.
  • **Hunting ground
Pertanyaan umum

Apa itu perspektif?

Itu adalah lensa khusus, seperti keamanan atau logika, yang meninjau setiap bagian pull request secara paralel dengan lensa lainnya.

Apakah aturan kustom selalu aktif?

Aturan diaktifkan per pengguna, dan setidaknya satu perspektif harus tetap aktif.

Apakah saya perlu menulis kode untuk membuat aturan?

Aturan ditulis sebagai instruksi yang menjelaskan apa yang harus diperiksa pada kode.

Detail

Deskripsi asli dari pembuat

How to author custom PostHog Review skills: the review perspectives, blind-spot checks, validation criteria, and resolution criteria that drive PostHog Review's automated PR reviews. Use when a user wants a new review perspective (a specialist lens on their PRs), a custom blind-spot sweep, their own validation bar for which findings get published, or their own bar for which review comments get implemented. Trigger on "create a PostHog Review perspective", "custom review perspective", "my own blind-spot check", "custom validation criteria", "custom resolution criteria", "tune what PostHog Revie

repo: PostHog/posthog

Popularitas

Bintang GitHub
41k
Peringkat
#6913
Lisensi
β€”
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa