mit einem Klick
backend-worker
// Implements Hono API endpoints, database operations, and business logic with Bun/SQLite
// Implements Hono API endpoints, database operations, and business logic with Bun/SQLite
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 CLI tool with command handlers, API client, and Bun compilation to standalone binary
Implements React dashboard components, state management, and UI features
| name | backend-worker |
| description | Implements Hono API endpoints, database operations, and business logic with Bun/SQLite |
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 tests/ or alongside source
bun testbun test --watch to verify tests FAIL before implementingImplement feature (GREEN) - Make tests pass
src/ directoryManual verification
bun run devcurl or HTTP clientRun validators
bun run typecheck - TypeScript validationbun run lint - Code stylebun test - All tests must passDocument API changes
{
"salientSummary": "Implemented POST /api/tasks endpoint with Zod validation, created tasks table with Drizzle, added 5 tests covering creation, validation, and duplicate prevention.",
"whatWasImplemented": "POST /api/tasks endpoint that accepts agent_id, project_id, title, description, task_type. Creates task in 'backlog' status. Returns 201 with created task. Returns 400 for invalid input. Returns 404 for non-existent project. Returns 409 for duplicate task title in same project. Added tasks table migration with indexes on project_id and status.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "bun test tests/tasks.test.ts",
"exitCode": 0,
"observation": "5 tests passing: creates task, validates required fields, rejects invalid status, prevents duplicates, returns 404 for missing project"
},
{
"command": "bun run typecheck",
"exitCode": 0,
"observation": "No type errors"
},
{
"command": "bun run dev & sleep 2 && curl -X POST http://localhost:3200/api/tasks -H 'Content-Type: application/json' -d '{\"agent_id\":\"agent-1\",\"project_id\":\"proj-1\",\"title\":\"Test task\",\"task_type\":\"implementation\"}'",
"exitCode": 0,
"observation": "Returns 201 with {id, title, status: 'backlog', created_at, ...}"
}
],
"interactiveChecks": []
},
"tests": {
"added": [
{
"file": "tests/tasks.test.ts",
"cases": [
{"name": "creates task with valid data", "verifies": "POST /api/tasks returns 201"},
{"name": "rejects missing required fields", "verifies": "400 validation"},
{"name": "rejects invalid status", "verifies": "400 for bad enum"},
{"name": "prevents duplicate titles in project", "verifies": "409 conflict"},
{"name": "returns 404 for missing project", "verifies": "Project existence check"}
]
}
]
},
"discoveredIssues": []
}