/orca-skills:orca-code-scannerfrom Orca Skills
Scans changed code with Orca CLI for secrets, vulnerable/malicious dependencies, IaC misconfigs, Dockerfiles, container images, and SAST. Triages and fixes findings before shipping.
Ships in Orca Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When you finish a coding task, scan what you changed with the Orca CLI, triage,
and fix the real issues before it ships — secrets, dependencies (SCA: vulns,
license, malicious), IaC, container images, and SAST. You run orca-cli
yourself (no wrapper); it works the same on macOS, Linux, and Windows.
Scope is what the task produces: source, manifests/lockfiles, IaC, Dockerfiles, and the images you build. Scanning live cloud posture (a deployed account or running environment) is a separate Orca workflow — out of scope here.
Needs the Orca CLI, authenticated (part of Orca Shift Left). Don't check anything up front: run the first scan and react to how it fails.
Running on your own (closing step, nobody asked for a scan) — never install or log in:
orca-cli not found: say once per session "Orca code scan skipped: orca-cli
not installed (https://docs.orcasecurity.io/docs/orca-cli-installation)" and
stop. Don't offer an install.not authenticated: say "Orca code scan skipped: not logged in — run
orca-cli auth login" and stop. Don't start the login yourself.Asked to scan (the developer requested it):
orca-cli not found: offer to install; with approval run
curl -sfL https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh | sh -s -- -b "$HOME/.local/bin"
(Windows PowerShell: New-Item -ItemType Directory -Force "$HOME\.local\bin" | Out-Null; iwr https://github.com/orcasecurity/orca-cli/raw/main/install.ps1 -OutFile $env:TEMP\install.ps1; & $env:TEMP\install.ps1 -binDir "$HOME\.local\bin"
— if it fails, follow https://docs.orcasecurity.io/docs/orca-cli-installation#for-windows-machines).
If orca-cli is still not found, tell the developer to add ~/.local/bin to
PATH — don't call it by full path. If they decline, say so and stop.not authenticated: run orca-cli auth login (opens a browser). If the
browser cannot open from your shell, give the developer the exact command to
run in another terminal and wait for them.Never read or print ORCA_SECURITY_API_TOKEN; if it is set, the CLI uses it on
its own (the better option in CI and sandboxed agents such as Codex).
Network: every scan needs Orca Cloud. In a sandbox with network off (Codex's default), request network approval before the first scan. A network or sandbox error is not an auth failure — don't run login for it; say the scan couldn't reach Orca.
Sandboxed agents (Codex): scans also write outside the workspace — the CLI's
saved login (macOS: ~/Library/Application Support/orca) and the SAST engine's
log (~/.opengrep). If a scan fails with operation not permitted on one of
these, stop and don't retry (a blocked login refresh can log the developer out
of orca-cli). Tell the developer to add this to ~/.codex/config.toml once,
with full paths (use the folders the error names), then restart Codex:
[sandbox_workspace_write]
network_access = true
writable_roots = ["/Users/<you>/Library/Application Support/orca", "/Users/<you>/.opengrep"]
Pass the project whose policy applies as -p <key> — use the value of
printenv ORCA_SECURITY_PROJECT_KEY (run it alone, not chained with other
commands, so it stays pre-approved), else -p default. Each scan type needs its policy
attached; if one isn't, orca-cli errors for it — run the rest and note what you
couldn't.
Only what you changed this task (from git status/git diff plus your own
record), current content — not the whole repo or git history, and not after every
edit. Run once as the closing step (or on request). Choose scans by what each
changed file is, reasoning about its role rather than matching a fixed
extension list.
Write each scan as one plain command with -p <key> typed literally. No shell
variables, loops, or functions (zsh does not word-split $P, which breaks the
project key). Never pipe scan output through tail, head, or grep; read all
of it. Always pass --timeout 180s --skip-scan-log (shown below): without the
timeout the CLI hangs at "policy decision" if the Orca backend never answers;
--skip-scan-log keeps these local scans out of the tenant's scan logs (you
still get every finding and the policy result). On a timeout, report that scan
as "did not complete" and continue with the rest.
--path takes ONE path, not a comma list. One changed file:
orca-cli -p <key> --timeout 180s --skip-scan-log secrets scan --path <file> --disable-git-scan.
More than one: run that once with --path . instead, and report only findings
in files you changed.orca-cli -p <key> --timeout 180s --skip-scan-log sca scan --path <dir>.
Covers vulns+license+malicious by default. It reads the resolved lockfile, so
if a dependency changed, update the lockfile first (npm/pnpm/poetry/… — detect
it), else note the result may be partial. If license/malicious aren't in the
policy, retry with --security-checks vulns and say what you skipped.orca-cli -p <key> --timeout 180s --skip-scan-log iac scan --path a.tf,b.yaml (--path is comma-separated).orca-cli -p <key> --timeout 180s --skip-scan-log image scan <ref> (or <file>.tar --tar-archive). Catches
OS/app CVEs + secrets in the built layers, complementing the Dockerfile IaC
scan. The image must be built or pullable; if not, say so.orca-cli -p <key> --timeout 180s --skip-scan-log sast scan --path a.py,b.ts (comma-separated).Detection is pattern-based, so read the output directly and triage before fixing. Read every finding before deciding; never report one you have not read.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
22 skills in this plugin
/orca-account-healthCloud account coverage and sync-health audit — lists every connected cloud account, sync status, scanner deployment, integration health, and flags blind spots before any audit, investigation, or security review. Use when user asks about coverage, account health, sync status, scanner deployment, "are we monitoring X", or "do we have full coverage" (e.g., "account health", "are all accounts connected", "is everything synced", "coverage audit")./orca-admin-access-groupingAdmin access grouping - fetches Orca's pre-computed admin clustering (IAM Policy Optimizer) for AWS, Azure, and GCP, groups every admin identity into a small number of shared least-privilege policies that replace blanket AdministratorAccess / Owner, and drives the swap through a staged, confirmation-gated apply. Use when the user wants to group or tier their admins, cut down how many people hold full admin, replace AdministratorAccess with role-based policies, or see how few policies their admin population actually needs. Scoped to grouping the admin population org-wide into shared policies - it takes no account, business unit, or tag as scope. Right-sizing individual identities within an account, business unit, or tag belongs to orca-overprivileged-identities-rightsizing; a single named identity's permission review belongs to orca-identity-review.npx claudepluginhub orcasecurity/orca-skills --plugin orca-skillsOther plugins' skills for the same job