pub fn build_config_files(
content_map: &HashMap<String, String>,
skills: &[AgentSkill],
agent_name: &str,
agent_id: &str,
) -> Vec<AgentConfigFile>Expand description
Build the list of config files to write to the agent working directory.
Assembles CLAUDE.md from soul + agentmd + memory + skills index,
writes each skill as a slash command under .claude/commands/<trigger>.md,
writes .claude/hooks.json if a hooks content entry is present,
auto-injects the AgentMux MCP server entry, and applies {{VARIABLE}}
template substitution throughout.
Mirrors buildConfigFiles() in frontend/app/view/agent/agent-model.ts.