auto-subscribe-pr-hook

Install a persistent SessionStart hook that auto-subscribes Claude Code sessions to GitHub PR activity.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/edri2or/ripo-skills-main --skill auto-subscribe-pr-hook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: auto-subscribe-pr-hook
Source: https://github.com/edri2or/ripo-skills-main/tree/main/exported-skills/auto-subscribe-pr-hook
Command: npx skills add https://github.com/edri2or/ripo-skills-main --skill auto-subscribe-pr-hook

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the problem of losing PR activity subscriptions between Claude Code sessions by installing a persistent SessionStart hook that auto-subscribes to open PR events.

Core Features & Use Cases

  • Install a persistent SessionStart hook that automatically subscribes to open PR activity for the current branch.
  • Validate and merge the hook into .claude/settings.json safely and coherently with existing hooks.
  • Provide local dry-run validations to ensure the hook remains silent on the default branch and emits instructions on feature branches.

Quick Start

Add the script at .claude/hooks/auto-subscribe-pr.sh, update .claude/settings.json to enable SessionStart with this hook, and run the local validations to verify silent behavior on main and projected output on feature branches.

Frequently Asked Questions about auto-subscribe-pr-hook

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I auto-subscribe Claude Code sessions to GitHub PR activity without manual triggers?

You can auto-subscribe Claude Code sessions to GitHub PR activity by installing a persistent SessionStart hook that activates subscriptions for the current branch automatically on every session launch.

What is a SessionStart hook for persisting PR subscriptions across restarts?

A SessionStart hook is a script configured in .claude/settings.json that executes when a session begins, restoring open PR event subscriptions for the current branch so updates persist across restarts.

How do I configure .claude/settings.json to enable a PR auto-subscribe hook safely?

You configure .claude/settings.json by adding the SessionStart hook entry and merging it coherently with any existing hooks, ensuring the auto-subscribe-pr.sh script path is correctly referenced.

Does the PR auto-subscribe hook emit output on the main branch?

No, the hook remains completely silent on the default main branch and only emits informative subscription instructions when a feature branch is active, verified through local dry-run validations.

Can I validate GitHub PR hook behavior locally before committing the settings changes?

Yes, you can perform local dry-run validations to test the hook script, ensuring it produces silent behavior on the main branch and the correct informative output on feature branches.

Why do I lose my GitHub PR subscriptions when restarting Claude Code?

You lose PR subscriptions because standard subscriptions are session-bound; installing a persistent SessionStart hook in .claude/settings.json solves this by re-establishing PR activity tracking on every restart.