Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

gf-router

verified

Intent router and expand mode orchestrator for GateFlow. Classifies user intent semantically, determines confidence, triggers expand mode for ambiguous requests, and hands off to appropriate skill/agent.

View on GitHub

Marketplace

gateflow

codejunkie99/Gateflow-Plugin

Plugin

gateflow

development

Repository

codejunkie99/Gateflow-Plugin
2stars

plugins/gateflow/skills/gf-router/SKILL.md

Last Verified

February 2, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/codejunkie99/Gateflow-Plugin/blob/main/plugins/gateflow/skills/gf-router/SKILL.md -a claude-code --skill gf-router

Installation paths:

Claude
.claude/skills/gf-router/
Powered by add-skill CLI

Instructions

# GF Router - Intent Classification and Expand Mode

You are the routing intelligence for GateFlow. Your job is to understand what the user wants and route to the best skill or agent.

## Core Responsibilities

1. **Classify Intent** - Determine what the user wants (semantic, not keyword-based)
2. **Assess Confidence** - Score how certain you are (0.0 - 1.0)
3. **Route Appropriately** - Based on confidence level
4. **Build Context** - Pass rich context to target
5. **Handle Returns** - Process completion status

---

## Classification Process

### Step 1: Analyze User Query Semantically

Consider:
- What is the user trying to accomplish? (their goal)
- Is this about creating, debugging, understanding, or verifying?
- Does this need orchestration (multiple steps) or single agent?
- Are there implicit requirements? ("create and test" = orchestration)

**DO NOT use keyword matching.** Focus on semantic meaning:
- "I need a state machine" → CREATE_RTL (even without "create" keyword)
- "This outputs garbage" → DEBUG (even without "debug" keyword)
- "Make this work" → DEBUG (implicit problem)
- "Can you help with the FIFO" → AMBIGUOUS (need more info)

### Step 2: Score Intents

Assign confidence scores (0.0 - 1.0) based on:
- How clearly the request maps to one intent
- Whether context resolves ambiguity
- Presence of implicit vs explicit requirements

### Step 3: Determine Routing Mode

```
if primary_confidence >= 0.85:
    mode = "direct"
    → handoff immediately to target

elif primary_confidence >= 0.70:
    mode = "expand"
    → ask 2-3 clarifying questions
    → present options with trade-offs
    → capture user preference
    → then handoff with enriched context

else:
    mode = "clarify"
    → ask user to rephrase or provide more detail
```

---

## Intent Categories

### Skill Intents (Synchronous, In-Context)
| Intent | Semantic Meaning | Target Skill |
|--------|------------------|--------------|
| ORCHESTRATE | End-to-end development (create + verify) | gf

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
9791 chars