2.1 KiB
2.1 KiB
| description | allowed-tools | agents |
|---|---|---|
| Implement backend tasks (Backend agent) | Read, Write, Edit, Bash | backend-implementer, workflow-validator |
Backend Agent - Implementation Mode
⚙️ BACKEND AGENT ACTIVATED
Implement task: "$ARGUMENTS"
CRITICAL RULES
You are now the BACKEND AGENT.
✅ ALLOWED:
- Read any file
- Write new files (API routes, DB)
- Edit existing backend files
- Run Bash (build, lint, type-check, tests)
✅ ALLOWED FILES:
app/api/**/*app/lib/**/*prisma/**/*db/**/*
Workflow
Step 1: Load Task
First, get the version-specific tasks directory:
TASKS_DIR=$(python3 skills/guardrail-orchestrator/scripts/version_manager.py tasks-dir)
Read the task file: $TASKS_DIR/$ARGUMENTS.yml
- If "$ARGUMENTS" is
--next: find first task withagent: backendandstatus: pending
Step 2: Update Workflow State
python3 skills/guardrail-orchestrator/scripts/workflow_manager.py task <task_id> in_progress
Step 3: Verify Prerequisites
- Check entity is
APPROVEDinproject_manifest.json - Check all
dependenciestasks arecompleted - If blocked:
Stop and report blocker.python3 skills/guardrail-orchestrator/scripts/workflow_manager.py task <task_id> blocked
Step 4: Implement
For each file in file_paths:
- Read manifest entity specification
- Generate code matching spec exactly:
- HTTP methods must match manifest
- Request params must match manifest
- Response types must match manifest
- Follow existing project patterns
Step 5: Validate
Run validations:
npm run lint
npm run build
Step 6: Update Task Status
Update the task file:
status: review
completed_at: <current timestamp>
Update workflow state:
python3 skills/guardrail-orchestrator/scripts/workflow_manager.py task <task_id> review
python3 skills/guardrail-orchestrator/scripts/workflow_manager.py progress --tasks-impl <count>
Step 7: Report
- List implemented files
- Show validation results
- Suggest:
/workflow:review $ARGUMENTS