#!/usr/bin/env bun import * as fs from "fs"; import * as path from "path"; import * as os from "os"; import minimist from "minimist"; import { generateAgentsWithAI } from "./ai-generation"; import { TEMPLATES } from "./templates"; import type { AgentData, AgentJsonData, AgentTemplate } from "./types"; // Parse command line arguments const args = minimist(process.argv.slice(2), { string: ["slug", "description", "tools", "model", "template", "prompt", "data", "generate"], boolean: ["global", "skip-sync", "skip-index", "list-templates", "help", "dry-run"], default: { model: "inherit", global: false, "skip-sync": false, "skip-index": false, "dry-run": false, }, alias: { s: "slug", d: "description", t: "tools", m: "model", g: "global", p: "prompt", h: "help", "no-sync": "skip-sync", "no-index": "skip-index", }, }); // Show help if (args.help) { console.log(` Implementation Agent - Create Claude Code agent definitions Usage: skills run implementation-agent -- "" [options] skills run implementation-agent -- --template