Langsung ke konten
Skillpedia
Agen11k ยท #11799

hive.colony-progress-tracker

Fungsinya

Skill ini memberi pekerja AI metode untuk mengklaim tugas dan mencatat kemajuan di basis data bersama. Skill ini ditujukan untuk orang yang menjalankan beberapa pekerja AI pada satu antrean pekerjaan.

Kapan dipakai

  • โœ“Saat pekerja AI Anda diberi ID tugas atau jalur basis data untuk dipakai.
  • โœ“Saat beberapa pekerja perlu berbagi satu antrean tanpa mengambil tugas yang sama.
  • โœ“Saat pekerja AI harus mencatat setiap langkah dan pemeriksaan sebelum berpindah ke langkah berikutnya.

Link skill

https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/colony-progress-tracker/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/colony-progress-tracker/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œSaya ingin Anda mengerjakan tugas berikutnya yang tertunda di antrean bersama kami dan mencatat setiap langkah saat selesai.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Pekerja mengklaim sebuah baris tugas di basis data kecil, mengerjakan langkahnya, dan mencatat apa yang dilakukannya. Pemeriksaan yang wajib juga dicatat, sehingga pekerja lain bisa melihat posisi pekerjaan saat ini.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Operational Protocol: Colony Progress Tracker

Applies when your spawn message has db_path: and colony_id: fields. The DB is your durable working memory โ€” tells you what's done, what to skip, which SOP gates you owe.

Access via terminal_exec running sqlite3 "<db_path>" "...". Tables: tasks (queue), steps (per-task decomposition), sop_checklist (hard gates).

Claim: assigned task (check this FIRST)

If your spawn message includes a task_id: field, the queen pre-assigned a specific row to you. Claim that row by id โ€” do not use the generic next-pending pattern below:

sqlite3 "<db_path>" <<'SQL'
UPDATE tasks SET status='claimed', worker_id='<worker-id>',
  claim_token=lower(hex(randomblob(8))),
  claimed_at=datetime('now'), updated_at=datetime('now')
WHERE id='<task_id>' AND status='pending'
RETURNING id, goal, payload;
SQL

Empty output โ†’ another worker raced you or the row is already done. Stop and report. Non-empty โ†’ that row is yours, proceed to "Load the plan".

Claim: next pending (fallback when no task_id is assigned)

If your spawn message did NOT include task_id: โ€” you are a generic fan-out worker racing on a shared queue. Use the generic next-pending claim:

sqlite3 "<db_path>" <<'SQL'
UPDATE tasks SET status='claimed', worker_id='<worker-id>',
  claim_token=lower(hex(randomblob(8))),
  claimed_at=datetime('now'), updated_at=datetime('now')
WHERE id=(SELECT id FROM tasks WHERE status='pending'
  ORDER BY priority DESC, seq, created_at LIMIT 1)
RETURNING id, goal, payload;
SQL

Empty output โ†’ queue drained, exit. Otherwise the returned id is yours. Never SELECT-then-UPDATE โ€” races.

Load the plan

sqlite3 "<db_path>" "SELECT seq, id, title, status FROM steps WHERE task_id='<task-id>' ORDER BY seq;"
sqlite3 "<db_path>" "SELECT key, description, required, done_at FROM sop_checklist WHERE task_id='<task-id>';"

Skip any step where status='done'. That's the point โ€” don't redo completed work.

Execute a step

Before tool calls:

sqlite3 "<db_path>" "UPDATE steps SET status='in_progress', worker_id='<worker-id>', started_at=datetime('now') WHERE id='<step-id>';"

After success (one-line evidence: path, URL, key result):

sqlite3 "<db_path>" "UPDATE steps SET status='done', evidence='<what you did>', completed_at=datetime('now') WHERE id='<step-id>';"

MANDATORY: SOP gate check before marking task done

sqlite3 "<db_path>" "SELECT key, description FROM sop_checklist WHERE task_id='<task-id>' AND required=1 AND done_at IS NULL;"
  • Empty โ†’ proceed to "Mark task done".
  • Non-empty โ†’ each row is work you still owe. Do it, then check it off:
sqlite3 "<db_path>" "UPDATE sop_checklist SET done_at=datetime('now'), done_by='<worker-id>', note='<why>' WHERE task_id='<task-id>' AND key='<key>';"

Never mark a task done while this SELECT returns rows. This gate exists specifically to stop you from declaring success while skipping required steps.

Mark task done / failed

# Success:
sqlite3 "<db_path>" "UPDATE tasks SET status='done', completed_at=datetime('now'), updated_at=datetime('now') WHERE id='<task-id>' AND worker_id='<worker-id>';"

# Unrecoverable failure:
sqlite3 "<db_path>" "UPDATE tasks SET status='failed', last_error='<one sentence>', completed_at=datetime('now'), updated_at=datetime('now') WHERE id='<task-id>' AND worker_id='<worker-id>';"

The AND worker_id=? guard means a reclaimed row won't accept your write โ€” treat zero rows affected as "your claim was revoked, stop."

Loop

After done/failed โ†’ claim the next task. Exit only when claim returns empty.

Errors + debug

  • "database is locked": retry with 100ms โ†’ 1s backoff, max 5 attempts. busy_timeout=5000 handles most contention silently.
  • Queue health: SELECT status, count(*) FROM tasks GROUP BY status;
  • Your in-flight work: SELECT id, goal, status FROM tasks WHERE worker_id='<worker-id>';

Anti-patterns (will break the queue)

  • Don't DDL (CREATE/ALTER/DROP).
  • Don't DELETE โ€” failed tasks stay as failed for audit.
  • Don't skip Protocol 4 (SOP gate) before marking done.
  • Don't hold a task >15min without updates โ€” the stale-claim reclaimer revokes your claim.
  • Don't invent task IDs. Workers update existing rows; only the queen enqueues new ones.
Pertanyaan umum

Untuk apa basis datanya?

Basis data menyimpan antrean tugas, langkah untuk setiap tugas, dan pemeriksaan yang harus lolos.

Apa yang terjadi jika dua pekerja mencoba tugas yang sama?

Hanya satu yang bisa mengklaim tugas yang tertunda, dan yang lain berhenti serta melaporkan.

Untuk siapa ini?

Untuk orang yang menjalankan pekerja AI bergaya koloni pada daftar pekerjaan bersama.

Detail

Deskripsi asli dari pembuat

Claim tasks, record step progress, and verify SOP gates in the colony SQLite queue. Applies when your spawn message includes a db_path field.

repo: aden-hive/hive

Popularitas

Bintang GitHub
11k
Peringkat
#11799
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa