05-file-creation.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. id: core-task-manager-file-creation
  2. name: "Task Manager: File Creation - Create Task Files"
  3. description: |
  4. Tests the task-manager's ability to create JSON task files for a feature.
  5. Validates:
  6. - Creates directory: .tmp/tasks/{feature}/
  7. - Creates task.json
  8. - Creates subtask_NN.json files
  9. - Includes required fields per schema
  10. - Summarizes what was created
  11. Critical Behavior:
  12. - MUST create proper directory structure
  13. - MUST use correct file naming
  14. - MUST include required JSON fields
  15. category: developer
  16. prompts:
  17. - text: |
  18. Create JSON task files for the feature "user-profile" with these tasks:
  19. 1. Create profile data model
  20. 2. Build profile UI component
  21. 3. Add profile update API
  22. Objective: Build a profile management feature with UI and API support.
  23. Deliverables:
  24. - src/profile/model.ts
  25. - src/profile/components/ProfileView.tsx
  26. - src/profile/api/update-profile.ts
  27. Use the write tool to create .tmp/tasks/user-profile/task.json and subtask_NN.json files.
  28. approvalStrategy:
  29. type: auto-approve
  30. behavior:
  31. mustUseTools:
  32. - read
  33. - bash
  34. - write
  35. requiresContext: true
  36. expectedContextFiles:
  37. - .opencode/context/core/task-management/navigation.md
  38. - .opencode/context/core/task-management/standards/task-schema.md
  39. - .opencode/context/core/task-management/guides/splitting-tasks.md
  40. - .opencode/context/core/task-management/guides/managing-tasks.md
  41. minToolCalls: 3
  42. maxToolCalls: 15
  43. expectedViolations:
  44. - rule: approval-gate
  45. shouldViolate: true
  46. severity: error
  47. description: Subagents do not request approvals
  48. timeout: 120000
  49. tags:
  50. - task-manager
  51. - file-creation
  52. - write
  53. - core-subagent