{
  "repo": "oralstage__chess-problems",
  "total": 4,
  "priorities": {
    "P0": 0,
    "P1": 1,
    "P2": 3,
    "P3": 0
  },
  "prompts": [
    {
      "id": "gate-failed",
      "title": "Fix quality gate failures (1 conditions)",
      "priority": "P1",
      "category": "quality",
      "prompt": "Repository 'oralstage__chess-problems' is failing the quality gate.\n\nFailed conditions:\n- overall_score: actual 45.7 >= 50 (FAILED)\n\nFix each failing condition to make the repo pass the quality gate.",
      "files": [],
      "expected_outcome": "All quality gate conditions pass",
      "effort": "moderate",
      "tags": [
        "quality-gate",
        "quality"
      ]
    },
    {
      "id": "license-missing",
      "title": "Add a LICENSE file",
      "priority": "P2",
      "category": "legal",
      "prompt": "Repository 'oralstage__chess-problems' has no detectable license. Add a LICENSE file. For open-source projects, MIT is recommended unless dependencies require a specific license. Create the full file.",
      "files": [],
      "expected_outcome": "LICENSE file added",
      "effort": "quick-fix",
      "tags": [
        "license",
        "legal"
      ]
    },
    {
      "id": "scorecard-fail",
      "title": "Fix 6 scorecard failures (40%)",
      "priority": "P2",
      "category": "compliance",
      "prompt": "Repository 'oralstage__chess-problems' fails 6 scorecard checks (score: 40%):\n\n- Has LICENSE: Repository has a LICENSE file\n- Has CI/CD: Repository has CI/CD configuration\n- Has Tests: Repository has test files\n- Has Docker: Repository has Dockerfile\n- Quality Gate Passed: Passes the default quality gate\n- Grade C or Above: Overall quality grade is C or better\n\nFix each failing check.",
      "files": [],
      "expected_outcome": "Scorecard score improved from 40% to 80%+",
      "effort": "moderate",
      "tags": [
        "scorecard",
        "compliance"
      ]
    },
    {
      "id": "complexity",
      "title": "Simplify 5 high-complexity files",
      "priority": "P2",
      "category": "quality",
      "prompt": "These files in 'oralstage__chess-problems' have high cyclomatic complexity:\n\n- **src/App.tsx**: complexity=504, max nesting=7, longest function=333 lines\n- **src/components/FilterPage.tsx**: complexity=106, max nesting=7, longest function=168 lines\n- **src/components/SolutionTree.tsx**: complexity=90, max nesting=7, longest function=178 lines\n- **src/components/FeedbackPanel.tsx**: complexity=55, max nesting=5, longest function=307 lines\n- **src/components/SearchPage.tsx**: complexity=47, max nesting=7, longest function=172 lines\n\nFor each file:\n1. Break large functions into smaller, focused functions\n2. Reduce nesting depth (extract early returns, use guard clauses)\n3. Simplify conditional logic\n4. Extract complex expressions into named variables",
      "files": [
        "src/App.tsx",
        "src/components/FilterPage.tsx",
        "src/components/SolutionTree.tsx",
        "src/components/FeedbackPanel.tsx",
        "src/components/SearchPage.tsx"
      ],
      "expected_outcome": "All listed files reduced to medium or low complexity",
      "effort": "significant",
      "tags": [
        "complexity",
        "refactoring",
        "quality"
      ]
    }
  ]
}