Agent Skill
2/7/2026

spawn-agent

Delegate tasks to Gemini sub-agents with intelligent BM25 search for optimal agent-skill combinations. Supports intent/domain/complexity detection and synonym expansion.

T
trongdepzai
2GitHub Stars
1Views
npx skills add Trongdepzai-dev/Xorium-Stealer-Pulsar

SKILL.md

Namespawn-agent
DescriptionDelegate tasks to Gemini sub-agents with intelligent BM25 search for optimal agent-skill combinations. Supports intent/domain/complexity detection and synonym expansion.

name: spawn-agent description: Delegate tasks to Gemini sub-agents with intelligent BM25 search for optimal agent-skill combinations. Supports intent/domain/complexity detection and synonym expansion. license: MIT version: 2.0.0-mvp

Spawn Gemini Agents

Delegate tasks to specialized Gemini sub-agents with intelligent search for optimal agent-skill combinations.

+------------------+
|  Gemini (You)    |  Main coordinator
+--------+---------+
         | gk agent spawn
    +----+----+----+
    v    v    v    v
  [Gemini Sub-Agents]

Quick Start

# Search for best agent-skill combination
gk agent search "implement stripe payment integration"

# Spawn with recommended combination
gk agent spawn -a code-executor -s "payment-integration,backend-development" -p "Implement Stripe checkout"

CLI Commands

Search for Optimal Combination

gk agent search "<task description>"

Returns ranked results with:

  • Agent: Best agent for the task
  • Skills: Optimal skill combination
  • Score: BM25 relevance score
  • Suggested command: Ready-to-use spawn command

Spawn Agent

gk agent spawn [options]
OptionShortDescription
--prompt-pTask for sub-agent (required)
--agent-aAgent profile name
--skills-sComma-separated skills
--model-mModel override
--musicEnable elevator music
--no-musicDisable elevator music

List Agents

gk agent list

Agent Info

gk agent info <agent-name>

Search Engine

The search uses BM25 algorithm with:

Intent Detection

Automatically detects task intent from keywords:

IntentKeywordsAgent
researchresearch, investigate, explore, analyzeresearcher
planplan, design, architecture, roadmapplanner
executeimplement, build, create, addcode-executor
debugdebug, fix, troubleshoot, errordebugger
reviewreview, audit, assesscode-reviewer
testtest, verify, validatetester
designbeautiful, stunning, ui designui-ux-designer
docsdocument, write docsdocs-manager
gitcommit, push, merge, branchgit-manager

Domain Detection

Identifies technology domain:

DomainKeywords
frontendreact, vue, tailwind, component
backendapi, endpoint, server, middleware
authlogin, oauth, authentication, jwt
paymentstripe, checkout, billing, subscription
databaseprisma, postgresql, query, migration
mobilereact native, flutter, ios, android
fullstacknext.js, nuxt, sveltekit
ecommerceshopify, cart, checkout
aillm, openai, chatbot, embedding
mediaimage, video, upload, ocr

Complexity Detection

Determines skill count based on keywords:

ComplexityKeywordsMax Skills
simplequick, simple, basic1
standard(default)2
fullcomprehensive, complete, thorough3
complexenterprise, advanced, sophisticated5

Synonym Expansion

Query terms are expanded using synonyms for better matching:

  • "build" -> build, create, implement, develop
  • "fix" -> fix, debug, repair, troubleshoot
  • "check" -> check, review, audit, verify

Examples

Research Tasks

# Simple research
gk agent spawn -a researcher -s research -p "Research JWT best practices"

# Deep codebase analysis
gk agent spawn -a researcher -s "repomix,research" -p "Analyze project architecture"

# Backend research
gk agent spawn -a researcher -s "research,backend-development" -p "Research API design patterns"

Implementation Tasks

# Backend API
gk agent spawn -a code-executor -s backend-development -p "Implement user registration API"

# Payment integration
gk agent spawn -a code-executor -s "payment-integration,backend-development" -p "Implement Stripe checkout"

# Beautiful UI
gk agent spawn -a code-executor -s "frontend-design,ui-ux-pro-max" -p "Create stunning pricing page"

# Fullstack auth
gk agent spawn -a code-executor -s "backend-development,better-auth,web-frameworks" -p "Implement OAuth login"

Debugging Tasks

# General debugging
gk agent spawn -a debugger -s debugging -p "Fix login error"

# Database issues
gk agent spawn -a debugger -s "debugging,databases" -p "Debug slow query performance"

# Next.js errors
gk agent spawn -a debugger -s "debugging,web-frameworks" -p "Fix hydration mismatch error"

Design Tasks

# UI design
gk agent spawn -a ui-ux-designer -s "ui-ux-pro-max,frontend-design" -p "Design user dashboard"

# Mobile design
gk agent spawn -a ui-ux-designer -s "mobile-development,ui-ux-pro-max" -p "Design mobile app navigation"

Available Agents

AgentPurposeDefault Skills
researcherResearch, investigation, analysisresearch
plannerArchitecture, planning, roadmapsplanning
code-executorImplementation, developmentvaries by domain
debuggerBug fixing, troubleshootingdebugging
testerTesting, validationtesting
code-reviewerCode review, security auditcode-review
ui-ux-designerUI/UX designfrontend-design
docs-managerDocumentationplanning
git-managerGit operationsplanning

Data Files

Search data stored in .gemini/extensions/spawn-agent/data/:

FilePurpose
combinations.csvAgent-skill combinations with keywords
intents.csvIntent keywords and mappings
domains.csvDomain keywords and skills
synonyms.csvQuery expansion synonyms

Elevator Music

Enable for long-running tasks:

# Enable for single spawn
gk agent spawn -a researcher -p "Deep research task" --music

# Configure default
gk config set spawn.music true

Configuration

In .gemini/.gk.json:

{
  "spawn": {
    "defaultModel": "gemini-2.5-flash",
    "music": false,
    "musicFile": null
  }
}

References

  • ./references/agent-skill-combinations.md - Full combination guide
  • ./data/combinations.csv - Searchable combinations database
Skills Info
Original Name:spawn-agentAuthor:trongdepzai