SQL Optimization
github/awesome-copilot
Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server…
Analyze your Model Matchmaker override patterns and tune the local classifier to match your preferences.
$ npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install coyvalyss1/model-matchmaker optimize-classifier --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/coyvalyss1/model-matchmaker.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/optimize-classifier .claude/skills/optimize-classifier && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "optimize-classifier" agent skill from https://github.com/coyvalyss1/model-matchmaker/tree/main/skills/optimize-classifier into .claude/skills/optimize-classifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-classifier", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/coyvalyss1/model-matchmaker/tree/main/skills/optimize-classifierType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install coyvalyss1/model-matchmaker optimize-classifier --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/coyvalyss1/model-matchmaker.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/optimize-classifier .agents/skills/optimize-classifier && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "optimize-classifier" agent skill from https://github.com/coyvalyss1/model-matchmaker/tree/main/skills/optimize-classifier into .agents/skills/optimize-classifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-classifier", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install coyvalyss1/model-matchmaker optimize-classifier --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/coyvalyss1/model-matchmaker.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/optimize-classifier .cursor/skills/optimize-classifier && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "optimize-classifier" agent skill from https://github.com/coyvalyss1/model-matchmaker/tree/main/skills/optimize-classifier into .cursor/skills/optimize-classifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-classifier", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/coyvalyss1/model-matchmaker.git --path skills/optimize-classifier--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install coyvalyss1/model-matchmaker optimize-classifier --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/coyvalyss1/model-matchmaker.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/optimize-classifier .gemini/skills/optimize-classifier && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "optimize-classifier" agent skill from https://github.com/coyvalyss1/model-matchmaker/tree/main/skills/optimize-classifier into .gemini/skills/optimize-classifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-classifier", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install coyvalyss1/model-matchmaker optimize-classifierInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/coyvalyss1/model-matchmaker.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/optimize-classifier .github/skills/optimize-classifier && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "optimize-classifier" agent skill from https://github.com/coyvalyss1/model-matchmaker/tree/main/skills/optimize-classifier into .github/skills/optimize-classifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-classifier", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install coyvalyss1/model-matchmaker optimize-classifier --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/coyvalyss1/model-matchmaker.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/optimize-classifier .opencode/skills/optimize-classifier && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "optimize-classifier" agent skill from https://github.com/coyvalyss1/model-matchmaker/tree/main/skills/optimize-classifier into .opencode/skills/optimize-classifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "optimize-classifier", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
optimize-classifierAnalyze your Model Matchmaker override patterns and tune the local classifier to match your preferences.
Optimize Classifier is an agent skill from coyvalyss1/model-matchmaker. Analyze your Model Matchmaker override patterns and tune the local classifier to match your preferences. Use after collecting 50+ recommendations.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Local hook for Cursor and Claude Code that routes prompts to the right model tier. Stop paying Opus prices to rename files. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4b99e64. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Optimize Classifier loads about 1.8k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 582 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from coyvalyss1/model-matchmaker at commit 4b99e64, republished under its MIT licence (© coyvalyss1). 582 words, ~1,767 tokens.
.claude/skills/optimize-classifier/SKILL.md (or your agent's skills folder).This skill helps you personalize your Model Matchmaker classifier based on your actual usage patterns. After you've collected 50+ recommendations, this skill analyzes when you disagreed with the advisor and tunes your local classifier to match your preferences.
~/.cursor/hooks/model-matchmaker.ndjson)model-advisor.sh filePrivacy: Everything happens locally. No data leaves your machine. You review and approve every change.
You are helping the user optimize their Model Matchmaker classifier based on their personal override patterns. Follow these steps:
Read the NDJSON log file at ~/.cursor/hooks/model-matchmaker.ndjson.
Check if there's enough data:
recommendation events totalOVERRIDE events to find patternsFilter to action: "OVERRIDE" events and group by model direction:
Group A: User preferred Opus over recommended Haiku/Sonnet
prompt_snippet fields in this groupGroup B: User preferred Sonnet over recommended Opus
prompt_snippet fields in this groupGroup C: User preferred Sonnet over recommended Haiku
prompt_snippet fields in this groupGroup D: User preferred Haiku over recommended Sonnet/Opus
prompt_snippet fields in this groupFor each group, find words that appear in 3+ override prompts (minimum frequency threshold).
Exclude common stop words:
Focus on action verbs and technical terms:
For each keyword group, map to the correct section of model-advisor.sh:
For Group A keywords (user prefers Opus):
→ Add to opus_keywords list around line 46
For Group B/C keywords (user prefers Sonnet):
→ Add to sonnet_patterns list around line 63
For Group D keywords (user prefers Haiku):
→ Add to haiku_patterns list around line 53
For each proposed keyword:
Output in this format:
# Classifier Optimization Report
## Your Usage Summary
- Total recommendations: N
- Overrides: M (X.X%)
- Ready for optimization: [Yes/No - need 5+ overrides]
## Patterns Found
### You prefer Opus for:
**Keyword: "debug"**
- Frequency: 5 overrides
- Current behavior: Recommends Sonnet
- Proposed: Add "debug" to opus_keywords
- Impact: 5 past overrides would become correct recommendations
**Keyword: "investigate"**
- Frequency: 3 overrides
- Current behavior: Recommends Sonnet
- Proposed: Add "investigate" to opus_keywords
- Impact: 3 past overrides would become correct recommendations
[Repeat for other keywords]
### You prefer Sonnet over Opus for:
[Same structure]
### You prefer Haiku for:
[Same structure]
## Proposed Changes to ~/.cursor/hooks/model-advisor.sh
**Add to opus_keywords (line 46):**
```python
opus_keywords = [
"architect", "architecture", "evaluate", "tradeoff", "trade-off",
"strategy", "strategic", "compare approaches", "why does", "deep dive",
"redesign", "across the codebase", "investor", "multi-system",
"complex refactor", "analyze", "analysis", "plan mode", "rethink",
"high-stakes", "critical decision",
# NEW - Added based on your override patterns:
"debug", "investigate" # 8 overrides support this
]Add to sonnet_patterns (line 63): [Show specific regex additions if any]
Would you like me to apply these changes to your classifier?
If you approve, I'll:
You can test immediately by restarting Cursor or starting a new composer session.
### Step 7: Apply Changes (If User Approves)
If user says "yes" or approves specific keywords:
1. Read `~/.cursor/hooks/model-advisor.sh`
2. Locate the appropriate keyword list (opus_keywords, sonnet_patterns, or haiku_patterns)
3. Add the new keywords to the list with a comment explaining they were auto-added
4. Write the file back using the StrReplace tool
5. Confirm: "Updated! Your classifier now recommends [model] for prompts containing [keywords]. Changes take effect in your next Cursor session."
### Important Notes
- Only suggest keywords with 3+ override occurrences (confidence threshold)
- Don't add generic words that could cause false positives ("the", "make", "update")
- Show the user exactly what will change before changing it
- If the user's overrides are inconsistent (sometimes want Opus, sometimes want Sonnet for the same keyword), note that and ask for clarification
---
## How to Use This Skill
As a user, invoke this skill by saying something like:
- "Optimize my Model Matchmaker classifier"
- "Tune my classifier based on my overrides"
- "Analyze my Model Matchmaker usage and improve it"
- "Update my classifier to match my preferences"
The AI will analyze your logs, find patterns, and propose keyword additions. You review and approve before any changes are made.
## When to Run This
- After your first 50-100 prompts (to establish baseline patterns)
- Monthly or quarterly as your workflow evolves
- After a major project shift (switching from backend to frontend work, for example)
- Whenever you notice you're overriding the advisor frequently© coyvalyss1, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/optimize-classifier of coyvalyss1/model-matchmaker.
Open the folder on GitHubat commit 4b99e64
Optimize Classifier next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Optimize Classifier this skillcoyvalyss1/model-matchmaker | 168 | — | ~1.8k | Automated safety check: Pass | MIT | |
| SQL Optimizationgithub/awesome-copilot | 40k | 2 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Database Optimizerdavila7/claude-code-templates | 32k | 8 repos | ~2.5k | Automated safety check: Pass | MIT | |
| Postgresql Optimizationdavila7/claude-code-templates | 32k | 4 repos | ~951 | Automated safety check: Pass | MIT | |
| Agent Performance Optimizerruvnet/ruflo | 74k | 2 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Prompt Optimizeraffaan-m/ECC | 275k | 2 repos | ~2.4k | Automated safety check: Pass | MIT |
github/awesome-copilot
Universal SQL performance optimization assistant for comprehensive query tuning, indexing strategies, and database performance analysis across all SQL databases (MySQL, PostgreSQL, SQL Server…
davila7/claude-code-templates
Expert database optimizer specializing in modern performance tuning, query optimization, and scalable architectures.
davila7/claude-code-templates
PostgreSQL database optimization workflow for query tuning, indexing strategies, performance analysis, and production database management.
ruvnet/ruflo
Agent skill for performance-optimizer - invoke with $agent-performance-optimizer
affaan-m/ECC
分析原始提示,识别意图和差距,匹配ECC组件(技能/命令/代理/钩子),并输出一个可直接粘贴的优化提示。仅提供咨询角色——绝不自行执行任务。触发时机:当用户说“优化提示”、“改进我的提示”、“如何编写提示”、“帮我优化这个指令”或明确要求提高提示质量时。中文等效表达同样触发:“优化prompt”、“改进prompt”、“怎么写prompt”、“帮我优化这个指令”。不触发时机:当用户希望直接执行任…
ruvnet/ruflo
Analyze token usage patterns and recommend cost optimizations with estimated savings
coyvalyss1/model-matchmaker
Monitor conversation context and prevent MAX mode by warning at token thresholds and generating handoff summaries.
coyvalyss1/model-matchmaker
Build a sanitized analytics report from your Model Matchmaker usage for community contribution.
Analyze your Model Matchmaker override patterns and tune the local classifier to match your preferences. Optimize Classifier is an agent skill from coyvalyss1/model-matchmaker. Analyze your Model Matchmaker override patterns and tune the local classifier to match your preferences.
Run `npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a claude-code`. Or copy the skill folder (skills/optimize-classifier in coyvalyss1/model-matchmaker) into .claude/skills/optimize-classifier in your project. Claude Code loads it when a task matches its description.
Run `npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a codex`. Or copy the skill folder (skills/optimize-classifier in coyvalyss1/model-matchmaker) into .agents/skills/optimize-classifier in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add coyvalyss1/model-matchmaker --skill optimize-classifier -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/optimize-classifier, .gemini/skills/optimize-classifier, .github/skills/optimize-classifier and .opencode/skills/optimize-classifier in your project.
SKILL.md names no scripts, command-line tools or credentials: Optimize Classifier is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Optimize Classifier is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Optimize Classifier: SQL Optimization (github/awesome-copilot, 40k stars), Database Optimizer (davila7/claude-code-templates, 32k stars), Postgresql Optimization (davila7/claude-code-templates, 32k stars) and Agent Performance Optimizer (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
coyvalyss1 (a GitHub user) maintains it in coyvalyss1/model-matchmaker, which has 168 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on September 22, 2026.
Source: coyvalyss1/model-matchmaker on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.