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

@claudetools/cli

v0.13.16

Published

AI agent project setup and documentation tools for Claude Code

Readme

ClaudeTools CLI

A command-line toolkit for AI-assisted project onboarding and documentation generation. ClaudeTools automatically detects your tech stack, generates comprehensive documentation, and creates context files that help AI agents like Claude Code understand your codebase.

Key features:

  • Dynamic AI questions — Only one hardcoded question; all follow-ups are generated by AI based on your project
  • Live version fetching — Fetches latest package versions from npm, never recommends outdated dependencies
  • Compatibility checking — Validates peer dependencies to ensure packages work together
  • New project scaffolding — Bootstrap projects with current, compatible tech stacks

Installation

npm install -g @claudetools/cli

Requirements:

  • Node.js 18.0.0 or higher
  • Optional: Claude CLI for AI-powered analysis
  • Optional: mcp-cli for Context7 documentation fetching

Quick Start

# Navigate to your project
cd my-project

# Run the onboarding wizard
claudetools onboard

That's it. ClaudeTools will analyze your project, ask a few questions, and generate everything needed for AI-assisted development.

Commands

claudetools onboard

The primary command. Runs a 4-phase onboarding workflow that analyzes your project and generates comprehensive AI context.

claudetools onboard [options]

Options:

| Flag | Description | |------|-------------| | -r, --refresh | Re-fetch and regenerate all documentation | | --skip-docs | Skip documentation generation (faster) | | --verbose | Show detailed output | | --no-update | Skip auto-update check |

Examples:

# Standard onboarding
claudetools onboard

# Refresh existing documentation
claudetools onboard --refresh

# Quick run without docs
claudetools onboard --skip-docs

claudetools init

Minimal setup that creates the .claude/ directory structure without the full onboarding process.

claudetools init

claudetools cleanup

Removes legacy configuration files from previous versions.

claudetools cleanup

Global Options

claudetools --version    # Show version and check for updates
claudetools --help       # Show help message

How It Works

Phase 1: Stack Detection

ClaudeTools scans your project for manifest files and automatically detects:

  • Package Managers: npm, pnpm, yarn, bun, pip, poetry, go modules, cargo
  • Frameworks: React, Vue, Next.js, Nuxt, Astro, Express, FastAPI, NestJS, and 25+ more
  • Libraries: Database (Prisma, Drizzle), State Management (Zustand, Redux), UI Components (Radix, shadcn/ui), and 40+ categories
  • Dev Tools: TypeScript, ESLint, Prettier, Vitest, Jest, Playwright

Supported manifest files:

  • package.json (JavaScript/TypeScript)
  • requirements.txt, pyproject.toml (Python)
  • go.mod (Go)
  • Cargo.toml (Rust)

Phase 2: Quick Questions

Only one question is hardcoded:

  1. "What do you want to build?" — Brief project description (required for new projects)

All follow-up questions are dynamically generated by AI based on your description. The AI analyzes what you want to build and asks targeted questions about:

  • Technical decisions (database, auth, deployment)
  • Constraints (team size, timeline, integrations)
  • Project-specific requirements

This means every project gets questions tailored to its needs — no generic checklists.

Phase 3: AI Analysis & Proposal

If the Claude CLI is installed, ClaudeTools uses it to:

  1. Analyze your codebase and generate a stack summary
  2. Fetch latest package versions from npm registry in real-time
  3. Check compatibility via peer dependencies to ensure packages work together
  4. Propose a configuration with current, compatible versions
  5. Accept feedback and refine the proposal iteratively

For new/empty projects, it will:

  • Fetch current versions of popular frameworks from npm (React, Next.js, Vue, etc.)
  • Recommend a complete tech stack using the latest stable versions
  • Verify compatibility between packages via peer dependency checking
  • Offer to scaffold the project (create package.json, install dependencies)

Approval workflow:

┌─ Proposed Configuration ────────────────
│
│  A task management CLI with local storage
│
│  Frameworks: commander, ink
│  Libraries: chalk, conf, ora
│  Dev Tools: typescript, vitest, tsup
│  Architecture: CLI with command pattern
│
│  Recommendations:
│  • Use commander for argument parsing
│  • Store data in ~/.config with conf
│  • Add --json flag for scriptability
│
└──────────────────────────────────────────

? How does this look?
  ❯ Looks good, proceed
    I have feedback
    Skip AI analysis

Phase 4: Documentation Generation

ClaudeTools generates comprehensive documentation:

  1. Fetches official docs via Context7 MCP for all detected libraries
  2. Creates organized documentation in .claudetools/docs/
  3. Generates AGENTS.md — the primary AI context file

Output Structure

After running claudetools onboard, your project will have:

project-root/
├── AGENTS.md                    # Primary AI context file
├── .claude/
│   └── CLAUDE.md                # Pointer to AGENTS.md
└── .claudetools/
    └── docs/
        ├── index.md             # Documentation hub
        ├── architecture/
        │   ├── index.md
        │   ├── system-design.md
        │   ├── data-flow.md
        │   └── components.md
        ├── api/
        │   ├── index.md
        │   └── endpoints.md
        ├── guides/
        │   ├── getting-started.md
        │   ├── development.md
        │   └── contributing.md
        ├── reference/
        │   ├── configuration.md
        │   └── environment.md
        ├── patterns/
        │   ├── coding-standards.md
        │   └── naming-conventions.md
        ├── testing/
        │   └── strategy.md
        ├── deployment/
        │   └── environments.md
        └── libraries/
            ├── index.md
            ├── react.md         # Framework-specific docs
            └── [library].md     # Library-specific docs

AGENTS.md

The primary AI context file contains:

  • Project Overview: Name, description, and key technologies
  • Stack Summary: Detected frameworks, libraries, and dev tools
  • Directory Structure: Project tree (up to 4 levels)
  • Entry Points: Main files and their purposes
  • Conventions: Detected coding patterns and standards
  • Documentation Links: References to generated docs

This file is designed to be read by AI agents at the start of a session to understand your project quickly.

New Project Support

ClaudeTools fully supports empty/new projects:

mkdir my-new-project
cd my-new-project
claudetools onboard

For new projects, ClaudeTools will:

  1. Ask what you want to build (the only hardcoded question)
  2. Generate AI-powered follow-up questions specific to your description
  3. Fetch latest package versions from npm registry
  4. Recommend a complete tech stack with current, compatible versions
  5. Offer to scaffold the project:
    • Create package.json with recommended dependencies
    • Detect and use your preferred package manager (pnpm, bun, yarn, npm)
    • Install dependencies automatically
  6. Generate AGENTS.md with the proposed configuration

Example flow:

▸ Phase 1/4: Stack Detection
  ℹ New project - let's set it up

▸ Phase 2/4: Quick Questions

    ┌─ Quick Context ───────────────────────
    │
    │  New project setup
    │  Tell us what you want to build.
    │
    └──────────────────────────────────────────

? What do you want to build? A REST API for managing bookmarks

  ◐ Analyzing your requirements...

  (AI generates follow-up questions based on your description)

? Which database approach fits your needs?
  ❯ PostgreSQL with Prisma ORM
    SQLite for simplicity
    MongoDB for flexible schemas
    Serverless (Planetscale/Neon)

? Do you need user authentication?
  ❯ Yes, JWT-based
    Yes, session-based
    OAuth only (Google, GitHub)
    No authentication needed

? What's your deployment target?
  ❯ Docker/self-hosted
    Vercel/serverless
    AWS Lambda
    Traditional VPS

▸ Phase 3/4: AI Analysis
  ◐ Fetching latest package versions...

  Current versions from npm:
  - [email protected]
  - [email protected]
  - [email protected]
  - [email protected]

  ✓ Proposal ready
? How does this look? Looks good, proceed
? Create package.json and install dependencies? Yes
  ✓ Scaffolded with pnpm

▸ Phase 4/4: Building Documentation
  ✓ Generated 12 docs
  ✓ Created AGENTS.md

Configuration

Environment Variables

| Variable | Description | |----------|-------------| | CLAUDETOOLS_NO_UPDATE | Set to 1 to disable auto-update checks | | CLAUDETOOLS_DEBUG | Set to 1 to show detailed Claude CLI output |

Auto-Updates

ClaudeTools checks for updates automatically and prompts to upgrade when a new version is available. Disable with:

# Per-command
claudetools onboard --no-update

# Permanently
export CLAUDETOOLS_NO_UPDATE=1

Integration with Claude Code

ClaudeTools generates files specifically designed for Claude Code:

  1. AGENTS.md — Placed in project root, automatically read by Claude Code
  2. .claude/CLAUDE.md — Points to AGENTS.md, follows Claude Code conventions
  3. Documentation structure — Organized for easy AI navigation

When you start a Claude Code session, it will automatically have context about:

  • Your tech stack and dependencies
  • Project structure and entry points
  • Coding conventions and patterns
  • Links to relevant documentation

Context7 Integration

ClaudeTools integrates with Context7 to fetch up-to-date documentation for your dependencies. When available, it will:

  1. Resolve library names to Context7 IDs
  2. Fetch official documentation, best practices, and examples
  3. Generate markdown files in .claudetools/docs/libraries/

This requires mcp-cli to be configured with Context7 access.

Supported Technologies

Frameworks (25+)

| Category | Frameworks | |----------|------------| | Frontend | React, Vue, Svelte, Angular, Solid | | Backend | Express, Fastify, Hono, NestJS, Koa | | Full-stack | Next.js, Nuxt, Astro, Remix, SvelteKit | | Mobile | React Native, Expo | | Desktop | Electron, Tauri |

Libraries (40+ categories)

| Category | Examples | |----------|----------| | Database | Prisma, Drizzle, Mongoose, TypeORM | | State Management | Zustand, Redux, Jotai, MobX | | Validation | Zod, Yup, Joi, Valibot | | Authentication | Lucia, NextAuth, Clerk | | UI Components | Radix, shadcn/ui, Headless UI | | Styling | Tailwind CSS, Emotion, styled-components | | HTTP Clients | Axios, ky, got | | Testing | Vitest, Jest, Playwright, Cypress |

Dev Tools

| Category | Tools | |----------|-------| | Type Checking | TypeScript | | Linting | ESLint, Biome | | Formatting | Prettier, Biome | | Bundling | Vite, Webpack, esbuild, tsup | | Testing | Vitest, Jest, Playwright |

Troubleshooting

"Claude CLI not available"

The AI analysis features require Claude CLI. Install it from claude.ai/cli.

Without Claude CLI, ClaudeTools will:

  • Still detect your stack automatically
  • Skip AI-powered proposal generation
  • Generate documentation based on detected dependencies

"No project files detected"

This message appears for empty directories. ClaudeTools now supports new project setup — just answer the questions and it will recommend and scaffold a stack for you.

Documentation not generating

Ensure you have:

  1. mcp-cli installed and configured
  2. Context7 MCP server accessible
  3. Network connectivity

Use --verbose to see detailed output:

claudetools onboard --verbose

Refreshing stale documentation

If your dependencies have changed:

claudetools onboard --refresh

This will re-fetch all documentation and regenerate AGENTS.md.

Uninstalling

npm uninstall -g @claudetools/cli

To remove generated files from a project:

rm -rf AGENTS.md .claude .claudetools

Contributing

ClaudeTools is part of a monorepo. To contribute:

git clone https://github.com/claudetools/claudetools
cd claudetools
pnpm install
pnpm dev

Run tests:

pnpm test

License

MIT


Built for AI-assisted development. ClaudeTools reduces the friction of onboarding AI agents to your codebase by automatically generating comprehensive context files.