Back to list
kubb-labs

plugin-architecture

by kubb-labs

🧩 The Ultimate Toolkit for Generating Type-Safe API Clients, Hooks, and Validators.

1,532🍴 129📅 Jan 23, 2026

Use Cases

🔗

MCP Server Integration

AI tool integration using Model Context Protocol. Using plugin-architecture.

Efficient Code Generation

Auto-generate boilerplate code to reduce development time.

🔍

Code Review Assistance

Analyze PR changes and suggest improvements.

SKILL.md


name: plugin-architecture description: Explains plugin lifecycle, generator types, and common utilities used by plugins in the Kubb ecosystem.

Plugin Architecture Skill

This skill instructs agents on how plugins are defined, registered, and how generators interact with the plugin lifecycle.

When to Use

  • When users ask how to create a plugin or resolve names/paths
  • When explaining generator lifecycles and utility helpers

What It Does

  • Describes PluginManager and plugin hooks (pre, post, resolvePath, resolveName, install)
  • Shows a typical plugin factory shape
  • Lists common helper utilities used within generators and components

Example Plugin Shape

export const definePlugin = createPlugin<PluginOptions>((options) => ({
  name: pluginName,
  options,
  pre: [],
  post: [],
  resolvePath(baseName, mode, options) { /* ... */ },
  resolveName(name, type) { /* ... */ },
  async install() { /* ... */ },
}))

Utilities to Reference

  • getFile(operation, { pluginKey })
  • getName(operation, { type, prefix })
  • getSchemas(operation, { pluginKey, type })
SkillUse For
../components-generators/SKILL.mdGuidance for writing @kubb/react-fabric components and generators

Score

Total Score

85/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 1000以上

+15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon