longhang2004/antigravity-reliability-skills/session-router
Claude Code and agent skill by longhang2004/antigravity-reliability-skills
- community
Checking that the SKILL.md file is still in the repository.
Evaluates incoming user requests and codebase context to categorize task type (coding, debugging, research, review, long-running), compute risk level (low to critical), and dynamically select the minimum necessary reliability skills.
Install
npx vskill@latest install longhang2004/antigravity-reliability-skills/session-routerSKILL.md
Purpose
The session-router skill acts as the entry-point traffic controller for Gemini sessions in Antigravity. It inspects context, categorizes the incoming task, calculates the risk level, and dynamically selects required reliability skills without polluting context with unnecessary prompt rules.
When to use
- At the start of any new session or workflow.
- When a user prompt introduces a significant shift in task scope or requirements.
When not to use
- During mid-stream atomic tool executions within an already classified task phase.
Inputs
- User prompt text.
- Workspace file tree state (
list_dir,git status). - Active open editor files and cursor position metadata.
Workflow
- Context Inspection: Survey directory structure and Git status cleanly.
- Task Categorization: Classify task into
coding,debugging,research,review,long-running, ormixed. - Risk Tiering:
low: Read-only queries, research, documentation lookup.medium: Single-file bug fix, localized unit test creation.high: Multi-file refactor, dependency upgrade, schema change.critical: Mass file deletion, security patch, production deployment.
- Skill Selection: Select minimal set of active P0 skills (
grounding-first,plan-before-change,bounded-edit-executor,verify-before-answer). - Decision Record Emission: Emit a concise Decision Record summary.
Decision Points
- Is the request read-only research? -> Activate
grounding-first. Deactivate write executors. - Does the request modify code across multiple files? -> Activate
plan-before-change,bounded-edit-executor, andverify-before-answer. - Is the task high risk? -> Enforce explicit plan approval before executing any file edits.
Safety Constraints
- MUST NOT ask the user to clarify information already present in the workspace context.
- MUST NOT default to loading all skills for simple read-only queries.
Expected Outputs
Failure Handling
- If workspace context is ambiguous, inspect
.gitorREADME.mdto infer project type. - Default to
grounding-firstandplan-before-changeif risk level cannot be computed.
Verification
- Validate Decision Record schema against
catalog/skills-index.json.
Examples
Positive Example 1: Read-Only Research
User Prompt: "How does authentication work in this repo?" Agent Action:
Positive Example 2: Multi-File Feature Request
User Prompt: "Add JWT validation to API endpoints in src/api/" Agent Action:
Negative / Adversarial Example 1: Loading All Skills Unnecessarily
User Prompt: "What line is main() on in app.py?" Bad Agent Behavior: Loading full multi-file planning and write-executor pipelines, wasting context tokens. Correct Behavior: Classify as research (risk low), activate only grounding-first.
Negative / Adversarial Example 2: Asking Repeated Questions
User Prompt: "Fix the typo in README.md" Bad Agent Behavior: Asking user "Which repository is this? What framework are you using?" Correct Behavior: Inspect workspace directly using tools, emit Decision Record, execute fix.
Self-Checklist
- [ ] Task type correctly identified?
- [ ] Risk level assigned accurately?
- [ ] Decision record emitted before action?
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/session-router/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/longhang2004/antigravity-reliability-skills/session-router)