在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
cli-worker
// Implements CLI tool with command handlers, API client, and Bun compilation to standalone binary
$ git log --oneline --stat
stars:0
forks:0
updated:2026年3月13日 12:17
SKILL.md
// Implements CLI tool with command handlers, API client, and Bun compilation to standalone binary
| 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": []
}
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