Claude Code · Comandos slashDespliegue
/act
Ejecuta GitHub Actions en local con act.
por davila7/claude-code-templates
github-actions
Licencia: MITVer original
Instalación
npx claude-code-templates@latest --command automation/actContenido
Dónde va: .claude/commands/act.md
---
allowed-tools: Read, Edit, Bash
argument-hint: [workflow-name]
description: Execute GitHub Actions locally using act
---
# Act - GitHub Actions Local Execution
Execute GitHub Actions workflows locally using act: $ARGUMENTS
## Current Workflows
- Available workflows: !`find .github/workflows -name "*.yml" -o -name "*.yaml" | head -10`
- Act configuration: @.actrc (if exists)
- Docker status: !`docker --version`
## Task
Execute GitHub Actions workflow locally:
1. **Setup Verification**
- Ensure act is installed: `act --version`
- Verify Docker is running
- Check available workflows in `.github/workflows/`
2. **Workflow Selection**
- If workflow specified: Run specific workflow `$ARGUMENTS`
- If no workflow: List all available workflows
- Check workflow triggers and events
3. **Local Execution**
- Run workflow with appropriate flags
- Use secrets from `.env` or `.secrets`
- Handle platform-specific runners
- Monitor execution and logs
4. **Debugging Support**
- Use `--verbose` for detailed output
- Use `--dry-run` for testing
- Use `--list` to show available actions
## Example Commands
```bash
# List all workflows
act --list
# Run specific workflow
act workflow_dispatch -W .github/workflows/$ARGUMENTS.yml
# Run with secrets
act --secret-file .env
# Debug mode
act --verbose --dry-run
```
Más en Comandos slash
/commit
Redacta un commit con Conventional Commits a partir de los cambios en stage.
/review
Revisa el diff actual buscando bugs, casos borde y problemas de seguridad.
/tests
Escribe tests para el archivo o función que indiques.
/changelog
Genera las notas de versión desde el último tag.
/explain
Explica cómo funciona un archivo o módulo, con un diagrama del flujo.
/cleanup
Elimina imports, variables y código muerto sin cambiar el comportamiento.