Falco-Studios

Ctxlint — Code Quality skill for Claude Code

Code Quality community

Lint CLAUDE.md, AGENTS.md & Cursor rules against your repo: catch stale paths, missing scripts and broken imports.

How to install Ctxlint

This entry records only its repository, not the path inside it, so there is no exact command to give. Open Falco-Studios/ctxlint and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Ctxlint does

Lint CLAUDE.md, AGENTS.md & Cursor rules against your repo: catch stale paths, missing scripts and broken imports.

Alternatives in Code Quality

  • Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
  • Brooks Debt — Run a Brooks-Lint tech debt assessment 1.5k ★
  • Lint Task — Lint coder-eval Task YAML 166 ★

README

ctxlint

[![npm](https://img.shields.io/npm/v/@falco-studios/ctxlint)](https://www.npmjs.com/package/@falco-studios/ctxlint) [![CI](https://github.com/Falco-Studios/ctxlint/actions/workflows/ci.yml/badge.svg)](https://github.com/Falco-Studios/ctxlint/actions/workflows/ci.yml) [![license](https://img.shields.io/npm/l/@falco-studios/ctxlint)](LICENSE) ![dependencies](https://img.shields.io/badge/dependencies-0-brightgreen)

**Your `CLAUDE.md` says `npm run lint`. That script was deleted three months ago. Your agent doesn't know that.**

`ctxlint` checks agent context files (`CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, Cursor rules, Copilot instructions) against the repository they describe. It catches paths that moved, scripts that were renamed, imports that broke, and rules that can never apply, before your coding agent wastes a turn on them.

ctxlint run: a stale path, a missing npm script, a broken @import and a Cursor glob that matches no files

Zero dependencies, runs offline, no API keys, no LLM calls. It reads files and checks them against your repo, the way a type checker checks imports.

Why

Context files are code that nobody compiles. They're written once, then the repo moves on:

  • a folder gets renamed and the instructions keep pointing at the old one,
  • npm run test:unit becomes npm run test, but the agent keeps trying the old name,
  • an @import in CLAUDE.md silently stops resolving,
  • a Cursor rule's globs: no longer matches anything, so the rule never fires,
  • the file grows to 15k tokens and gets sent with every single request.

Each of these costs agent turns, tokens and wrong edits. `ctxlint` makes them a CI failure instead.

Usage

npx @falco-studios/ctxlint              # lint the current repo
npx @falco-studios/ctxlint path/to/repo
npx @falco-studios/ctxlint --list       # show which files would be checked
npx @falco-studios/ctxlint --rules      # show all rules