hive.colony-progress-tracker
यह क्या करती है
यह स्किल AI वर्कर को कार्य लेने और साझा डेटाबेस में प्रगति दर्ज करने का तरीका देती है। यह उन लोगों के लिए है जो एक ही जॉब कतार पर कई AI वर्कर चलाते हैं।
कब इस्तेमाल करें
- ✓जब आपका AI वर्कर इस्तेमाल करने के लिए कोई टास्क ID या डेटाबेस पथ दिया गया हो।
- ✓जब कई वर्करों को एक ही कतार साझा करनी हो, बिना एक ही कार्य दो बार लिए।
- ✓जब AI वर्कर को आगे बढ़ने से पहले हर चरण और जाँच दर्ज करनी हो।
Skill का लिंक
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/colony-progress-tracker/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“हमारी साझा कतार में अगला लंबित कार्य संभालिए, और हर चरण पूरा होते ही उसे लॉग कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
वर्कर एक छोटे डेटाबेस में एक टास्क पंक्ति लेता है, उसके चरणों पर काम करता है, और जो किया उसे दर्ज करता है। ज़रूरी जाँचें भी लॉग होती हैं, ताकि दूसरा वर्कर देख सके कि काम कहाँ तक पहुँचा है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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=5000handles 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
failedfor 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.
अक्सर पूछे जाने वाले सवाल
डेटाबेस किस काम आता है?
इसमें टास्क कतार, हर कार्य के चरण और वे जाँचें होती हैं जो पास होनी चाहिए।
अगर दो वर्कर एक ही कार्य लेने की कोशिश करें तो?
सिर्फ़ एक लंबित कार्य ले सकता है, और दूसरा रुककर रिपोर्ट करता है।
यह किसके लिए है?
यह उन लोगों के लिए है जो साझा जॉब सूची पर colony-शैली के AI वर्कर चलाते हैं।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 11k
- रैंकिंग में स्थान
- #11799
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
browser-edge-cases
11kयह आपके एजेंट को LinkedIn, X या भारी स्क्रिप्ट वाले पेजों जैसी जटिल साइटों पर विफल होने वाले ब्राउज़र ऑटोमेशन को ठीक करने में मदद करती है।
hive.browser-automation
11kयह आपके एजेंट को hive-browser टूल से और स्क्रीनशॉट व क्लिक के ज़रिए आपके अपने Chrome ब्राउज़र को नियंत्रित करना सिखाती है।
hive.context-preservation
11kयह आपके एजेंट को लंबे टूल नतीजों से ज़रूरी बातें नोट्स में सहेजने में मदद करती है, इससे पहले कि पुराने विवरण उसकी मेमोरी से हटें।
hive.error-recovery
11kयह आपके एजेंट को विफल टूल चरणों को साफ़ योजना से संभालने में मदद करती है: एक बार दोबारा कोशिश, इनपुट ठीक करना, आइटम छोड़ना या ऊपर भेजना।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।