Claude Code skill for setting up Char - AI agent platform with WebMCP browser automation tools and embedded chat widgets
npm install @mcp-b/char-skillA 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.


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/char
- Visual Integration - Automatic theme matching with your website's design
- Stateless Mode - Quick setup using your own Anthropic API key (no backend needed)
⨠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
See docs/INSTALLATION.md for detailed installation instructions.
Quick install:
``bashCopy to your Claude Code skills folder
cp -r packages/claude-code-skill-char-setup/skills/char-setup ~/.claude/skills/
$3
`bash
cd packages/claude-code-skill-char-setup/skills/char-setup
node scripts/verify-setup.jsOptional: 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
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
$3
- 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$3
- Chrome DevTools MCP Server - For automated browser testing and visual integration
`bash
claude mcp add --transport stdio chrome-devtools -- \
npx -y @mcp-b/chrome-devtools-mcp
`
- WebMCP Docs MCP - For documentation lookup (usually pre-installed)Documentation
$3
- Installation Guide - Detailed installation instructions
- Agent Integration Guide - Using the skill in agents
- Quick Reference - Command cheat sheet
- Recipes - 10 copy-paste ready patterns$3
- Customization Guide - Complete theming reference
- Visual Integration - Design matching best practices$3
- WebMCP Tools - Complete tool documentation
- Troubleshooting - Common issues and solutions$3
- Production Deployment - Stateful backend setup$3
- Changelog - Version history
- Contributing - How to improve this skillFile 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
$3
`
User: Create a Char demo pageSkill: 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"
`$3
`
User: Set up Char on my index.html and match my page's designSkill: šø 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.
`$3
`
User: Add Char to my landing page at ./public/index.htmlSkill: Reading your page...
I'll add the Char widget before
.
What's your Anthropic API key?
User: sk-ant-xxxxx
Skill: [Adds widget, preserves existing code]
ā
Done! Opening in browser...
`
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.
- ā
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
- ā
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.
This skill adapts based on available MCP servers:
Automated workflow:
- Takes screenshots before/after
- Extracts page design automatically
- Generates matching theme
- Verifies visual integration
- Tests WebMCP tools functionality
Install:
`bash`
claude mcp add --transport stdio chrome-devtools -- \
npx -y @mcp-b/chrome-devtools-mcp
Manual workflow:
- Creates demo page
- Injects API key
- Provides manual testing instructions
- Recommends installing Chrome DevTools MCP
For documentation lookup during setup:
`bash`Usually pre-installed, verify with:
/mcpLook for: mcp__docs__SearchWebMcpDocumentation
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.
1. Symlink to your skills directory:
`bash`
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"
`bash`
cd packages/claude-code-skill-char-setup/skills/char-setup
node scripts/verify-setup.js
Edit assets/templates/demo.html to customize the demo page.
The template uses CSS variables for easy style extraction:
`css`
:root {
--brand-primary: #667eea;
--brand-secondary: #764ba2;
--bg-main: white;
--border-radius-base: 8px;
--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI';
}
We welcome contributions! See CONTRIBUTING.md for:
- Bug report templates
- Feature request guidelines
- Pull request process
- Testing requirements
- Code style guidelines
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
MIT
- WebMCP Documentation: https://webmcp.ai/docs
- Char Package: @mcp-b/char
- Claude Code: https://code.claude.com
- Anthropic Console: https://console.anthropic.com
- playwright-skill - Full Playwright browser automationwebapp-testing
- - Anthropic's webapp testing skilldev-browser` - Browser automation for agents
-
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