npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

reviewprompt

v0.12.0

Published

Unified AI rules management CLI tool that generates configuration files for various AI development tools

Downloads

15

Readme

ReviewPrompt

A CLI tool that converts GitHub PR review comments into structured AI prompts, making it easier to address feedback using AI assistants.

Features

  • 🔍 Comment Filtering: Filter PR comments by custom mentions (default: [ai])
  • 📋 Interactive Selection: Choose specific comments to include in your prompt
  • 📄 Smart Formatting: Automatically formats comments with file paths and line numbers
  • 🔗 Multiple Actions: View, resolve, or delete comments after processing
  • 📋 Clipboard Support: Copy generated prompts directly to clipboard
  • 🎯 Flexible Mentions: Use any custom mention format like [bot], [review], etc.

Installation

NPM

npm install -g reviewprompt

PNPM

pnpm add -g reviewprompt

Yarn

yarn global add reviewprompt

Setup

GitHub Authentication

ReviewPrompt requires GitHub authentication to access PR comments. Set up authentication using one of these methods:

Personal Access Token (Recommended)

  1. Create a GitHub Personal Access Token with repo scope
  2. Set the environment variable:
export GITHUB_TOKEN=your_token_here

GitHub CLI

If you have GitHub CLI installed and authenticated:

gh auth login

ReviewPrompt will automatically use your GitHub CLI credentials.

Usage

Basic Usage

reviewprompt https://github.com/owner/repo/pull/123

This will:

  1. Fetch all review comments from the PR
  2. Filter comments containing [ai] mention
  3. Display the generated prompt

Interactive Mode

reviewprompt https://github.com/owner/repo/pull/123 --interactive

Select specific comments to include in your prompt using an interactive interface.

Custom Mentions

Use custom mention patterns:

reviewprompt https://github.com/owner/repo/pull/123 --mention "[bot]"
reviewprompt https://github.com/owner/repo/pull/123 --mention "@custom"

Copy to Clipboard

reviewprompt https://github.com/owner/repo/pull/123 --clipboard

Resolve Comments After Processing

reviewprompt https://github.com/owner/repo/pull/123 --resolve

Delete Comments After Processing

reviewprompt https://github.com/owner/repo/pull/123 --delete

Commands

Main Command

reviewprompt <pr-url> [options]

Options:

  • -i, --interactive - Run in interactive mode to select specific comments
  • -r, --resolve - Resolve comments after building prompt
  • -d, --delete - Delete comments after building prompt
  • -m, --mention <mention> - Custom mention to filter (default: [ai])
  • -c, --clipboard - Copy output to clipboard

Resolve Command

Resolve comments containing the specified mention:

reviewprompt resolve <pr-url> [options]

Options:

  • -a, --all - Resolve all comments without interactive mode
  • -m, --mention <mention> - Custom mention to filter (default: [ai])

Delete Command

Delete comments containing the specified mention:

reviewprompt delete <pr-url> [options]

Options:

  • -a, --all - Delete all comments without interactive mode
  • -m, --mention <mention> - Custom mention to filter (default: [ai])

Examples

Basic Workflow

  1. Add mention to PR comments: When reviewing code, add [ai] to comments you want AI assistance with:

    [ai] This function needs error handling for edge cases
  2. Generate prompt: Run reviewprompt to collect and format these comments:

    reviewprompt https://github.com/myorg/myproject/pull/456 --clipboard
  3. Use with AI: Paste the generated prompt into your preferred AI assistant

  4. Clean up: Resolve processed comments:

    reviewprompt resolve https://github.com/myorg/myproject/pull/456 --all

Team Workflow

Use different mentions for different team members or purposes:

# For senior dev review
reviewprompt https://github.com/myorg/myproject/pull/456 --mention "[senior]"

# For security review  
reviewprompt https://github.com/myorg/myproject/pull/456 --mention "[security]"

# For performance optimization
reviewprompt https://github.com/myorg/myproject/pull/456 --mention "[perf]"

Output Format

ReviewPrompt generates structured prompts with file context:

./src/utils/auth.ts:L15
Add input validation for the email parameter

./src/components/UserProfile.tsx:L45-L50  
This component should handle loading states better

./src/api/users.ts:L23
Consider adding rate limiting to this endpoint

Contributing

See CONTRIBUTING.md for development setup and contribution guidelines.

License

MIT - see LICENSE for details.

Support