Full-stack worker for Agent-X — handles UI, API routes, pipeline logic, and database changes
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Any feature touching the Agent-X codebase: UI changes (page.tsx, globals.css, components), API routes, pipeline logic (lib/), database schema, or new integrations.
None. Agent-browser is used only during milestone validation, not during feature implementation.
AGENTS.md for coding conventions and boundaries.factory/library/ files for contextlib/{module}.test.ts using Node.js built-in test runner:
import { describe, it } from 'node:test'
import assert from 'node:assert/strict'
pnpm tsx --test lib/*.test.tspnpm tsx --test lib/*.test.tsnpx tsc --noEmitpnpm tsx --test lib/*.test.tsnpx tsc --noEmitgit add changed files{
"salientSummary": "Added 4th confirmation step to wizard with segment/problem/ICP preview. Fixed stale state bug by passing ICP directly instead of reading from memo. Added rapid-click guard. All 32 tests pass, typecheck clean.",
"whatWasImplemented": "Wizard confirmation step (step 4) showing selected segment, problem, and ICP description. Back navigation preserving state. Start Research with disabled state during discovery. Fixed stale ICP by passing as direct parameter.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "pnpm tsx --test lib/*.test.ts", "exitCode": 0, "observation": "All 32 tests passing including 3 new tests" },
{ "command": "npx tsc --noEmit", "exitCode": 0, "observation": "No type errors" }
],
"interactiveChecks": []
},
"tests": {
"added": [
{
"file": "lib/wizard.test.ts",
"cases": [
{ "name": "buildIcpDescription returns formatted string", "verifies": "ICP format" },
{ "name": "confirmation preserves wizard selections", "verifies": "State preservation" }
]
}
]
},
"discoveredIssues": []
}