
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
A fast, extensible linter for validating and optimizing CLAUDE.md context files. Built with TypeScript and designed for developers who want to ensure their Claude AI context files follow best practices.
npm install -g cc-linter
npm install --save-dev cc-linter
npx cc-linter lint your-claude.md
# Lint a CLAUDE.md file
cclint lint CLAUDE.md
# Lint with JSON output
cclint lint CLAUDE.md --format json
# Set custom file size limit
cclint lint CLAUDE.md --max-size 5000
📝 Linting results for CLAUDE.md:
❌ error: Missing required section: "Development Commands" at 1:1 [structure]
⚠️ warning: File size (12,543 characters) exceeds maximum allowed size (10,000 characters) at 1:1 [file-size]
⚠️ warning: Missing required content: TypeScript usage (expected: "TypeScript") at 1:1 [content]
Summary: 1 errors, 2 warnings
file-size)Validates that CLAUDE.md files don't exceed size limits for optimal performance.
--max-size <number>structure)Ensures required sections are present in CLAUDE.md files.
content)Checks for essential content patterns that improve context effectiveness.
format)Validates Markdown syntax and formatting best practices.
# Header not #Header)cclint lint [options] <file>
Options:
-f, --format <format> Output format (text, json) (default: "text")
--max-size <size> Maximum file size in characters (default: "10000")
-h, --help Display help for command
0: No errors (warnings allowed)1: Errors found or execution failedCC Linter follows a hexagonal architecture with clean separation of concerns:
┌─────────────────┐ ┌─────────────────┐
│ CLI Adapter │ │ VS Code Extension│
│ │ │ (Future) │
└─────────┬───────┘ └─────────┬───────┘
│ │
└──────────┬───────────┘
│
┌──────────▼───────────┐
│ Core Engine │
│ ┌─────────────────┐ │
│ │ Rules Engine │ │
│ │ - FileSizeRule │ │
│ │ - StructureRule │ │
│ │ - ContentRule │ │
│ │ - FormatRule │ │
│ └─────────────────┘ │
└──────────────────────┘
# Clone the repository
git clone https://github.com/felixgeelhaar/cclint.git
cd cclint
# Install dependencies
npm install
# Run tests
npm test
# Build the project
npm run build
# Run the linter on itself
npm run dev -- lint CLAUDE.md
# Or after global install
cclint lint CLAUDE.md
npm test # Run test suite with Vitest
npm run test:watch # Run tests in watch mode
npm run test:coverage # Generate coverage report
npm run typecheck # Type check with TypeScript
npm run lint # Lint source code
npm run build # Build for production
npm run dev # Run development version
CC Linter follows Test-Driven Development (TDD):
We welcome contributions! Please read our Contributing Guide for details on:
git checkout -b feature/amazing-feature)npm test)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.
.cclintrc.json for project-specific rulesMade with ❤️ by Felix Geelhaar for the Claude AI developer community
FAQs
A TypeScript linter for validating and optimizing CLAUDE.md context files
We found that cc-linter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.