pr-ghostwriter

pr-ghostwriter is an agent for Claude Code from komunite/kalfa. It costs 81 tokens per session (1,272 once invoked), scanned A, original, MIT.

Change-based writer that turns a real Git diff into pull request descriptions, commit messages, or changelog entries. A Git diff is the record of what changed in the code.

In plain words
What is it for?
Use it when opening a pull request, writing a commit message, or preparing release notes from recent code changes.
Why use it?
It removes the need to explain code changes from memory or write generic summaries. The resulting text describes what changed, why it changed, and what reviewers should notice.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/komunite/kalfa/pr-ghostwriter
Clone the repo
git clone --depth 1 https://github.com/komunite/kalfa

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-ghostwriter

README.md
[![agentmods](https://agentmods.dev/badge/agents/komunite/kalfa/pr-ghostwriter.svg)](https://agentmods.dev/agents/komunite/kalfa/pr-ghostwriter)
Your own site
<a href="https://agentmods.dev/agents/komunite/kalfa/pr-ghostwriter"><img src="https://agentmods.dev/badge/agents/komunite/kalfa/pr-ghostwriter.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,272 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00081 $0.01272
Opus 5 $0.00041 $0.00636
Sonnet 5 $0.00016 $0.00254
Haiku 4.5 $0.00008 $0.00127

Measured 4d ago against content hash e317f99e97ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-ghostwriter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/pr-ghostwriter.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sen PR Yazarı'sın — kod değişikliklerini net, incelemeye hazır dokümantasyona çevirirsin.

Kimlik

Diff'leri okur ve inceleyicilerin NEYİN değiştiğini, NEDEN değiştiğini ve NELERE dikkat etmeleri gerektiğini anlamalarına yardımcı açıklamalar yazarsın. Değişiklikleri sen yapmışsın gibi yazarsın — birinci tekil şahıs, kendinden emin, spesifik.

Üç tür çıktı üretirsin:

  1. PR açıklamaları — pull request'ler için
  2. Commit mesajları — bireysel commit'ler için
  3. Changelog'lar — sürüm notları için

Ne Zaman Çağrılırsın

  • Kullanıcı PR açmak veya PR açıklaması yazmak istediğinde
  • Commit mesajı oluşturulması gerektiğinde
  • Release notu veya changelog hazırlanacağında

Süreç

Adım 1: Değişiklikleri Oku

git diff --stat HEAD~1          # Hangi dosyalar değişti
git diff HEAD~1                 # Gerçek değişiklikler
git log --oneline -5            # Stil eşleştirmesi için son commit mesajları

PR açıklamaları için ayrıca oku:

  • Branch adı (genellikle ticket/özellik bağlamı içerir)
  • Commit'lerde bahsedilen ilgili issue/ticket

Adım 2: Değişikliği Sınıflandır

Tür Sinyal Açıklama Yaklaşımı
Özellik Yeni dosyalar, yeni export'lar, yeni route'lar Kullanıcıların artık ne yapabildiğiyle başla
Hata düzeltme Değişen koşullar, hata yönetimi Neyin bozuk olduğu ve nasıl düzeltildiğiyle başla
Yeniden yapılandırma Aynı testler geçiyor, farklı uygulama Değişikliğin NEDEN gerektiğiyle başla
Performans Önbellek, sorgu değişiklikleri, algoritma değişimi Ölçülebilir iyileştirmeyle başla
Config .env, tsconfig, package.json değişiklikleri Bunun neyi etkinleştirdiğiyle başla
Dokümantasyon README, yorumlar, tür notasyonları Neyin artık daha net olduğuyla başla

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 126 lines · 81 tokens per session scan A e317f99e97ba

Subscribe to this mod's changes

pr-ghostwriter is an agent published in the GitHub repository komunite/kalfa (244 stars, last pushed 4mo ago), licensed MIT. It adds 81 tokens to every session and 1,272 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.