Skip to content

LeoYeAI/agent-master-skills / skills/agi-farm

agi-farm

Flagged

Interactive 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

FileKindSize
README.mdmarkdown8.8 KB
SKILL.mdskill md17.5 KB
_meta.jsonconfig275 B
auto-dispatch.pyscript18.3 KB
dashboard-react/README.mdmarkdown1.1 KB
dashboard-react/eslint.config.jsscript758 B
dashboard-react/index.htmlother474 B
dashboard-react/package-lock.jsonmanifest113.1 KB
dashboard-react/package.jsonmanifest637 B
dashboard-react/public/vite.svgother1.5 KB
dashboard-react/src/App.cssother606 B
dashboard-react/src/App.jsxother3.2 KB
dashboard-react/src/assets/react.svgother4.0 KB
dashboard-react/src/components/AgentMiniCard.jsxother1.2 KB
dashboard-react/src/components/Header.jsxother3.4 KB
dashboard-react/src/components/LastUpdated.jsxother362 B
dashboard-react/src/components/Nav.jsxother1.5 KB
dashboard-react/src/components/tabs/Agents.jsxother4.0 KB
dashboard-react/src/components/tabs/Alerts.jsxother5.3 KB
dashboard-react/src/components/tabs/Broadcast.jsxother1.7 KB
dashboard-react/src/components/tabs/Budget.jsxother5.3 KB
dashboard-react/src/components/tabs/Comms.jsxother4.4 KB
dashboard-react/src/components/tabs/Crons.jsxother9.1 KB
dashboard-react/src/components/tabs/HITL.jsxother6.2 KB
dashboard-react/src/components/tabs/Knowledge.jsxother4.7 KB
dashboard-react/src/components/tabs/OKRs.jsxother2.6 KB
dashboard-react/src/components/tabs/Overview.jsxother8.9 KB
dashboard-react/src/components/tabs/Projects.jsxother40.9 KB
dashboard-react/src/components/tabs/RD.jsxother5.5 KB
dashboard-react/src/components/tabs/Tasks.jsxother9.7 KB
dashboard-react/src/components/tabs/Velocity.jsxother5.0 KB
dashboard-react/src/hooks/useDashboard.jsscript2.5 KB
dashboard-react/src/index.cssother4.3 KB
dashboard-react/src/main.jsxother229 B
dashboard-react/vite.config.jsscript332 B
dashboard.htmlother57.0 KB
dashboard.pyscript44.5 KB
generate.pyscript11.6 KB
references/dashboard.mdmarkdown1.9 KB
scripts/auto-dispatch.pyscript19.1 KB
scripts/register-crons.pyscript7.2 KB

dashboard-react/src/components/tabs/HITL.jsx

View on GitHub
import { useState } from 'react';
import LastUpdated from '../LastUpdated';

async function apiPost(path, body = {}) {
  const r = await fetch(path, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(body) });
  return r.json();
}

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`;
    if (diff < 1440) return `${Math.round(diff / 60)}h ago`;
    return `${Math.round(diff / 1440)}d ago`;
  } catch { return iso; }
}

function HITLCard({ task, agents, onAction }) {
  const [note, setNote] = useState('');
  const [loading, setLoading] = useState(null);
  const agent = agents.find(a => a.id === task.assigned_to);
  const waitTime = relTime(task.created_at);
  const pri = (task.sla?.priority || task.priority || '').toUpperCase();

  async function act(action) {
    setLoading(action);
    try {
      await apiPost(`/api/hitl/${task.id}/${action}`, { note: note || undefined });
      onAction(task.id, action);
    } catch (e) { console.error(e); }
    setLoading(null);
  }

  return (
    <div style={{
      background: 'var(--bg2)', border: '1px solid rgba(224,64,251,.35)',
      borderRadius: 10, padding: 18, display: 'grid', gap: 14,
      boxShadow: '0 0 20px rgba(224,64,251,.08)',
    }}>
      {/* Header */}
      <div style={{ display: 'flex', alignItems: 'flex-start', gap: 12 }}>
        <span style={{ fontSize: 28 }}>๐Ÿšจ</span>
        <div style={{ flex: 1 }}>
          <div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 4, flexWrap: 'wrap' }}>
            <span style={{ fontWeight: 700, fontSize: 15 }}>{task.title}</span>
            <span style={{ fontSize: 10, fontFamily: 'monospace', color: 'var(--muted)' }}>{task.id}</span>
            {pri && <span className={pri === 'P1' ? 'p1' : pri === 'P2' ? 'p2' : 'p3'}>{pri}</span>}
          </div>
          <div style={{ fontSize: 11, color: 'var(--muted)' }}>
            {agent && <span>{agent.emoji} {agent.name} ยท </span>}
            Waiting <span style={{ color: 'var(--amber)', fontWeight: 600 }}>{waitTime}</span>
            {task.sla?.deadline && <span> ยท Due {new Date(task.sla.deadline).toLocaleString()}</span>}
          </div>
        </div>
      </div>

      {/* HITL Reason */}
      <div style={{ padding: '12px 14px', background: 'rgba(224,64,251,.08)', border: '1px solid rgba(224,64,251,.25)', borderRadius: 7 }}>
        <div style={{ fontSize: 10, color: 'var(--purple)', fontWeight: 700, textTransform: 'uppercase', letterSpacing: '.06em', marginBottom: 6 }}>Decision Required</div>
        <div style={{ fontSize: 13, color: 'var(--text)', lineHeight: 1.6 }}>{task.hitl_reason || 'Human decision required before proceeding.'}</div>
      </div>

      {/* Description */}
      {task.description && (
        <div>
          <div style={{ fontSize: 10, color: 'var(--muted)', fontWeight: 600, textTransform: 'uppercase', letterSpacing: '.05em', marginBottom: 4 }}>Context</div>
          <div style={{ fontSize: 12, color: 'var(--text)', lineHeight: 1.6 }}>{task.description}</div>
        </div>
      )}

      {/* Note input */}
      <div>
        <div style={{ fontSize: 10, color: 'var(--muted)', marginBottom: 6 }}>Optional note (sent to agent)</div>
        <input value={note} onChange={e => setNote(e.target.value)}
          placeholder="Add context for the agent..."
          style={{ width: '100%', background: 'var(--bg3)', border: '1px solid var(--border)', borderRadius: 5,
            padding: '8px 10px', fontSize: 12, color: 'var(--text)', fontFamily: 'inherit', outline: 'none',
            boxSizing: 'border-box' }} />
      </div>

      {/* Action buttons */}
      <div style={{ display: 'flex', gap: 10 }}>
        <button onClick={() => act('approve')} disabled={!!loading} style={{
          flex: 1, padding: '10px', background: 'rgba(0,230,118,.15)', border: '1px solid rgba(0,230,118,.4)',
          color: 'var(--green)', borderRadius: 6, cursor: loading ? 'not-allowed' : 'pointer',
          fontFamily: 'inherit', fontSize: 13, fontWeight: 700, transition: 'all .15s',
        }}>
          {loading === 'approve' ? '...' : 'โœ… Approve โ€” Continue'}
        </button>
        <button onClick={() => act('reject')} disabled={!!loading} style={{
          flex: 1, padding: '10px', background: 'rgba(255,23,68,.1)', border: '1px solid rgba(255,23,68,.35)',
          color: 'var(--red)', borderRadius: 6, cursor: loading ? 'not-allowed' : 'pointer',
          fontFamily: 'inherit', fontSize: 13, fontWeight: 700, transition: 'all .15s',
        }}>
          {loading === 'reject' ? '...' : 'โŒ Reject โ€” Block Task'}
        </button>
      </div>
    </div>
  );
}

export default function HITLTab({ data, lastUpdated }) {
  const { hitl_tasks = [], agents = [] } = data;
  const [resolved, setResolved] = useState(new Set());

  const pending = hitl_tasks.filter(t => !resolved.has(t.id));

  function onAction(taskId) {
    setResolved(prev => new Set([...prev, taskId]));
  }

  return (
    <div className="fade-in" style={{ display: 'grid', gap: 14 }}>
      <div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
        <span style={{ fontSize: 14, fontWeight: 700, color: pending.length ? 'var(--red)' : 'var(--green)' }}>
          {pending.length ? `๐Ÿšจ ${pending.length} decision${pending.length > 1 ? 's' : ''} awaiting your input` : 'โœ… No pending HITL decisions'}
        </span>
        <LastUpdated ts={lastUpdated} />
      </div>

      {pending.length === 0 && (
        <div className="card" style={{ color: 'var(--muted)', fontSize: 13 }}>
          All clear โ€” no human decisions required right now. Agents are running autonomously.
        </div>
      )}

      {pending.map(t => (
        <HITLCard key={t.id} task={t} agents={agents} onAction={onAction} />
      ))}

      {resolved.size > 0 && (
        <div style={{ padding: '10px 14px', background: 'rgba(0,230,118,.06)', border: '1px solid rgba(0,230,118,.2)', borderRadius: 6, fontSize: 12, color: 'var(--green)' }}>
          โœ… {resolved.size} decision{resolved.size > 1 ? 's' : ''} resolved this session โ€” agents notified via task status update.
        </div>
      )}
    </div>
  );
}
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 119kUpdated Claude CodeCodexVerifiedInstall
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: 118kUpdated Claude CodeCodexVerifiedInstall