{
  "schemaVersion": "1.0",
  "item": {
    "slug": "repo-analyzer",
    "name": "Repo Analyzer",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Don-GBot/repo-analyzer",
    "canonicalUrl": "https://clawhub.ai/Don-GBot/repo-analyzer",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/repo-analyzer",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=repo-analyzer",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "data/malware-hashes.json",
      "package.json",
      "scripts/analyze.js",
      "scripts/setup.js"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/repo-analyzer"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/repo-analyzer",
    "agentPageUrl": "https://openagent3.xyz/skills/repo-analyzer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/repo-analyzer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/repo-analyzer/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Repo Analyzer",
        "body": "Zero-dependency GitHub trust scorer. Runs 29 analysis modules across 12 scoring categories."
      },
      {
        "title": "Usage",
        "body": "# Single repo\nnode scripts/analyze.js <owner/repo or github-url> [flags]\n\n# From a tweet (auto-extracts GitHub links)\nnode scripts/analyze.js <x.com-or-twitter.com-url> [flags]\n\n# Batch mode\nnode scripts/analyze.js --file <repos.txt> [--json]"
      },
      {
        "title": "Flags",
        "body": "--json — JSON output (for pipelines)\n--oneline — compact one-line score\n--badge — shields.io markdown badge\n--verbose — show progress\n--token <pat> — GitHub PAT (or set GITHUB_TOKEN env)\n--file <path> — batch mode, one repo per line (# comments ok)"
      },
      {
        "title": "Environment",
        "body": "CRITICAL: Always run with GITHUB_TOKEN loaded. Without it, scores are severely degraded (missing stars, forks, commits).\nBefore running: source ~/.bashrc (token is in ~/.bashrc as GITHUB_TOKEN).\nOr pass explicitly: GITHUB_TOKEN=\"$(grep GITHUB_TOKEN ~/.bashrc | cut -d'\"' -f2)\" node scripts/analyze.js ..."
      },
      {
        "title": "Scoring (14 categories, 168pts normalized to 100)",
        "body": "CategoryMaxWhat it checksCommit Health20Human vs bot, GPG sigs, code dumps, fake timestampsContributors15Bus factor, contributor diversityCode Quality25Tests, CI, license, docs, lock filesAI Authenticity15AI slop detection in code/READMESocial10Stars, forks, star/fork ratio, botted starsActivity10Recent pushes, releasesCrypto Safety5Token mints, rug patterns, wallet addressesDependency Audit10Known malicious packages, typosquatting, install hooks, lock filesFork Quality8Fork divergence, suspicious changes, gutted vs meaningful forksREADME Quality10Install guide, examples, structure, API docsMaintainability10File sizes, nesting, code/doc ratioProject Health10Abandoned detection, velocity, issue response, PR reviewOriginality5Copy-paste, template detection, backer verificationAgent Safety15Install hooks, prompt injection, secrets, CI audit, permissions"
      },
      {
        "title": "Grade Scale",
        "body": "A (85+): LEGIT\nB (70-84): SOLID\nC (55-69): MIXED\nD (40-54): SKETCHY\nF (<40): AVOID"
      },
      {
        "title": "Key Features",
        "body": "Enhanced dependency audit: Detects known malicious packages (event-stream, ua-parser-js, etc.), typosquatting attacks, install hooks, and estimates transitive dependency bloat\nFork comparison: Analyzes fork divergence, detects cosmetic vs meaningful changes, flags suspicious modifications (removed CI, added wallets), identifies gutted forks\nAgent safety: Detects prompt injection, credential harvesting, install script hooks, obfuscated code\nSecrets detection: Finds hardcoded API keys, tokens, private keys via regex + entropy\nNetwork mapping: Categorizes all outbound domains (API, CDN, unknown)\nCI/CD audit: Checks GitHub Actions for pull_request_target, unpinned actions, secret leaks\nPermissions manifest: Summarizes what the code needs to run (like an app permissions list)\nAuthor reputation: Org memberships, suspicious repos, account age\nBacker verification: Cross-references investor claims vs committer org membership\nComplexity hotspots: Flags large files with deep nesting and high conditional density"
      },
      {
        "title": "Batch File Format",
        "body": "# One repo per line, # for comments\nUniswap/v3-core\nhttps://github.com/aave/aave-v3-core\nOpenZeppelin/openzeppelin-contracts"
      },
      {
        "title": "Output",
        "body": "Default: rich terminal report with bar charts, sections, verdict.\n--json: Full structured data for programmatic use.\n--oneline: RepoName: 85/100 [A] — 2 flags"
      },
      {
        "title": "When Reporting to User",
        "body": "Keep it concise. Lead with score/grade and notable findings. Skip sections with nothing interesting. Example:\n\n\"Uniswap/v3-core scored 75/B — 96% GPG-signed, 11 authors, MIT license. Flagged: abandoned (466 days no push), 2,597 transitive deps (bloated), secrets in CI run commands. Agent safety: CAUTION.\""
      }
    ],
    "body": "Repo Analyzer\n\nZero-dependency GitHub trust scorer. Runs 29 analysis modules across 12 scoring categories.\n\nUsage\n# Single repo\nnode scripts/analyze.js <owner/repo or github-url> [flags]\n\n# From a tweet (auto-extracts GitHub links)\nnode scripts/analyze.js <x.com-or-twitter.com-url> [flags]\n\n# Batch mode\nnode scripts/analyze.js --file <repos.txt> [--json]\n\nFlags\n--json — JSON output (for pipelines)\n--oneline — compact one-line score\n--badge — shields.io markdown badge\n--verbose — show progress\n--token <pat> — GitHub PAT (or set GITHUB_TOKEN env)\n--file <path> — batch mode, one repo per line (# comments ok)\nEnvironment\n\nCRITICAL: Always run with GITHUB_TOKEN loaded. Without it, scores are severely degraded (missing stars, forks, commits). Before running: source ~/.bashrc (token is in ~/.bashrc as GITHUB_TOKEN). Or pass explicitly: GITHUB_TOKEN=\"$(grep GITHUB_TOKEN ~/.bashrc | cut -d'\"' -f2)\" node scripts/analyze.js ...\n\nScoring (14 categories, 168pts normalized to 100)\nCategory\tMax\tWhat it checks\nCommit Health\t20\tHuman vs bot, GPG sigs, code dumps, fake timestamps\nContributors\t15\tBus factor, contributor diversity\nCode Quality\t25\tTests, CI, license, docs, lock files\nAI Authenticity\t15\tAI slop detection in code/README\nSocial\t10\tStars, forks, star/fork ratio, botted stars\nActivity\t10\tRecent pushes, releases\nCrypto Safety\t5\tToken mints, rug patterns, wallet addresses\nDependency Audit\t10\tKnown malicious packages, typosquatting, install hooks, lock files\nFork Quality\t8\tFork divergence, suspicious changes, gutted vs meaningful forks\nREADME Quality\t10\tInstall guide, examples, structure, API docs\nMaintainability\t10\tFile sizes, nesting, code/doc ratio\nProject Health\t10\tAbandoned detection, velocity, issue response, PR review\nOriginality\t5\tCopy-paste, template detection, backer verification\nAgent Safety\t15\tInstall hooks, prompt injection, secrets, CI audit, permissions\nGrade Scale\nA (85+): LEGIT\nB (70-84): SOLID\nC (55-69): MIXED\nD (40-54): SKETCHY\nF (<40): AVOID\nKey Features\nEnhanced dependency audit: Detects known malicious packages (event-stream, ua-parser-js, etc.), typosquatting attacks, install hooks, and estimates transitive dependency bloat\nFork comparison: Analyzes fork divergence, detects cosmetic vs meaningful changes, flags suspicious modifications (removed CI, added wallets), identifies gutted forks\nAgent safety: Detects prompt injection, credential harvesting, install script hooks, obfuscated code\nSecrets detection: Finds hardcoded API keys, tokens, private keys via regex + entropy\nNetwork mapping: Categorizes all outbound domains (API, CDN, unknown)\nCI/CD audit: Checks GitHub Actions for pull_request_target, unpinned actions, secret leaks\nPermissions manifest: Summarizes what the code needs to run (like an app permissions list)\nAuthor reputation: Org memberships, suspicious repos, account age\nBacker verification: Cross-references investor claims vs committer org membership\nComplexity hotspots: Flags large files with deep nesting and high conditional density\nBatch File Format\n# One repo per line, # for comments\nUniswap/v3-core\nhttps://github.com/aave/aave-v3-core\nOpenZeppelin/openzeppelin-contracts\n\nOutput\n\nDefault: rich terminal report with bar charts, sections, verdict. --json: Full structured data for programmatic use. --oneline: RepoName: 85/100 [A] — 2 flags\n\nWhen Reporting to User\n\nKeep it concise. Lead with score/grade and notable findings. Skip sections with nothing interesting. Example:\n\n\"Uniswap/v3-core scored 75/B — 96% GPG-signed, 11 authors, MIT license. Flagged: abandoned (466 days no push), 2,597 transitive deps (bloated), secrets in CI run commands. Agent safety: CAUTION.\""
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Don-GBot/repo-analyzer",
    "publisherUrl": "https://clawhub.ai/Don-GBot/repo-analyzer",
    "owner": "Don-GBot",
    "version": "1.2.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/repo-analyzer",
    "downloadUrl": "https://openagent3.xyz/downloads/repo-analyzer",
    "agentUrl": "https://openagent3.xyz/skills/repo-analyzer/agent",
    "manifestUrl": "https://openagent3.xyz/skills/repo-analyzer/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/repo-analyzer/agent.md"
  }
}