agentleFS
ku5icku5ic/claude-kit/skills/claude-code-mods-patterns/SKILL.md

claude-code-mods-patterns

Skill2 starsChanged 14 days agoMITView on GitHub

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.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default assumption: Claude Code 2.1.326, the latest release.

    line 8

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Claude Code mods patterns

Default assumption: Claude Code 2.1.326, the latest release. The stable channel is 2.1.311, and mods are on by default from CLI 2.1.287 and Desktop 2.1.286.

  • An API added after 2.1.311 doesn't exist on the stable channel. Each reference file names the minimum version where one applies.
  • Adapt advice to the version the project's users run, and to the API types the engine writes into the plugin's .claude-plugin/types/.

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.

BeforeRead
Writing or changing a hook, a matcher, a .catch, or work started at session startreference/hooks.md
Writing or changing a ui.render hook, a tree, a Button, or $.ui.viewreference/drawing.md
Keeping a value across hooks or reloads, or declaring a $.state contractreference/state.md
Writing or changing a mod's *.test.ts, or reading claude plugin validatereference/testing.md
Writing, changing, or reviewing a modreference/anti-patterns.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.