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 🙏

© 2026 – Pkg Stats / Ryan Hefner

claude-code-helpers

v1.0.0

Published

CLI tool to sync .md files from GitHub repositories to .claude/commands/ directory

Readme

claude-code-helpers

A CLI tool to sync .md files from GitHub repositories to your local .claude/commands/ directory for use with Claude Code.

Installation

Install globally via npm:

npm install -g claude-code-helpers

Usage

Quick Start

# Use git remote origin as default repository
claude-code-helpers

# Interactive setup
claude-code-helpers --init

# Sync from a specific repository
claude-code-helpers --repo username/repo-name

# Sync from a specific branch
claude-code-helpers --repo username/repo-name --branch develop

# Enable verbose output
claude-code-helpers --verbose

Command Line Options

| Option | Description | |--------|-------------| | --repo <user/repo> | Specify GitHub repository (username/repo-name) | | --branch <branch> | Specify branch (default: main) | | --init | Initialize configuration interactively | | --verbose | Enable verbose output | | --help | Show help message |

Examples

# Sync from current git repository's remote origin
claude-code-helpers

# Interactive setup - prompts for repository
claude-code-helpers --init

# Sync from specific repository
claude-code-helpers --repo anthropics/claude-code

# Sync from development branch
claude-code-helpers --repo myusername/my-commands --branch develop

# Verbose output for debugging
claude-code-helpers --repo myusername/my-commands --verbose

How It Works

  1. Repository Detection: Uses git remote origin as default, or specify with --repo
  2. GitHub API: Fetches repository contents using GitHub's REST API
  3. Recursive Scanning: Recursively traverses all directories in the repository
  4. File Filtering: Downloads only .md files from the entire repository tree
  5. Local Storage: Saves all files directly to .claude/commands/ directory (flattened)
  6. Configuration: Stores settings in .claude-sync-config.json

Configuration

The tool creates a .claude-sync-config.json file in your current directory:

{
  "repo": "username/repo-name",
  "branch": "main",
  "lastSync": "2025-01-17T10:30:00.000Z"
}

Directory Structure

your-project/
├── .claude/
│   └── commands/
│       ├── command1.md
│       ├── command2.md
│       ├── advanced.md
│       ├── setup.md
│       └── demo.md
└── .claude-sync-config.json

Requirements

  • Node.js 14.0.0 or higher
  • Git (for automatic repository detection)
  • Internet connection for GitHub API access

Features

  • 🚀 Zero Dependencies: Uses only Node.js built-in modules
  • 📁 Automatic Setup: Creates .claude/commands/ directory automatically
  • 🔧 Git Integration: Automatically detects git remote origin
  • 💾 Configuration Management: Saves settings for future use
  • 🌐 GitHub API: Reliable fetching from GitHub repositories
  • 📝 Markdown Focus: Filters and downloads only .md files from entire repository tree
  • 🔍 Error Handling: Graceful handling of network and API errors

Troubleshooting

Common Issues

Repository not found or access denied

  • Ensure the repository exists and is public
  • Check your internet connection
  • Verify repository name format: username/repo-name

No .md files found

  • Ensure the repository contains .md files anywhere in the directory tree
  • Check if you're using the correct branch with --branch

Git remote not found

  • Run from a git repository directory, or
  • Use --repo flag to specify repository manually

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

License

MIT License - see LICENSE file for details

Repository

https://github.com/pauleke65/claude-code-helpers

Author

Paul Imoke