recreating-fork-prs

recreating-fork-prs is a skill for Claude Code, Codex from PostHog/posthog-foss. It costs 130 tokens per session (1,475 once invoked), scanned A, original, MIT.

A procedure for recreating a reviewed pull request from another repository, called a fork, on a trusted branch so required automated checks can run. It keeps the original contributor as the author and requires approval before publishing changes.

In plain words
What is it for?
Use it when a fork pull request is blocked by unavailable checks: pin the reviewed commit, rebuild it, compare the result, and open a new pull request.
Why use it?
Some checks do not run on forked code, which can prevent an otherwise reviewed change from merging.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when a fork pull request is blocked by unavailable checks: pin the reviewed commit, rebuild it, compare the result, and open a new pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/posthog/posthog-foss/recreating-fork-prs
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.

Any agent
npx skills add PostHog/posthog-foss --skill recreating-fork-prs
Clone the repo
git clone --depth 1 https://github.com/PostHog/posthog-foss

Made for: Claude Code, Codex.

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 recreating-fork-prs

README.md
[![agentmods](https://agentmods.dev/badge/skills/posthog/posthog-foss/recreating-fork-prs/github.svg)](https://agentmods.dev/skills/posthog/posthog-foss/recreating-fork-prs)
Your own site
<a href="https://agentmods.dev/skills/posthog/posthog-foss/recreating-fork-prs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/recreating-fork-prs/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for recreating-fork-prs

Your own site · 80×15
<a href="https://agentmods.dev/skills/posthog/posthog-foss/recreating-fork-prs"><img src="https://agentmods.dev/badge/skills/posthog/posthog-foss/recreating-fork-prs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00130 $0.01475
Opus 5.5 $0.00052 $0.00590
Sonnet 5.5 $0.00026 $0.00295
Haiku 4.5 $0.00013 $0.00147

Measured 2d ago against content hash 4da660175b3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

recreating-fork-prs 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 2d 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.

.agents/skills/recreating-fork-prs/SKILL.md · 132 lines

How it starts

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

Re-creating fork pull requests

Depot CI never runs code from a fork, so a fork PR never gets the required Backend CI on Depot / Test results check and cannot merge. A maintainer re-creates the reviewed change on a branch in this repository. Pull requests from forks has the reasons.

A branch in this repository is trusted: secret-gated CI steps run with its code in control. Push only the commits you reviewed. The push, the new PR, the approval and the @posthog recreate comment act in the user's name. Get the user's go-ahead for each one.

Start with @posthog recreate

Pin and review the head SHA as in step 1 below. GitHub ties an approval to whatever the PR head is when you submit it, so approve the pinned SHA by name:

gh api repos/PostHog/posthog/pulls/<n>/reviews -f commit_id=<sha> -f event=APPROVE

Then comment @posthog recreate on the fork PR, or @posthog recreate --enqueue to also queue the new PR. The newest approval from anyone with write access decides which commit the command copies. PostHog Review opens a PR from fork-pr/<n> and closes the fork PR. If a step after opening the PR fails, comment again to finish it.

When the command refuses, its reply names the fix. Fix it and comment again. Use steps 2 to 4 below only when the reply says "Re-create it by hand", or when the contributor cannot merge master into their branch to clear an overlap.

- [ ] 1. Pin the fork PR's head SHA, then review it
- [ ] 2. Rebuild the change on a new branch
- [ ] 3. Compare the branch with the reviewed SHA
- [ ] 4. Open the new PR

1. Pin, then review

gh pr view <n> --json headRefOid,author,isCrossRepository

Review the code at that headRefOid. When the review ends, run the command again. If headRefOid changed, the contributor pushed during the review: review the new commits and pin the new SHA. Every later step uses the pinned SHA, never the fork's branch name.

Read the full file on GitHub · 132 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. 2d ago Changed · +17 lines · +10 tokens per session 4da660175b3f
  2. 1mo ago Changed · +1 lines 6dad8ec0ed5b
  3. 1mo ago First seen · 114 lines · 120 tokens per session scan A 3d5ee05f9d34

Subscribe to this mod's changes

recreating-fork-prs is a skill published in the GitHub repository PostHog/posthog-foss (736 stars, last pushed today), licensed MIT. It adds 130 tokens to every session and 1,475 once invoked, about $0.0005 per session on Opus 5.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-10-24.

Related

recreating-fork-prs compared with skills from other repositories

recreating-fork-prs next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recreating-fork-prsPostHog/posthog-fossSkill736todayMITA130Claude Code, Codex
review-implement-phaseprisma/ormSkill48ktodayApache-2.0A38Claude Code
github-pr-workflowpaperclipai/paperclipSkill119ktodayMITA39Claude Code, Codex
review-deltatirth8205/code-review-graphSkill33k17d agoMITA24Claude Code
github-contributordaymade/claude-code-skillsSkill1.6ktodayMITA105Claude Code, Codex
git-pr-workflows-git-workflowrmyndharis/antigravity-skillsSkill2.2k2d agoMITA37Claude Code, Codex
dyl-reviewcursor/pluginsSkill21ktodaynoneA80Claude Code, Cursor