agent-based-simulator
Agent-based modeling skill for simulating complex adaptive systems with heterogeneous interacting agents
What this skill does
# Agent-Based Simulator
## Overview
The Agent-Based Simulator skill provides capabilities for modeling complex adaptive systems through the simulation of heterogeneous, interacting agents. It enables bottom-up understanding of emergent market behaviors, customer dynamics, and competitive interactions for strategic decision support.
## Capabilities
- Agent definition and behavior modeling
- Environment and spatial modeling
- Interaction rules specification
- Emergent behavior observation
- Parameter sweeping
- Ensemble simulation runs
- Visualization and animation
- Statistical analysis of outcomes
## Used By Processes
- War Gaming and Competitive Response Modeling
- Market Sizing and Opportunity Assessment
- Customer Segmentation Analysis
## Usage
### Agent Definition
```python
# Define customer agent
customer_agent = {
"type": "Customer",
"attributes": {
"budget": {"distribution": "normal", "mean": 1000, "std": 200},
"brand_loyalty": {"distribution": "uniform", "min": 0, "max": 1},
"price_sensitivity": {"distribution": "beta", "alpha": 2, "beta": 5},
"preferred_features": ["list of features"]
},
"behaviors": {
"purchase_decision": {
"triggers": ["need_arises", "promotion_seen"],
"evaluation": "weighted_utility",
"factors": ["price", "quality", "brand_match"]
},
"word_of_mouth": {
"probability": 0.3,
"reach": {"distribution": "poisson", "lambda": 5},
"sentiment_spread": True
},
"brand_switching": {
"threshold": 0.7,
"factors": ["satisfaction", "competitor_promotion"]
}
}
}
```
### Environment Definition
```python
# Define market environment
environment = {
"topology": "network", # or "grid", "continuous"
"network_type": "small_world",
"network_params": {"k": 6, "p": 0.1},
"global_properties": {
"economic_condition": {"initial": "normal", "transitions": "markov"},
"market_size": 10000,
"growth_rate": 0.02
}
}
```
### Interaction Rules
```python
# Define interaction rules
interactions = {
"customer_customer": {
"information_sharing": {
"probability": "based_on_relationship",
"content": ["product_experience", "price_info"]
},
"social_influence": {
"mechanism": "threshold_model",
"threshold_distribution": "normal"
}
},
"customer_company": {
"purchase": {
"frequency": "need_based",
"channel": ["online", "physical", "hybrid"]
},
"complaint": {
"trigger": "satisfaction < 0.3",
"resolution_impact": 0.5
}
},
"company_company": {
"price_competition": "cournot|bertrand|stackelberg",
"market_signaling": True
}
}
```
### Simulation Configuration
```python
# Simulation settings
simulation_config = {
"time_steps": 365,
"agents": {
"Customer": 5000,
"Company": 3
},
"ensemble_runs": 100,
"parameter_sweep": {
"price_sensitivity_mean": [0.3, 0.5, 0.7],
"word_of_mouth_probability": [0.1, 0.3, 0.5]
},
"data_collection": {
"agent_level": ["satisfaction", "brand_choice"],
"model_level": ["market_shares", "total_revenue", "gini_coefficient"]
}
}
```
## Input Schema
```json
{
"agents": {
"agent_type": {
"count": "number",
"attributes": "object",
"behaviors": "object"
}
},
"environment": {
"topology": "string",
"properties": "object"
},
"interactions": "object",
"simulation_config": {
"time_steps": "number",
"ensemble_runs": "number",
"parameter_sweep": "object",
"random_seed": "number"
}
}
```
## Output Schema
```json
{
"summary_statistics": {
"metric_name": {
"mean": "number",
"std": "number",
"percentiles": "object",
"time_series": ["number"]
}
},
"emergent_patterns": [
{
"pattern": "string",
"frequency": "number",
"conditions": "object"
}
],
"parameter_sweep_results": {
"parameter_combination": {
"outcomes": "object"
}
},
"agent_trajectories": "object (sample)",
"network_metrics": {
"clustering_coefficient": "number",
"average_path_length": "number",
"degree_distribution": "object"
},
"visualization_paths": ["string"]
}
```
## Best Practices
1. Start with simple agents and add complexity incrementally
2. Validate agent behaviors against real-world observations
3. Use ensemble runs to account for stochastic variability
4. Perform sensitivity analysis on key parameters
5. Document all behavioral rules and their justification
6. Test for emergent behaviors under extreme conditions
7. Compare results with aggregate-level data when available
## Use Cases
| Use Case | Agent Types | Key Behaviors |
|----------|------------|---------------|
| Market Dynamics | Customers, Firms | Purchasing, Pricing |
| Innovation Diffusion | Adopters, Influencers | Adoption, Communication |
| Supply Chain | Suppliers, Distributors, Retailers | Ordering, Inventory |
| Opinion Formation | Citizens, Media | Influence, Information spread |
## Integration Points
- Connects with System Dynamics Modeler for hybrid approaches
- Feeds into War Game Orchestrator for competitive scenarios
- Supports Scenario Narrative Generator for storyline creation
- Integrates with Monte Carlo Engine for uncertainty propagation
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.