Activate Skills Router (Auto-Execute)
Use this skill when the user invokes /activate-skills <task> or @activate-skills "<task>".
Goal: route the task to the best skills and continue execution automatically without asking the user to copy/paste the /skill line.
Steps
- •
Locate the optimizer
- •Prefer
ANTIGRAVITY_OPTIMIZER_ROOTif set. - •Otherwise use the current repo root if it contains
activate-skills.ps1/activate-skills.cmd. - •If not found, ask the user to run
.\setup.ps1in the optimizer repo.
- •Prefer
- •
Run the router
- •Windows (PowerShell):
- •
<optimizer-root>\activate-skills.ps1 <task>
- •
- •Windows (CMD):
- •
<optimizer-root>\activate-skills.cmd <task>
- •
- •Linux/macOS:
- •
<optimizer-root>/activate-skills.sh <task>
- •
- •Windows (PowerShell):
- •
Parse output
- •First line contains skills:
/skill-a /skill-b ... - •Second line is the task text.
- •Extract skill IDs by stripping the leading
/.
- •First line contains skills:
- •
Load skills
- •Read each
SKILL.mdfrom:- •
~/.codex/skills/<skill-id>/SKILL.md(Codex CLI) - •or
<optimizer-root>/.agent/skills/skills/<skill-id>/SKILL.md(Antigravity IDE)
- •
- •Read only what you need (first 300-500 lines).
- •Read each
- •
Apply guardrails
- •Cap to 3–5 skills.
- •Avoid heavy skills like
loki-modeunless explicitly requested. - •Prefer domain-specific skills over generic ones.
- •
Execute the task
- •Apply the loaded skill instructions to complete the user’s task.
- •If a skill clearly does not fit, skip it and continue.
- •
Report
- •Mention which skills were used:
- •
[OK] Task completed using: skill-a, skill-b
- •
- •Mention which skills were used:
Important
- •Do not return only the
/skillline unless the user explicitly asked for routing output only. - •Do not ask the user to copy/paste the router output back to you.
- •If routing fails, explain the error briefly and suggest running the router command manually.