What is Skylos?
Skylos is a free, open-source (Apache-2.0) checker for the code you and your coding agents write. It runs on your machine, inside your agent's loop and as a pull-request gate. No account, no API key and no LLM needed.
Coding agents such as Claude Code, Codex and Cursor write code faster than anyone can review it, and they repeat the same mistakes. They say "done" after deleting or skipping a failing test. They install packages that don't exist and import functions nobody wrote. They leave injection bugs and hard-coded keys behind. Linters and security scanners each catch a slice of this, after the fact. Skylos checks all of it in one tool, at the points where it can still be stopped.
It is built for:
- Developers who let agents write code, and want the agent checked while it works, not after.
- Maintainers who want one free check on every pull request.
- Existing codebases that need security, secrets, dependency, quality and dead-code findings from one scan, in Python, TypeScript, Java, Go and more.
How it works
Skylos steps in at four points:
| When | Command | What it stops |
|---|---|---|
| While the agent works | skylos agent install-hooks |
Made-up package installs, reads of files holding secrets, git-hook bypasses; checks every edit |
| When the agent says "done" | skylos done --base main |
Deleted or skipped tests, loosened CI steps, silenced lint or type checks, test-only special cases; runs your tests |
| On every pull request | skylos cicd init |
Critical security issues, secrets and critical AI-code mistakes, plus anything over your limits |
| Any time, on the whole repo | skylos . -a |
Security flaws, secrets, vulnerable dependencies, quality regressions, AI-code mistakes, dead code |
See it work
A 20-line Flask app, scanned with every check (excerpt):
$ skylos . -a --format concise
app.py:15 SKY-D211 Possible SQL injection: tainted or string-built query.
app.py:5 SKY-L012 Import from local module 'billing' requests 'issue_refund', but that name is not defined or re-exported there.
app.py:8 SKY-S101 Potential stripe secret detected
requirements.txt:1 SKY-SCA-GHSA-68rp-wp8r-4726 flask@3.1.2: Flask session does not add `Vary: Cookie` header when accessed in some ways
billing.py:1 SKY-U001 unused function: charge_card
Every finding names the file, line and rule. Security findings show the
source-to-sink path when one was recorded; --format json keeps the full
evidence.
Quick start
pip install skylos
Key commands
No account needed. Your code and findings stay on your machine.
| To | Run |
|---|---|
| Find dead code | skylos . |
| Run every check: security, secrets, dependencies, quality, AI-code mistakes | skylos . -a |
| Check only what your branch changed | skylos . -a --diff origin/main |
| Fail the build when the gate fails | skylos . --gate |
| Check the agent really finished (runs your tests) | skylos done --base main |
| Check every pull request in CI | skylos cicd init |
| Set up Claude Code and Codex in this repo | skylos setup |
Skylos Cloud in three steps
Optional. Track every branch and block pull requests from one dashboard. No token to copy.
skylos cloud # 1. sign in once in your browser; connects this repo, scans and uploads
skylos cicd init # 2. writes .github/workflows/skylos.yml and prints what to do next
# 3. open its pull request, install the Skylos GitHub App (link printed), merge
Scans from your machine are saved for review but never block a merge. After step 3, every pull request is checked, and CI uploads with its GitHub identity (OIDC), so you never add a secret. Details: Skylos Cloud.
Working with a coding agent? skylos setup once per repo, then skylos open
every day for a diagram of your code, what changed, and every check run. The
tutorial walks through a real session.
Check every agent edit
Install hooks so the agent is checked while it works:
skylos agent install-hooks # Claude Code
skylos agent install-hooks --codex # Codex
skylos agent install-hooks --cursor # Cursor
- After each edit: checks the changed lines for security issues, secrets and AI-code mistakes, and tells the agent what to fix.
- Before a file read: blocks files that contain hard-coded secrets.
- Before a package install (
pip,uv,npm,pnpm,bun,go, ...): blocks made-up or typosquatted packages, and asks before installs it cannot verify. - Before a git command: blocks
--no-verifyand other ways around your git hooks. - At stop: blocks "done" while issues the agent added are still open.
If Skylos itself errors, the action is allowed and both you and the agent are told it went unchecked. See agent hooks.
Is the agent really done?
skylos done --base main
skylos done compares the branch with main and runs your tests. It flags:
- deleted, skipped or weakened tests
- loosened test settings and CI test steps
- silenced lint or type checks
- code that special-cases the tests
- code the branch left with no callers (advice, not a block)
When a test fails, it reruns it on main and labels the failure "introduced"
or "already failing". It writes a receipt to .skylos/receipts/. pytest runs
automatically; other runners need one line:
[tool.skylos.done]
test_command = "npm test"
It reads its settings from main, so a branch cannot loosen its own check.
Exit codes: 0 pass, 1 blocked, 2 could not run. See the
done gate and what it misses.
Gate pull requests
No account or token needed:
git checkout -b add-skylos-gate
skylos cicd init --no-upload
git add .github/workflows/skylos.yml
git commit -m "Add Skylos pull request gate"
git push -u origin add-skylos-gate
The workflow reviews the changed lines of each pull request and runs
skylos done when it finds your tests. skylos cicd init also sets up GitLab
CI, Jenkins, Bitbucket Pipelines, Azure Pipelines and CircleCI
(any CI).
The gate always fails on a critical security issue, a secret, or a critical AI-code issue such as an import of a package that doesn't exist. Everything else fails only above your limits:
[tool.skylos.gate]
max_high = 5 # high-severity security issues allowed
max_quality = 10 # quality issues allowed
max_ai_defects = 10 # AI-code issues allowed
The policy is read from the base branch, so a pull request cannot loosen its
own gate. Each run ends with Quality Gate: PASSED, FAILED (exit 1) or
INCOMPLETE (exit 2) and the reasons. Walkthrough:
your first gated pull request.
Need a person to sign off on risky changes? skylos cicd init --risk-review
adds a check that waits for a human approval when a pull request deletes
tests, removes auth checks, changes dependencies or weakens CI. See
risk review.
Scan a repository
skylos . # dead code (fast, default)
skylos . -a # every check
skylos . -a --diff origin/main # only findings on changed lines
skylos . --format pretty # grouped report with code snippets
skylos . --tui # keyboard-driven triage
skylos . -a --format json # full evidence for scripts and agents
skylos . --format sarif # GitHub code scanning
skylos cleanup . --top 5 # a prioritized fix list
Python dead code can be removed for you: skylos clean . --dry-run shows the
plan, --apply edits files. Output modes and exit codes:
CLI output.
What Skylos catches
| Category | Examples |
|---|---|
| AI-code mistakes | imports of functions that don't exist, invented package APIs, packages that don't exist, impossible versions, unfinished stubs, disabled controls |
| Security flaws | SQL injection, XSS, SSRF, path traversal, command injection, unsafe deserialization, ReDoS |
| Secrets | API keys, tokens, private credentials, high-entropy strings |
| Dependencies | known CVEs, malicious packages, license policy, offline SBOM (CycloneDX, SPDX) |
| Quality | complexity, deep nesting, duplicate branches, long functions, inconsistent returns |
| Dead code | unused functions, classes, imports, files and dependencies, framework-aware (FastAPI, Django, Flask, Next.js, React, Laravel, ...) |
| CI/CD and deployment | risky GitHub Actions and GitLab CI, Dockerfiles, Docker Compose, systemd, Kubernetes |
| LLM apps | unsafe tool use, prompt-injection exposure, missing output validation |
Every rule: Rules Reference and rule dictionary.
Verify the AI apps you build
If your code calls an LLM, Skylos checks the guardrails around it, with no model in the loop:
skylos discover . # list LLM calls, agent tools and prompt sites
skylos defend . # score the guardrails around them
skylos defend . --fail-on critical # CI gate
skylos defend . --format md -o evidence.md # evidence report with OWASP LLM Top 10 coverage
It covers Python and TypeScript/JavaScript; --owasp-framework agentic reports
against the OWASP Agentic Top 10. To test a running agent against
expected answers and tool calls, use skylos agent test. See
agent verification and
agent behavior testing.
Language Support
| Language | Dead code | Security | Quality |
|---|---|---|---|
| Python | Yes | Yes | Yes |
| TypeScript / JavaScript | Yes | Yes | Yes |
| Java | Yes | Yes | Yes |
| Go | Yes | Partial | Partial |
| PHP | Yes | Yes | No |
| Rust | Experimental | Partial | Partial |
| Ruby | Partial | Partial | No |
| Dart | Yes | Partial | No |
| C# | Partial | Partial | Partial |
| C++ | Partial | No | No |
| Kotlin | Partial | Partial | No |
| Swift | Partial | No | No |
| Shell | No | Partial | No |
- Python has the deepest coverage.
- Go needs the native
skylos-goengine. It ships in the PyPI wheels for Linux, macOS and Windows; elsewhereskylos doctorprints the build command. - Dart needs
pip install "skylos[dart]". - Rust dead code is hidden by default;
--confidence 40shows it.
Full matrix and per-language limits: language support.
Configuration
skylos init adds a starter config to pyproject.toml. Projects without one
can use skylos.toml with the same keys at the top level:
# skylos.toml
exclude = ["generated", "dist"]
[gate]
max_high = 5
[done]
test_command = "npm test"
In a monorepo, each package can have its own file; the nearest one wins per
key. skylos doctor shows which files are in use.
Silence one finding with a reason:
query = build_query(user_id) # skylos: ignore[SKY-D211] user_id is an int from the router
To accept existing findings and gate only new ones, run skylos baseline .
and scan with --baseline. More: configuration.
Integrations
| Integration | What it does |
|---|---|
| GitHub Action | Pull-request gate, optional container-image gate |
| GitLab, Bitbucket, Azure, Jenkins, CircleCI | Pull-request gate for that CI |
| Agent hooks | Claude Code, Codex and Cursor checked on every edit |
| MCP server | Skylos scans as tools for AI assistants |
| VS Code extension | Findings in the editor |
| Skylos Cloud | Optional: findings and the gate per branch, over time |
Install options
pip install skylos # core checks
pip install "skylos[llm]" # agent commands that use an LLM
pip install "skylos[all]" # every optional extra
Or run the container image:
docker run --rm -v "$PWD":/work -w /work ghcr.io/duriantaco/skylos:latest . -a
Other extras (lint, verdict, dart), Python-specific image tags and
source installs: installation.
What leaves your machine
Your code and findings reach Skylos Cloud only when you run a command that
says it uploads, such as skylos cloud or --upload. A saved login alone
never uploads anything. There are no analytics.
Dependency and package checks send package names and versions to OSV and the public registries, never source. LLM commands share code only with the model provider you configure. Every request, its trigger and how to turn it off: privacy and network.
Results
10 Skylos-assisted dead-code cleanup PRs have been merged in 9 open-source projects, including Black, NetworkX, Optuna, mitmproxy and pypdf. Real-World Results lists all 26 PRs we recorded, including the ones that were closed or reverted. These are accepted cleanups, not endorsements.
Methods, dated results and competitor comparisons: BENCHMARK.md.
FAQ
Does Skylos replace Semgrep, CodeQL, Bandit or Vulture? No. It runs alongside them. It adds agent checks, framework-aware dead code and one gate across security, secrets, dependencies and quality.
Does it need an LLM?
No. The core checks run locally with no model. LLM features are optional
(skylos[llm]).
Is it free? The CLI is free and open source. Skylos Cloud is optional and has a free plan; see pricing.
Can I check only my changes?
Yes: skylos . -a --diff origin/main. A removed security check, such as a
deleted auth decorator, is still reported.
What about code that is only called dynamically?
Use inline ignores, a baseline, or --trace to record what actually runs. See
smart tracing.
More: FAQ.
Documentation
| Need | Read |
|---|---|
| Every command and flag | CLI reference |
| Install, extras, Docker | Installation |
| Config files, ignores, baselines | Configuration |
| Output formats and exit codes | CLI output |
| Agent hooks | Agent hooks |
skylos done |
Done gate |
| Pull-request gates | First gated PR, any CI |
| Security and taint analysis | Security |
| Dependencies, SBOM, licenses | Dependency scanning, licenses |
| AI-code checks | AI code verification |
| Network requests | Privacy and network |
| Rule IDs | Rule dictionary |
Contributing
- Read CONTRIBUTING.md before sending a pull request.
- Report a bug with
skylos feedback(no account needed), or open an issue with a minimal repro. - Report security issues through SECURITY.md.
- Analyzer changes are tested on real projects with liveness_primer, built by Matthew Digman. See the guide.
- Ideas to work on: ROADMAP.md. Chat: Discord.
License
Apache License 2.0. See LICENSE.
Metadata
Release files for skylos 5.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| skylos-5.7.0.tar.gz | 7.8 MB | With provenance | Details for skylos-5.7.0.tar.gz |
Built distributions (wheels)
Total release size: 56.6 MB
Release files / skylos-5.7.0.tar.gz
| Download URL | skylos-5.7.0.tar.gz |
|---|---|
| Size | 7.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce9fa138bf8cbe41eafb2d96a03e3fc4cc2bfbbc23cd8bd3be8f299bc90c5ea0
|
|
BLAKE2b-256 checksum How to use checksums |
66fc1f088140b46a572e18d71e419cd7bdc9aa0c8a2884a5f7260045a7155a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / skylos-5.7.0-py3-none-win_arm64.whl
| Download URL | skylos-5.7.0-py3-none-win_arm64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
44a312dea77b7e6dfffca22bcdfc1835465a7b2e3bbfef4d4a2ea176fe807186
|
|
BLAKE2b-256 checksum How to use checksums |
f7404dea217b2ded944f750d2a46141e5df7268e74c309795eb9dd5aadf14ea2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / skylos-5.7.0-py3-none-win_amd64.whl
| Download URL | skylos-5.7.0-py3-none-win_amd64.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
eca4b7033d85576e66d1c79f8abd1ea7291d38c9dc09a1abba179c4a4e4eff27
|
|
BLAKE2b-256 checksum How to use checksums |
d3c1be9707d5f5c093c8bacbd0ef829c8c273914090ab5e2b3918570b479ef74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / skylos-5.7.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
| Download URL | skylos-5.7.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
1fefe2eb3d9ef1af6236ae8f9500e0d1998df3c9cd09da0505a073b771f22533
|
|
BLAKE2b-256 checksum How to use checksums |
70d06c62e4905cc6f9432237ca32f3b6ce0397bbbf1f1cab989110b09a639c35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / skylos-5.7.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
| Download URL | skylos-5.7.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl |
|---|---|
| Size | 7.1 MB |
| Tags | Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
47ba6cec00a919917002fd40b5d6b28f90c16fcb7316e7d4a91ba8e90d095170
|
|
BLAKE2b-256 checksum How to use checksums |
c81fe497b2fa93a34b5eb9729578eb82607440875fef5ab1aa28b36939b31fa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / skylos-5.7.0-py3-none-macosx_11_0_arm64.whl
| Download URL | skylos-5.7.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 7.2 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9be44d39484a782f2116c7fcfeafa2b4cf62fb1d1e0ece63bf549019e6e38d77
|
|
BLAKE2b-256 checksum How to use checksums |
5d8c67f092d3c98d43e5b973ec1de078b526d3025198b7bfd5b394f9f63ca749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / skylos-5.7.0-py3-none-macosx_10_15_x86_64.whl
| Download URL | skylos-5.7.0-py3-none-macosx_10_15_x86_64.whl |
|---|---|
| Size | 7.3 MB |
| Tags | Python 3 macOS 10.15+ x86-64 |
|
SHA-256 checksum How to use checksums |
4cbe2aee297f68b966a658ba9986cef8e62bc486318453705513d777eede491a
|
|
BLAKE2b-256 checksum How to use checksums |
27bd66d3ac6851353c388274986336e72cd88c306d7ecc1401d9e06f3fd6b6b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / skylos-5.7.0-py3-none-any.whl
| Download URL | skylos-5.7.0-py3-none-any.whl |
|---|---|
| Size | 5.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10870a38f50f849ddcc0ee54fe834c7993f5d33910ac1f7dc53273f9a3f58187
|
|
BLAKE2b-256 checksum How to use checksums |
bd9c5ae0ae445ba4814c039f5fd82c8065f53e4ac5476ddbd3c50210b9e53161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for skylos 5.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
Attestation for skylos-5.7.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.