Skip to content
Back to skills

Claude Code Mods Patterns

ASecurity

Claude Code mod patterns for hooks and next, ui.render drawing, $.state, guards, and plugin tests. Load before any edit to a plugin hooks module or hooks.json, however small, or for mod questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentstestingapi

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill claude-code-mods-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Code Mods Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Code Mods Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-claude-code-mods-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-claude-code-mods-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: claude-code-mods-patterns
description: Claude Code mod patterns for hooks and next, ui.render drawing, $.state, guards, and plugin tests. Load before any edit to a plugin hooks module or hooks.json, however small, or for mod questions.
---

# Claude Code mods patterns

Default assumption: Claude Code 2.1.334, per the Claude Code changelog. The stable channel is 2.1.331, per the npm dist-tags, and mods are on by default from CLI 2.1.287 and Desktop 2.1.286, per the mods overview.

A row or entry that names a version applies when the Claude Code the mod's users run is at least that version. The API types the engine writes into the plugin's `.claude-plugin/types/` are the reference for the version loaded.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                                  | Read                                                     |
| --------------------------------------------------------------------------------------- | -------------------------------------------------------- |
| Writing a mod, or raising the Claude Code version it supports                           | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing a hooks module or `hooks.json`                          | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing a hook, a `ui.render` tree, a `$.state` value or contract, or a registered tool | [reference/practices.md](reference/practices.md)         |
| Running `claude plugin validate`, `claude plugin test`, or `tsc` on a mod               | [reference/tooling.md](reference/tooling.md)             |
| Writing or changing a mod's `*.test.ts` or `*.test.tsx`                                 | [reference/testing.md](reference/testing.md)             |

Files in this skill

  • SKILL.md1.9 KB
  • reference/anti-patterns.md1.9 KB
  • reference/drawing.md1.7 KB
  • reference/hooks.md2.3 KB
  • reference/state.md1.6 KB
  • reference/testing.md1.4 KB
  • sources.md5.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.