# 🧠 Skill Router (Skill Orchestrator)
An explainable, deterministic meta-skill that decides which skill to use, how to use it, and whether it is safe — before anything runs.
Skill Router operates as a decision and governance layer above all other skills.
It inventories available skills, scores them transparently, applies safety gates, and orchestrates the optimal execution strategy — always with user visibility and control.
No black boxes. No silent execution. No hallucinated APIs.
🚀 How to Run (Trigger Phrases)
Invoke the Skill Router using natural language:
- decide which skill to use
- use the best skill for this
- route this task automatically
- orchestrate my skills
- figure out the optimal approach
- handle this in the most efficient way
- skill router:
- orchestrator:
✅ Checklist — Step by Step
Step 0 — Task Intake & Normalization
- Capture the raw user request verbatim.
- Normalize into:
- Goal — what success looks like
- Constraints — hard requirements and prohibitions
- Urgency — LOW / MEDIUM / HIGH
- Environment — OS, local vs remote, runtime limits
- Risk profile — LOW / MEDIUM / HIGH / CRITICAL
- Identify required actions:
- read, write, execute, network, credentials
- Detect missing information and mark explicitly.
- Never guess missing data.
Step 1 — Skill Inventory
- Attempt to list installed skills using official platform APIs.
- If unavailable, fall back to:
- Directory scanning
- Skill manifests (skill.json, manifest.json)
- Normalize each skill into:
{
"id": "string",
"name": "string",
"description": "string",
"supported_actions": [],
"required_permissions": [],
"risk_level": "LOW | MEDIUM | HIGH | CRITICAL",
"cost_latency": {
"estimated_ms": 0,
"cost_hint": "FREE | LOW | MED | HIGH"
},
"failure_modes": []
}
If inventory is partial or empty, continue in best-effort / plan-only mode.
Step 2 — Task Classification
Classify into one or more:
Planning / Writing
Coding / DevOps
Filesystem Operations
Security / Auditing
Data / Analysis
Web / Research
Automation
Ideation / Brainstorming
Identify disallowed actions (e.g. “no internet”, “read-only”).
Step 3 — Skill Scoring Model (0–100)
Component Weight
Task Relevance 0–40
Environment Compatibility 0–15
Permission Fit 0–10
Latency & Cost Efficiency 0–10
Risk Alignment 0–15
Historical Success (local) 0–10
Formula
Score = R + E + P + C + A + H
Hard Gates
Disallowed actions → score = 0
CRITICAL risk mismatch → score capped at 25 unless overridden
Step 4 — Strategy Selection
Choose exactly one:
Single-skill execution
Multi-skill pipeline
Clarifying question (max 1–2)
All decisions are justified.
Step 5 — Safety Gates
Risk ≥ HIGH → confirmation required
Filesystem / Network / Credentials → preview required
External APIs → data disclosure + consent
Missing permissions → degrade or abort safely
Step 6 — Execution & Fallback
Execute selected skill(s).
On failure:
Analyze error
Retry with next-best candidate (max 2 attempts)
Never escalate risk without new confirmation.
Step 7 — Reporting & Learning
Generate a structured report.
Optionally store a local-only history record.
Secrets are always redacted.
📊 Output Format (STRICT)
🧠 Skill Router Report
1. Task Analysis <ICON> <STATUS> — <summary>
2. Skill Candidates <ICON> <STATUS> — <top skills + scores>
3. Selection Strategy <ICON> <STATUS> — <chosen approach>
4. Safety Check <ICON> <STATUS> — <confirmation required?>
5. Execution Result <ICON> <STATUS> — <outcome>
6. Fallback Handling <ICON> <STATUS> — <none / attempted>
7. Learning Log <ICON> <STATUS> — <stored / skipped>
Scoreboard:
Primary: XX/100
Alternative: YY/100
Icons:
✅ PASS
⚠️ WARN
❌ FAIL
🛑 CONFIRM
⏭️ SKIP
🔁 Auto-Action Flow
Always display the report first.
If confirmation is required, ask:
Proceed? (yes / no / pick)
yes → execute
no → abort
pick → user selects skills or steps
🧩 Action Recipes
Listing Skills (No API)
Scan directories
Parse manifests
Never infer capabilities
Force a Specific Skill
override router: <skill-id>
Full safety gates still apply
Disable a Skill
Add to local denylist
Excluded from scoring
Dry-Run Mode
Perform Steps 0–5 only
No execution
Verbose Diagnostics
Full scoring breakdown
Inventory source
Redaction log
Reset History
Clears local history only
🧠 Extension Module — Brainstorming Mode (Optional)
Multi-Agent Brainstorming Orchestrator:
Business / Strategy Agent
Market / Execution Agent
Rounds:
Idea generation
Critique & risk
Synthesis
Requires explicit consent before external API usage.
🔒 Safety & Guarantees
No destructive actions without confirmation
No silent data exfiltration
No automatic skill installation
No permission bypass
No hallucinated APIs
🚫 What This Skill Does NOT Do
Does not replace human judgment
Does not train ML models
Does not auto-install dependencies
Does not bypass permissions
📚 Reference & Rationale
Skill Router introduces a deterministic, auditable decision layer for agent skills.
It improves:
Safety
Reliability
User trust
Execution success rates
This is governance for agent skills — done right.
---
# ✅ 2️⃣ RESULTADO
✔️ Cria o arquivo **SKILL.md**
✔️ Encoding **UTF-8**
✔️ 100% compatível com **ClawHub / GitHub / GitLab**
✔️ Visual premium (headings, tabelas, blocos, ícones)
---
## 🔥 Próximo passo (se quiser)
Posso:
- Ajustar para **rating máximo no review ClawHub**
- Gerar `README.md` (marketing)
- Criar `CONTRIBUTING.md`
- Criar checklist de aprovação
- Revisar linguagem para **nível enterprise**
Só mandar 🚀
1---2name: 2-resultado3description: Skill Router operates as a decision and governance layer above all other skills. It inventories available skills, scores them transparently, applies safety gates, and orchestrates the optimal execu...4---5
6# 🧠 Skill Router (Skill Orchestrator)
7**An explainable, deterministic meta-skill that decides _which_ skill to use, _how_ to use it, and _whether_ it is safe — before anything runs.**
8Skill Router operates as a **decision and governance layer above all other skills**.
9It inventories available skills, scores them transparently, applies safety gates, and orchestrates the optimal execution strategy — always with user visibility and control.
10> **No black boxes. No silent execution. No hallucinated APIs.**
11---
12## 🚀 How to Run (Trigger Phrases)
13Invoke the Skill Router using natural language:
14- decide which skill to use
15- use the best skill for this
16- route this task automatically
17- orchestrate my skills
18- figure out the optimal approach
19- handle this in the most efficient way
20- skill router: <task>
21- orchestrator: <task>
22---
23## ✅ Checklist — Step by Step
24### Step 0 — Task Intake & Normalization
25- Capture the raw user request verbatim.
26- Normalize into:
27 - **Goal** — what success looks like
28 - **Constraints** — hard requirements and prohibitions
29 - **Urgency** — LOW / MEDIUM / HIGH
30 - **Environment** — OS, local vs remote, runtime limits
31 - **Risk profile** — LOW / MEDIUM / HIGH / CRITICAL
32- Identify required actions:
33 - read, write, execute, network, credentials
34- Detect missing information and mark explicitly.
35- Never guess missing data.
36---
37### Step 1 — Skill Inventory
38- Attempt to list installed skills using official platform APIs.
39- If unavailable, fall back to:
40 - Directory scanning
41 - Skill manifests (skill.json, manifest.json)
42- Normalize each skill into:
43```json
44{
45 "id": "string",
46 "name": "string",
47 "description": "string",
48 "supported_actions": [],
49 "required_permissions": [],
50 "risk_level": "LOW | MEDIUM | HIGH | CRITICAL",
51 "cost_latency": {
52 "estimated_ms": 0,
53 "cost_hint": "FREE | LOW | MED | HIGH"
54 },
55 "failure_modes": []
56}
57If inventory is partial or empty, continue in best-effort / plan-only mode.
58Step 2 — Task Classification
59Classify into one or more:
60Planning / Writing
61Coding / DevOps
62Filesystem Operations
63Security / Auditing
64Data / Analysis
65Web / Research
66Automation
67Ideation / Brainstorming
68Identify disallowed actions (e.g. “no internet”, “read-only”).
69Step 3 — Skill Scoring Model (0–100)
70Component Weight
71Task Relevance 0–40
72Environment Compatibility 0–15
73Permission Fit 0–10
74Latency & Cost Efficiency 0–10
75Risk Alignment 0–15
76Historical Success (local) 0–10
77Formula
78Score = R + E + P + C + A + H
79Hard Gates
80Disallowed actions → score = 0
81CRITICAL risk mismatch → score capped at 25 unless overridden
82Step 4 — Strategy Selection
83Choose exactly one:
84Single-skill execution
85Multi-skill pipeline
86Clarifying question (max 1–2)
87All decisions are justified.
88Step 5 — Safety Gates
89Risk ≥ HIGH → confirmation required
90Filesystem / Network / Credentials → preview required
91External APIs → data disclosure + consent
92Missing permissions → degrade or abort safely
93Step 6 — Execution & Fallback
94Execute selected skill(s).
95On failure:
96Analyze error
97Retry with next-best candidate (max 2 attempts)
98Never escalate risk without new confirmation.
99Step 7 — Reporting & Learning
100Generate a structured report.
101Optionally store a local-only history record.
102Secrets are always redacted.
103📊 Output Format (STRICT)
104🧠 Skill Router Report
1051. Task Analysis <ICON> <STATUS> — <summary>
1062. Skill Candidates <ICON> <STATUS> — <top skills + scores>
1073. Selection Strategy <ICON> <STATUS> — <chosen approach>
1084. Safety Check <ICON> <STATUS> — <confirmation required?>
1095. Execution Result <ICON> <STATUS> — <outcome>
1106. Fallback Handling <ICON> <STATUS> — <none / attempted>
1117. Learning Log <ICON> <STATUS> — <stored / skipped>
112Scoreboard:
113Primary: XX/100
114Alternative: YY/100
115Icons:
116✅ PASS
117⚠️ WARN
118❌ FAIL
119🛑 CONFIRM
120⏭️ SKIP
121🔁 Auto-Action Flow
122Always display the report first.
123If confirmation is required, ask:
124Proceed? (yes / no / pick)
125yes → execute
126no → abort
127pick → user selects skills or steps
128🧩 Action Recipes
129Listing Skills (No API)
130Scan directories
131Parse manifests
132Never infer capabilities
133Force a Specific Skill
134override router: <skill-id>
135Full safety gates still apply
136Disable a Skill
137Add to local denylist
138Excluded from scoring
139Dry-Run Mode
140Perform Steps 0–5 only
141No execution
142Verbose Diagnostics
143Full scoring breakdown
144Inventory source
145Redaction log
146Reset History
147Clears local history only
148🧠 Extension Module — Brainstorming Mode (Optional)
149Multi-Agent Brainstorming Orchestrator:
150Business / Strategy Agent
151Market / Execution Agent
152Rounds:
153Idea generation
154Critique & risk
155Synthesis
156Requires explicit consent before external API usage.
157🔒 Safety & Guarantees
158No destructive actions without confirmation
159No silent data exfiltration
160No automatic skill installation
161No permission bypass
162No hallucinated APIs
163🚫 What This Skill Does NOT Do
164Does not replace human judgment
165Does not train ML models
166Does not auto-install dependencies
167Does not bypass permissions
168📚 Reference & Rationale
169Skill Router introduces a deterministic, auditable decision layer for agent skills.
170It improves:
171Safety
172Reliability
173User trust
174Execution success rates
175This is governance for agent skills — done right.
176---
177# ✅ 2️⃣ RESULTADO
178✔️ Cria o arquivo **SKILL.md**
179✔️ Encoding **UTF-8**
180✔️ 100% compatível com **ClawHub / GitHub / GitLab**
181✔️ Visual premium (headings, tabelas, blocos, ícones)
182---
183## 🔥 Próximo passo (se quiser)
184Posso:
185- Ajustar para **rating máximo no review ClawHub**
186- Gerar `README.md` (marketing)
187- Criar `CONTRIBUTING.md`
188- Criar checklist de aprovação
189- Revisar linguagem para **nível enterprise**
190Só mandar 🚀