Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
Untrack .jez/ and .claude scripts/artifacts: internal agent files stay local in a public repo
Jeremy Dawes1260fa7439b3
diff --git a/.claude/artifacts/brains-trust-gemini-2.5-pro.md b/.claude/artifacts/brains-trust-gemini-2.5-pro.mddeleted file mode 100644index 9a633ac4..00000000--- a/.claude/artifacts/brains-trust-gemini-2.5-pro.md+++ /dev/null@@ -1,78 +0,0 @@-# gemini-2.5-pro Response--Excellent. This is a very strong and well-thought-out skill design. The author has clearly learned from the common pitfalls of building LLM-powered tools: avoiding hardcoded model IDs, handling shell escaping, and keeping dependencies minimal. The AI-to-AI framing is particularly sharp.--Here is a second opinion, structured around your five questions.--### Summary of Key Recommendations--1. **Change Default Pattern:** Make "Consensus" (with 2 models) the default to better match the "brains-trust" name and deliver more value out-of-the-box.-2. **Automate Model Selection:** Instead of asking the user to pick, create a "Workhorse" tier of 2-3 recommended, diverse models (e.g., the latest Gemini Pro, GPT-4o, and a Llama/Mistral model) and use them by default. This dramatically reduces user friction.-3. **Add a Cost Estimate/Confirmation Step:** Before running parallel calls to Pro-tier models on large files, provide a rough cost estimate and ask for confirmation. This prevents bill shock and builds user trust.-4. **Improve In-flight UX:** Add `print()` statements to the Python script to show progress (e.g., "Calling Gemini Pro...", "Received response from GPT-4o..."). This makes the wait time feel more productive.-5. **Introduce a "Refine" Pattern:** Add a sequential pattern where one model generates a draft and a second model critiques or improves it. This is powerful for tasks like writing or complex code generation.-------### 1. Obvious Features or Patterns We've Missed?--The existing patterns (Single, Consensus, Devil's Advocate) are excellent. Here are a few high-value additions that don't add much complexity:--* **"Refine / Critique" Pattern:** A sequential chain.- * **When:** Generating a first draft of something complex (a script, a document, a tricky function).- * **What happens:** Ask Model A to generate the initial output. Then, feed Model A's output *and the original prompt* to Model B, asking it to "critique and improve this initial draft." This often yields a much stronger result than a single generation. It's a simple, powerful form of multi-agent collaboration.--* **"Compare & Contrast" Pattern:** A subtle but useful variant of Consensus.- * **When:** The user has two or more specific options and wants to understand the trade-offs.- * **What happens:** Instead of asking for a general opinion, the prompt explicitly asks the models to compare Option A vs. Option B on specific criteria (e.g., performance, maintainability, cost). Claude can then synthesize the comparison tables.--* **A "Coding" Tier:** Alongside "Pro" and "Flash", consider a "Coding" tier.- * **Why:** Some models are specifically fine-tuned for code (e.g., DeepSeek Coder, Code Llama). When the mode is `Code Review` or `Debug`, automatically preferring these specialists could yield better results. `models.flared.au` could be updated to tag these models.--### 2. Is There a Shift in Thinking We Should Consider?--The current thinking is "Claude as a smart orchestrator and synthesizer," which is perfect. The one potential shift is from **one-shot consultation** to **persistent consultation thread**.--* **Current:** `claude brains trust [question]` -> Get answer -> Done.-* **Proposed Shift:** The first call creates a "consultation session." The prompt and responses are saved to a uniquely named directory (e.g., `.claude/brains-trust/2024-05-21-arch-review-auth/`). A follow-up command like `claude brains trust --continue "that's a good point, but what about..."` could then re-load the context and continue the conversation with the same models.-* **Practicality:** This adds state management, which might violate the "simple > complex" rule for v1. However, it's the most logical next step for the skill's evolution. For now, simply saving the artifacts with clear names is a good foundation.--### 3. Are the Default Choices Good?--This is an area with clear room for improvement.--* **Default Pattern: Single -> Consensus:** A skill named "brains-trust" implies a group. The default should be **Consensus** with 2 diverse models. This immediately demonstrates the core value proposition. A single opinion is just "ask another model," which is less compelling. A flag like `--single` or `--fast` could be used to override this.--* **Model Selection:** The current workflow requires the user (or Claude) to manually pick models from the list. This is a point of friction.- * **Recommendation:** Define a default "Workhorse" set of 2-3 models. These should be high-quality, general-purpose models from different providers (e.g., `google/gemini-1.5-pro-latest`, `openai/gpt-4o`, `mistral/mistral-large-latest`). Claude should use these by default for Consensus mode unless the user specifies otherwise. This makes the "zero-config" experience much better. The user can just type `claude brains trust "review this file"` and get a powerful, diverse result without thinking.--### 4. Any UX Friction Points?--* **The "Blank Screen" Wait:** A consensus call to two Pro models could take 30-90 seconds. The user will be staring at a waiting terminal.- * **Fix:** The generated Python script should `print()` status updates to `stderr` as it works.- ```python- print("Fetching current model list...", file=sys.stderr)- # ...- print(f"Calling {model_id}...", file=sys.stderr)- # ... after response- print(f"Received response from {model_id}.", file=sys.stderr)- ```- This makes a huge psychological difference.--* **Potential for Bill Shock:** The "no output token caps" rule is great for quality but risky for cost, especially with large contexts. A user might accidentally run a "Consensus" on a 100k token codebase with 3 Pro models and get a surprise bill.- * **Fix:** Add a simple, non-blocking cost estimation step. Before making the API calls, the script can calculate `total_input_tokens = num_models * len(prompt_text) / 3` (a rough estimate) and check if it exceeds a threshold (e.g., 200k tokens). If so, Claude can say: "This consultation will process ~200k tokens and may cost a few dollars. Proceed? (y/N)". This is a critical feature for a tool aimed at solo devs.--* **API Key Errors:** The error handling is good, but if a user has multiple keys set and one is invalid, it might not be obvious which one failed.- * **Fix:** When an API call fails, the error message should specify which model and which key source (e.g., `OPENROUTER_API_KEY`) was being used.--### 5. Anything Over-engineered or Under-engineered?--The design strikes an excellent balance. It's mostly "just right."--* **Over-engineered:** Nothing. The choice of `urllib` and file-based I/O is perfectly pragmatic.--* **Under-engineered (Slightly):**- * **Model List Caching:** Fetching `models.flared.au` on *every single invocation* is robust but slightly inefficient. A simple file-based cache would be an easy win.- * **Implementation:** Save `llms.json` to `.claude/cache/models.json`. On the next run, check the file's modification time. If it's less than, say, 6 hours old, use the cached version. Otherwise, re-fetch.- * **Configuration:** A user might want to set their own default models or prefer "Flash" tier for everything to save money. A simple dotfile like `~/.claude/brains-trust.conf` for user overrides would be a natural v1.1 feature.- * **Timeout Hardcoding:** The 120s timeout is a reasonable magic number, but some future models or complex queries might take longer. This could eventually be a configurable parameter. For now, it's fine.\ No newline at end of filediff --git a/.claude/artifacts/brains-trust-prompt.txt b/.claude/artifacts/brains-trust-prompt.txtdeleted file mode 100644index a7b0fa60..00000000--- a/.claude/artifacts/brains-trust-prompt.txt+++ /dev/null@@ -1,34 +0,0 @@-[Claude Code consulting you for a second opinion]--Task: Review this Claude Code skill design for blind spots, missing features, or shifts in thinking we haven't considered. The skill is called "brains-trust" and it lets Claude Code consult other LLMs for second opinions.--Context: This is a skill for Claude Code (Anthropic's CLI tool). Skills are markdown instruction files that guide Claude through workflows. They live in a public plugin repo. The user (Jez) is a solo developer building tools for his web agency.--The skill replaces a Gemini-only "peer review" skill with a multi-model consultation tool. Key design decisions already made:-- Uses OpenRouter as universal API (one key, all providers)-- Runtime model discovery via models.flared.au (curated list of ~40 leading models, auto-updated from OpenRouter)-- No hardcoded model IDs (they go stale constantly)-- No output token caps (let models reason fully)-- File-based prompts (avoids shell escaping issues)-- Generated Python script using urllib (no pip dependencies)-- Three consultation patterns: single opinion, consensus (2-3 models in parallel), devil's advocate-- Seven modes: code review, architecture, debug, security, strategy, prompting, general-- AI-to-AI framing (consulted model knows it's advising Claude, not talking to the human)--What we want to know:-1. Are there obvious features or patterns we've missed that would be high-value additions without over-complicating things?-2. Is there a shift in thinking or approach we should consider?-3. Are the default choices good? (e.g. should "brains trust" default to consensus rather than single? Should there be a recommended "go-to" model per provider?)-4. Any UX friction points — things that would annoy a user in practice?-5. Anything that seems over-engineered or under-engineered?--Keep suggestions practical and grounded. This is a solo dev tool, not enterprise software. Simple > complex.----- SKILL.md ----[See full SKILL.md content above — 130 lines covering setup, patterns, modes, workflow, rules]----- references/prompt-templates.md ----[AI-to-AI templates for 7 modes plus devil's advocate framing — ~125 lines]----- references/provider-api-patterns.md ----[Python patterns for OpenRouter, Gemini direct, OpenAI direct, parallel execution, error handling — ~204 lines]diff --git a/.claude/artifacts/brains-trust-qwen3.5-plus.md b/.claude/artifacts/brains-trust-qwen3.5-plus.mddeleted file mode 100644index 476993dd..00000000--- a/.claude/artifacts/brains-trust-qwen3.5-plus.md+++ /dev/null@@ -1,82 +0,0 @@-# qwen3.5-plus Response--This is a sophisticated design for a solo-dev tool. It leverages Claude Code's capabilities (script execution, file I/O, web fetch) effectively without over-dependencing on external infrastructure. The "AI-to-AI" framing is particularly strong—it reduces the "please the user" bias in consulted models.--Here is a review based on your five questions, focusing on practical risks and high-value tweaks.--### 1. Missing Features & Patterns (High Value, Low Complexity)--* **Cost Estimation / Warning:**- * **Blind Spot:** "No output token caps" + "Consensus Mode" = Potential bill shock. If a model goes on a reasoning spiral, OpenRouter charges per token.- * **Suggestion:** Add a pre-flight check. The Python script should estimate input tokens (prompt size) and warn if the potential cost exceeds a threshold (e.g., "Warning: This consensus run may cost ~$0.50. Proceed?"). Or, set a *reasonable* hard cap (e.g., 8,192 tokens) instead of *no* cap, unless explicitly overridden.-* **Local Model List Caching:**- * **Blind Spot:** Fetching `models.flared.au` on *every* invocation adds latency and creates a single point of failure. If that service is down, your skill dies.- * **Suggestion:** Cache the JSON locally (e.g., `.claude/cache/models.json`) with a TTL (e.g., 24 hours). Only fetch if missing or expired. This makes the tool feel instant and resilient.-* **Progress Indicators for Consensus:**- * **Blind Spot:** In consensus mode, the terminal will hang silently while Python waits for 3 APIs. Users might think it crashed.- * **Suggestion:** Have the Python script print `Waiting for [model_name]...` as it fires requests, and `[✓] [model_name]` as they return. Simple stdout feedback reduces anxiety.-* **"Sensitive Mode" Toggle:**- * **Blind Spot:** Sending proprietary client code to 3rd party APIs (even via OpenRouter) might violate NDAs or security policies.- * **Suggestion:** Add a trigger like `brains trust private` that restricts consultation to local models (if you add Ollama support later) or skips file attachment, sending only abstracted descriptions. For now, just add a confirmation step: "You are about to send 5 files to external APIs. Confirm?"--### 2. Shifts in Thinking--* **From "No Token Caps" to "Reasonable Limits":**- * **Current:** `# No max_tokens — let the model reason fully`- * **Shift:** Unlimited output is a financial risk. LLMs sometimes loop or over-explain.- * **Recommendation:** Set a high default (e.g., 4096 or 8192). It's enough for deep reasoning but prevents runaway costs. You can add a `--verbose` flag to remove the cap if truly needed.-* **From "Fetch Every Time" to "Trust but Verify":**- * **Current:** Fetch model list before every consultation.- * **Shift:** Model IDs don't change *that* frequently.- * **Recommendation:** Cache the list (see above). If the cache is missing, *then* fetch. This reduces friction significantly.-* **From "Script Generation" to "Script Reuse":**- * **Current:** Generate `brains-trust.py` every time.- * **Shift:** The logic in `provider-api-patterns.md` is static. Regenerating it every time is I/O overhead.- * **Recommendation:** Check if `.claude/scripts/brains-trust.py` exists. If yes, reuse it. Only regenerate if the skill definition changes or the file is missing. This speeds up repeated use.--### 3. Default Choices--* **Consensus vs. Single:**- * **Verdict:** **Single should be the default.** Consensus is 3x the cost and 3x the latency. It should be an explicit opt-in (`brains trust consensus`).-* **Model Selection Logic:**- * **Verdict:** **Risk Identified.** Your skill says: *"pick appropriate models based on mode (pro vs flash)"*.- * **Problem:** How does the Python script know which ID is "Flash" vs "Pro"? The `models.flared.au` JSON *must* include metadata tags (e.g., `"tier": "flash"`). If it only lists IDs, your script cannot programmatically distinguish them without hardcoded mappings (which you wanted to avoid).- * **Fix:** Ensure the JSON source provides tier metadata. If it doesn't, you need a small local mapping file or a heuristic (e.g., if ID contains "flash" or "nano").-* **Timeout:**- * **Verdict:** **120s is good.** Keep it. Some reasoning models (o1, R1) take time.--### 4. UX Friction Points--* **Artifact Clutter:**- * **Issue:** `.claude/artifacts/brains-trust-prompt.txt` and `brains-trust-{model}.md` will accumulate quickly.- * **Fix:** Add a cleanup rule. "Keep only the last 5 runs" or add a `brains trust clean` command to wipe the artifacts folder.-* **Synthesis Overload:**- * **Issue:** If consensus returns 3 x 3,000 token responses, Claude Code has to read 9,000 tokens + original code + prompt to synthesize. This might hit *Claude's* context limit or cause laziness.- * **Fix:** Instruct the Python script to save files, but instruct Claude to read them *selectively*. Or, ask the consulted models to provide a "Executive Summary" at the top of their response specifically for the synthesizer.-* **Error Message Usability:**- * **Issue:** `HTTP 401` is clear, but `HTTP 400` (bad payload) can be cryptic.- * **Fix:** In the Python error handler, print the first 200 chars of the response body. Often the API returns `{"error": "context_window_exceeded"}` which is more helpful than just "400".--### 5. Over/Under-Engineered--* **Over-Engineered: Generated Python Script for Simple Calls.**- * **Critique:** For *Single* mode, generating a script, writing it, executing it, and cleaning up is heavy. Claude Code often has native HTTP tools (`WebFetch` or similar).- * **Counter-argument:** You need custom headers (Auth) and parallelism for consensus. `WebFetch` might not support POST with custom auth headers easily depending on the Claude Code version.- * **Verdict:** **Keep the script.** It gives you full control over headers, timeouts, and parallelism which is hard to do via CLI tool injection. But **cache the script** (see point 2).-* **Under-Engineered: Fallback Logic.**- * **Critique:** If `models.flared.au` is down, and you have no cached list, the skill fails.- * **Fix:** Hardcode a *tiny* fallback list of 3 known stable IDs (e.g., one Gemini, one GPT, one Llama) in the Python script itself. If the fetch fails, use the fallback with a warning: "Using fallback model list due to network error."-* **Under-Engineered: Privacy Warning.**- * **Critique:** No explicit warning about sending code to external APIs.- * **Fix:** Add a one-time confirmation or a prominent note in the `When to Use` section about data privacy.--### Summary of Recommended Changes--1. **Add Cost Guardrails:** Set a high default output token limit (e.g., 8k) rather than unlimited. Warn user in Consensus mode.-2. **Cache Model List:** Don't fetch `models.flared.au` every time. Cache locally with 24h TTL.-3. **Verify Model Metadata:** Ensure `models.flared.au` provides "tier" info so the script can distinguish Flash vs. Pro programmatically.-4. **Reuse Script:** Check if `brains-trust.py` exists before regenerating it.-5. **Progress Output:** Print "Waiting for..." messages during consensus to prevent user anxiety.-6. **Fallback List:** Hardcode 3 safe model IDs in the script in case the model list fetch fails.--This design is 90% there. The remaining 10% is mostly about resilience (caching/fallbacks) and cost control. With those tweaks, it's a robust production tool for a solo dev.\ No newline at end of filediff --git a/.claude/artifacts/content-ideas.md b/.claude/artifacts/content-ideas.mddeleted file mode 100644index def4db0f..00000000--- a/.claude/artifacts/content-ideas.md+++ /dev/null@@ -1,4 +0,0 @@-# Content Ideas--## Teach Patterns, Not Ship Scripts-Designing AI skills that actually work for other users. Why pre-built scripts break (wrong Python version, missing deps, macOS-only paths, interactive prompts in non-interactive shells). The pattern-vs-script tradeoff. How to structure `references/` files. Real example: removing 17 scripts and creating 6 pattern docs. Audience: Claude Code skill authors and AI tool builders.diff --git a/.claude/artifacts/gemini-prompt.txt b/.claude/artifacts/gemini-prompt.txtdeleted file mode 100644index e4d21122..00000000--- a/.claude/artifacts/gemini-prompt.txt+++ /dev/null@@ -1 +0,0 @@-[Claude Code consulting Gemini] Quick question: In one sentence, what is the V8 isolate model?diff --git a/.claude/scripts/brains-trust.py b/.claude/scripts/brains-trust.pydeleted file mode 100644index 8c2d53ae..00000000--- a/.claude/scripts/brains-trust.py+++ /dev/null@@ -1,80 +0,0 @@-#!/usr/bin/env python3-"""Brains Trust — multi-model consultation on the brains-trust skill itself"""-import os, sys, json, urllib.request-from concurrent.futures import ThreadPoolExecutor, as_completed--GEMINI_KEY = os.environ.get('GEMINI_API_KEY', '')-OPENROUTER_KEY = os.environ.get('OPENROUTER_API_KEY', '')--# Read the full files to include in prompt-skill_dir = '/Users/jez/Documents/claude-skills/plugins/dev-tools/skills/brains-trust'-files = {}-for f in ['SKILL.md', 'references/prompt-templates.md', 'references/provider-api-patterns.md']:- with open(os.path.join(skill_dir, f)) as fh:- files[f] = fh.read()--# Build prompt with full file contents-prompt = open('/Users/jez/Documents/claude-skills/.claude/artifacts/brains-trust-prompt.txt').read()-# Replace the placeholders with actual content-prompt = prompt.replace('[See full SKILL.md content above — 130 lines covering setup, patterns, modes, workflow, rules]', files['SKILL.md'])-prompt = prompt.replace('[AI-to-AI templates for 7 modes plus devil\'s advocate framing — ~125 lines]', files['references/prompt-templates.md'])-prompt = prompt.replace('[Python patterns for OpenRouter, Gemini direct, OpenAI direct, parallel execution, error handling — ~204 lines]', files['references/provider-api-patterns.md'])--def call_gemini(prompt):- url = f'https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-pro:generateContent?key={GEMINI_KEY}'- payload = json.dumps({- "contents": [{"parts": [{"text": prompt}]}],- "generationConfig": {"temperature": 0.3}- }).encode()- req = urllib.request.Request(url, data=payload, headers={- 'Content-Type': 'application/json',- 'User-Agent': 'brains-trust/1.0'- })- resp = urllib.request.urlopen(req, timeout=120)- result = json.loads(resp.read())- return result['candidates'][0]['content']['parts'][0]['text']--def call_openrouter(model_id, prompt):- payload = json.dumps({- "model": model_id,- "messages": [{"role": "user", "content": prompt}],- }).encode()- req = urllib.request.Request(- 'https://openrouter.ai/api/v1/chat/completions',- data=payload,- headers={- 'Authorization': f'Bearer {OPENROUTER_KEY}',- 'Content-Type': 'application/json',- 'HTTP-Referer': 'https://github.com/jezweb/claude-skills',- 'X-Title': 'Brains Trust',- }- )- resp = urllib.request.urlopen(req, timeout=120)- result = json.loads(resp.read())- return result['choices'][0]['message']['content']--results = {}-with ThreadPoolExecutor(max_workers=2) as executor:- futures = {}- if GEMINI_KEY:- futures[executor.submit(call_gemini, prompt)] = 'gemini-2.5-pro'- if OPENROUTER_KEY:- futures[executor.submit(call_openrouter, 'qwen/qwen3.5-plus-02-15', prompt)] = 'qwen3.5-plus'-- for future in as_completed(futures):- model = futures[future]- try:- results[model] = future.result()- print(f"\n{'='*60}")- print(f"=== {model} ===")- print(f"{'='*60}\n")- print(results[model])- except Exception as e:- print(f"\n--- {model} ERROR: {e} ---")--# Save responses-for model, text in results.items():- path = f'/Users/jez/Documents/claude-skills/.claude/artifacts/brains-trust-{model}.md'- with open(path, 'w') as f:- f.write(f"# {model} Response\n\n{text}")- print(f"\nSaved to {path}")diff --git a/.claude/scripts/scan-permissions.py b/.claude/scripts/scan-permissions.pydeleted file mode 100644index 6b9554c6..00000000--- a/.claude/scripts/scan-permissions.py+++ /dev/null@@ -1,138 +0,0 @@-#!/usr/bin/env python3-"""Scan all project settings.local.json files to find Bash permission patterns-not covered by the Universal Base presets."""--import json-import glob-import re-from collections import Counter-from pathlib import Path--# Patterns already in presets (extracted from permission-presets.md)-COVERED_COMMANDS = {- # Universal Base- 'cd', 'ls', 'pwd', 'cat', 'head', 'tail', 'less', 'more', 'wc', 'sort',- 'mkdir', 'mktemp', 'rm', 'rmdir', 'cp', 'mv', 'ln', 'touch', 'chmod',- 'chown', 'find', 'tree', 'du', 'df', 'readlink', 'realpath', 'stat', 'file',- 'tar', 'zip', 'unzip', 'gzip', 'gunzip',- 'grep', 'rg', 'awk', 'sed', 'diff', 'jq', 'yq', 'echo', 'printf', 'tee',- 'cut', 'paste', 'tr', 'uniq', 'xargs', 'basename', 'dirname',- 'which', 'whereis', 'type', 'ps', 'kill', 'env', 'export', 'unset',- 'source', 'bash', 'sh', 'date', 'uname', 'make', 'cmake', 'id', 'whoami',- 'hostname', 'uptime',- 'pkill', 'killall', 'lsof', 'pgrep', 'timeout', 'sleep', 'wait', 'time',- 'nohup', 'ss', 'top', 'htop', 'free', 'screen', 'tmux',- 'openssl', 'ssh-keygen', 'gitleaks', 'md5sum', 'shasum',- 'printenv', 'xxd', 'base64', 'nslookup', 'seq', 'bc', 'column', 'iconv',- 'strings', 'patch', 'cmp',- 'curl', 'wget', 'ssh', 'scp', 'rsync', 'dig', 'ping',- 'python3', 'python',- 'git', 'gh',- # JS/TS- 'node', 'npm', 'npx', 'pnpm', 'yarn', 'nvm', 'fnm', 'volta',- 'tsc', 'tsx', 'ts-node', 'esbuild', 'vite', 'turbo', 'pm2',- 'jest', 'vitest', 'playwright', 'playwright-cli', 'cypress',- 'eslint', 'prettier', 'biome',- 'corepack', 'tsup', 'swc', 'rollup', 'webpack', 'nx', 'lerna', 'changeset',- 'storybook', 'bun', 'bunx', 'deno',- # Python- 'pip', 'pip3', 'uv', 'poetry', 'pipx', 'conda',- 'pytest', 'mypy', 'ruff', 'black', 'flake8', 'isort',- 'flask', 'uvicorn', 'gunicorn', 'django-admin', 'jupyter',- 'pdm', 'hatch', 'pre-commit',- # PHP- 'php', 'composer', 'wp', 'phpunit', 'phpstan', 'phpcs', 'phpcbf', 'pest',- 'artisan', 'sail',- # Go, Rust, Ruby- 'go', 'golangci-lint', 'cargo', 'rustc', 'rustup',- 'ruby', 'gem', 'bundle', 'bundler', 'rails', 'rake', 'rspec',- # Cloudflare, Vercel, Docker- 'wrangler', 'miniflare', 'vercel', 'prisma',- 'docker', 'docker-compose', 'kubectl', 'helm', 'terraform', 'pulumi',- # Database- 'psql', 'mysql', 'sqlite3', 'redis-cli', 'mongosh',- 'pg_dump', 'pg_restore', 'createdb', 'dropdb', 'mysqldump', 'turso', 'pscale',- # Cloud- 'aws', 'gcloud', 'gsutil', 'az', 'firebase',- # AI/GPU- 'ollama', 'nvidia-smi',- # macOS- 'brew', 'open', 'pbcopy', 'pbpaste', 'sips', 'screencapture', 'osascript',- 'caffeinate', 'defaults', 'mdfind', 'mdls', 'ditto', 'say', 'plutil',- 'softwareupdate', 'xcode-select', 'xattr',- # LLM CLIs- 'claude', 'gemini-coach', 'elevenlabs', 'fastmcp',- # Media- 'convert', 'identify', 'exiftool', 'ffmpeg', 'ffprobe', 'ffplay', 'magick',- # New presets- 'java', 'javac', 'jar', 'mvn', 'gradle', 'gradlew', 'kotlin', 'kotlinc',- 'sbt', 'scala', 'dotnet', 'nuget', 'elixir', 'mix', 'iex', 'swift', 'swiftc',- 'astro', 'hugo', 'gatsby', 'eleventy', 'jekyll',- 'railway', 'fly', 'flyctl', 'netlify', 'supabase', 'heroku', 'render', 'cpanel',- 'ngrok', 'cloudflared', 'mkcert', 'certbot',- 'stripe', 'twilio', 'auth0', 'sentry-cli',- 'pandoc', 'wkhtmltopdf',- 'act', 'code', 'cursor', 'zed', 'vim', 'nvim',- # Linux- 'systemctl', 'journalctl', 'crontab', 'sudo', 'apt', 'apt-get', 'dpkg', 'yum', 'dnf',- # Mobile- 'eas', 'adb', 'react-native', 'flutter', 'dart', 'xcodebuild', 'pod', 'xcrun', 'fastlane',-}--# Extract first command word from a Bash permission pattern-def extract_command(perm):- m = re.match(r'Bash\(([a-zA-Z0-9_./-]+)', perm)- if m:- cmd = m.group(1)- # Skip paths, env vars, shell constructs- if cmd.startswith('/') or cmd.startswith('./') or cmd.startswith('~'):- return f"[path:{cmd}]"- if cmd in ('do', 'done', 'for', 'while', 'if', 'then', 'else', 'fi',- 'elif', 'case', 'esac', 'in', 'true', 'false', 'break',- 'continue', 'return', 'test', '['):- return None # Shell constructs- if '=' in cmd or cmd.startswith('__NEW_LINE'):- return None # Env vars or artifacts- return cmd- return None--# Scan all settings files-settings_files = glob.glob('/Users/jez/Documents/*/.claude/settings.local.json')-settings_files += glob.glob('/Users/jez/Documents/*/*/.claude/settings.local.json')--uncovered = Counter()-webfetch_domains = Counter()-all_commands = Counter()--for sf in settings_files:- try:- data = json.loads(Path(sf).read_text())- perms = data.get('permissions', {}).get('allow', [])- for p in perms:- if p.startswith('Bash('):- cmd = extract_command(p)- if cmd and not cmd.startswith('[path:'):- all_commands[cmd] += 1- if cmd not in COVERED_COMMANDS:- uncovered[cmd] += 1- elif p.startswith('WebFetch(domain:'):- domain = p.replace('WebFetch(domain:', '').rstrip(')')- webfetch_domains[domain] += 1- except (json.JSONDecodeError, FileNotFoundError):- continue--print("=== UNCOVERED BASH COMMANDS (by frequency) ===")-print(f"{'Command':<30} {'Count':>5} Notes")-print("-" * 60)-for cmd, count in uncovered.most_common(50):- print(f"{cmd:<30} {count:>5}")--print(f"\n=== TOP WEBFETCH DOMAINS (not blanket) ===")-for domain, count in webfetch_domains.most_common(30):- print(f" {domain:<45} {count:>3}")--print(f"\n=== STATS ===")-print(f"Total settings files scanned: {len(settings_files)}")-print(f"Unique commands found: {len(all_commands)}")-print(f"Already covered by presets: {len(all_commands) - len(uncovered)}")-print(f"Not in presets: {len(uncovered)}")diff --git a/.gitignore b/.gitignoreindex 6a9c5223..e5563adf 100644--- a/.gitignore+++ b/.gitignore@@ -44,3 +44,8 @@ SESSION.md# Packaged skills*.skill++# Internal agent notes stay local: public repos ignore all of .jez/ and agent working files+.jez/+.claude/scripts/+.claude/artifacts/diff --git a/.jez/scripts/audit-fix.py b/.jez/scripts/audit-fix.pydeleted file mode 100644index a89b8bce..00000000--- a/.jez/scripts/audit-fix.py+++ /dev/null@@ -1,423 +0,0 @@-#!/usr/bin/env python3-"""Batch create command files and fix compatibility fields across all skill repos."""-import os-import re--# ============================================================-# 1. COMMAND FILES TO CREATE (claude-skills)-# ============================================================-CLAUDE_SKILLS = "/Users/jez/Documents/claude-skills"--claude_skills_commands = {- "cloudflare": {- "cloudflare-worker-builder": {- "description": "Scaffold and deploy a Cloudflare Worker with Hono routing",- "argument-hint": "[project-name]",- "body": "Load the `cloudflare-worker-builder` skill.\n\nIf $ARGUMENTS contains a project name, use it. Otherwise ask.\n\nScaffolds a Cloudflare Worker with Hono routing, Vite plugin, and static assets.",- },- "vite-flare-starter": {- "description": "Scaffold a full-stack Cloudflare app from vite-flare-starter",- "argument-hint": "[project-name]",- "body": "Load the `vite-flare-starter` skill.\n\nIf $ARGUMENTS contains a project name, use it. Otherwise ask.\n\nClones vite-flare-starter, configures bindings, and deploys.",- },- "d1-drizzle-schema": {- "description": "Generate a Drizzle ORM schema for Cloudflare D1",- "argument-hint": "[table-names...]",- "body": "Load the `d1-drizzle-schema` skill.\n\nIf $ARGUMENTS contains table names, use them as starting points. Otherwise analyse the project.",- },- "d1-migration": {- "description": "Run D1 migration workflow — generate, inspect, apply",- "argument-hint": "[generate|apply|fix|status]",- "body": "Load the `d1-migration` skill.\n\nParse $ARGUMENTS for action:\n- `generate` — generate migration from schema changes\n- `apply` — apply pending migrations (local + remote)\n- `fix` — fix stuck or failed migrations\n- `status` — show migration status\n\nDefault: `status` if no argument.",- },- "hono-api-scaffolder": {- "description": "Scaffold Hono API routes for a Cloudflare Worker",- "argument-hint": "[resource-name...]",- "body": "Load the `hono-api-scaffolder` skill.\n\nIf $ARGUMENTS contains resource names (e.g. users, posts), scaffold routes for them. Otherwise analyse the project.",- },- "db-seed": {- "description": "Generate database seed scripts with realistic data",- "argument-hint": "[small|medium|large] [dev|demo|test]",- "body": "Load the `db-seed` skill.\n\nParse $ARGUMENTS for:\n- **Volume**: `small` (5-10 rows), `medium` (20-50), `large` (100+). Default: small\n- **Purpose**: `dev`, `demo`, or `test`. Default: dev\n\nExamples: `/db-seed large demo`, `/db-seed`, `/db-seed test`",- },- },- "frontend": {- "landing-page": {- "description": "Generate a deployable landing page from a brief",- "argument-hint": "[business-name]",- "body": "Load the `landing-page` skill.\n\nIf $ARGUMENTS contains a business name, use it. Otherwise ask for a brief.\n\nProduces a single self-contained HTML file with Tailwind CDN.",- },- "shadcn-ui": {- "description": "Install and configure shadcn/ui components",- "argument-hint": "[component-name...]",- "body": "Load the `shadcn-ui` skill.\n\nIf $ARGUMENTS contains component names (e.g. button dialog table), install them. Otherwise guide component selection.",- },- "tailwind-theme-builder": {- "description": "Set up Tailwind v4 theming with CSS variables and dark mode",- "argument-hint": "[hex-color]",- "body": "Load the `tailwind-theme-builder` skill.\n\nIf $ARGUMENTS contains a hex colour, use it as the primary brand colour. Otherwise ask or use defaults.",- },- "product-showcase": {- "description": "Generate a marketing site from a running app with real screenshots",- "argument-hint": "[url]",- "body": "Load the `product-showcase` skill.\n\nIf $ARGUMENTS contains a URL, use it as the app to showcase. Otherwise check for a running dev server or ask.",- },- },- "design-assets": {- "ai-image-generator": {- "description": "Generate AI images using Gemini or GPT APIs",- "argument-hint": "[hero|icon|og|illustration] [description]",- "body": "Load the `ai-image-generator` skill.\n\nParse $ARGUMENTS for:\n- **Purpose**: `hero`, `icon`, `og`, `illustration` (optional)\n- **Description**: what to generate\n\nExamples: `/ai-image-generator hero modern office space`, `/ai-image-generator icon wrench tool`",- },- "color-palette": {- "description": "Generate an accessible colour palette from a hex value",- "argument-hint": "[hex-color]",- "body": "Load the `color-palette` skill.\n\nIf $ARGUMENTS contains a hex colour (e.g. #1E40AF), generate a full palette from it. Otherwise ask for a brand colour.",- },- "favicon-gen": {- "description": "Generate a favicon package from a logo or brand",- "argument-hint": "[logo-path|text|hex-color]",- "body": "Load the `favicon-gen` skill.\n\nParse $ARGUMENTS for a logo file path, text initials, or hex colour to generate from. Otherwise ask.",- },- "icon-set-generator": {- "description": "Generate a cohesive SVG icon set for a project",- "argument-hint": "[icon-names...]",- "body": "Load the `icon-set-generator` skill.\n\nIf $ARGUMENTS contains icon names (e.g. home settings user), generate those. Otherwise analyse the project for needed icons.",- },- "image-processing": {- "description": "Resize, convert, or optimise images for web",- "argument-hint": "[image-path] [operation]",- "body": "Load the `image-processing` skill.\n\nParse $ARGUMENTS for an image path and operation (resize, convert, trim, optimise). Otherwise ask what to process.",- },- },- "dev-tools": {- "project-docs": {- "description": "Generate project documentation from codebase analysis",- "argument-hint": "[all|architecture|api|database]",- "body": "Load the `project-docs` skill.\n\nParse $ARGUMENTS for which docs to generate:\n- `all` — ARCHITECTURE.md + API_ENDPOINTS.md + DATABASE_SCHEMA.md\n- `architecture` — ARCHITECTURE.md only\n- `api` — API_ENDPOINTS.md only\n- `database` — DATABASE_SCHEMA.md only\n\nDefault: detect what's needed based on project type.",- },- "app-docs": {- "description": "Generate a user guide with screenshots from a running app",- "argument-hint": "[quick|standard|thorough] [url]",- "body": "Load the `app-docs` skill.\n\nParse $ARGUMENTS for:\n- **Depth**: `quick` (~10 screenshots), `standard` (~30), `thorough` (~80+). Default: standard\n- **URL**: app to document. If not provided, check for a running dev server or ask.",- },- "brains-trust": {- "description": "Get a second opinion from other AI models",- "argument-hint": "[question or topic]",- "body": "Load the `brains-trust` skill.\n\nIf $ARGUMENTS contains a question, use it as the topic. Otherwise ask what they want a second opinion on.\n\nQueries models via OpenRouter, Gemini, or OpenAI APIs.",- },- "git-workflow": {- "description": "Guided git workflows — PRs, branch cleanup, conflict resolution",- "argument-hint": "[pr|clean|conflicts|tag]",- "body": "Load the `git-workflow` skill.\n\nParse $ARGUMENTS for action:\n- `pr` — prepare a pull request\n- `clean` — clean up merged/stale branches\n- `conflicts` — resolve merge conflicts\n- `tag` — create a version tag\n\nDefault: detect what's needed from git status.",- },- "responsiveness-check": {- "description": "Test responsive layout across viewport widths",- "argument-hint": "[url]",- "body": "Load the `responsiveness-check` skill.\n\nIf $ARGUMENTS contains a URL, test it. Otherwise check for a running dev server or ask.",- },- "agent-browser": {- "description": "Browser automation for web interaction and testing",- "argument-hint": "[url]",- "body": "Load the `agent-browser` skill.\n\nIf $ARGUMENTS contains a URL, navigate to it. Otherwise ask what to do.\n\nUses playwright-cli for browser automation.",- },- },- "integrations": {- "gws-setup": {- "description": "Set up the Google Workspace CLI from scratch",- "argument-hint": "",- "body": "Load the `gws-setup` skill.\n\nGuides through GCP project creation, OAuth credentials, authentication, and installing agent skills.",- },- "gws-install": {- "description": "Install Google Workspace CLI on a new machine",- "argument-hint": "",- "body": "Load the `gws-install` skill.\n\nQuick install of gws using existing OAuth credentials from a previous setup.",- },- "google-chat-messages": {- "description": "Send Google Chat messages via webhook",- "argument-hint": "[webhook-url] [message]",- "body": "Load the `google-chat-messages` skill.\n\nIf $ARGUMENTS contains a webhook URL and message, send it. Otherwise guide through webhook setup.",- },- "google-apps-script": {- "description": "Build Google Apps Script automation",- "argument-hint": "[spreadsheet-url|project-name]",- "body": "Load the `google-apps-script` skill.\n\nIf $ARGUMENTS contains a spreadsheet URL or project name, use it. Otherwise ask what to automate.",- },- "elevenlabs-agents": {- "description": "Build a conversational AI voice agent with ElevenLabs",- "argument-hint": "[agent-name]",- "body": "Load the `elevenlabs-agents` skill.\n\nIf $ARGUMENTS contains an agent name, use it. Otherwise ask about the agent's purpose.",- },- "mcp-builder": {- "description": "Build an MCP server with FastMCP",- "argument-hint": "[server-name]",- "body": "Load the `mcp-builder` skill.\n\nIf $ARGUMENTS contains a server name, use it. Otherwise ask what tools/resources the server should expose.",- },- },- "web-design": {- "seo-local-business": {- "description": "Generate SEO setup for a local business website",- "argument-hint": "[business-name]",- "body": "Load the `seo-local-business` skill.\n\nIf $ARGUMENTS contains a business name, use it. Otherwise ask for business details.\n\nGenerates JSON-LD schema, meta tags, robots.txt, and sitemap.",- },- },- "knowledge-cortex": {- "cortex-mine": {- "description": "Mine Gmail history into a local knowledge base",- "argument-hint": "[dry-run|from DATE]",- "body": "Load the `cortex-mine` skill.\n\nParse $ARGUMENTS:\n- `dry-run` — preview what would be extracted without saving\n- `from YYYY-MM-DD` — only process emails from this date\n\nDefault: incremental mine from last run.",- },- "cortex-query": {- "description": "Search your mined knowledge base",- "argument-hint": "[search-term]",- "body": "Load the `cortex-query` skill.\n\nIf $ARGUMENTS contains a search term, query for it. Otherwise show stats or ask what to search for.",- },- },- "social-media": {- "social-media-posts": {- "description": "Create platform-specific social media posts",- "argument-hint": "[linkedin|facebook|instagram|reddit|all] [topic]",- "body": "Load the `social-media-posts` skill.\n\nParse $ARGUMENTS for:\n- **Platform**: `linkedin`, `facebook`, `instagram`, `reddit`, or `all`. Default: all\n- **Topic**: what to post about\n\nExamples: `/social-media-posts linkedin new feature launch`, `/social-media-posts all`",- },- },- "writing": {- "aussie-business-english": {- "description": "Australian business English writing style",- "argument-hint": "",- "body": "Load the `aussie-business-english` skill.\n\nApply Australian business English conventions to the current writing task. EN-AU spelling, warm direct tone.",- },- "us-business-english": {- "description": "American business English writing style",- "argument-hint": "",- "body": "Load the `us-business-english` skill.\n\nApply American business English conventions to the current writing task. EN-US spelling, direct action-oriented tone.",- },- "uk-business-english": {- "description": "British business English writing style",- "argument-hint": "",- "body": "Load the `uk-business-english` skill.\n\nApply British business English conventions to the current writing task. EN-GB spelling, polished understated tone.",- },- "nz-business-english": {- "description": "New Zealand business English writing style",- "argument-hint": "",- "body": "Load the `nz-business-english` skill.\n\nApply New Zealand business English conventions to the current writing task. EN-NZ spelling, warm inclusive tone.",- },- "resume-cover-letter": {- "description": "Write a resume/CV or cover letter for a job application",- "argument-hint": "[resume|cover-letter|both]",- "body": "Load the `resume-cover-letter` skill.\n\nParse $ARGUMENTS for mode:\n- `resume` — resume/CV only\n- `cover-letter` — cover letter only\n- `both` — both documents\n\nDefault: both.",- },- "proposal-writer": {- "description": "Write a client proposal or quote",- "argument-hint": "[client-name]",- "body": "Load the `proposal-writer` skill.\n\nIf $ARGUMENTS contains a client name, use it. Otherwise ask for project details.",- },- "award-application": {- "description": "Write an award submission or grant application",- "argument-hint": "[award-name]",- "body": "Load the `award-application` skill.\n\nIf $ARGUMENTS contains an award name, use it. Otherwise ask for award details and criteria.",- },- "strategy-document": {- "description": "Write a strategic business document",- "argument-hint": "[swot|plan|okrs|competitive]",- "body": "Load the `strategy-document` skill.\n\nParse $ARGUMENTS for document type:\n- `swot` — SWOT analysis\n- `plan` — lean business plan\n- `okrs` — OKR goal framework\n- `competitive` — competitive analysis\n\nDefault: ask what type of strategic document.",- },- },- "shopify": {- "shopify-setup": {- "description": "Set up Shopify CLI auth and Admin API access",- "argument-hint": "[store-url]",- "body": "Load the `shopify-setup` skill.\n\nIf $ARGUMENTS contains a store URL, use it. Otherwise ask for the store.",- },- "shopify-products": {- "description": "Create and manage Shopify products",- "argument-hint": "[product-name|csv-path]",- "body": "Load the `shopify-products` skill.\n\nIf $ARGUMENTS contains a product name or CSV path, use it. Otherwise ask what products to manage.",- },- "shopify-content": {- "description": "Create Shopify pages, blog posts, and content",- "argument-hint": "[page|blog|nav] [title]",- "body": "Load the `shopify-content` skill.\n\nParse $ARGUMENTS for content type and title. Otherwise ask what content to create.",- },- },- "wordpress": {- "wordpress-setup": {- "description": "Connect to a WordPress site via WP-CLI or REST API",- "argument-hint": "[domain]",- "body": "Load the `wordpress-setup` skill.\n\nIf $ARGUMENTS contains a domain, use it. Otherwise ask for the WordPress site.",- },- "wordpress-content": {- "description": "Create and manage WordPress posts, pages, and media",- "argument-hint": "[post|page] [title]",- "body": "Load the `wordpress-content` skill.\n\nParse $ARGUMENTS for content type and title. Otherwise ask what to create.",- },- "wordpress-elementor": {- "description": "Edit Elementor pages and manage templates",- "argument-hint": "[page-url|page-id]",- "body": "Load the `wordpress-elementor` skill.\n\nIf $ARGUMENTS contains a page URL or ID, edit it. Otherwise ask which page to edit.",- },- },-}--# ============================================================-# 2. COMMAND FILES TO CREATE (jez-skills)-# ============================================================-JEZ_SKILLS = "/Users/jez/Documents/jez-skills"--jez_skills_commands = {- "jez": {- "jezmail": {- "description": "Newsletter workflow — draft, images, test, send, social posts",- "argument-hint": "[draft|send|test|social|subscribers]",- "body": "Load the `jezmail` skill.\n\nParse $ARGUMENTS for step:\n- `draft` — draft a new newsletter\n- `send` — send a drafted newsletter\n- `test` — send a test email\n- `social` — generate social posts from sent newsletter\n- `subscribers` — manage subscriber list\n\nDefault: show workflow options.",- },- "site-audit": {- "description": "Comprehensive site health check — DNS, SSL, SEO, performance",- "argument-hint": "<domain>",- "body": "Load the `site-audit` skill.\n\nUse $ARGUMENTS as the domain to audit. Required — ask if not provided.",- },- "domain-dns-ops": {- "description": "Manage domains and DNS records across Cloudflare and Synergy",- "argument-hint": "[lookup|update|health] <domain>",- "body": "Load the `domain-dns-ops` skill.\n\nParse $ARGUMENTS for action and domain:\n- `lookup example.com` — check DNS records\n- `update example.com` — modify records\n- `health example.com` — full health check (SSL, DNSSEC, propagation)\n\nDefault: lookup if just a domain provided.",- },- "web-scraper": {- "description": "Build a purpose-specific web scraper",- "argument-hint": "[url-or-description]",- "body": "Load the `web-scraper` skill.\n\nIf $ARGUMENTS contains a URL or description, use it as the scraping target. Otherwise ask what to scrape.",- },- "flare-ai-app": {- "description": "Scaffold an AI analytics app from vite-flare-ai-starter",- "argument-hint": "[project-name]",- "body": "Load the `flare-ai-app` skill.\n\nIf $ARGUMENTS contains a project name, use it. Otherwise ask for the app concept.",- },- },- "l2chat": {- "create-l2chat-agent": {- "description": "Create and deploy a new L2Chat per-client agent",- "argument-hint": "[client-name|domain]",- "body": "Load the `create-l2chat-agent` skill.\n\nIf $ARGUMENTS contains a client name or domain, use it. Otherwise ask for the client details.",- },- },-}--# ============================================================-# 3. COMPATIBILITY FIXES (add claude-code-only where missing)-# ============================================================-add_compatibility = [- # claude-skills- f"{CLAUDE_SKILLS}/plugins/cloudflare/skills/d1-migration/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/cloudflare/skills/db-seed/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/dev-tools/skills/project-docs/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/dev-tools/skills/git-workflow/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/dev-tools/skills/agent-browser/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/frontend/skills/landing-page/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/frontend/skills/shadcn-ui/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/frontend/skills/tailwind-theme-builder/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/design-assets/skills/ai-image-generator/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/design-assets/skills/color-palette/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/design-assets/skills/favicon-gen/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/design-assets/skills/icon-set-generator/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/integrations/skills/google-apps-script/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/integrations/skills/google-chat-messages/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/integrations/skills/elevenlabs-agents/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/knowledge-cortex/skills/cortex-mine/SKILL.md",- f"{CLAUDE_SKILLS}/plugins/knowledge-cortex/skills/cortex-query/SKILL.md",- # jez-skills- f"{JEZ_SKILLS}/plugins/jez/skills/jezmail/SKILL.md",- f"{JEZ_SKILLS}/plugins/jez/skills/site-audit/SKILL.md",- f"{JEZ_SKILLS}/plugins/jez/skills/wordpress-site-setup/SKILL.md",- f"{JEZ_SKILLS}/plugins/l2chat/skills/create-l2chat-agent/SKILL.md",-]---def create_command_file(base_dir, plugin, skill, config):- cmd_dir = os.path.join(base_dir, "plugins", plugin, "commands")- os.makedirs(cmd_dir, exist_ok=True)- cmd_file = os.path.join(cmd_dir, f"{skill}.md")-- if os.path.exists(cmd_file):- print(f" SKIP {plugin}:{skill} (already exists)")- return False-- lines = ["---"]- lines.append(f'description: {config["description"]}')- if config.get("argument-hint"):- lines.append(f'argument-hint: "{config["argument-hint"]}"')- lines.append("---")- lines.append("")- lines.append(config["body"])- lines.append("")-- with open(cmd_file, "w") as f:- f.write("\n".join(lines))-- print(f" CREATE {plugin}:{skill}")- return True---def add_compatibility_field(filepath):- if not os.path.exists(filepath):- print(f" SKIP {filepath} (not found)")- return False-- with open(filepath, "r") as f:- content = f.read()-- if "compatibility:" in content:- print(f" SKIP {os.path.basename(os.path.dirname(filepath))} (already has compatibility)")- return False-- # Add compatibility after the last frontmatter field before ---- # Find the closing --- of frontmatter- lines = content.split("\n")- closing_idx = None- in_frontmatter = False- for i, line in enumerate(lines):- if line.strip() == "---":- if not in_frontmatter:- in_frontmatter = True- else:- closing_idx = i- break-- if closing_idx is None:- print(f" ERROR {filepath} (no frontmatter found)")- return False-- lines.insert(closing_idx, "compatibility: claude-code-only")-- with open(filepath, "w") as f:- f.write("\n".join(lines))-- short = filepath.split("/skills/")[1].split("/SKILL.md")[0] if "/skills/" in filepath else filepath- print(f" ADD compatibility: claude-code-only → {short}")- return True---# ============================================================-# EXECUTE-# ============================================================-print("=== Creating command files (claude-skills) ===")-created_cs = 0-for plugin, skills in claude_skills_commands.items():- for skill, config in skills.items():- if create_command_file(CLAUDE_SKILLS, plugin, skill, config):- created_cs += 1--print(f"\n=== Creating command files (jez-skills) ===")-created_js = 0-for plugin, skills in jez_skills_commands.items():- for skill, config in skills.items():- if create_command_file(JEZ_SKILLS, plugin, skill, config):- created_js += 1--print(f"\n=== Adding compatibility: claude-code-only ===")-fixed = 0-for filepath in add_compatibility:- if add_compatibility_field(filepath):- fixed += 1--print(f"\n=== SUMMARY ===")-print(f"Commands created (claude-skills): {created_cs}")-print(f"Commands created (jez-skills): {created_js}")-print(f"Compatibility fields added: {fixed}")