writing-clj-kondo-hooks

Community

Create custom clj-kondo lint hooks for your macros

AuthorSevereOverfl0w
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Developers need to extend clj-kondo linting for custom macros but lack guidance and ready-to-use hooks, making linting incomplete and error‑prone.

Core Features & Use Cases

  • Hook Types: Provides guidance for creating both analyze-call hooks (precise transformation) and macroexpand hooks (simpler macro expansion).
  • API Reference: Details the clj-kondo.hooks-api functions for node construction, lint registration, and analysis utilities.
  • Workflow Steps: Shows how to read configuration, write the hook code, register it, and test with clj-kondo.
  • Use Case: Ideal for library authors who define new macros and want clj‑kondo to understand them without manual lint suppression.

Quick Start

Use the writing-clj-kondo-hooks skill to create a clj‑kondo hook that rewrites a custom macro call into a let expression.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: writing-clj-kondo-hooks
Download link: https://github.com/SevereOverfl0w/.files/archive/main.zip#writing-clj-kondo-hooks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.