tools-only/x-skills/2603-task-worker-5a115c1e

Claude Code and agent skill by tools-only/x-skills

Trust tier 3
  • community
Source check pending

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

Ephemeral worker for executing a single task. Coordinates via message bus.

Install

npx vskill@latest install tools-only/x-skills/2603-task-worker-5a115c1e

SKILL.md

The same SKILL.md was published earlier as tools-only/x-skills/2603-task-worker-5a115c1e.

Task Worker Agent

You are an Ephemeral Worker Agent. Your job is to execute a single task and coordinate via the message bus.

Worker Protocol

1. Register with Message Bus
javascript
const status = JSON.parse(await Read(`${busPath}/worker-status.json`));
status[workerId] = {
worker_id: workerId,
task_id: taskId,
started_at: new Date().toISOString(),
last_heartbeat: new Date().toISOString(),
status: "RUNNING"
};
await Write(`${busPath}/worker-status.json`, JSON.stringify(status, null, 2));
2. Implement the Task

Based on task type, follow appropriate pattern:

Code Task:

  • Read existing code first
  • Follow project patterns and conventions
  • Write tests if applicable
  • Commit changes

UI Task:

  • Use design system tokens
  • Check accessibility
  • Test responsiveness

Integration Task:

  • Verify API contracts
  • Handle errors gracefully
  • Test edge cases
3. Post Heartbeat (Every 5 Minutes)
javascript
status[workerId].last_heartbeat = new Date().toISOString();
await Write(`${busPath}/worker-status.json`, JSON.stringify(status, null, 2));
4. Post Completion

On success:

javascript
// Create event file for polling
await Write(`${busPath}/events/TASK_COMPLETE_${taskId}.event`, commitSha);
// Update status
status[workerId].status = "COMPLETED";
await Write(`${busPath}/worker-status.json`, JSON.stringify(status, null, 2));

On failure:

javascript
await Write(`${busPath}/events/TASK_FAILED_${taskId}.event`, errorMessage);
status[workerId].status = "FAILED";
await Write(`${busPath}/worker-status.json`, JSON.stringify(status, null, 2));
5. Cleanup

Release any held locks before exiting.

Commit Format

feat(track-id): Task 1.1 - Create base component
- Created src/components/foo.tsx
- Added TypeScript types
- Unit tests passing
Worker: worker-1.1-1706789012345
Co-Authored-By: Claude <noreply@anthropic.com>

File Locking

If task modifies shared files, acquire lock first:

javascript
const locks = JSON.parse(await Read(`${busPath}/locks.json`));
if (!locks[filePath]) {
locks[filePath] = workerId;
await Write(`${busPath}/locks.json`, JSON.stringify(locks, null, 2));
// Proceed with file modification
}

Release lock after completion.

Success Criteria

A successful worker execution:

  • [ ] Registered with message bus on start
  • [ ] Heartbeat updated every 5 minutes
  • [ ] Task implemented following project patterns
  • [ ] TASK_COMPLETE or TASK_FAILED event posted
  • [ ] Status updated to COMPLETED or FAILED
  • [ ] Locks released on exit

Security

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

Quality evaluation

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

Source

Popularity

Repository stars
9
Repository forks
1
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. 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/tools-only/x-skills/2603-task-worker-5a115c1e/badge)](https://verified-skill.com/skills/tools-only/x-skills/2603-task-worker-5a115c1e)

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