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

ai-expert

v1.0.0

Published

AI Expert CLI - Advanced management system for specialized Claude assistants

Readme

AI Expert CLI

A command-line tool to manage and query specialized Claude assistants. Create domain-specific AI experts with custom knowledge bases.

Prerequisites

  • Node.js 14.0 or higher
  • Claude CLI installed and configured

Installation

npm install -g ai-expert-cli
# or
pnpm add -g ai-expert-cli

Quick Start

# Create a new expert
ai create "React Expert" "React.js development with hooks and performance optimization"

# Quick query (returns answer and exits)
ai react-expert "how to optimize re-renders?"

# Interactive mode (continuous conversation)
ai react-expert

# Interactive with initial question
ai react-expert -i "how to optimize re-renders?"

# List all experts
ai list

Usage

Creating Experts

ai create <name> <specialty>

Creates a new AI expert with specified knowledge domain. Experts are stored in ~/.ai-experts/.

Querying Experts

# Quick answer mode
ai <expert-name> "your question"

# Interactive conversation mode
ai <expert-name>
ai <expert-name> -i
ai <expert-name> --interactive "initial question"

Get instant answers or start an interactive conversation with your specialized assistants.

Managing Experts

# List all available experts
ai list

# Edit an expert's configuration
ai edit <expert-name>

Expert Configuration

Each expert is a JSON file in ~/.ai-experts/ with the following structure:

{
  "name": "Expert Name",
  "slug": "expert-name",
  "specialty": "Domain expertise description",
  "systemPrompt": "Custom instructions for the AI",
  "context": {
    "concepts": ["key concept 1", "key concept 2"],
    "patterns": ["best practice 1", "best practice 2"],
    "examples": [
      {
        "name": "Example name",
        "code": "example code"
      }
    ],
    "customVariables": {}
  }
}

Examples

Create a Tailwind CSS Expert

ai create "Tailwind Master" "Tailwind CSS with custom design systems"

Create a Database Expert

ai create "DB Architect" "PostgreSQL optimization and schema design"

Query for Specific Solutions

ai tailwind-master "create a gradient button with hover effect"
ai db-architect "optimize query with multiple joins"

# Interactive mode
ai tailwind-master
ai db-architect -i "explain indexing strategies"

Features

  • 🚀 Fast: Direct integration with Claude CLI for instant responses
  • 🎯 Specialized: Create experts for any domain or technology
  • 📚 Knowledge Base: Store patterns, examples, and best practices
  • 🔧 Customizable: Edit expert configurations anytime
  • 💡 Smart: Leverages Claude's capabilities with focused expertise
  • 💬 Interactive: Start conversations with experts using -i flag
  • Dual Commands: Use both ai and ai-expert commands

How It Works

  1. Expert Creation: Define a specialist with domain knowledge
  2. Context Building: Add concepts, patterns, and examples
  3. Query Processing: Combines system prompt with your question
  4. Claude Integration: Uses local Claude CLI for processing
  5. Instant Response: Get expert-level answers immediately

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Author

Anderson Denis da Rosa

License

MIT


Note: This tool requires Claude CLI to be installed and accessible in your PATH.