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

@mcp-b/char-skill

v2.0.0

Published

Claude Code skill for setting up Char - AI agent platform with WebMCP browser automation tools and embedded chat widgets

Readme

Char Setup Assistant - Claude Code Skill

A production-ready Claude Code skill that guides you through setting up Char - an AI agent platform with WebMCP browser automation tools and embedded chat widgets.

Version License

What This Skill Does

Helps you integrate Char AI agents into websites with:

  • WebMCP Tools - Browser automation (click, fill forms, navigate, screenshot)
  • Embedded Agent Widget - Drop-in chat UI powered by @mcp-b/embedded-agent
  • Visual Integration - Automatic theme matching with your website's design
  • Stateless Mode - Quick setup using your own Anthropic API key (no backend needed)

Features

Automated Setup

  • Creates demo pages or adds to existing websites
  • Auto-detects and matches your website's design (colors, fonts, spacing)
  • Takes before/after screenshots for verification
  • Generates matching theme configuration

🎨 Visual Integration

  • Extracts color palette from your page
  • Matches fonts and typography
  • Applies consistent border radius
  • Ensures accessibility (WCAG contrast ratios)

🛠️ Developer Experience

  • Quick reference cheat sheet
  • Success criteria checklist
  • Automated prerequisite verification
  • 10 copy-paste ready recipes
  • Comprehensive troubleshooting guide

🔧 Progressive Disclosure

  • Core setup: ~260 lines, loads instantly
  • Detailed docs: Loaded only when needed
  • 37.5% token usage reduction vs. v1.0

Quick Start

1. Installation

See docs/INSTALLATION.md for detailed installation instructions.

Quick install:

# Copy to your Claude Code skills folder
cp -r packages/claude-code-skill-char-setup/skills/char-setup ~/.claude/skills/

# Or install to your project
mkdir -p .claude/skills
cp -r packages/claude-code-skill-char-setup/skills/char-setup .claude/skills/

2. Verify Prerequisites

cd packages/claude-code-skill-char-setup/skills/char-setup
node scripts/verify-setup.js

# Optional: Check API key format
node scripts/verify-setup.js --check-api-key sk-ant-...

Expected output:

✓ Node.js 24.11.1 (>= 14.0.0)
✓ Google Chrome 120 found (>= 90)
✓ Demo template found
✓ Network connectivity to api.anthropic.com
✓ All required checks passed!

3. Use the Skill

Just ask Claude:

"Set up Char on my website and match my page's design"

or

"Create a Char demo page"

The skill will:

  1. ✅ Create or modify your HTML page
  2. ✅ Extract your page's design (colors, fonts)
  3. ✅ Generate matching theme configuration
  4. ✅ Add the embedded agent widget
  5. ✅ Take verification screenshots
  6. ✅ Open the page in your browser

What You Need

Required

  • Anthropic API Key - Get one at https://console.anthropic.com/settings/keys
  • Chrome, Edge, or Chromium 90+ - Required for WebMCP tools
  • Node.js 14+ - For verification script

Optional (Recommended)

  • Chrome DevTools MCP Server - For automated browser testing and visual integration
    claude mcp add --transport stdio chrome-devtools -- \
      npx -y @mcp-b/chrome-devtools-mcp
  • WebMCP Docs MCP - For documentation lookup (usually pre-installed)

Documentation

Getting Started

Configuration

Reference

Advanced

Development

File Structure

packages/claude-code-skill-char-setup/
├── README.md                           # This file
├── docs/
│   ├── INSTALLATION.md                 # Installation guide
│   └── AGENT_INTEGRATION.md            # Agent integration guide
└── skills/
    └── char-setup/
        ├── SKILL.md                    # Main skill instructions (~260 lines)
        ├── CHANGELOG.md                # Version history
        ├── CONTRIBUTING.md             # Contribution guide
        ├── references/
        │   ├── CUSTOMIZATION.md        # Theme configuration
        │   ├── VISUAL_INTEGRATION.md   # Design integration
        │   ├── WEBMCP_REFERENCE.md     # Tool documentation
        │   ├── TROUBLESHOOTING.md      # Common issues
        │   ├── PRODUCTION.md           # Production deployment
        │   └── RECIPES.md              # Common patterns
        ├── assets/
        │   ├── templates/
        │   │   └── demo.html           # Demo page template
        │   └── scripts/
        │       └── extract-page-styles.js  # Style extraction
        └── scripts/
            └── verify-setup.js         # Prerequisite verification

Example Usage

Basic Demo Page

User: Create a Char demo page

Skill: Creating demo page with:
       - Contact form (name, email, message)
       - Interactive counter
       - Char embedded AI agent widget

       Where should I save it?

User: ./demo.html

Skill: [Creates page, verifies prerequisites]
       What's your Anthropic API key?

User: sk-ant-api03-xxxxx

Skill: [Injects API key, opens in browser]
       ✅ Demo created!
       💡 Try saying: "Fill out the contact form with test data"

Visual Integration (with Chrome DevTools MCP)

User: Set up Char on my index.html and match my page's design

Skill: 📸 Taking baseline screenshot...
       🎨 Extracting page styles...
          - Primary: #667eea (purple gradient)
          - Background: #ffffff
          - Font: -apple-system, BlinkMacSystemFont, 'Segoe UI'
          - Radius: 8px

       ⚙️  Generating matching theme configuration...
       ✨ Adding Char widget with custom theme...
       📸 Taking verification screenshots...
          ✅ char-integration-collapsed.png
          ✅ char-integration-expanded.png
          ✅ char-integration-mobile.png

       👀 Visual integration complete!
       Char seamlessly matches your page design.

Add to Existing Page

User: Add Char to my landing page at ./public/index.html

Skill: Reading your page...
       I'll add the Char widget before </body>.
       What's your Anthropic API key?

User: sk-ant-xxxxx

Skill: [Adds widget, preserves existing code]
       ✅ Done! Opening in browser...

WebMCP Tools Available

Once set up, your embedded agent can:

| Tool | What It Does | |------|--------------| | click | Click buttons, links, elements | | fill | Fill form inputs | | navigate | Navigate to URLs | | take_snapshot | Capture page text content | | take_screenshot | Capture visual screenshot | | evaluate_script | Run JavaScript on page | | hover | Hover over elements | | press_key | Keyboard input |

See WEBMCP_REFERENCE.md for complete documentation.

Stateless vs Production

Stateless Mode (This Skill)

  • ✅ Quick setup with your API key
  • ✅ Perfect for development/testing
  • ✅ No backend infrastructure
  • ✅ Full WebMCP tool support
  • ✅ Visual design matching
  • ❌ No user thread persistence
  • ❌ Costs on your API account

Production Mode

  • ✅ Stateful backend with Durable Objects
  • ✅ Per-user thread persistence
  • ✅ Organization dashboard
  • ✅ Usage analytics
  • ✅ Managed infrastructure
  • ⏳ Requires Cloudflare Workers setup

See PRODUCTION.md for production deployment.

MCP Integration

This skill adapts based on available MCP servers:

With Chrome DevTools MCP ✅ (Recommended)

Automated workflow:

  • Takes screenshots before/after
  • Extracts page design automatically
  • Generates matching theme
  • Verifies visual integration
  • Tests WebMCP tools functionality

Install:

claude mcp add --transport stdio chrome-devtools -- \
  npx -y @mcp-b/chrome-devtools-mcp

Without Chrome DevTools MCP ℹ️

Manual workflow:

  • Creates demo page
  • Injects API key
  • Provides manual testing instructions
  • Recommends installing Chrome DevTools MCP

WebMCP Docs MCP (Optional)

For documentation lookup during setup:

# Usually pre-installed, verify with:
/mcp
# Look for: mcp__docs__SearchWebMcpDocumentation

Success Criteria

After setup, you should see:

Page loads successfully

  • HTML file opens in browser without errors

Widget appears

  • Chat pill visible in bottom-center or bottom-right

Console confirms initialization

✅ Char embedded agent initialized!
💡 Try saying: "Fill out the contact form with test data"

Agent responds

  • Click the pill, type a message, get a response

WebMCP tools work

  • Agent can interact with page elements (click, fill forms)

If any check fails, see TROUBLESHOOTING.md.

Development

Testing Locally

  1. Symlink to your skills directory:

    ln -s $(pwd)/packages/claude-code-skill-char-setup/skills/char-setup ~/.claude/skills/char-setup-dev
  2. Restart Claude Code

  3. Test:

    "Use the char-setup skill to create a demo page"

Running Verification

cd packages/claude-code-skill-char-setup/skills/char-setup
node scripts/verify-setup.js

Modifying the Demo Template

Edit assets/templates/demo.html to customize the demo page.

The template uses CSS variables for easy style extraction:

:root {
  --brand-primary: #667eea;
  --brand-secondary: #764ba2;
  --bg-main: white;
  --border-radius-base: 8px;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI';
}

Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Bug report templates
  • Feature request guidelines
  • Pull request process
  • Testing requirements
  • Code style guidelines

Changelog

See CHANGELOG.md for version history.

Latest: v2.0.0 (2026-01-07)

  • Progressive disclosure optimization (37.5% token reduction)
  • Visual integration workflow
  • Quick reference and success criteria
  • Automated verification script
  • 10 copy-paste ready recipes
  • Contributing guide

License

MIT

Links

  • WebMCP Documentation: https://webmcp.ai/docs
  • Embedded Agent Package: @mcp-b/embedded-agent
  • Claude Code: https://code.claude.com
  • Anthropic Console: https://console.anthropic.com

Related Skills

  • playwright-skill - Full Playwright browser automation
  • webapp-testing - Anthropic's webapp testing skill
  • dev-browser - Browser automation for agents

Support

For issues or questions:

  1. Check TROUBLESHOOTING.md
  2. Review WEBMCP_REFERENCE.md
  3. See RECIPES.md for common patterns
  4. File an issue: https://github.com/WebMCP-org/char-ai-saas/issues

Made with ❤️ by the WebMCP team