LeoYeAI/agent-master-skills / skills/agi-farm
agi-farm
FlaggedInteractive setup wizard that creates a fully working multi-agent AI team on OpenClaw. One command bootstraps agents, SOUL.md personas, comms infrastructure (inboxes/outboxes/broadcast), cron jobs, auto-dispatcher (HITL + rate-limit backoff + dependency checking), and a portable GitHub bundle ā all customized to team name, size (3/5/11 agents), domain, and frameworks (autogen/crewai/langgraph). Includes a React + SSE live ops dashboard with file-watcher (~350ms push latency) and persistent macOS LaunchAgent. Model-selection guidance built in. Commands: setup | status | rebuild | export | dashboard | dispatch
dashboard-react/src/components/tabs/Alerts.jsx
View on GitHubimport { useState } from 'react';
import LastUpdated from '../LastUpdated';
const SEV_COLOR = { critical: 'var(--red)', high: 'var(--red)', medium: 'var(--amber)', low: 'var(--muted)' };
const TYPE_ICON = { hitl: 'šØ', sla_breach: 'ā°', agent_error: 'š“', cron_error: 'āļø', blocked: 'š«' };
const TYPE_LABEL = { hitl: 'HITL', sla_breach: 'SLA', agent_error: 'Agent', cron_error: 'Cron', blocked: 'Blocked' };
function relTime(iso) {
if (!iso) return '';
try {
const diff = Math.round((Date.now() - new Date(iso)) / 60000);
if (diff < 1) return 'just now';
if (diff < 60) return `${diff}m ago`;
return `${Math.round(diff / 60)}h ago`;
} catch { return ''; }
}
export default function AlertsTab({ data, lastUpdated }) {
const { alerts = [], agents = [] } = data;
const [dismissed, setDismissed] = useState(new Set());
const [typeFilter, setTypeFilter] = useState('all');
const active = alerts.filter(a => !dismissed.has(a.id));
const filtered = active.filter(a => typeFilter === 'all' || a.type === typeFilter);
const types = ['all', ...new Set(alerts.map(a => a.type))];
const bySev = { critical: 0, high: 0, medium: 0, low: 0 };
active.forEach(a => { if (bySev[a.severity] !== undefined) bySev[a.severity]++; });
return (
<div className="fade-in" style={{ display: 'grid', gap: 14 }}>
{/* Summary */}
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(4,1fr)', gap: 10 }}>
{Object.entries(bySev).map(([sev, count]) => (
<div key={sev} className="card" style={{ textAlign: 'center' }}>
<div className="section-title" style={{ textTransform: 'capitalize' }}>{sev}</div>
<div style={{ fontSize: 22, fontWeight: 700, color: count ? SEV_COLOR[sev] : 'var(--muted)' }}>{count}</div>
</div>
))}
</div>
{/* Filters + header */}
<div style={{ display: 'flex', alignItems: 'center', gap: 8, flexWrap: 'wrap' }}>
{types.map(t => (
<button key={t} onClick={() => setTypeFilter(t)} style={{
background: typeFilter === t ? 'rgba(0,229,255,.15)' : 'var(--surface)',
border: `1px solid ${typeFilter === t ? 'rgba(0,229,255,.4)' : 'var(--border)'}`,
color: typeFilter === t ? 'var(--cyan)' : 'var(--muted)',
padding: '4px 12px', borderRadius: 4, fontSize: 11, cursor: 'pointer', fontFamily: 'inherit',
}}>{TYPE_ICON[t] || ''} {TYPE_LABEL[t] || t}</button>
))}
{dismissed.size > 0 && (
<button onClick={() => setDismissed(new Set())} style={{
marginLeft: 'auto', background: 'none', border: '1px solid var(--border)',
color: 'var(--muted)', padding: '4px 10px', borderRadius: 4, fontSize: 11,
cursor: 'pointer', fontFamily: 'inherit',
}}>āŗ Restore {dismissed.size} dismissed</button>
)}
<LastUpdated ts={lastUpdated} />
</div>
{/* Alert list */}
{filtered.length === 0 && (
<div className="card" style={{ color: 'var(--green)', fontSize: 13 }}>
ā
{alerts.length === 0 ? 'No alerts ā all systems nominal.' : 'All alerts dismissed for this session.'}
</div>
)}
{filtered.map(alert => {
const color = SEV_COLOR[alert.severity] || 'var(--muted)';
const agent = agents.find(a => a.id === alert.agent_id);
return (
<div key={alert.id} style={{
background: 'var(--bg2)', borderRadius: 8,
border: `1px solid ${color}44`,
boxShadow: `0 0 12px ${color}0d`,
display: 'flex', gap: 14, padding: '14px 16px', alignItems: 'flex-start',
}}>
<span style={{ fontSize: 22, flexShrink: 0 }}>{TYPE_ICON[alert.type] || 'ā ļø'}</span>
<div style={{ flex: 1, minWidth: 0 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 4, flexWrap: 'wrap' }}>
<span style={{ fontWeight: 700, fontSize: 13 }}>{alert.title}</span>
<span style={{ fontSize: 10, padding: '1px 6px', borderRadius: 3, fontWeight: 700,
textTransform: 'uppercase', color, background: `${color}18`, border: `1px solid ${color}44` }}>
{alert.severity}
</span>
</div>
{alert.detail && <div style={{ fontSize: 12, color: 'var(--muted)', lineHeight: 1.5, marginBottom: 4 }}>{alert.detail}</div>}
<div style={{ fontSize: 10, color: 'var(--muted)', display: 'flex', gap: 10 }}>
{agent && <span>{agent.emoji} {agent.name}</span>}
<span>{TYPE_LABEL[alert.type]}</span>
<span>{relTime(alert.ts)}</span>
{alert.task_id && <span style={{ color: 'var(--cyan)' }}>{alert.task_id}</span>}
{alert.cron_id && <span style={{ color: 'var(--cyan)', fontFamily: 'monospace', fontSize: 9 }}>{alert.cron_id.slice(0, 8)}ā¦</span>}
</div>
</div>
<button onClick={() => setDismissed(prev => new Set([...prev, alert.id]))}
title="Dismiss alert" style={{
background: 'none', border: '1px solid var(--border)', color: 'var(--muted)',
padding: '3px 8px', borderRadius: 4, cursor: 'pointer', fontSize: 10, fontFamily: 'inherit', flexShrink: 0,
}}>ā</button>
</div>
);
})}
</div>
);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path ā even casually (like "the xlsx in my downloads") ā and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |