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.
Quick start
pip install skylos
skylos . -a # scan this repo with every check; nothing leaves your machine
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: see results online and block failing pull requests
Optional. Five steps, in this order, from your repository folder. No token to
copy.
Step
Run or do
What happens
1. Upload your first scan
skylos cloud
Your browser opens skylos.dev. Sign in, then pick or create the project for this repo. Back in the terminal, Skylos scans and uploads the findings (not your code).
2. Open your results
Click the Open: link it prints
The scan in your dashboard: its gate result and every issue. Find it again later at skylos.dev/dashboard.
3. Add the pull request check
skylos cicd init
Writes .github/workflows/skylos.yml and prints the next steps: the git commands that open a pull request with it, and the GitHub App link.
4. Install the GitHub App, then merge
Open the GitHub App link it printed
Install the Skylos GitHub App on the repo before you merge that pull request. CI then uploads with its GitHub identity, so there is no token or secret to add.
5. Make the check required
skylos setup
Run it after the merge (it uses the GitHub CLI, gh). A pull request that fails the Skylos check can no longer merge.
Done: every pull request gets a Skylos check, and every push to your default
branch shows up in your dashboard.
The end of step 1 looks like this:
✓ Scan saved · gate (not blocking): fail
Open: https://skylos.dev/dashboard/projects/<project>/scans/<scan>
Saved for review. Only verified CI scans block merges and update the project verdict.
Next: to block pull requests, run skylos cicd init and merge the workflow it writes.
A scan from your machine is saved for review but never blocks a merge; only CI
scans do. Upload again any time with skylos cloud. 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.
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
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.
Check every agent edit
Install hooks so the agent is checked while it works:
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-verify and 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.
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:
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
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-go engine. It ships in the PyPI wheels for
Linux, macOS and Windows; elsewhere skylos doctor prints the build command.
Dart needs pip install "skylos[dart]".
Rust dead code is hidden by default; --confidence 40 shows it.
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
21 Skylos-assisted dead-code cleanup PRs have been merged into the default
branches of 19 open-source projects, including Black,
NetworkX,
Optuna,
mitmproxy and
pypdf.
Real-World Results lists all 43 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.