{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "repository-security-score",
  "version": "1.0.0",
  "description": "Look up the published OpenSSF Scorecard for a public GitHub repository. Review its assessment date, overall score and selected open-source maintenance practices before adopting a dependency.",
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "Repository Security Score",
        "shortDescription": "Check open source practices",
        "longDescription": "Look up the published OpenSSF Scorecard for a public GitHub repository. Review its assessment date, overall score and selected open-source maintenance practices before adopting a dependency.",
        "category": "Security",
        "websiteURL": "https://repository-security-score.pages.dev/",
        "supportURL": "https://repository-security-score.pages.dev/support",
        "privacyPolicyURL": "https://repository-security-score.pages.dev/privacy-policy",
        "termsOfServiceURL": "https://repository-security-score.pages.dev/terms",
        "logo": "assets/logo.png",
        "defaultPrompt": [
          "Look up the published security score for ossf/scorecard.",
          "Check https://github.com/kubernetes/kubernetes for a published Scorecard.",
          "Look up the published Scorecard for nodejs/node."
        ]
      },
      "review": {
        "test_cases": {
          "positive": [
            {
              "description": "Scorecard project",
              "prompt": "Look up the published security score for ossf/scorecard.",
              "expected_behavior": "Show the overall score, assessment date, selected maintenance practices, and official source.",
              "tools_triggered": "lookup_repository_security_score"
            },
            {
              "description": "Kubernetes repository URL",
              "prompt": "Check https://github.com/kubernetes/kubernetes for a published Scorecard.",
              "expected_behavior": "Parse the URL and distinguish scored checks from unavailable checks.",
              "tools_triggered": "lookup_repository_security_score"
            },
            {
              "description": "Another dependency",
              "prompt": "Look up the published Scorecard for nodejs/node.",
              "expected_behavior": "Show the published assessment and date when available.",
              "tools_triggered": "lookup_repository_security_score"
            },
            {
              "description": "Case normalization",
              "prompt": "Look up OSSF/Scorecard for our dependency review.",
              "expected_behavior": "Normalize the repository name and locate its assessment.",
              "tools_triggered": "lookup_repository_security_score"
            },
            {
              "description": "Missing assessment",
              "prompt": "Look up nonexistent-project-342798/none in Scorecard.",
              "expected_behavior": "Report that no published assessment is available.",
              "tools_triggered": "lookup_repository_security_score"
            }
          ],
          "negative": [
            {
              "prompt": "Run a new active test against a server I found.",
              "description": "Explain that the tool only retrieves already published open-source maintenance assessments."
            },
            {
              "prompt": "Use https://example.com/organization/project as the GitHub repository.",
              "description": "Request a valid owner/repository or a GitHub repository HTTPS URL."
            },
            {
              "prompt": "Guarantee that this package will always be secure.",
              "description": "Explain the scope and date of the published assessment."
            }
          ]
        },
        "demo_recording_url": "https://repository-security-score.pages.dev/demo.mp4"
      },
      "publication": {
        "release_notes": "Initial release. Look up the published OpenSSF Scorecard for a public GitHub repository. Review its assessment date, overall score and selected open-source maintenance practices before adopting a dependency."
      },
      "apps": "./.app.json"
    }
  }
}
