Skip to main content

SKY-A114 · AI-code defects

Skylos settings or hooks changed

High

This rule reports a change to the settings or hooks that decide what Skylos checks: the [tool.skylos] tables in pyproject.toml, a skylos.toml file, anything under .skylos/, the agent hook settings that run Skylos, and a GitHub workflow that runs Skylos. skylos done reports the change so a person approves it.

Languages
pyproject.toml, skylos.toml, .skylos/ files, agent hook settings (Claude Code, Codex, Cursor), GitHub Actions workflows
Turned on by
skylos done after a change (default base HEAD, so uncommitted edits), or skylos done --base origin/main for a pull request
Quality gate
not checked (full and diff scans). Only skylos done runs this rule, in its gate_tampering check. That check blocks by default, and every SKY-A114 finding fails the done verdict. Set gate_tampering under [tool.skylos.done.checks] in the base commit's pyproject.toml to change that.
Finding type
review
Wrong result? Report itA false positive, a missed case or a confusing message: it goes privately to the founder.

Why it matters

An agent that cannot pass the gate can raise a limit, add a rule to ignore, or delete the hook that runs the check, and the next run passes. The settings are read from the base commit for this reason, and this rule makes the edit itself visible.

What Skylos flags

A change: the first version of these files is committed, then the edit below is made without committing, and Skylos reviews it as a diff scan (--diff).

pyproject.toml · TOML · changed
[project]name = "shop"version = "1.4.0" [tool.skylos.gate]Removed: max_security = 0Removed: max_quality = 10Added: max_security = 5Added: max_quality = 40

What Skylos leaves alone

A change: the first version of these files is committed, then the edit below is made without committing, and Skylos reviews it as a diff scan (--diff).

pyproject.toml · TOML · changed
[project]name = "shop"Removed: version = "1.4.0"Added: version = "1.5.0"Added: dependencies = ["httpx>=0.27"] [tool.skylos.gate]max_security = 0max_quality = 10

Why Skylos leaves it alone

The same pyproject.toml changed, but only the [project] table. Skylos compares the parsed [tool.skylos] tables before and after, and they are equal.

More languages

JSON

Flagged

A change: the first version of these files is committed, then the edit below is made without committing, and Skylos reviews it as a diff scan (--diff).

.claude/settings.json · JSON · changed
{Removed:   "hooks": {Removed:     "Stop": [Removed:       {Removed:         "hooks": [Removed:           {"type": "command", "command": "skylos done --format json"}Removed:         ]Removed:       }Removed:     ]Removed:   }Added:   "hooks": {}}

Not flagged

A change: the first version of these files is committed, then the edit below is made without committing, and Skylos reviews it as a diff scan (--diff).

.claude/commands/release.md · Markdown · changed
Bump the version in pyproject.toml and update CHANGELOG.md.Added: Then run `skylos done --base origin/main` and fix what it reports.
1 committed file the change leaves alone

.claude/settings.json: same as in the flagged example.

Why Skylos leaves it alone

A file under .claude/ changed, but not one of the hook settings files. Commands, skills and rules in .claude/ are ordinary project files; only .claude/settings.json and settings.local.json (and the Codex and Cursor hook files) are protected by default.

How Skylos decides

  1. Runs in skylos done, which compares the working tree (or a pull request) with a base commit. Staged, unstaged and untracked files all count; Skylos's own cache, receipts and session files do not.
  2. Reports any changed, added, removed or renamed file that matches protected_paths. The default list is .skylos/, .claude/settings.json, .claude/settings.local.json, .codex/hooks.json, .codex/config.toml and .cursor/hooks.json; a pattern ending in / covers a folder, and * patterns work. The list comes from [tool.skylos.done] in the base commit.
  3. Reports a pyproject.toml whose parsed [tool.skylos] table differs from the base version, at the line of the first [tool.skylos header. Formatting changes and edits to other tables do not count.
  4. Reports any edit, addition or removal of a skylos.toml or .skylos.toml file, and any change to a .github/workflows/*.yml file whose base version mentions skylos.
  5. Every finding blocks while the check is in its default "block" mode.

How to fix it

Undo the settings change and fix the findings the stricter settings report. If the change is intended, make it in its own commit or pull request that a person reviews and merges; once it is in the base commit, skylos done uses the new settings.

Fix · TOML
[tool.skylos.gate]max_security = 0max_quality = 10

When it can be wrong

  • Every intended settings change is reported, including a stricter limit or a new rule turned on. That is by design: a person decides.
  • Editing any part of a GitHub workflow that runs Skylos is reported, even a step that has nothing to do with Skylos.
  • Removing the whole [tool.skylos] table is reported without a line number, as are changes to protected files.

Seeing a case that isn't listed here? Report the wrong result so the rule can be fixed. Don't paste company code: describe the shape of it.

How to silence it

  • skylos done does not read # skylos: ignore comments. Change the check's mode, or narrow protected_paths, in the base commit's pyproject.toml; settings in the change itself are ignored.

    TOML
    [tool.skylos.done]protected_paths = [".skylos/", ".claude/settings.json"] [tool.skylos.done.checks]gate_tampering = "advise"

From the Skylos rule handbook, Skylos 5.8.0 (commit 5b880b0). All rules.