{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "supercorp-ai-supercov--score-code-quality-before-review",
 "repo": "supercorp-ai/supercov",
 "repo_url": "https://github.com/supercorp-ai/supercov",
 "repo_slug": "supercorp-ai-supercov",
 "title": "Rank files by code smells before a review",
 "page_title": "How to rank files by code smells before a review with Supercov",
 "summary": "Score a repository's code quality and see the weakest files and the smells that fired in each.",
 "who": "A developer or tech lead who wants to know where a codebase needs cleanup before planning a refactor.",
 "problem": "Without a score, it is hard to tell which files are worst or which specific smells, such as long methods or deep nesting, are driving the problem.",
 "outcome": "A ranked list of weak files with the smells that fired, plus a per-file reading you can check against the source.",
 "steps": [
  "Export your TypeSafe AI key with `export TYPESAFE_API_KEY=...` using a key from https://typesafe.ai.",
  "Run `npx supercov quality` to score the repository and list the weakest files.",
  "Run `npx supercov quality gaps` to narrow the output to the smells that fired.",
  "Run `npx supercov quality file <path>` to read one file in full, using the path from the weakest list. (inferred, check the README)"
 ],
 "agent_prompt": "In the supercov repo's target project at <project path>, run `npx supercov quality` with TYPESAFE_API_KEY set, then `npx supercov quality file <path>` for the weakest file. Report the score, the smells that fired, and confirm each smell against the lines of that file.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "Scoring costs about a cent per megabyte of source, and Jev reads your source files to answer the questions, so it is not a fully local check.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "A project with a complete test command the repository already runs, such as npm test, pytest or cargo test",
  "Node.js so npx can fetch Supercov, or one of the other install routes in the README",
  "A TypeSafe AI API key from https://typesafe.ai, only for quality and security scoring; coverage needs no account"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Quality scoring needs a TypeSafe AI API key that you export into your shell, so keep it out of committed files and shared logs."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/supercorp-ai-supercov/score-code-quality-before-review/",
 "md": "https://dedupedai.com/use-cases/supercorp-ai-supercov/score-code-quality-before-review/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/supercorp-ai-supercov--score-code-quality-before-review.json",
 "api_version": "v1"
}
