Plooc Integrationのロゴ

Plooc Integration

コミュニティ
easyzoom
plooc-integration

Use when integrating, refactoring, or debugging PLOOC object-oriented C - def_class encapsulation, private_member protection, vtable dispatch, or inheritance-style structs

概要

公開者easyzoom
リポジトリaix-skills
スキル名plooc-integration
スター
39
フォーク
5
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    easyzoomがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルPlooc IntegrationをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/easyzoom/aix-skills/tree/main/skills/plooc-integration
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/easyzoom/aix-skills.git /tmp/aix-skills
mkdir -p .claude/skills
cp -r /tmp/aix-skills/skills/plooc-integration .claude/skills/plooc-integration
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPlooc Integrationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にPlooc Integrationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Plooc Integrationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

PLOOC Integration

Overview

Use this skill when PLOOC (Protected Low-overhead Object-Oriented Programming with ANSI-C, by GorgonMeducer) is used to structure embedded C code. PLOOC mimics classes with masked structures: outside the class .c file, private_member/protected_member regions appear as an opaque byte array, so the real work is getting the per-file __<NAME>_CLASS_IMPLEMENT/__<NAME>_CLASS_INHERIT__ guards, member visibility, and vtable/interface dispatch correct. Apply it only where object-style boundaries reduce real complexity.

When To Use

Use this skill when:

  • The user mentions PLOOC, def_class/end_def_class, private_member/protected_member/public_member, implement()-style inheritance, or vtable-based dispatch (def_interface) in embedded C.
  • A legacy driver/module is being wrapped into an encapsulated class with plooc_class.h.
  • The issue involves the masked-struct layout, the __..._CLASS_IMPLEMENT guard, __OOC_DEBUG__, initialization order, object lifetime, or callback/vtable dispatch.

Do not use this skill for simple drivers where plain C structs and functions are clearer.

First Questions

Ask for:

  • PLOOC version (private_method()/protected_method()/public_method() were added in v4.6.4) and target compiler.
  • C standard: PLOOC needs ANSI-C99; C90 requires __OOC_DEBUG__ (private-member protection is disabled in that mode); overload/_Generic features need C11.
  • Which template is selected: __PLOOC_CLASS_USE_STRICT_TEMPLATE__ (strict), simple, simple_c90, or black_box.
  • Module being refactored and whether it uses single or multiple inheritance (implement()).
  • Memory policy: static objects vs __new_class()/__free_class() / __plooc_malloc_align().

Integration Checklist

  1. Set up the header guard pattern. In the class header, map the module macro to the framework macro before including plooc_class.h, e.g. #if defined(__BYTE_QUEUE_CLASS_IMPLEMENT) # define __PLOOC_CLASS_IMPLEMENT__ #elif defined(__BYTE_QUEUE_CLASS_INHERIT__) # define __PLOOC_CLASS_INHERIT__ #endif.

  2. Declare then define the class. Use dcl_class(foo_t) / declare_class(foo_t) (expands to typedef struct foo_t foo_t;), then def_class(foo_t, ...) ... end_def_class(foo_t). Group members with public_member(...), protected_member(...), private_member(...) (any order allowed).

  3. Define the implement macro in exactly one .c file. The class .c does #define __BYTE_QUEUE_CLASS_IMPLEMENT before #include "./byte_queue.h", so only that file sees real private members; every other translation unit sees the masked byte array.

  4. Access this inside methods correctly. Use class_internal(ptObj, ptThis, foo_t) to obtain the typed ptThis, and the #define this (*ptThis) convention for member access. Mark unused args with PLOOC_UNUSED_PARAM.

  5. Handle inheritance explicitly. Embed a base with implement(base_t) in the derived def_class; the framework generates a use_as__<base> member for the embedded base. Define __<NAME>_CLASS_INHERIT__ in a consumer that only needs to read the base's protected members. Access base functionality by passing the address of the use_as__<base> member to the base-class functions.

  6. Keep dispatch inspectable. Define vtables with def_interface(i_foo_t) ... end_def_interface(i_foo_t) and a single const interface instance; verify each function pointer is assigned.

Common Failures

  • Forgetting #define __<NAME>_CLASS_IMPLEMENT in the class .c, so the implementation only sees the opaque mask and member access fails to compile.
  • Defining the implement macro in more than one file, breaking encapsulation.
  • Mismatched template selection: header uses __PLOOC_CLASS_USE_STRICT_TEMPLATE__ but a consumer includes with a different template, corrupting struct layout.
  • C90 or non-C99 toolchain without __OOC_DEBUG__, so masked structs do not size correctly.
  • implement(base_t) omitted, so no use_as__<base> member is generated and base-class functions cannot be reached from the derived object.
  • Private members invisible in the debugger because __OOC_DEBUG__ is not defined for the debug build.
  • Missing include order: plooc.h/plooc_class.h (and <stdlib.h> for __new_class) not reachable on the include path.

Verification

Before claiming PLOOC integration works:

  • State the PLOOC version, C standard, and which class template (strict/simple/black_box) is used.
  • Confirm the header maps __<NAME>_CLASS_IMPLEMENT/__<NAME>_CLASS_INHERIT__ before including plooc_class.h, and the implement macro is defined in exactly one .c.
  • Confirm sizeof(foo_t) is identical inside and outside the implementing file (mask size matches real struct).
  • Confirm methods resolve this via class_internal(...) and every vtable pointer in the def_interface instance is set.
  • Confirm private members are visible in GDB with __OOC_DEBUG__ in the debug build, and old behavior is preserved for the migrated module.

Example

User:

text
想用 PLOOC 重构几个传感器驱动。

Agent:

  1. Asks the PLOOC version, C standard, and whether the sensors share a base class needing implement().
  2. Migrates one sensor family: dcl_class/def_class with private_member/public_member, sets __<NAME>_CLASS_IMPLEMENT in one .c, exposes ops via def_interface.
  3. Verifies sizeof mask consistency, vtable wiring, and that private members are inspectable under __OOC_DEBUG__.

よくある質問

AIスキル「Plooc Integration」では何ができますか?

Use when integrating, refactoring, or debugging PLOOC object-oriented C - def_class encapsulation, private_member protection, vtable dispatch, or inheritance-style structs

TypingMindでPlooc Integrationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Plooc Integrationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPlooc Integrationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/easyzoom/aix-skills/tree/main/skills/plooc-integrationを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Plooc Integrationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Plooc Integrationは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPlooc Integrationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Plooc Integration」は無料ですか?

はい。easyzoomがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇