feat: adiciona 12 plugins Descomplicar ao marketplace
Plugins: automacao, crm-ops, design-media, dev-tools, gestao, infraestrutura, marketing, negocio, perfex-dev, project-manager, wordpress + hello-plugin (existente). Totais: 83 skills, 44 agents, 12 datasets.json Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
163
automacao/skills/n8n-schedule/SKILL.md
Normal file
163
automacao/skills/n8n-schedule/SKILL.md
Normal file
@@ -0,0 +1,163 @@
|
||||
# /n8n-schedule - Automações Agendadas n8n
|
||||
|
||||
Criar workflows com execução agendada (cron).
|
||||
|
||||
---
|
||||
|
||||
## Uso
|
||||
|
||||
```
|
||||
/n8n-schedule create <descrição> # Criar automação agendada
|
||||
/n8n-schedule list # Listar agendamentos
|
||||
/n8n-schedule disable <id> # Desactivar
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Workflow Obrigatório
|
||||
|
||||
```
|
||||
1. Health check → mcp__n8n__n8n_health_check()
|
||||
2. Pesquisar template → mcp__n8n__search_templates({ task: "scheduling" })
|
||||
3. Se template OK → mcp__n8n__n8n_deploy_template()
|
||||
4. Se criar do zero → Seguir fluxo abaixo
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Expressões Cron Comuns
|
||||
|
||||
| Expressão | Descrição |
|
||||
|-----------|-----------|
|
||||
| `0 9 * * *` | Diário às 9h |
|
||||
| `0 9 * * 1-5` | Seg-Sex às 9h |
|
||||
| `0 */2 * * *` | A cada 2 horas |
|
||||
| `*/15 * * * *` | A cada 15 minutos |
|
||||
| `0 0 1 * *` | Dia 1 de cada mês |
|
||||
| `0 3 * * 0` | Domingos às 3h |
|
||||
|
||||
### Formato
|
||||
|
||||
```
|
||||
┌───────── minuto (0-59)
|
||||
│ ┌─────── hora (0-23)
|
||||
│ │ ┌───── dia mês (1-31)
|
||||
│ │ │ ┌─── mês (1-12)
|
||||
│ │ │ │ ┌─ dia semana (0-6)
|
||||
* * * * *
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Configuração Schedule Trigger
|
||||
|
||||
```javascript
|
||||
mcp__n8n__validate_node({
|
||||
nodeType: "nodes-base.scheduleTrigger",
|
||||
config: {
|
||||
rule: {
|
||||
interval: [{
|
||||
field: "cronExpression",
|
||||
expression: "0 9 * * 1-5"
|
||||
}]
|
||||
}
|
||||
},
|
||||
mode: "minimal"
|
||||
})
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Timezone
|
||||
|
||||
```javascript
|
||||
{
|
||||
options: {
|
||||
timezone: "Europe/Lisbon"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Exemplos
|
||||
|
||||
### Relatório Diário
|
||||
|
||||
```
|
||||
Schedule (0 9 * * 1-5)
|
||||
↓
|
||||
PostgreSQL (query)
|
||||
↓
|
||||
Set (formatar)
|
||||
↓
|
||||
Email (enviar)
|
||||
```
|
||||
|
||||
### Backup Semanal
|
||||
|
||||
```
|
||||
Schedule (0 3 * * 0)
|
||||
↓
|
||||
SSH (backup)
|
||||
↓
|
||||
IF (sucesso?)
|
||||
↓
|
||||
Slack (confirmar/alertar)
|
||||
```
|
||||
|
||||
### Limpeza de Logs
|
||||
|
||||
```
|
||||
Schedule (0 2 * * *)
|
||||
↓
|
||||
SSH (limpar)
|
||||
↓
|
||||
Slack (reportar)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Gestão
|
||||
|
||||
### Desactivar
|
||||
|
||||
```javascript
|
||||
mcp__n8n__n8n_update_partial_workflow({
|
||||
id: "wf-xxx",
|
||||
operations: [{ type: "deactivateWorkflow" }]
|
||||
})
|
||||
```
|
||||
|
||||
### Reactivar
|
||||
|
||||
```javascript
|
||||
mcp__n8n__n8n_update_partial_workflow({
|
||||
id: "wf-xxx",
|
||||
operations: [{ type: "activateWorkflow" }]
|
||||
})
|
||||
```
|
||||
|
||||
### Ver Execuções
|
||||
|
||||
```javascript
|
||||
mcp__n8n__n8n_executions({
|
||||
workflowId: "wf-xxx",
|
||||
limit: 10,
|
||||
status: "all"
|
||||
})
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Problema | Solução |
|
||||
|----------|---------|
|
||||
| Não executa | Verificar workflow activo |
|
||||
| Hora errada | Verificar timezone |
|
||||
| Duplicado | Verificar múltiplos triggers |
|
||||
|
||||
---
|
||||
|
||||
*Skill v1.0 | Descomplicar®*
|
||||
Reference in New Issue
Block a user