Repository navigation
Lint Rules
Every L1 finding ends with the id of its check. ctxray links each id to its section on this page: under the findings in the terminal, in inspect --json as url, and in the HTML, Markdown, JUnit, and Allure reports. Each section says what the check finds and how to fix it.
Policies shows how to change a check's level, turn it off for some files, or silence it in one file.
Default: error in a skill, warning in a Claude Code rule
Finds: Frontmatter that isn't valid YAML, so the harness ignores it, or one indented with tabs, which Claude Code and Codex refuse in a skill.
Fix: Fix the YAML between the --- lines: indent with spaces, not tabs, and quote a value that holds : or starts with [, {, *, or &.
Default: warning
Finds: Frontmatter that isn't valid YAML, which Claude Code and Codex still read line by line and stricter tools don't.
Fix: Make the frontmatter valid YAML: quote the values the message points at. The harness keeps reading it the same way, and other tools stop choking on it.
Default: warning
Finds: A Claude Code rule field other than paths, or a Cursor alwaysApply that's a string like "true": both do nothing.
Fix: In a Claude Code rule, keep only paths. In a Cursor rule, write alwaysApply: true without quotes.
Default: error
Finds: A file over 4 MiB, which Claude Code skips entirely.
Fix: Split the file. Keep the instructions short and move reference material into files the agent reads when it needs them.
Default: warning
Finds: An @import of a file that doesn't exist.
Fix: Fix the path after @ or drop the import. A relative path starts from the file that imports it.
Default: warning
Finds: An @import nested too deep to ever load.
Fix: Import the file from a file closer to the top of the chain, so it takes fewer hops.
Default: warning
Finds: A command a skill of the same name hides.
Fix: Rename the command or the skill. If the skill replaces the command, delete the command.
Default: warning
Finds: A skill without a description, which the model has little to pick by.
Fix: Add description to the frontmatter: what the skill does and when to use it.
Default: warning
Finds: A skill description longer than its harness's listing keeps: 1,536 characters in Claude Code, 1,024 in Codex.
Fix: Shorten the description to the limit. Details belong in the body of SKILL.md, which loads with the skill.
Default: warning
Finds: The project's skills don't fit the harness's skill listing. Claude Code gives it 1% of the model's window and leaves the skills that don't fit with their name only, so the model can't pick them by what they do. Codex gives it 2% and cuts every description short, and drops skills once even the names don't fit.
Fix: Shorten the descriptions, merge skills that overlap, and drop the ones nobody uses.
Default: error
Finds: A JSON config that doesn't parse.
Fix: Fix the syntax at the position the message names. Until then the harness can't read the file.
Default: error
Finds: A TOML config that doesn't parse, so the harness ignores it.
Fix: Fix the syntax at the position the message names.
Default: error
Finds: An MCP server with neither command nor url.
Fix: Give the server a command to start it over stdio, or a url to reach it over HTTP.
Default: warning
Finds: An empty instruction file the harness skips.
Fix: Write the instructions or delete the file.
Default: warning
Finds: An instruction file Codex skips because another one in the folder wins.
Fix: Codex reads one instruction file per folder. Merge the text into the file it reads, or delete the other one.
Default: error
Finds: A skill without the name or description the harness needs.
Fix: Add the missing field to the frontmatter.
Default: warning
Finds: AGENTS.md files over Codex's byte budget, 32 KiB unless project_doc_max_bytes says otherwise.
Fix: Shorten the AGENTS.md files on the way to this folder, or move details into skills. You can also raise project_doc_max_bytes in the Codex config.
Default: error
Finds: A glob that's empty, has an unclosed bracket or brace, or points outside its folder with ...
Fix: Close the bracket or brace, and write the glob from the rule's own folder, without ...
Default: warning
Finds: A skill name only some harnesses accept: use lowercase letters, digits, and hyphens, up to 64.
Fix: Rename the skill to lowercase letters, digits, and hyphens, up to 64 characters, and its folder with it.
Default: warning
Finds: A skill whose name differs from its folder's.
Fix: Rename the folder or the name so they match.
Default: warning
Finds: Two skills with one name and different text that one harness reads together: in one folder, or in two skill roots of the same project, like .claude/skills/deploy and .agents/skills/deploy, which Cursor CLI and OpenCode both read. Depending on the harness, the model gets one of them or both under one name, and the two drift apart on the next edit. A symlink from one root to the other, or a copy with the same text, counts as one skill.
Fix: Keep one copy and link the other root to it: ln -s ../../.agents/skills/deploy .claude/skills/deploy. Or rename one of the skills when they really do different things.
Default: warning
Finds: Two instruction files with the same text, which the model reads twice.
Fix: Keep the text in one file. When two harnesses need it, let CLAUDE.md import AGENTS.md with @AGENTS.md instead of a copy.
Default: warning
Finds: A link to a file that doesn't exist.
Fix: Fix the link's target or remove the link. A relative link starts from the file it's in.
Default: error
Finds: A file named or placed almost right, which the harness never reads: AGENT.md, .cursorrule, .claude/rule/, .agent/skills/, mcp.json in the root, a skill as a lone .md file, a .md rule in .cursor/rules. The finding names the file the harness looks for.
Fix: Rename or move the file to the name the finding suggests.
Default: error
Finds: A name that differs only in letter case, like claude.md, .Claude/, or skill.md: macOS and Windows may open it under the right name, Linux and CI don't.
Fix: Rename the file with the exact case through git, so the history keeps it: git mv claude.md CLAUDE.md.
Default: warning
Finds: A path into a home folder or onto a Windows drive, like /Users/…, /home/…, ~/…, or C:\…, in an @import, a link, paths or globs, or an MCP config: the team and CI don't have it.
Fix: Use a path relative to the project. In an MCP config, take the part that differs per machine from an environment variable.
Default: error
Finds: A SKILL.md that starts with a byte order mark, which Codex skips.
Fix: Save the file as UTF-8 without a byte order mark. Most editors offer it in the encoding menu.
Default: warning
Finds: A file a harness reads on your machine that the team and CI never get: hidden by .gitignore, not committed yet, or behind a symlink that leaves the repository. CLAUDE.local.md stays out.
Fix: Commit the file, take it out of .gitignore, or put the file itself in place of the symlink. When it's meant to stay on your machine, set the check to off for that path in lint.overrides.
Default: error
Finds: An agent file or harness folder whose symlink points nowhere.
Fix: Point the link at a file that exists, or remove it.
Default: error
Finds: A key, a token, a password, or a private key in a file the model reads. The finding names its kind and line, never the value.
Fix: Remove the secret from the file and revoke it: it may already sit in the git history. Let the agent read it from an environment variable instead.
Default: error for bidi controls and tag characters, warning for other invisible characters
Finds: Characters you don't see and the model reads as text, in any file the harness reads. Bidi controls like U+202E and U+2066 reorder how a line shows on screen, so a reviewer reads something other than what the model gets: the Trojan Source attack. Tag characters U+E0000 to U+E007F spell out hidden ASCII, and the finding decodes it. Zero-width characters like U+200B, U+200D, and U+2060 hide inside words. Codex, Gemini CLI, OpenCode, and Cursor CLI send all of them to the model as they are, and so does Claude Code in CLAUDE.md and rules. A joiner inside an emoji or between Persian, Arabic, or Indic letters, a flag like England's, and a byte order mark that opens the file don't count.
Fix: Delete the characters. To see them, search with ripgrep: rg -n '[\x{200B}-\x{200D}\x{2060}\x{202A}-\x{202E}\x{2066}-\x{2069}]' FILE, or open the file in an editor that highlights invisible Unicode, like VS Code. When a file came from someone else, read what the tag characters spell before you trust the rest.
Default: warning
Finds: A frontmatter field no harness reads that looks like one they do, with the field it likely meant: desciption, allowed_tools for allowed-tools, glob for globs, path for paths, alwaysapply for alwaysApply. Harnesses compare field names exactly and skip what they don't know without a word, so a typo quietly turns the setting off. ctxray checks skills, commands, Cursor rules, and Gemini CLI commands against the fields the builds of Claude Code, Codex, Gemini CLI, OpenCode, and Cursor CLI read, plus the Agent Skills spec. A field of your own like tags that resembles nothing they read stays quiet.
Fix: Rename the field to the one the finding suggests. Claude Code's rules read only paths, and rule-field covers them.
Default: warning
Finds: A .cursorrules file in the project root. Cursor still loads it as a rule that always applies, but its docs call the file legacy and say it will be deprecated.
Fix: Move the text into a rule in .cursor/rules, set to always apply, then delete .cursorrules:
---
alwaysApply: true
---
The text of your .cursorrulesDefault: error when the built-in always wins, warning otherwise
Finds: A project command or skill named like a built-in slash command of the harness. Each harness settles the clash its own way, read from its build:
| Harness | What happens |
|---|---|
| Claude Code | Yours runs, and the built-in /help or /compact stops working. Aliases like /cost count too |
| Cursor CLI | The built-in always wins in any letter case, aliases included, so your /commit never runs as /commit: error |
| Gemini CLI | The built-in keeps its name, and yours becomes /workspace.init, or /memory1 for a skill. A command named like an alias, such as /exit, takes it over |
| OpenCode | Your /init or /review replaces the built-in. With a TUI command like /new, the way you type picks which one runs |
| Codex | No clash: skills run as $name, and Codex reads no project commands |
A command in a subfolder has a name of its own, like Claude Code's /opsx:update, so it doesn't clash.
Fix: Rename the command or the skill, for example /commit to /commit-msg. Pick a name no harness of your team uses.
Default: error when the script is missing, warning when it isn't executable
Finds: A hook that runs a script of the project which doesn't exist, or which it starts directly without the execute bit. Claude Code reads hooks from .claude/settings.json and .claude/settings.local.json, Cursor CLI from .cursor/hooks.json and the same Claude files, Gemini CLI from .gemini/settings.json, Codex from .codex/config.toml and .codex/hooks.json. OpenCode hooks in through JS plugins, with no command to check. ctxray follows ./x.sh, scripts/x.sh, $CLAUDE_PROJECT_DIR/… (and the GEMINI_ and CURSOR_ ones), and the script after node, python3, bash, and other interpreters. A command from PATH like npx prettier differs between machines and stays out. Windows has no execute bit, so there only a missing file counts.
Fix: Commit the script or fix its path. For a script the hook runs directly, set the bit and commit it: chmod +x scripts/fmt.sh && git add scripts/fmt.sh.
Default: error when the file is missing, warning when it isn't executable
Finds: A local MCP server whose program or script in the project doesn't exist, or a program it starts directly without the execute bit: ./bin/mcp, or node mcp/server.js with no mcp/server.js. The harness then fails to start the server, and its tools never reach the model. ctxray reads .mcp.json for Claude Code, .cursor/mcp.json for Cursor CLI, [mcp_servers] in .codex/config.toml for Codex, mcpServers in .gemini/settings.json for Gemini CLI, and mcp in opencode.json for OpenCode. Every one of them starts the server without a shell, in the folder it runs in or the server's cwd, so a relative path counts from there. npx, uvx, and other commands from PATH stay out.
Fix: Fix the path, add cwd when the script lives in a subfolder, or commit the missing file. For a program started directly, chmod +x it and commit.
Default: error
Finds: A file the harness reads that isn't UTF-8. Windows Notepad and some editors save UTF-16, and Claude Code, Codex, Gemini CLI, and OpenCode then give the model letters with zero bytes between them. Cursor CLI reads UTF-16 only with a byte order mark. A byte that breaks UTF-8, like é saved in Windows-1252 or Latin-1, reaches the model as the replacement character � in every harness. A UTF-8 byte order mark is fine here: byte-order-mark covers the skills that trip on it.
Fix: Save the file as UTF-8. In VS Code, click the encoding in the status bar and pick “Save with Encoding”, then “UTF-8”. From a terminal: iconv -f UTF-16 -t UTF-8 CLAUDE.md > CLAUDE.md.new && mv CLAUDE.md.new CLAUDE.md.
Default: warning
Finds: A skill the model sees in the listing whose description has fewer than four words or 20 characters, like “Cut a release.”. The model picks a skill by its description alone, so a short one gives it too little to know when the skill fits.
Fix: Say what the skill does and when to use it: “Use when the user asks to cut a release: bumps the version, updates CHANGELOG.md, and tags the commit.”
Default: warning
Finds: Two skills of different names whose descriptions share 70% or more of their words, counted for descriptions of five words or more. The model sees both in the listing and may pick the wrong one. Skills of one name in two folders are duplicate-skill's business.
Fix: Make each description say what sets the skill apart, or merge the two skills. To check that the model now picks the right one, write an L6 test with the prompts each skill should take, as Writing Tests shows: expect(runs).skill("deploy-web").toActivate() and expect(runs).skill("deploy-api").not.toActivate().
Default: info
Finds: An HTML comment in an instruction file that the model reads, like <!-- TODO: drop after the Gradle 9 move -->. GitHub and editors hide it, so it reads like a note for people, but harnesses don't render Markdown:
| Harness | What the model gets |
|---|---|
| Claude Code | Drops a comment that stands on lines of its own, in CLAUDE.md, rules, and imports. Sends one inside a line, like Use Kotlin. <!-- not Java -->
|
| Codex, Gemini CLI, OpenCode, Cursor CLI | Every comment, as it is |
A comment in a code block is code, and ctxray's own <!-- ctxray-ignore --> comments stay out of this check. They still reach the model in the harnesses that keep comments.
Fix: Nothing to fix when the note may reach the model. Otherwise move it to a file no harness reads, such as docs/agents-notes.md, or, for Claude Code alone, put it on lines of its own. Set the check to off in lint.rules when you don't want to hear about it.
Default: warning
Finds: An email, a phone number, or a card number in a file the model reads.
Fix: Remove the data or replace it with a placeholder like user@example.com.
Default: warning
Finds: A rule whose globs match no file in the repository, so it never loads.
Fix: Fix the globs so they match real paths, from the rule's own folder, or delete the rule.
Default: per limits
Finds: A file over a size limit.
Fix: Shorten the file or split it into files the agent reads when it needs them. When the size is fine for you, raise the limit under limits.
Default: error
Finds: An agent file no harness reads and no read file links to, so it reaches no model.
Fix: Move the file where a harness reads it, link it from a file a harness reads, or delete it. When it isn't meant for agents at all, list it in lint.ignore.
Default: warning
Finds: A file only a harness outside the run reads.
Fix: Add that harness to the run, or give the harnesses you run the same instructions in their own files.
Default: warning
Finds: A file some harnesses of the run read and others don't, with nothing they read saying the same.
Fix: Give every harness of the run the same instructions, for example AGENTS.md for all and a CLAUDE.md that imports it with @AGENTS.md. When the difference is on purpose, set ignoreHarnessDifferences: true.
Start
Use
- Writing Tests
- Configuration
- Policies
- Lint Rules
- Harnesses
- Commands
- Reporters and Reports
- Claude Code Plugin
Teams
Develop
По-русски
- Начало работы · Понятия · Loadout Stack · Режимы захвата
- Тесты · Конфигурация · Политики · Правила линта · Харнессы · Команды · Отчёты · Плагин Claude Code
- CI · Enterprise
- Архитектура · Локализация · Участие