Auto Skills
Goal
Improve skill hit rate and recommendation quality by:
- Following strict lookup priority.
- Returning only top 3 precise skills.
- Supporting multilingual matching (especially Chinese query to English skills).
- Guiding users to install/attach selected skills in supported environments.
Hard gate:
- For any action-oriented prompt, run skill routing first before execution.
Default operating mode:
- Try this skill first for nearly every user request with actionable intent.
- Treat "no explicit skill request" as still eligible for skill routing.
- Optimize for high trigger rate first, then precision reranking.
Mandatory Lookup Priority
Always run lookup in this order:
- Project-local skills (current project)
- User-global skills (user directory)
find-skills discovery (only when needed to fill gaps or improve precision)
Do not invert this order.
Trigger Policy (High Recall)
Trigger this skill for:
- Any request with action intent: build, create, implement, refactor, fix, debug,
review, design, plan, optimize, migrate, test, deploy, automate, document,
commit, release, changelog, versioning, publish, push.
- Any request with uncertainty or discovery intent: "怎么做", "有没有办法",
"推荐", "选型", "最佳实践", "what should I use", "is there a skill for ...".
- Common ops keywords: "提交", "发版", "更新日志", "版本", "发布", "推送",
"commit", "release", "changelog", "version", "publish", "push".
- Any domain-specific request even without the word "skill".
- Mixed-language or typo-heavy prompts.
Only do not trigger when:
- User explicitly says "不要查 skill / skip skills".
Core Behavior
1) Query understanding and normalization
Before matching:
- Detect language of user query.
- Normalize query text:
- Lowercase, remove punctuation noise.
- Expand abbreviations (for example: "ws" -> "websocket").
- Split intent words and domain words.
- Build multilingual expansion terms:
- Chinese <-> English concept mapping first.
- Add synonyms and related action verbs.
Examples:
- "流程图编辑器" -> "flowchart", "graph editor", "diagram"
- "连线规则" -> "edge connection", "validateConnection", "routing"
- "技能推荐" -> "skill discovery", "capability matching"
2) Precision-first matching
Score skills by weighted signals:
- Intent match (what user wants to do)
- Domain match (topic/tech stack)
- Output/task match (what kind of deliverable user expects)
- Trigger-description overlap
Use two-stage ranking:
- High-recall candidate generation (wide net).
- Precision reranking (return strongest top 3 only).
2.1) Cost-aware ranking (prefer free first)
Apply this ranking policy by default:
- Prefer non-paid/free skills when relevance is comparable.
- Avoid recommending paid skills in top 3 when free alternatives have acceptable
relevance.
- Allow paid skills in top 3 only when free candidates are clearly low relevance
or cannot satisfy the task.
Practical rule:
- If a free candidate is within a close relevance band of a paid candidate,
rank the free candidate higher.
- If all free candidates are below relevance threshold, allow paid candidates.
3) Top 3 recommendation only
Return exactly up to 3 skills:
- If >= 3 high-confidence matches: return top 3.
- If only 1-2 high-confidence matches: return only those.
- Do not pad with weak candidates.
4) Installation/attachment prompt (tool-dependent)
If environment supports adding skills (for example Cursor):
- Ask user whether to add selected skill to:
- This session
- Current project
- User directory (global)
Ask before performing placement changes.
5) Route first, then delegate specialized skills
When a specialized skill exists (for example commit/release/domain-specific):
- Do not bypass routing.
- Run auto-skills routing first, then delegate to the best specialized skill.
- Keep top-3 recommendation behavior intact before delegation.
6) Runtime initialization awareness (project rule recommendation)
When this skill is matched, if the user has not made a decision yet about adding
project rules (accepted or declined), proactively recommend adding a project
fallback rule so routing behavior is consistently applied in that project.
Recommended action:
- Suggest creating
.cursor/rules/auto-skills-first.mdc.
- Explain benefit in one line: "ensure route-first behavior before execution".
- Ask for confirmation before creating/modifying project rule files.
Suggested rule snippet:
---
description: Route action requests through auto-skills first
alwaysApply: true
---
# Auto-Skills First
For any action-oriented user prompt, run `auto-skills` routing before direct task execution.
Mandatory routing order:
1. Project skills
2. User-global skills
3. `find-skills` discovery
Skip condition:
- Only skip routing when the user explicitly says to bypass skill lookup.
Response Template
Use this concise structure:
Match Confirmation
auto-skills matched: <short reason>
Top Recommendations (max 3)
- Skill name
- Why it matches (1 line)
- Suggested scope (session/project/user)
Optional next action
- Ask user to choose 1/2/3 (or none)
- If supported: ask where to add it
- If rule decision is unknown: recommend adding project fallback rule
Suggested Interaction Pattern
When user asks for skill help:
- Run priority lookup.
- Produce top 3 precise recommendations.
- Ask for selection.
- If supported, ask install scope.
- Confirm applied result.
Multilingual Match Strategy
Use a small internal strategy for robust multilingual hit rate:
- Intent dictionary: actions like build/fix/review/plan/search.
- Domain dictionary: framework/library/platform terms.
- Cross-language aliases:
- Chinese -> English primary mapping.
- English acronym -> full phrase.
- Fuzzy tolerance:
- Handle typos and mixed-language prompts.
Never require users to use exact skill names.
Safety and Quality Rules
- Never recommend more than top 3 in one response.
- Prefer existing installed skills before discovery.
- Prefer free skills over paid skills unless relevance is insufficient.
- Avoid generic recommendations when a specialized skill exists.
- Explain recommendation reasons briefly and concretely.
- If uncertain, ask one focused follow-up question instead of guessing.
Extra Ideas (Built-in Enhancements)
A) Confidence threshold gate
If all candidates are low confidence, ask a single clarifying question and rerank.
B) Feedback memory
Track user accepted/rejected skills in-session to improve future ranking.
C) Diversity control
Avoid returning three near-duplicate skills; keep recommendations complementary.
D) Fast fallback
If no suitable skill is found, provide:
- Best baseline skill (if any), and
- A short suggestion to install a new specialized skill via
find-skills.
1---2name: auto-skills3description: Universal skill router for almost all user requests. Aggressively trigger this skill by default for ANY task-oriented prompt (build, fix, explain, plan, review, debug, optimize, migrate, write docs, create scripts, automate workflows, or "how to do X"), including multilingual and mixed-language input. Always attempt skill retrieval first using order project skills -> user skills -> find-skills, then recommend only the top 3 most precise candidates. Only skip when the user explicitly asks to bypass skill lookup.4---56# Auto Skills78## Goal910Improve skill hit rate and recommendation quality by:1112- Following strict lookup priority.13- Returning only top 3 precise skills.14- Supporting multilingual matching (especially Chinese query to English skills).15- Guiding users to install/attach selected skills in supported environments.1617Hard gate:1819- For any action-oriented prompt, run skill routing first before execution.2021Default operating mode:2223- Try this skill first for nearly every user request with actionable intent.24- Treat "no explicit skill request" as still eligible for skill routing.25- Optimize for high trigger rate first, then precision reranking.2627## Mandatory Lookup Priority2829Always run lookup in this order:30311. Project-local skills (current project)322. User-global skills (user directory)333. `find-skills` discovery (only when needed to fill gaps or improve precision)3435Do not invert this order.3637## Trigger Policy (High Recall)3839Trigger this skill for:4041- Any request with action intent: build, create, implement, refactor, fix, debug,42 review, design, plan, optimize, migrate, test, deploy, automate, document,43 commit, release, changelog, versioning, publish, push.44- Any request with uncertainty or discovery intent: "怎么做", "有没有办法",45 "推荐", "选型", "最佳实践", "what should I use", "is there a skill for ...".46- Common ops keywords: "提交", "发版", "更新日志", "版本", "发布", "推送",47 "commit", "release", "changelog", "version", "publish", "push".48- Any domain-specific request even without the word "skill".49- Mixed-language or typo-heavy prompts.5051Only do not trigger when:5253- User explicitly says "不要查 skill / skip skills".5455## Core Behavior5657### 1) Query understanding and normalization5859Before matching:6061- Detect language of user query.62- Normalize query text:63 - Lowercase, remove punctuation noise.64 - Expand abbreviations (for example: "ws" -> "websocket").65 - Split intent words and domain words.66- Build multilingual expansion terms:67 - Chinese <-> English concept mapping first.68 - Add synonyms and related action verbs.6970Examples:7172- "流程图编辑器" -> "flowchart", "graph editor", "diagram"73- "连线规则" -> "edge connection", "validateConnection", "routing"74- "技能推荐" -> "skill discovery", "capability matching"7576### 2) Precision-first matching7778Score skills by weighted signals:7980- Intent match (what user wants to do)81- Domain match (topic/tech stack)82- Output/task match (what kind of deliverable user expects)83- Trigger-description overlap8485Use two-stage ranking:86871. High-recall candidate generation (wide net).882. Precision reranking (return strongest top 3 only).8990### 2.1) Cost-aware ranking (prefer free first)9192Apply this ranking policy by default:9394- Prefer non-paid/free skills when relevance is comparable.95- Avoid recommending paid skills in top 3 when free alternatives have acceptable96 relevance.97- Allow paid skills in top 3 only when free candidates are clearly low relevance98 or cannot satisfy the task.99100Practical rule:101102- If a free candidate is within a close relevance band of a paid candidate,103 rank the free candidate higher.104- If all free candidates are below relevance threshold, allow paid candidates.105106### 3) Top 3 recommendation only107108Return exactly up to 3 skills:109110- If >= 3 high-confidence matches: return top 3.111- If only 1-2 high-confidence matches: return only those.112- Do not pad with weak candidates.113114### 4) Installation/attachment prompt (tool-dependent)115116If environment supports adding skills (for example Cursor):117118- Ask user whether to add selected skill to:119 - This session120 - Current project121 - User directory (global)122123Ask before performing placement changes.124125### 5) Route first, then delegate specialized skills126127When a specialized skill exists (for example commit/release/domain-specific):128129- Do not bypass routing.130- Run auto-skills routing first, then delegate to the best specialized skill.131- Keep top-3 recommendation behavior intact before delegation.132133### 6) Runtime initialization awareness (project rule recommendation)134135When this skill is matched, if the user has not made a decision yet about adding136project rules (accepted or declined), proactively recommend adding a project137fallback rule so routing behavior is consistently applied in that project.138139Recommended action:140141- Suggest creating `.cursor/rules/auto-skills-first.mdc`.142- Explain benefit in one line: "ensure route-first behavior before execution".143- Ask for confirmation before creating/modifying project rule files.144145Suggested rule snippet:146147```md148---149description: Route action requests through auto-skills first150alwaysApply: true151---152153# Auto-Skills First154155For any action-oriented user prompt, run `auto-skills` routing before direct task execution.156157Mandatory routing order:1581. Project skills1592. User-global skills1603. `find-skills` discovery161162Skip condition:163- Only skip routing when the user explicitly says to bypass skill lookup.164```165166## Response Template167168Use this concise structure:1691701. `Match Confirmation`171 - `auto-skills matched: <short reason>`1722. `Top Recommendations (max 3)`173 - Skill name174 - Why it matches (1 line)175 - Suggested scope (session/project/user)1763. `Optional next action`177 - Ask user to choose 1/2/3 (or none)178 - If supported: ask where to add it179 - If rule decision is unknown: recommend adding project fallback rule180181## Suggested Interaction Pattern182183When user asks for skill help:1841851. Run priority lookup.1862. Produce top 3 precise recommendations.1873. Ask for selection.1884. If supported, ask install scope.1895. Confirm applied result.190191## Multilingual Match Strategy192193Use a small internal strategy for robust multilingual hit rate:194195- Intent dictionary: actions like build/fix/review/plan/search.196- Domain dictionary: framework/library/platform terms.197- Cross-language aliases:198 - Chinese -> English primary mapping.199 - English acronym -> full phrase.200- Fuzzy tolerance:201 - Handle typos and mixed-language prompts.202203Never require users to use exact skill names.204205## Safety and Quality Rules206207- Never recommend more than top 3 in one response.208- Prefer existing installed skills before discovery.209- Prefer free skills over paid skills unless relevance is insufficient.210- Avoid generic recommendations when a specialized skill exists.211- Explain recommendation reasons briefly and concretely.212- If uncertain, ask one focused follow-up question instead of guessing.213214## Extra Ideas (Built-in Enhancements)215216### A) Confidence threshold gate217218If all candidates are low confidence, ask a single clarifying question and rerank.219220### B) Feedback memory221222Track user accepted/rejected skills in-session to improve future ranking.223224### C) Diversity control225226Avoid returning three near-duplicate skills; keep recommendations complementary.227228### D) Fast fallback229230If no suitable skill is found, provide:231232- Best baseline skill (if any), and233- A short suggestion to install a new specialized skill via `find-skills`.