celaldrg

Subagentlint — Code Quality skill for Claude Code

Code Quality community

Lint Claude Code subagent files (.claude/agents) before they fail silently: frontmatter typos, missing descriptions, duplicate names, broken hook scripts, description token budget.

How to install Subagentlint

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

What Subagentlint does

Lint Claude Code subagent files (.claude/agents) before they fail silently: frontmatter typos, missing descriptions, duplicate names, broken hook scripts, description token budget. Zero-dependency Python CLI.

Alternatives in Code Quality

  • Selfreview — Self code review before a release — four narrow reviewers over the change (or the whole repo), findings ranked 96 ★
  • Claude Starter — Production-ready Claude Code configuration template with 40 auto-activating skills across 8 domains, TOON form 65 ★
  • Wikimate Lint — 옵시디언 볼트를 읽기전용으로 건강검진 (중복·깨진 링크·고아·frontmatter·끊긴 색인) 51 ★

README

subagentlint

[![CI](https://github.com/celaldrg/subagentlint/actions/workflows/ci.yml/badge.svg)](https://github.com/celaldrg/subagentlint/actions/workflows/ci.yml) ![python](https://img.shields.io/badge/python-3.10%2B-blue) ![deps](https://img.shields.io/badge/dependencies-0-brightgreen) ![license](https://img.shields.io/badge/license-MIT-green)

**Lint Claude Code subagents before they fail silently.**

Custom subagents live in `.claude/agents/*.md`. Claude Code skips a file with broken frontmatter, a missing `description`, or a `name` that starts with `-`, and it ignores a typo such as `permission_mode` or `disallowTools` without showing an error in the session. The reason, if it is recorded at all, ends up in the debug log. `subagentlint` checks those files in your editor or in CI, against the [published subagent format](https://code.claude.com/docs/en/sub-agents).

  • Catches the mistakes that prevent a subagent from loading: invalid YAML, missing name/description, illegal names, unclosed frontmatter.
  • Flags fields and tool names Claude Code will ignore, with typo suggestions (permission_mode → permissionMode, Grap → Grep).
  • Checks hook scripts exist and are executable, skills resolve, and inline MCP servers have a command or url.
  • Reports duplicate names in the same agents tree (only one will load), names that override built-ins, and combined description fields that exceed the 15,000-token startup budget.
  • Text, JSON and GitHub Actions annotation output. Zero dependencies, Python 3.10+.

Install

pip install git+https://github.com/celaldrg/subagentlint@v0.1.0
# or grab the wheel from the v0.1.0 release

Usage

subagentlint                       # discover .claude/agents in the current repo
subagentlint .claude/agents        # one agents folder
subagentlint path/to/reviewer.md   # one file
subagentlint --user                # also scan ~/.claude/agents
subagentlint --strict              # warnings fail too
subag