Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
feat: dual-environment skill distribution
Jez714adb2709e1
diff --git a/skills/cloudflare-worker-builder/SKILL.md b/skills/cloudflare-worker-builder/SKILL.mdindex ecf9ecb4..2b0f7870 100644--- a/skills/cloudflare-worker-builder/SKILL.md+++ b/skills/cloudflare-worker-builder/SKILL.md@@ -5,6 +5,7 @@ description: >Workflow: describe project, scaffold structure, configure bindings, deploy.Use when creating Workers projects, setting up Hono/Vite, configuring D1/R2/KV bindings,or troubleshooting export syntax errors, API route conflicts, HMR issues, or deployment failures.+compatibility: claude-code-only---# Cloudflare Worker Builderdiff --git a/skills/mcp-builder/SKILL.md b/skills/mcp-builder/SKILL.mdindex ab561aad..eb9b6cf2 100644--- a/skills/mcp-builder/SKILL.md+++ b/skills/mcp-builder/SKILL.md@@ -6,6 +6,7 @@ description: >Use when creating MCP servers, exposing tools/resources/prompts to LLMs,building Claude integrations, or troubleshooting FastMCP module-level server,storage, lifespan, middleware, OAuth, or deployment errors.+compatibility: claude-code-only---# MCP Builderdiff --git a/skills/memory-manager/SKILL.md b/skills/memory-manager/SKILL.mdindex c5dd95f4..4414c7b1 100644--- a/skills/memory-manager/SKILL.md+++ b/skills/memory-manager/SKILL.md@@ -6,6 +6,7 @@ description: >files, and verify the hierarchy loads correctly. Use when CLAUDE.md exceeds100 lines, when a directory needs its own context, or when project memoryneeds restructuring.+compatibility: claude-code-only---# Memory Managerdiff --git a/skills/skill-creator/SKILL.md b/skills/skill-creator/SKILL.mdindex 0f51f0e4..59384951 100644--- a/skills/skill-creator/SKILL.md+++ b/skills/skill-creator/SKILL.md@@ -1,6 +1,7 @@---name: skill-creatordescription: Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.+compatibility: claude-code-only---# Skill Creator@@ -341,6 +342,54 @@ The packaging script will:If validation fails, the script will report the errors and exit without creating a package. Fix any validation errors and run the packaging command again.+**Bulk packaging:**++```bash+# Package all Claude AI-compatible skills+python3 skills/skill-creator/scripts/package_all.py --claude-ai-only++# Package all skills+python3 skills/skill-creator/scripts/package_all.py++# List skills and compatibility+python3 skills/skill-creator/scripts/package_all.py --list+```++### Dual-Environment Skills++Skills can work in both Claude AI (web) and Claude Code (CLI). When building for both environments, be aware of these differences:++| Capability | Claude AI | Claude Code |+|-----------|-----------|-------------|+| File output | `/mnt/user-data/outputs/` | Local filesystem |+| User interaction | `ask_user_input` tool | Terminal prompts |+| Web search | Built-in `web_search` tool | WebSearch tool |+| Shell commands | Not available | Bash tool |+| Subagents | Not available | Task tool (Explore, Plan, etc.) |+| MCP tools | Same names if connected | Same names if connected |+| Artifacts | HTML, React render inline | Not available |++**Marking compatibility:** Add `compatibility: claude-code-only` to the frontmatter of skills that require local filesystem, bash, or CLI tools. Skills without this field are assumed to work in both environments.++```yaml+---+name: my-cli-skill+description: "..."+compatibility: claude-code-only+---+```++**Writing dual-environment skills:** If a skill should adapt its behaviour based on environment, add an "Environment Notes" section:++```markdown+## Environment Notes++- **Claude AI:** Save output files to `/mnt/user-data/outputs/`. Use `present_files` to share.+- **Claude Code:** Save output files to the project directory or path specified by the user.+```++**Trigger phrases in descriptions:** The `description` field is the primary trigger mechanism. Claude uses it to decide whether to activate the skill. Include specific phrases users might say, not just what the skill does. Example: "Use when the user says 'make a favicon', 'generate icons', 'create favicon package', or mentions missing favicons."+### Step 6: IterateAfter testing the skill, users may request improvements. Often this happens right after using the skill, with fresh context of how the skill performed.diff --git a/skills/skill-creator/scripts/package_all.py b/skills/skill-creator/scripts/package_all.pynew file mode 100644index 00000000..b79eb854--- /dev/null+++ b/skills/skill-creator/scripts/package_all.py@@ -0,0 +1,150 @@+#!/usr/bin/env python3+"""+Bulk Skill Packager - Creates .skill files for all skills in the repository.++Usage:+ python package_all.py [options]++Options:+ --skills NAMES Comma-separated list of skill names to package+ --claude-ai-only Only package skills compatible with Claude AI+ --output-dir DIR Output directory (default: dist/)+ --list List skills and their compatibility, don't package++Example:+ python package_all.py+ python package_all.py --claude-ai-only+ python package_all.py --skills color-palette,google-apps-script+ python package_all.py --list+"""++import sys+import re+import argparse+from pathlib import Path++# Add scripts dir to path for imports+sys.path.insert(0, str(Path(__file__).parent))+from package_skill import package_skill+++def parse_frontmatter(skill_path):+ """Parse frontmatter from a skill's SKILL.md."""+ skill_md = skill_path / "SKILL.md"+ if not skill_md.exists():+ return None++ content = skill_md.read_text()+ match = re.match(r'^---\n(.*?)\n---', content, re.DOTALL)+ if not match:+ return None++ frontmatter = {}+ for line in match.group(1).strip().split('\n'):+ if ':' in line:+ key, _, value = line.partition(':')+ frontmatter[key.strip()] = value.strip().strip('"').strip("'")+ return frontmatter+++def is_claude_ai_compatible(frontmatter):+ """Check if a skill is compatible with Claude AI."""+ if not frontmatter:+ return True # default: compatible+ compatibility = frontmatter.get('compatibility', '')+ return 'claude-code-only' not in compatibility.lower()+++def find_skills(skills_dir):+ """Find all skill directories."""+ skills = []+ for path in sorted(skills_dir.iterdir()):+ if path.is_dir() and (path / "SKILL.md").exists():+ skills.append(path)+ return skills+++def main():+ parser = argparse.ArgumentParser(description="Package skills as .skill files")+ parser.add_argument('--skills', help='Comma-separated skill names')+ parser.add_argument('--claude-ai-only', action='store_true',+ help='Only package Claude AI-compatible skills')+ parser.add_argument('--output-dir', default='dist',+ help='Output directory (default: dist/)')+ parser.add_argument('--list', action='store_true',+ help='List skills and compatibility, don\'t package')+ args = parser.parse_args()++ # Find skills directory (relative to repo root)+ script_dir = Path(__file__).parent+ repo_root = script_dir.parent.parent.parent # scripts/ -> skill-creator/ -> skills/ -> repo+ skills_dir = repo_root / "skills"++ if not skills_dir.exists():+ print(f"Error: Skills directory not found at {skills_dir}")+ sys.exit(1)++ all_skills = find_skills(skills_dir)++ if not all_skills:+ print("No skills found.")+ sys.exit(1)++ # Filter by name if specified+ if args.skills:+ requested = set(args.skills.split(','))+ all_skills = [s for s in all_skills if s.name in requested]+ missing = requested - {s.name for s in all_skills}+ if missing:+ print(f"Warning: Skills not found: {', '.join(sorted(missing))}")++ # List mode+ if args.list:+ print(f"{'Skill':<30} {'Claude AI':<12} {'Claude Code':<12}")+ print("-" * 54)+ for skill_path in all_skills:+ fm = parse_frontmatter(skill_path)+ ai_ok = is_claude_ai_compatible(fm)+ print(f"{skill_path.name:<30} {'Yes' if ai_ok else 'No':<12} {'Yes':<12}")+ total_ai = sum(1 for s in all_skills if is_claude_ai_compatible(parse_frontmatter(s)))+ print(f"\n{len(all_skills)} skills total, {total_ai} Claude AI compatible")+ sys.exit(0)++ # Filter by compatibility+ if args.claude_ai_only:+ all_skills = [s for s in all_skills+ if is_claude_ai_compatible(parse_frontmatter(s))]++ if not all_skills:+ print("No skills match the filter criteria.")+ sys.exit(1)++ # Package+ output_dir = Path(args.output_dir).resolve()+ output_dir.mkdir(parents=True, exist_ok=True)++ print(f"Packaging {len(all_skills)} skills to {output_dir}/\n")++ success = 0+ failed = 0++ for skill_path in all_skills:+ print(f"--- {skill_path.name} ---")+ result = package_skill(str(skill_path), str(output_dir))+ if result:+ success += 1+ else:+ failed += 1+ print()++ print("=" * 40)+ print(f"Packaged: {success}")+ if failed:+ print(f"Failed: {failed}")+ print(f"Output: {output_dir}/")++ sys.exit(1 if failed else 0)+++if __name__ == "__main__":+ main()diff --git a/skills/vite-flare-starter/SKILL.md b/skills/vite-flare-starter/SKILL.mdindex a8b09867..e85f0953 100644--- a/skills/vite-flare-starter/SKILL.md+++ b/skills/vite-flare-starter/SKILL.md@@ -1,6 +1,7 @@---name: vite-flare-starterdescription: "Scaffold a full-stack Cloudflare app from vite-flare-starter — React 19, Hono, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui, TanStack Query, R2, Workers AI. Run setup.sh to clone, configure, and deploy."+compatibility: claude-code-only---# Vite Flare Starter