Skip to main content

Commands by Group

Skylos has a lot of commands because it covers local code scans, coding-agent guardrails, CI pull-request gates, release checks, and Skylos Cloud. You do not need to learn all of them at once.

Start by picking the group that matches what you want to do.

The 8 Command Groups at a Glance​

#GroupWhat it is forStart with
1Start Here & Daily WorkflowSet up a repository once, check your install, and browse your codebase, changes, and check runs every day.skylos setup, skylos open
2Code Scanning, Cleanup & ReportsScan code locally for dead code, security flaws, secrets, vulnerable packages, quality issues, import cycles, and tech debt — no account or LLM needed.skylos . -a, skylos report
3Coding Agent GuardrailsCheck coding agents (Claude Code, Codex, Cursor) while they edit code, block fake packages or secret reads, and verify when they say "done".skylos agent install-hooks, skylos done --base main
4AI Review & AI App SafetyRun optional LLM-assisted security audits and dead-code checks, or test guardrails and behavior of AI/LLM apps you build.skylos discover ., skylos defend .
5CI/CD & Pull Request GatesBlock failing pull requests, post inline review comments, require human approval on risky edits, and check database migrations in CI.skylos cicd init, skylos cicd gate .
6Release, Containers & External ScannersCheck built GPU artifacts, scan pinned container images, verify signed Cloud deploy verdicts, and compare other scanners.skylos preflight, skylos image scan
7Config, Baselines & UtilitiesConfigure rules, save baselines, whitelist symbols, manage cache, and migrate settings from Sonar.skylos init, skylos baseline .
8Skylos Cloud (Optional)Upload scans to the web dashboard, share team policies and PR gates, manage linked projects, and check credits.skylos cloud, skylos login
tip

Run skylos <command> --help for every flag on one command, skylos PATH --help for all scan flags, or see the full CLI Reference.


Which Command Should I Run?​

A few commands have similar names. Keep these straight:

  • skylos . -a vs skylos cloud: skylos . -a runs every check locally and sends nothing to Skylos Cloud. skylos cloud runs every check and uploads the findings to your Skylos Cloud dashboard.
  • skylos . --gate vs skylos cloud --gate: skylos . --gate checks your local [tool.skylos.gate] limits. skylos cloud --gate checks your project's Skylos Cloud policy gate.
  • skylos verify vs skylos agent verify: skylos verify checks source code and working Python changes for AI-code mistakes with no LLM. skylos agent verify uses an LLM (or Jev) to double-check unused-code findings.
  • skylos verify vs skylos preflight vs skylos image scan: verify checks source code; preflight checks a local built GPU artifact; image scan runs Trivy on a pinned container image.
  • skylos clean vs skylos cleanup: clean previews or deletes unused Python imports/functions directly. cleanup builds a prioritized fix queue for you or a coding agent.

1. Start Here & Daily Workflow​

What this group is for: Getting Skylos set up in a repository once, exploring your codebase visually every day, and checking that your local installation is healthy.

CommandWhat it does
skylos setup [path] [--base REF] [--no-ci] [--no-codex]One-time repo setup: adds agent instructions, connects MCP tools and hooks for Claude Code and Codex, adds [tool.skylos.done], writes the PR workflow, and builds the code map.
skylos open [path] [--base REF]Opens one local browser page (127.0.0.1 only) with your codebase diagram, plain-English change map, and every skylos done check run.
skylos doctor [--format text|json]Checks your install health, active config files, and available language engines.
skylos commandsLists all public commands and groups in your terminal.
skylos tourRuns a short interactive walkthrough of what Skylos can do.

Guides: Tutorial: Setup to PR · Codebase Graph · Change Map


2. Code Scanning, Cleanup & Reports​

What this group is for: Running static checks on your code locally — dead code, security flaws, leaked secrets, vulnerable dependencies, code quality, import cycles, technical debt, and cleanup — with no account and no LLM required.

CommandWhat it does
skylos PATH [PATH ...]Main scanner. Finds dead code by default; add -a to run all main checks (security, secrets, dependencies, quality, AI-code mistakes). Useful flags: --diff origin/main, --gate, --coverage-report, --min-coverage, --min-new-coverage, --duplication, --max-duplication, --max-new-duplication, --code-health-base, --type-check, --ai-review, --profile, --format pretty|concise|json|sarif, --tui.
skylos lint [PATH]Checks local Python and JS/TS import cycles and configured architecture layers.
skylos debt [path]Calculates a technical-debt score and ranks hotspot files and trends.
skylos report [PATH | REPORT.json]Generates a shareable one-page HTML or Markdown report (runs -a locally or reuses a saved JSON scan).
skylos suite [directory]Builds one combined static, debt, defense, and provenance report for a repository.
skylos explain REPORT.json [--rule RULE] [--interactive]Steps through a saved JSON report's source-to-sink security trace without rescanning.
skylos graph [path] [--since REF]Maps functions, classes, call relationships, and plain-English descriptions (open, areas, relevant, show, find, impact, changes, describe, pending, import).
skylos secrets-history [PATH]Scans local Git commit history for current and previously removed credentials.
skylos sbom [path] [--format cyclonedx-json|spdx-json] [-o FILE]Exports a CycloneDX 1.6 or SPDX 2.3 dependency SBOM, offline by default.
skylos review [path]Interactively mark a finding as false positive or temporarily accepted risk locally (list, restore). Ignored in CI.
skylos clean [path] [--dry-run|--apply]Previews or removes unused Python imports and functions.
skylos cleanup [path] [--from-report REPORT]Turns static findings into a prioritized cleanup queue for you or a coding agent.

Guides: Dead Code · Security · Supply Chain · Code Quality · Test Coverage · Code Duplication · Technical Debt · Type Checking · Cleanup · Profiling


3. Coding Agent Guardrails​

What this group is for: Watching coding agents (Claude Code, Codex, Cursor) while they work so they cannot install fake packages, read files with secrets, bypass git hooks, or claim "done" after deleting or gaming tests.

CommandWhat it does
skylos done [path] [--base REF | --session ID]Checks whether a branch or agent session is truly done: runs your tests itself, blocks deleted/skipped/rigged tests and silenced checks, writes a receipt. Subcommands: done map, done receipt, done replay.
skylos verify [path]Checks source files and working Python changes for AI-code mistakes (hallucinated imports, fake packages, broken APIs) without an LLM.
skylos stack {plan,verify}Pins a stacked set of Git branches and verifies every layer's Done receipt in CI.
skylos agent install-hooks [--claude|--codex|--cursor]Installs agent-loop hooks that check edits, block secret reads and bad installs, block --no-verify, and verify on stop.
skylos hook <event> [--client claude|codex|cursor]Entry point invoked by installed agent hooks (session-start, pre-edit, post-edit, pre-read, pre-bash, post-bash, post-failure, stop).
skylos hook recheck FILE... [--range L1:L2] | --sessionRechecks edited files against the post-edit blocking policy.
skylos agent harden [--print|--write] [--offline]Prints or writes agent-native hardening settings (credential-file denies, sandbox, pinned MCP allowlists).
skylos agent warm-cache [path]Prebuilds the local module index so the first agent edit check runs fast.
skylos agent recap [PATH] [--days N]Summarizes what local agent hooks blocked from .skylos/hook.log.
skylos agent install-standards [--enforce RULE_ID]Installs project coding standards as native agent skills.
skylos agent check-standards [path]Checks code against selected project coding standards.
skylos agent pre-commit [path]Runs a staged local pre-commit check for security, secrets, and quality.
skylos mcp [--transport stdio|sse|streamable-http]Starts the Skylos MCP server so AI assistants can call Skylos tools directly.
skylos contract <init|validate|inspect>Creates, validates, and inspects .skylos/ai-contract.yml hallucination contracts.
skylos provenance [path]Reads recorded agent attribution and declared commit associations.

Guides: AI Defects · AI Contracts · MCP Server · Change Map


4. AI Review & AI App Safety​

What this group is for: Two optional AI workflows:

  1. AI app safety — checking guardrails around LLM calls inside the apps you build, and testing agent runtime behavior against contracts.
  2. AI-assisted code review — using your own LLM API key (or Jev) for deep security audits, dead-code verification, and automated fixes (pip install "skylos[llm]").
CommandWhat it does
skylos discover [path]Finds LLM API calls, agent tools, and prompt sites in Python and JS/TS code (no LLM needed).
skylos defend [directory]Scores static safety guardrails around your LLM integrations with OWASP LLM / Agentic Top 10 coverage (no LLM needed).
skylos agent init [--path CONTRACT]Creates a runtime behavior contract for testing an AI agent you build.
skylos agent test [CONTRACT]Runs deterministic scenario tests against your AI agent's behavior contract.
skylos agent scan [path]Runs hybrid static + LLM analysis on a codebase.
skylos agent verify <path>Uses an LLM (or --dead-code-review jev / jev-llm) to review unused-code candidates.
skylos agent audit [path]Manages the persistent Deep Mode security audit workflow.
skylos agent security-deep [path]Starts a staged Deep Mode security audit.
skylos agent remediate [path]Scans and proposes/applies fixes; can optionally run tests or open a PR.
skylos agent replay RUN_DIRValidates and inspects a saved agent harness run.
skylos key [list|add|remove]Stores and manages local LLM provider API keys.

Guides: AI Features · Agent Verification · Agent Behavior Testing · AI Defense


5. CI/CD & Pull Request Gates​

What this group is for: Running Skylos automatically in GitHub Actions, GitLab CI, Jenkins, Bitbucket Pipelines, Azure Pipelines, or CircleCI to block failing pull requests, post review comments, and require human sign-off on high-risk edits.

CommandWhat it does
skylos cicd initGenerates a ready-to-use CI pull-request workflow (use --no-upload for local-only CI, --risk-review to add human-approval checks).
skylos cicd gate [path]Runs the quality gate and returns a CI exit code (0 pass, 1 fail, 2 incomplete).
skylos cicd review [path]Posts Skylos findings as inline pull-request review comments.
skylos cicd annotate [path]Emits GitHub Actions inline annotations.
skylos cicd risk-review [path] [--base REF]Flags high-risk PR changes (deleted tests, removed auth, dependency changes, weakened CI, migrations, large diffs) that require a human approval.
skylos cicd postgres-check --base SHA --head SHAChecks changed PostgreSQL migrations against the base commit's policy.
skylos cicd pr-policy --output DIRWorkflow step (written by cicd init): saves the Skylos Cloud policy for a PR scan.
skylos cicd pr-scan [path] --policy DIR --output FILEWorkflow step: scans untrusted PR code without upload credentials.
skylos cicd pr-publish --input FILEWorkflow step: uploads the prepared PR scan to Skylos Cloud with GitHub OIDC.
skylos cicd agent-review --review-id ID [--cloud-url URL]Runner for a Cloud-approved paid PR review workflow.

Guides: Quality Gate · CI/CD Integration · GitHub Actions Security


6. Release, Containers & External Scanners​

What this group is for: Checking built artifacts before release, scanning container images, verifying signed Cloud deploy verdicts, and comparing Skylos against other scanners.

CommandWhat it does
skylos preflight [ARTIFACT]Statically checks a local built Linux ELF/CUDA GPU artifact against .skylos/gpu-targets.yml (PASS, FAIL, or UNKNOWN).
skylos image scan IMAGE@sha256:<digest> --platform os/archScans a pinned remote container image for vulnerabilities using your installed Trivy binary.
skylos verify-verdict BUNDLE [--commit SHA] [--require-passed]Verifies a signed Skylos Cloud check verdict before deploying (pip install "skylos[verdict]").
skylos ingest <trivy|claude-security>Imports findings from Trivy JSON reports or Claude Code Security reports.
skylos compare [path] --against <report>Compares Skylos findings side-by-side with SARIF, Sonar JSON, or normalized findings JSON.

Guides: Release Reliability · Scanner Comparison


7. Config, Baselines & Utilities​

What this group is for: Initializing configuration, freezing existing debt in a baseline so only new issues fail, whitelisting symbols, managing rules and local caches, and reporting bugs.

CommandWhat it does
skylos initAdds a starter [tool.skylos] configuration section to pyproject.toml.
skylos baseline [path]Saves current findings to a baseline file so future --baseline scans only flag new issues.
skylos whitelist [pattern|--show]Adds or lists whitelisted symbols that dead-code checks should ignore.
skylos rules <command>Installs and manages community or local rule packs.
skylos cache stats [path]Shows local cache size.
skylos cache clear [path]Clears cached run data.
skylos badge [--plain]Generates a Skylos status badge snippet for your README.
skylos sonar import [properties_file] [--quality-gate FILE] [--issues FILE] [--write-config]Builds a Skylos migration plan (and optional skylos.toml plus Cloud policy JSON) from sonar-project.properties, Sonar quality gate exports, and reviewed issues.
skylos feedback [--github] [--print] [--type bug|wrong-finding|idea|question]Opens a prefilled bug/feedback form you review before sending (never attaches code or secrets).

Guides: Configuration · Rules Reference · FAQ


8. Skylos Cloud (Optional)​

What this group is for: Connecting the CLI to Skylos Cloud to upload scans, share team policies and pull-request gates, retry interrupted uploads, and check your credit balance. Nothing is ever sent unless you run one of these commands or pass --upload.

CommandWhat it does
skylos cloud [PATH]Runs all checks (-a), uploads the findings (never your full repo), and prints this branch's Cloud gate status and dashboard link.
skylos loginConnects your CLI to Skylos Cloud or switches the active project in your browser.
skylos whoamiShows which Skylos Cloud account and project this repository is connected to.
skylos project <status|list|use|create|unlink>Manages which Skylos Cloud project is linked to the current repository.
skylos sync <connect|pull|setup|upgrade>Pulls your project's Skylos Cloud policy into the repository or manages sync setup.
skylos upload --retry (--list)Lists or resends interrupted uploads saved locally (valid for 7 days, never duplicated).
skylos creditsShows your current Skylos Cloud credit balance.

Guides: Cloud Platform · CLI to Dashboard Workflow · Authentication · Project Policy · Compliance Reports · Billing & Credits