Claude Code Plugin
This guide covers how to install and use claudelint as a Claude Code plugin.
Installation
The plugin's skills run claudelint CLI commands under the hood. You must install the npm package first:
npm install --save-dev claude-code-lintSee Getting Started for full installation options.
From GitHub
Install directly from GitHub:
/plugin install github:pdugan20/claudelintFrom Local Package
If you've installed the npm package, you can load the plugin from your local node_modules:
/plugin install --source ./node_modules/claude-code-lintThis gives you both the CLI commands and the Claude skills.
Skills
Once installed, the plugin adds 9 skills that Claude can use automatically. Ask naturally or invoke directly with /claudelint:<name>.
Validation
validate-allRuns every validator on your entire project — CLAUDE.md, skills, settings, hooks, MCP servers, and plugin manifests.
validate-cc-mdChecks CLAUDE.md file size, @import directives, frontmatter, and section organization.
validate-skillsChecks SKILL.md frontmatter, allowed-tools, file references, and shell script security.
validate-settingsChecks settings.json schema, permissions, and environment variables.
validate-hooksChecks hooks.json events, matcher patterns, and command script references.
validate-mcpChecks .mcp.json transport types, server names, and environment variables.
validate-pluginChecks plugin.json manifest schema, versioning, and component references.
Quality and Optimization
format-ccAuto-formats Claude Code files with markdownlint, prettier, and shellcheck.
optimize-cc-mdInteractive workflow to reduce CLAUDE.md size, remove generic content, and organize @import files.
See the CLI Reference for all available flags when using slash commands directly.
Automatic Validation
Set up a SessionStart hook to validate automatically when Claude Code starts.
Create .claude/hooks/hooks.json:
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "claudelint check-all --format compact"
}
]
}
]
}
}See Claude Code Hooks for more hook examples.
Configuration
The plugin respects your project's configuration files:
.claudelintrc.json— Rule configuration.claudelintignore— Files to ignore
See the Configuration Guide for details.
Troubleshooting
Skills Don't Appear
If slash commands aren't available:
- Check plugin is installed:
/plugin list - Reinstall if needed:
/plugin uninstall claudelintthen reinstall - Restart Claude Code session
Validation Fails
If validation returns errors:
- Run with
--explainflag for detailed guidance - Check
.claudelintrc.jsonfor rule configuration - See error messages for specific line numbers and fixes
- Review Rules Reference for rule details
Permission Denied
If you get permission errors:
- Check
claudelintis installed:which claudelint - Install globally if needed:
npm install -g claude-code-lint - Check PATH includes npm global bin directory
False Positives
If you get warnings/errors that shouldn't apply:
- Use inline disable comments:
<!-- claudelint-disable rule-name --> - Configure rules in
.claudelintrc.json - Add file overrides for specific patterns
- Report issue if rule is incorrect
Uninstalling
To remove the plugin:
/plugin uninstall claudelintSee Also
- Configuration Guide - Customize validation rules
- Claude Code Hooks - Automatic validation hooks
- Rules Reference - What gets validated
- CLI Reference - All commands and flags