100 lines
2.4 KiB
YAML
100 lines
2.4 KiB
YAML
# Example Task - Created by Architect Agent
|
|
# Copy this template when creating new tasks
|
|
|
|
# ============================================
|
|
# FRONTEND TASK EXAMPLE
|
|
# ============================================
|
|
id: task_create_button
|
|
type: create
|
|
title: Create Button component
|
|
agent: frontend
|
|
status: pending
|
|
priority: high
|
|
|
|
entity_ids:
|
|
- comp_button
|
|
|
|
file_paths:
|
|
- app/components/Button.tsx
|
|
|
|
dependencies: [] # No dependencies, can start immediately
|
|
|
|
description: |
|
|
Create a reusable Button component with variant support.
|
|
Must match the manifest specification for comp_button.
|
|
|
|
acceptance_criteria:
|
|
- Exports Button component as named export
|
|
- Implements ButtonProps interface matching manifest
|
|
- Supports variant prop (primary, secondary, danger)
|
|
- Supports size prop (sm, md, lg)
|
|
- Supports disabled state
|
|
- Uses Tailwind CSS for styling
|
|
- Follows existing component patterns
|
|
|
|
---
|
|
# ============================================
|
|
# BACKEND TASK EXAMPLE
|
|
# ============================================
|
|
id: task_create_api_tasks
|
|
type: create
|
|
title: Create Tasks API endpoints
|
|
agent: backend
|
|
status: pending
|
|
priority: high
|
|
|
|
entity_ids:
|
|
- api_list_tasks
|
|
- api_create_task
|
|
|
|
file_paths:
|
|
- app/api/tasks/route.ts
|
|
- app/lib/db.ts
|
|
|
|
dependencies:
|
|
- task_create_db_tasks # Needs database first
|
|
|
|
description: |
|
|
Implement GET and POST handlers for /api/tasks endpoint.
|
|
GET: List all tasks with optional filtering
|
|
POST: Create a new task
|
|
|
|
acceptance_criteria:
|
|
- Exports GET function for listing tasks
|
|
- Exports POST function for creating tasks
|
|
- GET supports ?status and ?search query params
|
|
- POST validates required title field
|
|
- Returns proper HTTP status codes
|
|
- Matches manifest request/response schemas
|
|
|
|
---
|
|
# ============================================
|
|
# REVIEW TASK EXAMPLE
|
|
# ============================================
|
|
id: task_review_button
|
|
type: review
|
|
title: Review Button component implementation
|
|
agent: reviewer
|
|
status: pending
|
|
priority: medium
|
|
|
|
entity_ids:
|
|
- comp_button
|
|
|
|
file_paths:
|
|
- app/components/Button.tsx
|
|
|
|
dependencies:
|
|
- task_create_button # Must complete implementation first
|
|
|
|
description: |
|
|
Review the Button component implementation for quality,
|
|
correctness, and adherence to manifest specifications.
|
|
|
|
acceptance_criteria:
|
|
- Code matches manifest spec
|
|
- Props interface is correct
|
|
- Follows project patterns
|
|
- Lint passes
|
|
- Type-check passes
|