codegate skills [skillsArgs...]— wrapsnpx skillscodegate clawhub [clawhubArgs...]— wrapsnpx clawhub
How preflight scanning works
codegate skills
When you run codegate skills add <source>, CodeGate:
- Resolves the requested source target (GitHub URL, local path, or shorthand
owner/repo). - Runs the full static scan pipeline against the resolved target.
- If dangerous findings are detected (exit code
2), aborts the install — fail-closed. - If warning-level findings are detected and
auto_proceed_below_thresholdis nottrue, prompts for confirmation (or aborts in non-interactive mode). - If policy allows, passes the original arguments through to
npx skillsto complete the install.
codegate clawhub
When you run codegate clawhub install <slug>, CodeGate:
- Resolves the skill slug to a canonical
clawhub.aiURL and runsclawhub inspectto stage the remote skill content in a temporary directory. - Runs the full static scan pipeline against the staged content.
- If dangerous findings are detected (exit code
2), aborts the install — fail-closed. - If warning-level findings are detected and
auto_proceed_below_thresholdis nottrue, prompts for confirmation (or aborts in non-interactive mode). - If policy allows, passes the original arguments through to
npx clawhubto complete the install. The temporary staged content is cleaned up after the install.
Fail-closed behavior
Pass-through behavior
Non-install subcommands are passed directly to the underlying tool without any preflight scanning:Wrapper flags
All--cg-* flags are consumed by CodeGate and are not forwarded to the underlying installer command.
boolean
default:"false"
Continue with the install when the preflight scan fails or returns blocking findings. Also skips the warning-level confirmation prompt.
boolean
default:"false"
Enable Layer 3 deep analysis during the preflight scan.
boolean
default:"false"
Disable TUI and interactive prompts during the preflight scan.
boolean
default:"false"
Enable extended terminal output during the preflight scan.
boolean
default:"false"
Include user/home config surfaces in the preflight scan.
string
Preflight collection scope mode. Valid values:
default, project, user, explicit, all. Repeatable.string
Restrict preflight collection to specific artifact kinds. Valid values:
workflows, actions, dependabot. Repeatable.boolean
default:"false"
Treat parse failures in preflight-collected inputs as high-severity findings.
string
default:"regular"
Preflight audit persona. Valid values:
regular, pedantic, auditor.string
default:"offline"
Preflight runtime mode. Valid values:
offline, online, online-no-audits.boolean
default:"false"
Enable the CI/CD workflow audit pack for preflight scans.
string
default:"terminal"
Preflight scan output format. Valid values:
terminal, json, sarif, markdown, html.string
Path to a specific CodeGate config file to use for the preflight scan.
string
Stop wrapper-option parsing. All arguments after
-- are forwarded to the underlying installer command unchanged.Config policy controls
Wrapper preflight scans honor the same config policy controls ascodegate scan, including suppress_findings, suppression_rules, rule_pack_paths, allowed_rules, and skip_rules.