Check code quality
quality_checkScan a file or directory to report code-quality issues like high complexity, deep nesting, long functions, and duplicate branches. Returns JSON findings with rule IDs, file paths, and line numbers.
Instructions
Report code-quality issues: high complexity, deep nesting, long functions, duplicate branches and similar maintainability findings.
Returns JSON with findings (rule ID, file, line, message) and
_run_id. Read-only and local.
Defect and Review records remain complete. Advice is grouped by default; expand_advice=True includes every Advice record. Read _result_uri for the complete saved result without rescanning.
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 |
|---|---|---|---|
| path | Yes | Directory or file to scan. A relative path resolves against the MCP server's working directory. | |
| confidence | No | Minimum confidence (0-100) for dead-code findings. Higher values report fewer, surer candidates; 60 is the CLI default. | |
| expand_advice | No | Include every Advice record instead of rule-group counts; complete results are always available through _result_uri. | |
| exclude_folders | No | Folder names to skip, e.g. ["migrations", "scripts"]. When given, this list replaces the default excludes (node_modules, .venv, build, dist and similar); omit it to keep the defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |