{"modulePath":"github.com/jorelcb/codify","version":"v1.19.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Types\n\n```go\ntype DeliverHooksCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nDeliverHooksCommand copies a Claude Code hook bundle (hooks.json + scripts) from the embedded catalog to the user's filesystem.\n\nThis command is static-only: there is no LLM-personalized variant of hooks. The output is a standalone bundle the user merges manually into their settings.json — codify does not auto-activate the hooks.\n\n```go\nfunc NewDeliverHooksCommand(\n\tfileWriter service.FileWriter,\n\tdirectoryManager service.DirectoryManager,\n\ttemplatesFS embed.FS,\n) *DeliverHooksCommand\n```\nNewDeliverHooksCommand creates a new DeliverHooksCommand.\n\n```go\nfunc (c *DeliverHooksCommand) Execute(config *dto.HookConfig) (*dto.GenerationResult, error)\n```\nExecute writes hooks.json and the auxiliary scripts to config.OutputPath.\n\nOutput layout:\n\n\t{OutputPath}/\n\t├── hooks.json     ← block to merge into settings.json\n\t└── hooks/\n\t    └── *.sh       ← scripts referenced by hooks.json\n\nFor preset == \"all\", the three preset directories are merged: hooks.json objects are unioned per event (PreToolUse, PostToolUse), and every script is copied into hooks/.\n\n```go\ntype DeliverStaticSkillsCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nDeliverStaticSkillsCommand entrega skills estáticos desde el catálogo embebido sin LLM.\n\n```go\nfunc NewDeliverStaticSkillsCommand(\n\tfileWriter service.FileWriter,\n\tdirectoryManager service.DirectoryManager,\n) *DeliverStaticSkillsCommand\n```\nNewDeliverStaticSkillsCommand crea un nuevo comando de entrega estática.\n\n```go\nfunc (c *DeliverStaticSkillsCommand) Execute(\n\tconfig *dto.SkillsConfig,\n\ttemplateGuides []service.TemplateGuide,\n) (*dto.GenerationResult, error)\n```\nExecute entrega skills estáticos: lee templates embebidos, agrega frontmatter, escribe SKILL.md.\n\n```go\ntype DeliverStaticWorkflowsCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nDeliverStaticWorkflowsCommand delivers static workflows from the embedded catalog.\n\n```go\nfunc NewDeliverStaticWorkflowsCommand(\n\tfileWriter service.FileWriter,\n\tdirectoryManager service.DirectoryManager,\n) *DeliverStaticWorkflowsCommand\n```\nNewDeliverStaticWorkflowsCommand creates a new static workflow delivery command.\n\n```go\nfunc (c *DeliverStaticWorkflowsCommand) Execute(\n\tconfig *dto.WorkflowConfig,\n\ttemplateGuides []service.TemplateGuide,\n) (*dto.GenerationResult, error)\n```\nExecute delivers static workflows: reads embedded templates, adds frontmatter, writes flat .md files.\n\n```go\ntype GenerateContextCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nGenerateContextCommand orchestrates LLM-based context file generation.\n\n```go\nfunc NewGenerateContextCommand(\n\tllmProvider service.LLMProvider,\n\tfileWriter service.FileWriter,\n\tdirectoryManager service.DirectoryManager,\n) *GenerateContextCommand\n```\nNewGenerateContextCommand creates a new GenerateContextCommand.\n\n```go\nfunc (c *GenerateContextCommand) Execute(\n\tctx context.Context,\n\tconfig *dto.ProjectConfig,\n\ttemplateGuides []service.TemplateGuide,\n) (*dto.GenerationResult, error)\n```\nExecute runs the full context generation pipeline: 1. Build generation request from config + templates 2. Call LLM provider 3. Create output directories 4. Write generated files to disk (AGENTS.md at root, rest in context/)\n\n```go\ntype GenerateProjectCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nGenerateProjectCommand representa el comando para generar un proyecto\n\n```go\nfunc NewGenerateProjectCommand(\n\tprojectRepo project.Repository,\n\tprojectGen *service.ProjectGenerator,\n) *GenerateProjectCommand\n```\nNewGenerateProjectCommand crea una nueva instancia del comando\n\n```go\nfunc (c *GenerateProjectCommand) Execute(ctx context.Context, config *dto.ProjectConfig) (*dto.ProjectInfo, error)\n```\nExecute ejecuta el comando de generacion de proyecto\n\n```go\ntype GenerateSkillsCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nGenerateSkillsCommand orchestrates LLM-based Agent Skills generation.\n\n```go\nfunc NewGenerateSkillsCommand(\n\tllmProvider service.LLMProvider,\n\tfileWriter service.FileWriter,\n\tdirectoryManager service.DirectoryManager,\n) *GenerateSkillsCommand\n```\nNewGenerateSkillsCommand creates a new GenerateSkillsCommand.\n\n```go\nfunc (c *GenerateSkillsCommand) Execute(\n\tctx context.Context,\n\tconfig *dto.SkillsConfig,\n\ttemplateGuides []service.TemplateGuide,\n) (*dto.GenerationResult, error)\n```\nExecute runs the skills generation pipeline: 1. Build generation request in skills mode 2. Call LLM provider (one call per skill) 3. Create per-skill output directories 4. Write SKILL.md files to disk\n\n```go\ntype GenerateSpecCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nGenerateSpecCommand orchestrates LLM-based spec file generation from existing context.\n\n```go\nfunc NewGenerateSpecCommand(\n\tllmProvider service.LLMProvider,\n\tfileWriter service.FileWriter,\n\tdirectoryManager service.DirectoryManager,\n) *GenerateSpecCommand\n```\nNewGenerateSpecCommand creates a new GenerateSpecCommand.\n\n```go\nfunc (c *GenerateSpecCommand) Execute(\n\tctx context.Context,\n\tconfig *dto.SpecConfig,\n\texistingContext string,\n\ttemplateGuides []service.TemplateGuide,\n) (*dto.GenerationResult, error)\n```\nExecute runs the spec generation pipeline: 1. Build generation request with existing context and spec mode 2. Call LLM provider 3. Create specs output directory 4. Write generated spec files to disk\n\n```go\ntype GenerateWorkflowsCommand struct {\n\t// contains filtered or unexported fields\n}\n```\nGenerateWorkflowsCommand orchestrates LLM-based workflow generation.\n\n```go\nfunc NewGenerateWorkflowsCommand(\n\tllmProvider service.LLMProvider,\n\tfileWriter service.FileWriter,\n\tdirectoryManager service.DirectoryManager,\n) *GenerateWorkflowsCommand\n```\nNewGenerateWorkflowsCommand creates a new personalized workflow generation command.\n\n```go\nfunc (c *GenerateWorkflowsCommand) Execute(\n\tctx context.Context,\n\tconfig *dto.WorkflowConfig,\n\ttemplateGuides []service.TemplateGuide,\n) (*dto.GenerationResult, error)\n```\nExecute runs the workflow generation pipeline: 1. Build generation request in workflows mode 2. Call LLM provider (one call per workflow) 3. Write flat .md files to output directory\n\n","path":"github.com/jorelcb/codify/internal/application/command","name":"command","synopsis":"","isRedistributable":true}
