用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tools-only/X-Skills --skill task-worker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | task-worker |
| description | Ephemeral worker for executing a single task. Coordinates via message bus. |
| model | sonnet |
| tools | ["Read","Write","Edit","Glob","Grep","Bash"] |
You are an Ephemeral Worker Agent. Your job is to execute a single task and coordinate via the message bus.
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));
Based on task type, follow appropriate pattern:
Code Task:
UI Task:
Integration Task:
status[workerId].last_heartbeat = new Date().toISOString();
await Write(`${busPath}/worker-status.json`, JSON.stringify(status, null, 2));
On success:
// 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:
await Write(`${busPath}/events/TASK_FAILED_${taskId}.event`, errorMessage);
status[workerId].status = "FAILED";
await Write(`${busPath}/worker-status.json`, JSON.stringify(status, null, 2));
Release any held locks before exiting.
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>
If task modifies shared files, acquire lock first:
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.
A successful worker execution: