-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
Feature Request: Add Skill Priority Configuration #50199
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Feature Request: Add Skill Priority Configuration
📋 Summary
Add support for skill priority configuration to enable intelligent skill selection when multiple skills can perform the same task.
🐛 Problem Statement
OpenClaw currently has overlapping skills without clear selection rules, leading to inconsistent behavior:
multi-search-engine,openclaw-tavily-searchhumanize-zh,humanize-ai-textagent-browser,playwrightImpact:
✅ Proposed Solution
1. Configuration File
Add
~/.openclaw/skills-config/priority.json:{ "multi-search-engine": {"priority": 1, "description": "优先使用:无需 API key,多引擎并行,适合中文环境"}, "humanize-zh": {"priority": 1, "description": "优先使用:中文场景的首选 humanize 技能"}, "humanize-ai-text": {"priority": 2, "description": "备用:英文场景使用,中文优先用 humanize-zh"}, "agent-browser": {"priority": 2, "description": "简单任务优先:轻量级,Rust 原生,适合快速导航/提取"}, "playwright": {"priority": 1, "description": "复杂任务优先:完整浏览器控制,支持截图/PDF/下载"}, "openclaw-tavily-search": {"priority": 2, "description": "备用:Brave 不可用时使用"} }Priority Rules:
priority: 1- Preferred (use when available)priority: 2- Fallback (use only when priority 1 is unavailable)2. Implementation Changes
A. Skill Discovery Sorting
When searching for skills, sort results by priority:
B. Skill Selection Logic
When multiple eligible skills are found for a task, select the highest-priority one:
C. CLI Commands
Add new subcommand for managing priorities:
3. File Structure
Important: The config file is OUTSIDE the skills directory to avoid being overwritten by
clawdhub update.🎯 Benefits
humanize-zhfor Chinese)💡 Example Use Cases
Use Case 1: Prefer Free Search Engine
Result: Searching will prefer
multi-search-engine(free, no API key) overtavily-search(paid, requires API key).Use Case 2: Language-Aware Humanization
Result: Chinese text will automatically use
humanize-zh, English text will usehumanize-ai-text.Use Case 3: Performance Optimization
Result: Simple tasks will use lightweight Rust browser, complex tasks will use full Playwright.
🔄 Backward Compatibility
📝 Migration Path
Phase 1: Configuration Support (v2026.x.x)
Phase 2: Skill Metadata (v2026.y.y - Optional)
_meta.jsonPhase 3: CLI Management (v2026.z.z - Optional)
openclaw skills prioritysubcommandsdocs/skills/priority.md🧪 Testing
🏷️ Labels
enhancementskillspriorityfeature-request📚 Related Documentation
Author: Jimmy (OpenClaw User)
Date: 2026-03-19
Priority: Medium (nice-to-have, not critical but would improve user experience)