Prerequisites
Before installing Skylos, ensure your environment meets the following requirements:- Operating System: macOS, Linux, or Windows (WSL2 recommended).
- Python: Version 3.9, 3.10, 3.11, or 3.12.
- Package Manager:
piporuv.
Browser Support: Skylos is a CLI tool and does not require a web browser, although it can generate HTML reports that support Chrome, Edge, Firefox, and Safari.
Step 1: Installation
Skylos is distributed via PyPI. Install it globally or within your project’s virtual environment.Step 2: Initialize a Project
To scan a repository, you must initialize Skylos in the project root. This creates the configuration file required to define your quality policies.- Navigate to your project folder.
- Run the initialization command:
pyproject.toml file with default settings:
Step 3: Configure AI Access (Optional)
Skylos does not require a proprietary token. However, to use Auto-Fix (--fix) or Audit (--audit) features, you must provide an API key for a supported LLM provider.
Skylos checks for keys in the following priority:
- Environment Variables:
OPENAI_API_KEYorANTHROPIC_API_KEY. - System Keyring: Keys saved via previous interactive sessions.
- Interactive Prompt: You will be prompted to paste a key if none is found.
Step 4: Run Your First Scan
Once installed and initialized, you can perform a static analysis scan.Reviewing Results
The CLI will output a summary of findings grouped by category:- Dead Code: Unreachable functions, classes, and variables.
- Security: Vulnerabilities detected by the Taint Engine.
- Quality: Complexity and structural violations.
