一键导入
aionui-scheduled-task
Criar tasks visíveis no painel AionUI Scheduled Tasks — inserir diretamente na SQLite do AionUI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Criar tasks visíveis no painel AionUI Scheduled Tasks — inserir diretamente na SQLite do AionUI
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create and manage a Z-Library account for the Bianinho agent — registration, email verification via IMAP, and login workflow
Debug protocol for AionUI macOS DMG white screen crashes — pattern, fixes, bundle analysis, and workflow.
AionUI — plataforma multi-agent cowork (frontend Electron). Arquitectura real, modos de acesso (Xvfb, web viewer, noVNC), e integração com Bianinho/Hermes. NUNCA inventar arquitectura sem verificar primeiro.
Diagnóstico e otimização de performance do MacBook — memória RAM, LaunchAgents, processos, bateria e swap. Workflow completo de 5 ações testado no MacBook Pro M1 Pro 16GB.
Organização de arquivos macOS — estruturar Desktop, Documents, Downloads, criar tarefas cron de limpeza automática.
Persist agent state across crashes, context deaths, and restarts for Hermes agents. Use when you need to save current context, restore after a crash, maintain a memory file across sessions, or implement crash recovery. Essential for autonomous agents that must survive context window limits.
| name | aionui-scheduled-task |
| description | Criar tasks visíveis no painel AionUI Scheduled Tasks — inserir diretamente na SQLite do AionUI |
| triggers | ["criar task","criar tarefa","agendar algo","scheduled task","nova automation","criar automação"] |
Quando o Álvaro pedir para criar uma "task", "tarefa", "agendar algo", "criar agendamento" ou "scheduled task" no AionUI.
SEMPRE inserir na base de dados SQLite do AionUI, NUNCA no Hermes Cron.
~/Library/Application Support/AionUi/aionui/aionui.db (tabela cron_jobs)~/.hermes/cron/jobs.json → NÃO aparece no painel AionUI| Campo | Valor |
|---|---|
id | cron_ + 8随机hex字符 |
name | Nome da task |
schedule_kind | cron |
schedule_value | Expressão cron (ex: 0 * * * * = hourly) |
schedule_description | Descrição legível (ex: Every hour) |
payload_message | Prompt que o agente vai executar |
conversation_id | b6a516ca (válido, mesmo da "Saúde da Mulher") |
conversation_title | ${name} - AionUI |
agent_type | hermes |
created_by | user |
enabled | 1 |
execution_mode | existing |
max_retries | 3 |
run_count | 0 |
retry_count | 0 |
last_status | NULL |
last_error | NULL |
last_run_at | NULL |
next_run_at (timestamp em milisegundos)import datetime
now = datetime.datetime.now()
# Para hourly (0 * * * *): próximo topo de hora
next_hour = now.replace(minute=0, second=0, microsecond=0) + datetime.timedelta(hours=1)
next_run_ms = int(next_hour.timestamp() * 1000)
agent_config{
"backend": "hermes",
"name": "Hermes Agent",
"cliPath": "/Users/alvarobiano/.hermes/venv/bin/hermes",
"mode": "yolo",
"workspace": "/Users/alvarobiano"
}
import sqlite3, time, uuid, json
db_path = '/Users/alvarobiano/Library/Application Support/AionUi/aionui/aionui.db'
conn = sqlite3.connect(db_path)
cur = conn.cursor()
now_ms = int(time.time() * 1000)
new_id = 'cron_' + uuid.uuid4().hex[:8]
cur.execute('''
INSERT INTO cron_jobs (
id, name, enabled, schedule_kind, schedule_value, schedule_tz,
schedule_description, payload_message, conversation_id, conversation_title,
agent_type, created_by, created_at, updated_at, next_run_at,
last_run_at, last_status, last_error, run_count, retry_count,
max_retries, execution_mode, agent_config, description
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
''', (
new_id, name, 1, 'cron', schedule_value, None,
schedule_description, payload_message, 'b6a516ca', f'{name} - AionUI',
'hermes', 'user', now_ms, now_ms, next_run_ms,
None, None, None, 0, 0, 3, 'existing', json.dumps(agent_config),
description or ''
))
conn.commit()
print(f'Task criada: {new_id} — {name}')
conn.close()
~/.hermes/venv/bin/python3 -c "
import sqlite3
conn = sqlite3.connect('/Users/alvarobiano/Library/Application Support/AionUi/aionui/aionui.db')
cur = conn.cursor()
cur.execute('SELECT id, name, schedule_value, enabled, next_run_at FROM cron_jobs')
for r in cur.fetchall(): print(r)
conn.close()
"
conversation_id NÃO pode ser NULL — usar sempre b6a516caschedule_tz pode ser NULLagent_config tem de ser JSON string, não dict| Frequência | schedule_value | schedule_description |
|---|---|---|
| De hora em hora | 0 * * * * | Every hour |
| Diário às 8h | 0 8 * * * | Every day at 08:00 |
| Diário às 22h45 | 45 22 * * * | Every day at 22:45 |
| Seg a Sex às 9h | 0 9 * * 1-5 | Weekdays at 09:00 |
| Semanal (Segunda) | 0 9 * * 1 | Every Monday at 09:00 |
| A cada 10 min | */10 * * * * | Every 10 minutes |