koopos/hermes/agent-task-dashboard

Claude Code and agent skill by koopos/hermes

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Next.js dashboard for GitHub task agent workflow — project structure, known patterns, and debugging notes.

Install

npx vskill@latest install koopos/hermes/agent-task-dashboard

SKILL.md

The same SKILL.md was published earlier as koopos/hermes/agent-task-dashboard.

Agent Task Dashboard

Next.js 16 (App Router, Turbopack) dashboard at /Users/koopos/AIGC/agents/agent-task-dashboard.

Tech stack

  • Framework: Next.js 16.2.6 + React 19, App Router, Turbopack
  • ORM: Prisma + SQLite (prisma/dev.db)
  • Styling: Tailwind CSS v4, rounded-2rem design system
  • Auth: GitHub via gh CLI
  • Actions: Server Actions ("use server") in src/app/actions.ts
  • Git sync: src/lib/github-sync.ts — wraps gh repo sync + direct git commands
  • Task polling: cron job github-task-agent-polling every 5m (separate repo agent)
  • AutoRefresh: src/components/AutoRefresh.tsx — client timer component

Project structure

src/app/
actions.ts # Server Actions: createProject, createTask, syncToGitHub, etc.
page.tsx # Redirect to /projects
projects/
[id]/
page.tsx # Project detail — kanban + create task form
CreateTaskForm.tsx
page.tsx
tasks/
[id]/page.tsx # Task detail
api/ # Route handlers
prisma/schema.prisma # Project, Task, RunLog, Artifact models
src/lib/
github-sync.ts # git clone/pull/push + gh repo sync
task-types.ts # STATUSES, TASK_TYPES, labels
json.ts # linesToJsonArray helper

Patterns

Server Action + form

Forms use action={bind(null, projectId)} pattern. Server Actions redirect after success — no router.refresh() needed in the form itself because revalidatePath is called inside the action.

Creating a task (Server Action)
export async function createTask(projectId: string, formData: FormData) {
// ... validate fields
await prisma.task.create({ data: { ... } });
revalidatePath(`/projects/${projectId}`);
redirect(`/projects/${projectId}`); // stops "zod undefined" React warning
}
GitHub sync flow
  • syncProjectToGitHub: write tasks to local .agent/tasks.json → commit → gh repo sync
  • syncProjectFromGitHub: gh repo sync → read .agent/tasks.json → upsert DB
  • Both call revalidatePath after
AutoSync pattern (TIMEOUT REQUIRED)

AutoRefresh CAN call syncFromGitHub() — but ONLY with end-to-end timeout protection. Without it, git pull hanging blocks the Next.js RSC handler and crashes the page (BUG-2026-05-15).

Required layers (all three):

  1. run() in github-sync.ts accepts timeoutMs — passes to execFileAsync
  2. ensureRepo() applies 15s timeout to every git/gh command
  3. syncFromGitHub() in actions.ts wraps with Promise.race 15s timeout
typescript
// AutoRefresh.tsx — calls syncFromGitHub, not refreshProject
export default function AutoRefresh({ projectId, intervalMs = 30000 }: AutoRefreshProps) {
useEffect(() => {
const interval = setInterval(async () => {
try {
await syncFromGitHub(projectId); // wrapped with 15s timeout
} catch (e) {
console.error("[AutoSync] syncFromGitHub failed:", e); // non-fatal
}
}, intervalMs);
return () => clearInterval(interval);
}, [projectId, intervalMs]);
return null;
}

Without all three layers: git pull hangs → RSC handler blocks → page crashes → form submissions blocked → only kill -9 recovers.

Interval: 30s default (intervalMs={30000}). Task detail page uses 10s because it shows live agent output.

Cron polling vs Dashboard sync
  • github-task-agent-polling cron (every 5m) runs the external agent script in a separate workdir
  • Dashboard "Poll once" button triggers pollProjectOnce() which runs agent + syncs
  • AutoSync component (AutoRefresh.tsx) polls GitHub every 30s and upserts DB — keeps dashboard live without waiting for cron

Commands

bash
cd /Users/koopos/AIGC/agents/agent-task-dashboard
npm run dev # Start dev server (watch for port 3000 already in use)
npm run build # Production build
npx prisma db push # Push schema changes
npx prisma studio # Browse DB
# Kill stuck dev server
kill $(lsof -ti :3000)

⚠️ syncProjectToGitHub 可靠性

syncProjectToGitHub 依赖 git push,可能因网络问题静默失败。Dashboard UI 不显示同步错误(Server Action 错误被 error boundary 吞掉)。如果 Sync to GitHub 按钮点击后页面报错但状态不变,手动检查:

bash
cd /Users/koopos/AIGC/agents/github-task-agent/repos/Koopos__task-list && git status && git log --oneline -3

Adding a new task type

  1. Add to TASK_TYPES in src/lib/task-types.ts
  2. Update CreateTaskForm.tsx SIMPLE_TASK_TYPES array if it should appear in the dropdown
  3. Update agent script to handle the new type

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/koopos/hermes/agent-task-dashboard/badge)](https://verified-skill.com/skills/koopos/hermes/agent-task-dashboard)

Something wrong with this skill or its page? Tell us.