ctxlint

v0.30.0
io.github.YawLabs/ctxlint Checked 8 hours ago Published 1 day ago

Lint AI agent context files (CLAUDE.md, AGENTS.md, etc.) against your actual codebase

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ctxlint_audit

Audit AI agent context files (CLAUDE.md, AGENTS.md, etc.) in the project. Checks for stale references, invalid commands, redundant content, contradictions, frontmatter issues, and token waste. Scoped to context-file checks only; MCP-config and session-level checks are exposed as separate tools.

ParameterTypeDescription
checksarrayWhich context-file checks to run. Defaults to all.
projectPathstringPath to the project root. Defaults to current working directory.

ctxlint_validate_path

Check if a file path referenced in a context file actually exists in the project. Returns the file status and suggests corrections if the path is invalid.

ParameterTypeDescription
path *stringThe file path to validate
projectPathstringProject root. Defaults to cwd.

ctxlint_token_report

Get a token count breakdown for all context files in the project. Shows per-file and aggregate token usage, plus estimated waste from redundant content.

ParameterTypeDescription
projectPathstringProject root. Defaults to cwd.

ctxlint_fix

Run the selected context-file checks and apply every auto-fix they emit, writing the context files in place. Today only the paths check emits fixes: a broken file path is rewritten to its git-rename target or a close fuzzy match. Returns a summary of what was fixed. Pass dryRun: true to preview what would be fixed without writing any files.

ParameterTypeDescription
checksarrayWhich context-file checks to run before fixing. Defaults to all.
dryRunbooleanIf true, simulate fixes and report what would change without writing any files. Returns accurate counts.
projectPathstringPath to the project root. Defaults to current working directory.

ctxlint_mcp_audit

Lint MCP server configuration files in a project. Checks for schema errors, hardcoded secrets, deprecated transports, wrong env var syntax, URL issues, and cross-client inconsistencies.

ParameterTypeDescription
checksarraySpecific MCP checks to run (default: all mcp-* checks).
includeGlobalbooleanAlso scan global/user-level MCP configs.
projectPathstringPath to the project root. Defaults to current working directory.

ctxlint_session_audit

Audit AI agent session data for cross-project consistency and session hazards. Checks for missing GitHub secrets, diverged config files and missing workflows across sibling repositories; stale, duplicate or overflowing memory entries; command loops; and, from Claude Code transcripts, shared temp paths, gates claimed clean after failing, edits piling up on the default branch, unresolvable commit SHAs in memory, and large whole-file Reads re-sent as context on later turns.

ParameterTypeDescription
checksarraySpecific session checks to run (default: all session-* checks).
projectPathstringPath to the project root. Defaults to current working directory.

ctxlint_skill_audit

Audit agent skill and subagent definitions (~/.claude/skills/*/SKILL.md, ~/.claude/agents/*.md). Checks for frontmatter problems, broken file references, trigger collisions, orphaned skill directories, and dead tool restrictions.

ParameterTypeDescription
checksarraySpecific skill checks to run (default: all skill-* checks).
projectPathstringPath to the project root. Defaults to current working directory.