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-profile-cli

v1.0.0

Published

CLI tool for generating and managing Claude AI agent profiles

Downloads

20

Readme

Claude Profile CLI

Generate and manage Claude AI agent profiles using Google's Gemini 2.0 Flash model.

Features

  • 🤖 AI-Powered Generation: Uses Gemini 2.0 Flash for iterative rule creation
  • 📁 Profile Management: Load and save profiles from GitHub repositories
  • 🔄 Iterative Refinement: 4-stage AI process for comprehensive rules
  • 🎯 Custom Agent Types: Generate rules for any type of AI agent
  • 📝 Git Integration: Automatic commit support
  • ⚙️ Configuration: Persistent settings and repository management

Quick Start

Installation

npm install -g claude-profile-cli

Setup

  1. Get a Gemini API key from Google AI Studio
  2. Set your API key:
export GEMINI_API_KEY="your-key-here"

Generate Your First Profile

cd your-project
claude-profile generate

Follow the prompts to create a custom Claude profile for your project!

Commands

Generate a New Profile

claude-profile generate

Creates a new profile file (e.g., templates/frontend_developer.md) based on the agent type using AI.

Apply a Profile

# Apply a specific profile to claude.md
claude-profile apply frontend_developer

# Interactive selection from available profiles
claude-profile apply

Copies a profile to claude.md for use with Claude.

Repository Management

# Set repository for shared profiles
claude-profile repo https://github.com/username/profiles

# List available profiles
claude-profile list

# Load a specific profile
claude-profile load customer-service

Configuration

# Show current configuration
claude-profile config

How It Works

The CLI uses a 4-stage AI refinement process:

  1. Initial Generation: Creates base rules for your agent type
  2. Evaluation: AI reviews rules for gaps and issues
  3. Enhancement: Improves rules based on evaluation
  4. Finalization: Final polish and formatting

This iterative approach ensures comprehensive, high-quality agent profiles.

Configuration

Settings are stored in ~/.claude-profile/config.json:

{
  "repository": "https://github.com/username/profiles",
  "lastUpdated": "2024-01-15T10:30:00Z"
}

Profile Repository Structure

For shared profiles, organize your GitHub repository with a templates folder:

profiles-repo/
├── README.md
└── templates/
    ├── customer-service.md
    ├── code-reviewer.md
    ├── data-analyst/
    │   └── claude.md
    └── writing-assistant/
        └── claude.md

The CLI will automatically find profiles in these formats:

  • templates/{name}.md
  • templates/{name}/claude.md
  • {name}.md (fallback for backward compatibility)
  • {name}/claude.md (fallback for backward compatibility)

Environment Variables

  • GEMINI_API_KEY - Required for AI generation

Examples

Generate a Frontend Developer Profile

claude-profile generate
# Enter: "frontend developer"
# Creates: templates/frontend_developer.md

# Apply it to your project
claude-profile apply frontend_developer
# Creates: claude.md

Set Up a Team Repository

claude-profile repo https://github.com/company/ai-profiles
claude-profile list
claude-profile load support-agent

Check Your Setup

claude-profile config

Troubleshooting

Common Issues

"GEMINI_API_KEY not found"

"Repository not found"

  • Ensure the GitHub URL is correct and public
  • Format: https://github.com/username/repository

"Profile not found"

  • Check available profiles: claude-profile list
  • Profile names are case-sensitive

Development

# Clone and install
git clone https://github.com/your-username/claude-profile-cli
cd claude-profile-cli
npm install

# Link for local development
npm link

# Run locally
./bin/claude-profile.js generate

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Related Projects


Built with ❤️ for the Claude AI community