huangjinlian615-star/hiclaw-test/task-coordination
Claude Code and agent skill by huangjinlian615-star/hiclaw-test
- community
Checking that the SKILL.md file is still in the repository.
Coordinate access to shared task directories using .processing marker files. Use before accessing a Worker's workspace to prevent conflicts when both Manager and Worker might modify files simultaneously.
Install
npx vskill@latest install huangjinlian615-star/hiclaw-test/task-coordinationSKILL.md
The same SKILL.md was published earlier as agentscope-ai/hiclaw/task-coordination.
Task Coordination
This skill provides a general coordination mechanism for shared task directories. It prevents conflicts when both Manager and Workers need to access/modify the same task workspace.
Problem
When a Worker delegates work to Manager (e.g., git operations), the Manager modifies the Worker's workspace. During this time, the Worker might also be modifying files, causing potential conflicts.
Solution
Use .processing marker files to signal "work in progress". Any party (Worker or Manager) must check for this marker before modifying a task directory.
Task Directory Structure
The .processing Marker
Format
Location: tasks/{task-id}/.processing
Fields
| Field | Description | |
|---|---|---|
processor | Who is processing: manager or worker name | |
started_at | ISO 8601 timestamp when processing started | |
expires_at | ISO 8601 timestamp when marker expires (15 min default) | |
operation | What operation is in progress (optional) |
Expiration
The marker auto-expires after 15 minutes (configurable). This prevents deadlocks if a process crashes without removing the marker.
Coordination Protocol
Before Modifying Task Directory
Always follow this sequence:
- Sync from MinIO first:
``bash mc mirror "${HICLAW_STORAGE_PREFIX}/shared/tasks/${task_id}/" "/root/hiclaw-fs/shared/tasks/${task_id}/" ``
- Check for `.processing`:
``bash bash /opt/hiclaw/agent/skills/task-coordination/scripts/check-processing-marker.sh "$task_id" ``
- Exit code 0: Safe to proceed (no marker or expired)
- Exit code 1: Processing in progress, do NOT modify
- If safe, create marker:
``bash bash /opt/hiclaw/agent/skills/task-coordination/scripts/create-processing-marker.sh "$task_id" "manager" ``
- Perform modifications
- Remove marker:
``bash bash /opt/hiclaw/agent/skills/task-coordination/scripts/remove-processing-marker.sh "$task_id" ``
- Sync to MinIO:
``bash mc mirror "/root/hiclaw-fs/shared/tasks/${task_id}/" "${HICLAW_STORAGE_PREFIX}/shared/tasks/${task_id}/" --overwrite ``
Scripts
check-processing-marker.sh
Check if a task directory is being processed.
Exit codes:
- 0: No marker or marker expired (safe to proceed)
- 1: Valid marker exists (do not modify)
create-processing-marker.sh
Create a processing marker for a task.
Parameters:
task-id: Task identifier (e.g.,task-20260225-103000)processor-name: Who is processing (manageror worker name)timeout-mins: (Optional) Expiration timeout in minutes (default: 15)
remove-processing-marker.sh
Remove the processing marker after work is done.
Integration Points
This coordination mechanism is used by:
- git-delegation-management: Manager creates marker before git ops, removes after
- git-delegation (Worker skill): Worker checks marker before modifying workspace
Best Practices
- Always sync first: Never assume local state is current
- Check before create: Don't blindly create markers; check first
- Remove promptly: Remove marker as soon as work completes
- Handle crashes: The expiration mechanism handles unexpected failures
- Respect the marker: Never modify a task directory with an active marker
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
- SKILL.md in the repositoryCheckingmanager/agent/skills/task-coordination/SKILL.md
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
[](https://verified-skill.com/skills/huangjinlian615-star/hiclaw-test/task-coordination)