بنقرة واحدة
cli-worker
Implements CLI tool with command handlers, API client, and Bun compilation to standalone binary
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Implements CLI tool with command handlers, API client, and Bun compilation to standalone binary
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Manage tasks on a Mission Board kanban — list, create, claim, update, complete, release, and review tasks via the Mission Board API. Use when the user says /mission or asks about missions/tasks on the board.
Implements Hono API endpoints, database operations, and business logic with Bun/SQLite
Implements React dashboard components, state management, and UI features
| name | cli-worker |
| description | Implements CLI tool with command handlers, API client, and Bun compilation to standalone binary |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Use for features involving:
Write tests first (RED) - Create test file in cli/tests/
bun test to verify tests FAILImplement feature (GREEN) - Make tests pass
cli/src/commands/Manual verification
bun run build:cliRun validators
bun run typecheck - TypeScript validationbun run lint - Code stylebun test - All tests must passbun run build:cli - Binary compilation succeedsIntegration test
{
"salientSummary": "Implemented 'mission claim' and 'mission update' commands with status validation, added API client methods, compiled to 15MB binary, verified with live server.",
"whatWasImplemented": "CLI command 'mission claim <task-id>' that calls PATCH /api/tasks/:id with status=in_progress and agent_id from config. Command 'mission update <task-id> --status <status>' with validation against allowed statuses. Added ApiClient class with claimTask() and updateTask() methods. Config file support at ~/.mission-board/config.json for agent_id. Binary compilation via 'bun build --compile'. Help text and usage examples.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "bun test cli/tests/commands.test.ts",
"exitCode": 0,
"observation": "6 tests passing: claim command success, claim already claimed task, update status, invalid status error, missing task-id error, config file reading"
},
{
"command": "bun run build:cli",
"exitCode": 0,
"observation": "Binary created at ./dist/mission-cli, size 15MB"
}
],
"interactiveChecks": [
{
"action": "Started API server, ran './dist/mission-cli mission claim task-123'",
"observed": "Output: '✓ Task task-123 claimed successfully', status changed to in_progress in database"
},
{
"action": "Ran './dist/mission-cli mission update task-123 --status review'",
"observed": "Output: '✓ Task task-123 updated to review', status changed in database"
},
{
"action": "Ran './dist/mission-cli mission claim task-123' again (already claimed)",
"observed": "Output: '✗ Error: Task already claimed by agent-456', exit code 1"
},
{
"action": "Ran './dist/mission-cli --help'",
"observed": "Help text displayed with all commands and options"
}
]
},
"tests": {
"added": [
{
"file": "cli/tests/commands.test.ts",
"cases": [
{"name": "claim command success", "verifies": "API call and output"},
{"name": "claim already claimed task", "verifies": "Error handling"},
{"name": "update status success", "verifies": "PATCH request"},
{"name": "invalid status error", "verifies": "Validation"},
{"name": "missing task-id error", "verifies": "Arg parsing"},
{"name": "config file reading", "verifies": "Agent ID from config"}
]
}
]
},
"discoveredIssues": []
}