08-ui-development-discovery.yaml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. id: contextscout-ui-development
  2. name: "ContextScout: UI Development Context Discovery"
  3. description: |
  4. Tests that ContextScout correctly discovers UI/web development context files
  5. when asked about React, frontend, or web design.
  6. This validates:
  7. - ContextScout finds ui/web domain files
  8. - ContextScout finds development/frontend files
  9. - ContextScout combines multiple relevant domains
  10. - ContextScout prioritizes based on specificity
  11. Expected Files (in priority order):
  12. 1. .opencode/context/ui/web/react-patterns.md (CRITICAL)
  13. 2. .opencode/context/ui/web/design-systems.md (HIGH)
  14. 3. .opencode/context/development/frontend/* (MEDIUM)
  15. 4. .opencode/context/core/standards/code-quality.md (MEDIUM)
  16. This test SHOULD FAIL if:
  17. - ContextScout doesn't find ui/web files
  18. - ContextScout doesn't combine ui + development domains
  19. - ContextScout returns backend or data files
  20. category: developer
  21. agent: subagents/core/contextscout
  22. prompts:
  23. - text: |
  24. Search for context files related to: building a React component with modern design patterns
  25. Task type: frontend-development
  26. Search intent: I need to build a React component following best practices and design system guidelines
  27. Return:
  28. - Exact file paths to relevant context files
  29. - Brief summary of what each file contains
  30. - Priority order (critical, high, medium)
  31. Focus on:
  32. - React patterns and best practices
  33. - Design system guidelines
  34. - Component architecture
  35. - Code quality standards
  36. approvalStrategy:
  37. type: auto-approve
  38. behavior:
  39. forbiddenTools:
  40. - task
  41. - bash
  42. - write # Read-only agent
  43. - edit # Read-only agent
  44. minToolCalls: 1
  45. maxToolCalls: 10
  46. timeout: 60000
  47. tags:
  48. - contextscout
  49. - discovery
  50. - ui-development
  51. - react
  52. - frontend
  53. - critical
  54. # Expected outcome:
  55. # - Uses glob to find files in ui/web and development/frontend
  56. # - Uses read to load:
  57. # * .opencode/context/ui/web/react-patterns.md
  58. # * .opencode/context/ui/web/design-systems.md
  59. # * .opencode/context/development/frontend/* (if exists)
  60. # * .opencode/context/core/standards/code-quality.md
  61. # - Returns structured response with:
  62. # * Priority 1 (CRITICAL): react-patterns.md - React-specific patterns
  63. # * Priority 2 (HIGH): design-systems.md - Design guidelines
  64. # * Priority 3 (MEDIUM): frontend files - General frontend practices
  65. # * Priority 4 (MEDIUM): code-quality.md - General code standards