MukundaKatta

Claude Commands Check — AI skill for Claude Code

AI community

Linter for Claude Code slash-command files.

How to install Claude Commands Check

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

What Claude Commands Check does

Linter for Claude Code slash-command files. Python, CLI + library. Validates frontmatter, tools, model, and flags secrets.

Alternatives in AI

  • Scipilot Writing Skill — SciPilot family: academic writing and polishing co-pilot, with a machine-checked writing-quality evidence chai 220 ★
  • Sloptrim — A local detector for AI-writing patterns 196 ★
  • Lamoom Python — by LamoomAI - Serves as reference for production prompt engineering library with load balancing of AI Models 98 ★

README

claude-commands-check

[![CI](https://github.com/MukundaKatta/claude-commands-check/actions/workflows/ci.yml/badge.svg)](https://github.com/MukundaKatta/claude-commands-check/actions/workflows/ci.yml) [![PyPI](https://img.shields.io/pypi/v/claude-commands-check.svg)](https://pypi.org/project/claude-commands-check/) [![Python](https://img.shields.io/pypi/pyversions/claude-commands-check.svg)](https://pypi.org/project/claude-commands-check/) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)

A small Python linter for [Claude Code](https://claude.ai/code) **slash-command files** (`.claude/commands/*.md`).

It checks:

  • filename is a valid command name (lowercase kebab-case)
  • YAML frontmatter parses cleanly (when present — frontmatter is optional)
  • description is present, reasonably long, and a string
  • allowed-tools / disallowed-tools are a string or list of strings
  • argument-hint is a string
  • model is a recognized value (opus, sonnet, haiku, inherit, default, or a full model id)
  • disable-model-invocation is a boolean
  • command body is not empty (otherwise there's no prompt for Claude to run)
  • no hardcoded API keys slipped into the body or frontmatter

Install

pip install claude-commands-check

Usage

Lint a single file:

claude-commands-check .claude/commands/my-cmd.md

Lint an entire commands directory:

claude-commands-check .claude/commands/
claude-commands-check ~/.claude/commands/

Exit status: `0` on no errors, `1` on any errors, `2` when no command files were found.

Library API

from claude_commands_check import validate_command_file

result = validate_command_file(".claude/commands/my-cmd.md")
for issue in result.errors:
    print(issue.code, issue.message)

Issue codes

Code Severity Meaning
E000 error file-level problem (missing, empty, not UTF-8)
E001 error filename is not a valid com