Check a diff before it lands
validate_code_changeChecks a unified diff for security regressions, dangerous patterns, secrets, and undeclared dependencies before code lands. Returns pass/fail with findings.
Instructions
Validate a code diff for security regressions and issues before it lands.
Takes a unified diff and checks for:
Security control regressions (auth, CSRF, TLS, rate limiting removal)
New dangerous patterns (eval, exec, SQL injection, etc.)
Secrets in added code
Hallucinated or undeclared dependencies in added imports and manifest entries (requirements*.txt, pyproject.toml, package.json, go.mod), verified against the package registries. The "registry" field reports "ok", "unreachable" or "error" (lookups incomplete — do not treat pass as clean), or "skipped".
Returns pass/fail with findings.
Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key only analyze works (5 calls/day). The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | Yes | Unified diff text, e.g. the output of `git diff`. | |
| path | No | Project root the diff applies to; used to find dependency manifests. Relative paths resolve against the MCP server's working directory. | . |
| policy | No | Optional policy path. Accepted for compatibility but currently not applied to the result. | |
| check_dependencies | No | Look up newly added imports and manifest entries in the package registries (PyPI, npm, Go proxy). False skips these network calls. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |