SuperAPIAI Directory

skylos

github.com · AI coding

Dead code detection, security scanning and code quality analysis for Python, TypeScript and Go, with AI-assisted remediation.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Skylos is an open source (Apache-2.0) local-first PR scanner for finding dead code, security flaws, secrets, quality regressions, and AI code mistakes before merging. It runs through the CLI and can be used without an account.

Main uses

Skylos is aimed at the following scenarios:

  • Teams merging Pull Requests from AI coding agents such as Claude Code, Codex, and Cursor.
  • Python maintainers who want framework-aware dead code, security, and secret checks.

Main capabilities

  • Dead code detection: Run skylos . to find unused functions, classes, imports, and empty files.
  • Extended checks: Add -a to check for security flaws, hardcoded secrets, vulnerable dependencies, code quality, and AI code mistakes.
  • Merge readiness check:skylos done is used to determine whether a branch (often one created by a coding agent) is ready to merge. It runs tests and flags deleted or skipped tests, relaxed CI test steps, muted lint or type checks, and test-only special cases.
  • Multi-language support: Python has the deepest coverage; TypeScript/JavaScript and Java also support dead code, security, and quality checks; PHP, Rust, and Dart support dead code and security checks. Go dead code and security checks require the separately built skylos-go engine, which is included in the container image and GitHub Action but not in the PyPI package. C# support is incomplete, Kotlin supports only dead code, C++ is limited to unused file-local functions, and Shell supports only security checks.
  • Dependency licenses and SBOM:skylos sbom . can write declared dependency licenses to CycloneDX, and--format spdx-json can output an SPDX 2.3 SBOM.
  • AI code validation and agent guardrails: Can validate common mistakes in AI-generated code, including missing guards, fake helper functions, fabricated package APIs, and impossible dependency versions; can also check LLM application risks such as unsafe tool use and missing output validation.

Usage

  • Quick start: After installation, run skylos . for a default dead code scan, or use skylos . -a for a full scan including security, secrets, quality, dependencies, and AI defects.
  • Merge readiness:skylos done compares a branch with its merge base on main, runs tests, and writes the results to .skylos/receipts/. It automatically runs pytest; other test runners require configuring a [tool.skylos.done] line in test_command.
  • AI defect checks: Can run only evidence-backed AI defect checks.
  • Validate repository:skylos verify can validate a repository, file, or scope, and supports creating local AI hallucination contracts through .skylos/ai-contract.yml .
  • Agent hooks: Can install local hooks to validate changed lines after each edit by agents such as Claude Code, Codex, and Cursor, block files containing hardcoded secrets before file reads, block fabricated or impersonated packages before package installation, block hook-bypassing operations before git commands, and block "done" when unresolved issues remain at stop time.
  • Configuration and gating: Gate limits can be adjusted under pyproject.toml in [tool.skylos.gate] . In a Pull Request,skylos cicd gate --diff-base reads the policy from the base branch, so the PR cannot disable rules by itself.
  • GitHub Actions: Generate a workflow without a Skylos account or API key, review changed lines, and add when tests are found skylos done Task.

Applicable scenarios and limitations

  • Applicable scenarios: local development, CI gates, PR review, AI-generated code verification, real-time checks in agent workflows.
  • Limitations and notes:
    • Go support requires the separately built skylos-go engine.
    • New source code scans use concrete readings instead of mixed A–F grades; disabled checks are not evaluated, and a failed check means incomplete.
    • verify schema version 2 returns pass, fail, or incomplete; incomplete means the required proof cannot be established, and unless --no-failis set, the exit code is 2.
    • Deterministic local/workspace API verification currently covers Python, TypeScript/JavaScript, Go, and Java, and does not execute the target code; local API proofs for PHP, Rust, Dart, C#, Kotlin, and Shell are reported as unsupported, and therefore incomplete.
    • Dependency coverage lists unresolved versions and required inputs, and does not claim runtime exploitability or a complete installed environment.
    • image scan requires Trivy in a trusted PATH, as well as registry network access and credentials.
    • Hooks are not a sandbox; they only check edits, file reads, and package installations, not all commands.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools