Skylos is an open-source static analysis tool for Python, TypeScript, and Go, designed to enhance code security and quality. It identifies dead code, hardcoded secrets, exploitable vulnerabilities, and diff-aware regressions, particularly those introduced by AI-assisted coding. Skylos operates primarily as a CLI tool with a rapid release cadence, offering integrations for GitHub Actions and a VS Code extension for in-editor findings.
pip install skylosNo compatibility data collected yet for this library.
Install Skylos and run a comprehensive scan of your current project directory. The `-a` flag enables all core checks: danger, secrets, quality, and SCA (Software Composition Analysis). For custom configuration, initialize a `pyproject.toml` file.
For comprehensive dead-code verification, ensure you use `skylos agent scan <path> --verify-dead-code`.
Review your `.gitignore` to ensure desired files are included/excluded. Re-evaluate dead code findings for framework-heavy projects as precision has improved.
Set `OPENAI_API_KEY` or `ANTHROPIC_API_KEY` environment variables or provide the key when prompted to use AI-powered features.
Be aware of the precedence: CLI arguments take priority over `pyproject.toml` `addopts`. Configure defaults in `pyproject.toml` but use CLI flags for one-off overrides.
Run `skylos init` in your project's root directory to generate the necessary `pyproject.toml` for configuration.
Ensure `pip install skylos` completed successfully. If using a virtual environment, activate it. Otherwise, locate the `skylos` executable (e.g., in `~/.local/bin` or `C:\PythonXY\Scripts`) and add its directory to your system's PATH.
Navigate to the root directory of your Git repository before running `skylos`, or clone a Git repository if you haven't already.
Use `skylos help` to see the list of available commands, or refer to the Skylos documentation for the correct command usage, typically `skylos analyze`.
Ensure the user running Skylos has appropriate read/write permissions for the target files and directories. If it's about the binary, make sure it's executable (e.g., `chmod +x /usr/local/bin/skylos`).