/ai-assistant
Build AI assistant application with NLU, dialog management, and integrations
$ npx -y skills add wshobson/agents --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/ai-assistant
Context preview
What this command does when you run it.
Build AI assistant application with NLU, dialog management, and integrations
Command definition
ai-assistant.mddescription: "Build AI assistant application with NLU, dialog management, and integrations"
argument-hint: "<assistant-type> [options]"
AI Assistant Development
You are an AI assistant development expert specializing in creating intelligent conversational interfaces, chatbots, and AI-powered applications. Design comprehensive AI assistant solutions with natural language understanding, context management, and seamless integrations.
Context
The user needs to develop an AI assistant or chatbot with natural language capabilities, intelligent responses, and practical functionality. Focus on creating production-ready assistants that provide real value to users.
Requirements
$ARGUMENTS
Instructions
1. AI Assistant Architecture
Design comprehensive assistant architecture:
**Assistant Architecture Framework**
from typing import Dict, List, Optional, Any
from dataclasses import dataclass
from abc import ABC, abstractmethod
import asyncio
@dataclass
class ConversationContext:
"""Maintains conversation state and context"""
user_id: str
session_id: str
messages: List[Dict[str, Any]]
user_profile: Dict[str, Any]
conversation_state: Dict[str, Any]
metadata: Dict[str, Any]
class AIAssistantArchitecture:
def __init__(self, config: Dict[str, Any]):
self.config = config
self.components = self._initialize_components()
def design_architecture(self):
"""Design comprehensive AI assistant architecture"""
return {
'core_components': {
'nlu': self._design_nlu_component(),
'dialog_manager': self._design_dialog_manager(),
'response_generator': self._design_response_generator(),
'context_manager': self._design_context_manager(),
'integration_layer': self._design_integration_layer()
},
'data_flow': self._design_data_flow(),
'deployment': self._design_deployment_architecture(),
'scalability': self._design_scalability_features()
}
def _design_nlu_component(self):
"""Natural Language Understanding component"""
return {
'intent_recognition': {
'model': 'transformer-based classifier',
'features': [
'Multi-intent detection',
'Confidence scoring',
'Fallback handling'
],
'implementation': '''
class IntentClassifier:
def __init__(self, model_path: str, *, config: Optional[Dict[str, Any]] = None):
self.model = self.load_model(model_path)
self.intents = self.load_intent_schema()
default_config = {"threshold": 0.65}
self.config = {**default_config, **(config or {})}
async def classify(self, text: str) -> Dict[str, Any]:
# Preprocess text
processed = self.preprocess(text)
# Get model predictions
predictions = await self.model.predict(processed)
# Extract intents with confidence
intents = []
for intent, confidence in predictions:
if confidence > self.config['threshold']:
intents.append({
'name': intent,
'confidence': confidence,
'parameters': self.extract_parameters(text, intent)
})
return {
'intents': intents,
'primary_intent': intents[0] if intents else None,
'requires_clarification': len(intents) > 1
}
'''
},
'entity_extraction': {
'model': 'NER with custom entities',
'features': [
'Domain-specific entities',
'Contextual extraction',
'Entity resolution'
]
},
'sentiment_analysis': {
'model': 'Fine-tuned sentiment classifier',
'features': [
'Emotion detection',
'Urgency classification',
'User satisfaction tracking'
]
}
}
def _design_dialog_manager(self):
"""Dialog management system"""
return '''
class DialogManager:
"""Manages conversation flow and state"""
def __init__(self):
self.state_machine = ConversationStateMachine()
self.policy_network = DialogPolicy()
async def process_turn(self,
context: ConversationContext,
nlu_result: Dict[str, Any]) -> Dict[str, Any]:
# Determine current state
current_state = self.state_machine.get_state(context)
# Apply dialog policy
action = await self.policy_network.select_action(
current_state,
nlu_result,
context
)
# Execute action
result = await self.execute_action(action, context)
# Update state
new_state = self.state_machine.transition(
current_state,
action,
result
)
return {
'action': action,
'new_state': new_state,
'response_data': result
}
async def execute_action(self, action: str, context: ConversationContext):
"""Execute dialog action"""
action_handlers = {
'greet': self.handle_greeting,
'provide_info': self.handle_information_request,
'clarify': self.handle_clarification,
'confirm': self.handle_confirmation,
'execute_task': self.handle_task_execution,
'end_conversation': self.handle_conversation_end
}
handler = action_handlers.get(action, self.handle_unknown)
return await handler(context)
'''2. Natural Language Processing
Implement advanced NLP capabilities:
**NLP Pipeline Implementation**
class NLPP
Read more
description: "Build AI assistant application with NLU, dialog management, and integrations" argument-hint: "<assistant-type> [options]"
AI Assistant Development
You are an AI assistant development expert specializing in creating intelligent conversational interfaces, chatbots, and AI-powered applications. Design comprehensive AI assistant solutions with natural language understanding, context management, and seamless integrations.
Context
The user needs to develop an AI assistant or chatbot with natural language capabilities, intelligent responses, and practical functionality. Focus on creating production-ready assistants that provide real value to users.
Requirements
$ARGUMENTS
Instructions
1. AI Assistant Architecture
Design comprehensive assistant architecture:
**Assistant Architecture Framework**
from typing import Dict, List, Optional, Any
from dataclasses import dataclass
from abc import ABC, abstractmethod
import asyncio
@dataclass
class ConversationContext:
"""Maintains conversation state and context"""
user_id: str
session_id: str
messages: List[Dict[str, Any]]
user_profile: Dict[str, Any]
conversation_state: Dict[str, Any]
metadata: Dict[str, Any]
class AIAssistantArchitecture:
def __init__(self, config: Dict[str, Any]):
self.config = config
self.components = self._initialize_components()
def design_architecture(self):
"""Design comprehensive AI assistant architecture"""
return {
'core_components': {
'nlu': self._design_nlu_component(),
'dialog_manager': self._design_dialog_manager(),
'response_generator': self._design_response_generator(),
'context_manager': self._design_context_manager(),
'integration_layer': self._design_integration_layer()
},
'data_flow': self._design_data_flow(),
'deployment': self._design_deployment_architecture(),
'scalability': self._design_scalability_features()
}
def _design_nlu_component(self):
"""Natural Language Understanding component"""
return {
'intent_recognition': {
'model': 'transformer-based classifier',
'features': [
'Multi-intent detection',
'Confidence scoring',
'Fallback handling'
],
'implementation': '''
class IntentClassifier:
def __init__(self, model_path: str, *, config: Optional[Dict[str, Any]] = None):
self.model = self.load_model(model_path)
self.intents = self.load_intent_schema()
default_config = {"threshold": 0.65}
self.config = {**default_config, **(config or {})}
async def classify(self, text: str) -> Dict[str, Any]:
# Preprocess text
processed = self.preprocess(text)
# Get model predictions
predictions = await self.model.predict(processed)
# Extract intents with confidence
intents = []
for intent, confidence in predictions:
if confidence > self.config['threshold']:
intents.append({
'name': intent,
'confidence': confidence,
'parameters': self.extract_parameters(text, intent)
})
return {
'intents': intents,
'primary_intent': intents[0] if intents else None,
'requires_clarification': len(intents) > 1
}
'''
},
'entity_extraction': {
'model': 'NER with custom entities',
'features': [
'Domain-specific entities',
'Contextual extraction',
'Entity resolution'
]
},
'sentiment_analysis': {
'model': 'Fine-tuned sentiment classifier',
'features': [
'Emotion detection',
'Urgency classification',
'User satisfaction tracking'
]
}
}
def _design_dialog_manager(self):
"""Dialog management system"""
return '''
class DialogManager:
"""Manages conversation flow and state"""
def __init__(self):
self.state_machine = ConversationStateMachine()
self.policy_network = DialogPolicy()
async def process_turn(self,
context: ConversationContext,
nlu_result: Dict[str, Any]) -> Dict[str, Any]:
# Determine current state
current_state = self.state_machine.get_state(context)
# Apply dialog policy
action = await self.policy_network.select_action(
current_state,
nlu_result,
context
)
# Execute action
result = await self.execute_action(action, context)
# Update state
new_state = self.state_machine.transition(
current_state,
action,
result
)
return {
'action': action,
'new_state': new_state,
'response_data': result
}
async def execute_action(self, action: str, context: ConversationContext):
"""Execute dialog action"""
action_handlers = {
'greet': self.handle_greeting,
'provide_info': self.handle_information_request,
'clarify': self.handle_clarification,
'confirm': self.handle_confirmation,
'execute_task': self.handle_task_execution,
'end_conversation': self.handle_conversation_end
}
handler = action_handlers.get(action, self.handle_unknown)
return await handler(context)
'''2. Natural Language Processing
Implement advanced NLP capabilities:
**NLP Pipeline Implementation**
class NLPP
Production-ready agentic workflow building blocks: 94 plugins, 203 agents, 175 skills, 109 commands — built for Claude Code and consumed natively by OpenAI Codex CLI, Cursor, OpenCode, Gemini CLI, and GitHub Copilot from a single Markdown source.
Repo: wshobson/agents
Other commands on wshobson-agents.
- /accessibility-audit
You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct comprehensive audits, identify barriers, provide remediation guidance, and ensure digital products are accessible to all users.
Open command - /improve-agent
Systematic improvement of existing agents through performance analysis, prompt engineering, and continuous iteration.
Open command - /multi-agent-optimize
The Multi-Agent Optimization Tool is an advanced AI-driven framework designed to holistically improve system performance through intelligent, coordinated agent-based optimization. Leveraging cutting-edge AI orchestration techniques, this tool provides a comprehensive approach to
Open command - /team-debug
Debug issues using competing hypotheses with parallel investigation by multiple agents
Open command - /team-delegate
Task delegation dashboard for managing team workload, assignments, and rebalancing
Open command - /team-feature
Develop features in parallel with multiple agents using file ownership boundaries and dependency management
Open command

