Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
docs: Add Plugin Installation Guide and Troubleshooting docs
Jez02130a31ec80
diff --git a/CLAUDE.md b/CLAUDE.mdindex 03a4b7a5..c946aa34 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -72,6 +72,8 @@ claude-skills/├── docs/ # Extended documentation│ ├── SKILLS_CATALOG.md # Full skill details (auto-generated)│ ├── MARKETPLACE.md # Marketplace installation+│ ├── PLUGIN_INSTALLATION_GUIDE.md # Local testing workflow+│ ├── TROUBLESHOOTING.md # Common issues and fixes│ ├── GEMINI_GUIDE.md # AI agent onboarding│ ├── SKILLS_COMMANDS_ARCHITECTURE.md # v2.1.3+ unified architecture│ ├── QA_AGENTS_GUIDE.md # Testing and QA with agentsdiff --git a/README.md b/README.mdindex 3dc23ffd..69ab82ba 100644--- a/README.md+++ b/README.md@@ -146,6 +146,8 @@ cp -r templates/skill-skeleton/ skills/my-skill/- [CLAUDE.md](CLAUDE.md) — Project context- [docs/SKILLS_CATALOG.md](docs/SKILLS_CATALOG.md) — Full skill details- [docs/MARKETPLACE.md](docs/MARKETPLACE.md) — Marketplace installation+- [docs/PLUGIN_INSTALLATION_GUIDE.md](docs/PLUGIN_INSTALLATION_GUIDE.md) — Local testing workflow+- [docs/TROUBLESHOOTING.md](docs/TROUBLESHOOTING.md) — Common issues and fixes---diff --git a/docs/PLUGIN_INSTALLATION_GUIDE.md b/docs/PLUGIN_INSTALLATION_GUIDE.mdnew file mode 100644index 00000000..37e21f9e--- /dev/null+++ b/docs/PLUGIN_INSTALLATION_GUIDE.md@@ -0,0 +1,329 @@+# Plugin Installation Guide++Complete guide to installing, testing, and managing Claude Code skills using the plugin system.++**Last Updated**: 2026-02-02++---++## Quick Reference++| Action | Command |+|--------|---------|+| Add marketplace | `/plugin marketplace add jezweb/claude-skills` |+| Install plugin bundle | `/plugin install cloudflare@jezweb-skills` |+| Install local skill | `/plugin install ./skills/skill-name` |+| Update marketplace | `/plugin marketplace update jezweb-skills` |+| List installed | `/plugin list` |++---++## Installation Methods++### Method 1: Marketplace (Recommended)++For using published skills:++```bash+# Add the marketplace (one-time setup)+/plugin marketplace add jezweb/claude-skills++# Install a plugin bundle (e.g., all Cloudflare skills)+/plugin install cloudflare@jezweb-skills++# Or install by full marketplace URL+/plugin marketplace add https://github.com/jezweb/claude-skills+/plugin install cloudflare-worker-base@jezweb-skills+```++**Available Plugin Bundles:**++| Bundle | Skills | Description |+|--------|--------|-------------|+| `cloudflare` | 17 | Workers, D1, R2, KV, Agents, Durable Objects |+| `ai` | 13 | AI SDK, OpenAI, Claude, Gemini |+| `frontend` | 15 | Tailwind, React, TanStack, Zustand |+| `auth` | 5 | Clerk, Better Auth, OAuth |+| `database` | 6 | Drizzle, Neon, Vercel KV/Blob |+| `mcp` | 5 | MCP servers, FastMCP, TypeScript MCP |+| `project` | 8 | Planning, workflow, session management |++### Method 2: Local Development++For testing skills you're developing:++```bash+# Clone the repository+git clone https://github.com/jezweb/claude-skills.git+cd claude-skills++# Install a specific skill for testing+/plugin install ./skills/cloudflare-worker-base++# Or add the local repo as a marketplace+/plugin marketplace add ./+/plugin install cloudflare+```++---++## After Installation: Restart Required++**Important**: After installing or updating plugins, you must restart Claude Code for changes to take effect.++```bash+# Exit Claude Code+exit++# Restart Claude Code+claude+```++**Why?** Skills are loaded at startup. New skills won't be discoverable until the next session.++---++## Local Testing Workflow++When developing or modifying skills:++### 1. Make Changes++Edit the skill files:+```+skills/my-skill/+├── SKILL.md # Main skill documentation+├── README.md # Keywords for auto-discovery+├── templates/ # Code templates+└── references/ # Reference docs+```++### 2. Install Locally++```bash+/plugin install ./skills/my-skill+```++### 3. Restart Claude Code++```bash+exit+claude+```++### 4. Test Discovery++Ask Claude something that should trigger your skill:+```+"Set up a [technology your skill covers]"+```++Claude should suggest using your skill.++### 5. Iterate++If changes don't appear:+1. Verify SKILL.md has valid YAML frontmatter+2. Check README.md has trigger keywords+3. Reinstall: `/plugin install ./skills/my-skill`+4. Restart Claude Code again++---++## Plugin vs Skill vs Marketplace++Understanding the hierarchy:++```+Marketplace (jezweb-skills)+└── Plugin Bundles (cloudflare, ai, frontend...)+ └── Individual Skills (cloudflare-worker-base, cloudflare-d1...)+```++| Term | Description | Example |+|------|-------------|---------|+| **Marketplace** | Collection of plugins from a source | `jezweb-skills` |+| **Plugin** | Bundle of related skills | `cloudflare` (17 skills) |+| **Skill** | Single capability/technology | `cloudflare-d1` |++---++## Cache Behavior++Plugins are cached locally after installation:++```+~/.claude/plugins/cache/jezweb-skills/+├── skills/+│ ├── cloudflare-worker-base/+│ ├── cloudflare-d1/+│ └── ...+└── marketplace.json+```++### Updating Cache++To get the latest versions:++```bash+# Update marketplace metadata+/plugin marketplace update jezweb-skills++# Reinstall specific plugin to refresh+/plugin install cloudflare@jezweb-skills --force+```++### Clearing Cache++If you encounter issues:++```bash+# Remove and re-add marketplace+/plugin marketplace remove jezweb-skills+/plugin marketplace add jezweb/claude-skills+/plugin install cloudflare@jezweb-skills+```++---++## Verifying Installation++### Check Installed Plugins++```bash+/plugin list+```++### Check Skill Discovery++Ask Claude:+```+"What skills do you have for Cloudflare?"+```++Claude should list installed Cloudflare skills.++### Check Specific Skill++```+"Do you have the cloudflare-d1 skill?"+```++---++## Common Installation Scenarios++### Scenario 1: Fresh Setup++```bash+# 1. Add marketplace+/plugin marketplace add jezweb/claude-skills++# 2. Install what you need+/plugin install cloudflare@jezweb-skills+/plugin install ai@jezweb-skills++# 3. Restart+exit+claude++# 4. Verify+"What Cloudflare skills do you have?"+```++### Scenario 2: Contributing a New Skill++```bash+# 1. Clone repo+git clone https://github.com/jezweb/claude-skills.git+cd claude-skills++# 2. Create skill from template+cp -r templates/skill-skeleton/ skills/my-new-skill/++# 3. Edit SKILL.md and README.md++# 4. Test locally+/plugin install ./skills/my-new-skill+exit+claude++# 5. Verify it works+"Help me with [my-new-skill topic]"++# 6. Commit and push+git add skills/my-new-skill+git commit -m "Add my-new-skill"+git push+```++### Scenario 3: Updating After Upstream Changes++```bash+# 1. Pull latest+cd ~/Documents/claude-skills+git pull++# 2. Update marketplace+/plugin marketplace update jezweb-skills++# 3. Reinstall changed plugins+/plugin install cloudflare@jezweb-skills --force++# 4. Restart+exit+claude+```++---++## Plugin Manifest Structure++Each skill can have a plugin manifest at `.claude-plugin/plugin.json`:++```json+{+ "name": "cloudflare-worker-base",+ "version": "1.0.0",+ "description": "Foundation for Cloudflare Workers",+ "skills": ["cloudflare-worker-base"],+ "agents": ["cloudflare-deploy", "worker-scaffold"]+}+```++**Generating Manifests:**++```bash+# Generate for all skills+./scripts/generate-plugin-manifests.sh++# Generate for specific skill+./scripts/generate-plugin-manifests.sh cloudflare-worker-base+```++---++## Troubleshooting Installation++| Problem | Solution |+|---------|----------|+| Skill not found after install | Restart Claude Code |+| "Marketplace not found" | Re-add: `/plugin marketplace add jezweb/claude-skills` |+| Changes not appearing | Clear cache, reinstall, restart |+| Local skill not loading | Check YAML frontmatter is valid |+| Plugin conflicts | Remove and reinstall the plugin |++See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for detailed solutions.++---++## Related Documentation++- [MARKETPLACE.md](MARKETPLACE.md) - Full marketplace details+- [TROUBLESHOOTING.md](TROUBLESHOOTING.md) - Common issues and fixes+- [../CONTRIBUTING.md](../CONTRIBUTING.md) - Creating new skills+- [../ONE_PAGE_CHECKLIST.md](../ONE_PAGE_CHECKLIST.md) - Quality checklist++---++**Maintainer**: Jeremy Dawes | Jezwebdiff --git a/docs/TROUBLESHOOTING.md b/docs/TROUBLESHOOTING.mdnew file mode 100644index 00000000..acd2780f--- /dev/null+++ b/docs/TROUBLESHOOTING.md@@ -0,0 +1,449 @@+# Troubleshooting Guide++Solutions to common issues when using Claude Code skills.++**Last Updated**: 2026-02-02++---++## Quick Fixes++Most issues are solved by one of these:++| Issue | Quick Fix |+|-------|-----------|+| Skill not found | Restart Claude Code |+| Changes not appearing | Reinstall + restart |+| Marketplace errors | Remove and re-add marketplace |+| YAML errors | Check frontmatter syntax |++---++## Skill Discovery Issues++### "Claude doesn't suggest my skill"++**Symptoms:**+- You ask about a topic your skill covers+- Claude doesn't mention or suggest the skill+- Skill works when explicitly invoked++**Causes & Solutions:**++1. **Skill not installed**+ ```bash+ /plugin list+ # If not listed, install it:+ /plugin install ./skills/my-skill+ ```++2. **Claude Code not restarted**+ ```bash+ exit+ claude+ ```++3. **Missing or invalid YAML frontmatter**++ Check `skills/my-skill/SKILL.md` starts with:+ ```yaml+ ---+ name: my-skill+ description: |+ Brief description of what this skill does.+ Use when: [specific scenarios].+ ---+ ```++ Common YAML errors:+ - Missing `---` markers+ - Indentation issues (use 2 spaces, not tabs)+ - Special characters not quoted++4. **Missing trigger keywords in README.md**++ Check `skills/my-skill/README.md` has a Keywords section:+ ```markdown+ ## Keywords++ `my-technology`, `my-use-case`, `related-term`+ ```++5. **Description too vague**++ Claude uses the description to match user requests. Include:+ - Technology names explicitly+ - "Use when:" scenarios+ - Common error messages the skill prevents++### "Skill used to work but stopped"++**Causes & Solutions:**++1. **Plugin cache corrupted**+ ```bash+ /plugin marketplace remove jezweb-skills+ /plugin marketplace add jezweb/claude-skills+ /plugin install cloudflare@jezweb-skills+ exit+ claude+ ```++2. **Skill was updated with breaking changes**+ ```bash+ # Pull latest+ cd ~/Documents/claude-skills+ git pull++ # Reinstall+ /plugin install ./skills/my-skill+ exit+ claude+ ```++---++## Installation Issues++### "Marketplace not found"++**Error:** `Marketplace 'jezweb-skills' not found`++**Solution:**+```bash+# Re-add the marketplace+/plugin marketplace add jezweb/claude-skills++# Or use full URL+/plugin marketplace add https://github.com/jezweb/claude-skills+```++### "Plugin installation failed"++**Causes & Solutions:**++1. **Network issue**+ ```bash+ # Check you can reach GitHub+ curl -I https://github.com/jezweb/claude-skills++ # Retry installation+ /plugin install cloudflare@jezweb-skills+ ```++2. **Invalid plugin name**+ ```bash+ # List available plugins+ /plugin marketplace list jezweb-skills++ # Use correct name+ /plugin install cloudflare@jezweb-skills # Not "cloudflare-skills"+ ```++3. **Local path issues**+ ```bash+ # Use relative path from current directory+ /plugin install ./skills/my-skill++ # Or absolute path+ /plugin install /home/user/claude-skills/skills/my-skill+ ```++### "Permission denied" during installation++**Solution:**+```bash+# Check directory permissions+ls -la ~/.claude/plugins/++# Fix if needed+chmod -R u+rw ~/.claude/plugins/+```++---++## Template Issues++### "Template doesn't work"++**Symptoms:**+- Code from skill templates has errors+- Imports don't resolve+- Types are wrong++**Causes & Solutions:**++1. **Outdated package versions**++ Check your `package.json` matches versions in the skill:+ ```bash+ # See what versions the skill recommends+ grep -A5 "Latest Versions" skills/cloudflare-worker-base/SKILL.md++ # Update your packages+ npm update+ ```++2. **Missing dependencies**++ Templates assume certain packages are installed:+ ```bash+ # Check skill's Quick Start section for required packages+ npm install [missing-package]+ ```++3. **Wrong framework version**++ Some skills target specific versions (e.g., Tailwind v4, React 19):+ ```bash+ # Check your versions+ npm list tailwindcss react++ # Compare with skill requirements+ ```++### "Config files don't match"++**Symptoms:**+- `wrangler.jsonc` has wrong structure+- `vite.config.ts` missing options+- TypeScript errors in config++**Solution:**++Don't copy config files blindly. Skills show patterns, but your project may differ:++1. Read the skill's "Configuration" section+2. Adapt patterns to your existing config+3. Keep your project's existing structure where possible++---++## Claude Behavior Issues++### "Claude keeps suggesting the wrong skill"++**Symptoms:**+- Ask about Topic A, get Skill B suggested+- Multiple skills compete for same keywords++**Solutions:**++1. **Be more specific in your request**+ ```+ ❌ "Help me with database"+ ✅ "Help me with Cloudflare D1 database migrations"+ ```++2. **Explicitly request the skill**+ ```+ "Use the cloudflare-d1 skill to help me set up migrations"+ ```++3. **Check for keyword conflicts**++ If your skill and another share keywords, make yours more specific.++### "Claude doesn't follow skill patterns"++**Symptoms:**+- Claude knows the skill but doesn't use its templates+- Suggests outdated patterns despite skill having current ones++**Causes:**++1. **Skill not fully loaded** - Restart Claude Code+2. **Context window full** - Start a new conversation+3. **Conflicting instructions** - Check your CLAUDE.md for conflicts++**Solution:**+```+"Please read the cloudflare-d1 skill completely and follow its+Quick Start section exactly."+```++---++## Development Issues++### "My changes aren't appearing"++After editing a skill:++1. **Reinstall the skill**+ ```bash+ /plugin install ./skills/my-skill+ ```++2. **Restart Claude Code**+ ```bash+ exit+ claude+ ```++3. **Verify the file was saved**+ ```bash+ cat skills/my-skill/SKILL.md | head -20+ ```++4. **Check for syntax errors**+ ```bash+ # Validate YAML frontmatter+ ./scripts/check-metadata.sh my-skill+ ```++### "Skill works locally but not after push"++**Causes:**++1. **Marketplace not updated**+ ```bash+ # After pushing, update marketplace+ /plugin marketplace update jezweb-skills+ ```++2. **Missing plugin manifest**+ ```bash+ # Generate manifest+ ./scripts/generate-plugin-manifests.sh my-skill+ git add skills/my-skill/.claude-plugin/+ git commit -m "Add plugin manifest"+ git push+ ```++3. **File not committed**+ ```bash+ git status+ # Make sure all skill files are committed+ ```++---++## YAML Frontmatter Errors++### "Invalid YAML" or skill not loading++**Check these common issues:**++1. **Missing document markers**+ ```yaml+ ---+ name: my-skill+ description: My description+ ---+ ```+ Both `---` markers are required.++2. **Bad indentation**+ ```yaml+ # Wrong (tabs or inconsistent spaces)+ description: |+ This uses a tab++ # Correct (2 spaces)+ description: |+ This uses spaces+ ```++3. **Unquoted special characters**+ ```yaml+ # Wrong+ description: Use when: setting up D1++ # Correct+ description: "Use when: setting up D1"+ # Or use multiline+ description: |+ Use when: setting up D1+ ```++4. **Invalid field names**+ ```yaml+ # Wrong - non-standard fields+ keywords: [a, b, c]+ version: 1.0.0++ # Correct - only standard fields+ name: my-skill+ description: |+ Description here+ ```++### Validating YAML++```bash+# Use the metadata checker+./scripts/check-metadata.sh my-skill++# Or manually check with Python+python3 -c "import yaml; yaml.safe_load(open('skills/my-skill/SKILL.md').read().split('---')[1])"+```++---++## Performance Issues++### "Skills make Claude slow"++**Causes:**++1. **Too many skills installed** - Only install what you need+2. **Large skill files** - Skills should be <5k words+3. **Complex templates** - Templates are loaded on demand++**Solutions:**++```bash+# Check installed plugins+/plugin list++# Remove unused plugins+/plugin uninstall unused-plugin@jezweb-skills+```++### "Context window fills up quickly"++Skills add to context when used. To minimize:++1. Be specific about which skill to use+2. Start new conversations for different topics+3. Don't ask Claude to "use all skills"++---++## Getting Help++### Self-Diagnosis Checklist++Before asking for help, check:++- [ ] Is the skill installed? (`/plugin list`)+- [ ] Did you restart Claude Code?+- [ ] Is YAML frontmatter valid?+- [ ] Are trigger keywords in README.md?+- [ ] Does the skill path exist?+- [ ] Are you using the correct plugin name?++### Reporting Issues++If you've tried the above and still have issues:++1. **GitHub Issues**: https://github.com/jezweb/claude-skills/issues+2. **Include**:+ - Skill name+ - Error message (if any)+ - Steps to reproduce+ - Your environment (OS, Claude Code version)++---++## Related Documentation++- [PLUGIN_INSTALLATION_GUIDE.md](PLUGIN_INSTALLATION_GUIDE.md) - Installation details+- [MARKETPLACE.md](MARKETPLACE.md) - Marketplace information+- [../CONTRIBUTING.md](../CONTRIBUTING.md) - Creating skills+- [../ONE_PAGE_CHECKLIST.md](../ONE_PAGE_CHECKLIST.md) - Quality checklist++---++**Maintainer**: Jeremy Dawes | Jezweb