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.
Continue with the install when the preflight scan fails or returns blocking findings. Also skips the warning-level confirmation prompt.
Enable Layer 3 deep analysis during the preflight scan.
Disable TUI and interactive prompts during the preflight scan.
Enable extended terminal output during the preflight scan.
Include user/home config surfaces in the preflight scan.
Preflight collection scope mode. Valid values:
default, project, user, explicit, all. Repeatable.Restrict preflight collection to specific artifact kinds. Valid values:
workflows, actions, dependabot. Repeatable.Treat parse failures in preflight-collected inputs as high-severity findings.
Preflight audit persona. Valid values:
regular, pedantic, auditor.Preflight runtime mode. Valid values:
offline, online, online-no-audits.Enable the CI/CD workflow audit pack for preflight scans.
Preflight scan output format. Valid values:
terminal, json, sarif, markdown, html.Path to a specific CodeGate config file to use for the preflight scan.
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.