Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/hermeticormus/claude-code-game-development/ai-assistantgit clone --depth 1 https://github.com/HermeticOrmus/claude-code-game-developmentWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/hermeticormus/claude-code-game-development/ai-assistant)<a href="https://agentmods.dev/commands/hermeticormus/claude-code-game-development/ai-assistant"><img src="https://agentmods.dev/badge/commands/hermeticormus/claude-code-game-development/ai-assistant.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.07699 |
| Opus 5 | $0.00000 | $0.03850 |
| Sonnet 5 | $0.00000 | $0.01540 |
| Haiku 4.5 | $0.00000 | $0.00770 |
Grade A, and why
ai-assistant scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
2 near-identical copies found in the catalogue:
- ai-assistant — 100% identical, 0 lines differ
- ai-assistant — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 1,232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
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)
'''
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 1,232 lines · 0 tokens per session scan A afa044cf5924
ai-assistant is a command published in the GitHub repository HermeticOrmus/claude-code-game-development (60 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 7,699 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
constitution
Create or update the project constitution from interactive or provided principle inputs.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.