summaryrefslogtreecommitdiff
path: root/evals/cases/frontend-ui-engineering.json
blob: c7eadfd7648a8c59b044cbc2225451e5793a38a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  "skill_name": "frontend-ui-engineering",
  "trigger": {
    "positive": [
      {
        "prompt": "Make this page responsive and WCAG compliant",
        "top_k": 1
      },
      {
        "prompt": "Build an accessible modal component with keyboard support",
        "top_k": 3
      },
      {
        "prompt": "Make the pricing page accessible and responsive on mobile",
        "top_k": 1
      },
      {
        "prompt": "Refactor the dashboard into reusable components with sane state management",
        "top_k": 3
      },
      {
        "prompt": "Rework the profile page into reusable components with proper state management",
        "top_k": 3
      },
      {
        "prompt": "The UI looks broken on mobile",
        "top_k": 1
      }
    ],
    "negative": [
      {
        "prompt": "Optimize the slow database indexes",
        "owner": "performance-optimization"
      },
      {
        "prompt": "Tag and publish the release",
        "owner": "git-workflow-and-versioning"
      }
    ]
  },
  "evals": [
    {
      "id": 1,
      "prompt": "Build a dropdown menu component for the design system.",
      "expected_output": "An accessible, keyboard-navigable component following project conventions",
      "files": [
        "frontend-ui-engineering"
      ],
      "expectations": [
        "Keyboard interaction and focus management are implemented, not just mouse clicks",
        "ARIA roles or semantic elements are used correctly",
        "Component state is managed deliberately rather than ad hoc"
      ]
    }
  ]
}