IntelliJプラグインのAnActionと登録設定を実装・変更し、表示文言やアイコンの定義、非同期処理の起動方法を整えます。
- IDEに新しいアクションを追加したいとき
- アクションの登録やアイコンを変更したいとき
- 表示名と説明文の定義を整理したいとき
KotlinやJavaのJNA連携で、ネイティブ側の型・構造体配置・呼び出し規約を確認しながらバインディングを実装・デバッグします。
Implement or debug JNA bindings and ABI layouts in Kotlin or Java.
実行スコア 未検証
インストール方法を見るKotlinやJavaからネイティブAPIを呼び出すJNAバインディングの実装・デバッグを支援します。既存のJNA Platformやリポジトリ内のマッピングを調べ、ネイティブ宣言に合う型があれば再利用します。構造体のフィールド順、整数やポインターの幅、アラインメント、呼び出し規約、コールバックやネイティブメモリの寿命などを確認し、ABI(アプリケーションとネイティブコード間の呼び出し規約)に沿った定義を整えます。JNAのリフレクションで必要なクラスやフィールドの公開範囲も点検し、原因を追いやすい例外情報の見方を案内します。
ネイティブライブラリとの接続を新しく作るときや、構造体サイズの不一致、フィールドアクセス例外、コールバックの問題を調査するときに役立ちます。ネイティブUIや権限、実機に依存する統合テストを実行する前に、JVM上でレイアウトの回帰テストを用意したい場合にも向いています。
ネイティブ宣言、対象アーキテクチャ、所有権の規則を確認する必要があります。権限・ハードウェア・OSに依存する統合テストは、レイアウトテストとは分けて扱います。
この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Treat every mapping as an ABI contract. Verify the native declaration, target architectures, and ownership rules before changing Kotlin or Java code.
Search JNA Platform and the repository before declaring a native type. Prefer a maintained platform mapping when its field types, alignment, and calling convention match the target API.
JNA reflects mapped classes and fields while deriving layouts and invoking callbacks. Make every Structure, Union, callback, and related declaring class JVM-accessible from com.sun.jna:
internal or public mapped classes; never use private, local, or anonymous mapped classes.@JvmField.IllegalAccessException from Structure.getFieldValue.Prefer moving visibility only as far as needed over suppressing reflection errors or opening accessibility globally.
@Structure.FieldOrder.size_t, native booleans, wide strings, and platform-dependent numeric types deliberately. Do not infer their size from Kotlin or Java names.Structure.ByValue; model pointers separately with Pointer or the appropriate reference type.read() and write() at the required ownership boundary.Add a small JVM regression test that constructs each mapped structure and calls size() or otherwise forces JNA to derive its layout. Assert stable sizes or offsets only when they are defined for the tested architecture.
Keep permission-, hardware-, and OS-dependent native integration coverage separate. A layout test should catch visibility and field-order failures before a native callback reaches production code.
When debugging, retain the complete cause chain: wrapper errors often hide the useful IllegalAccessException, invalid field type, alignment error, or callback exception underneath.
まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
IntelliJプラグインのAnActionと登録設定を実装・変更し、表示文言やアイコンの定義、非同期処理の起動方法を整えます。
IntelliJのJPSテストモジュールをBazelへ移行し、Bazelだけで起きる失敗を依存関係や実行環境から切り分ける手順を案内します。
IntelliJのKotlin・Javaコードを新規作成やレビューする際に、言語の選び方、書式、型の扱い、例外処理などのプロジェクト規約に沿って整えるスキルです。
IntelliJ向けの変更を適切な単位に分け、チケットの有無に応じた形式で、理由や判断も伝わるコミットメッセージを作成・修正するスキルです。
Pythonコードの型推論や型エラーを複数の型チェッカーで比較し、各ツールの判定と診断内容をまとめたレポートを作成します。
Compose Desktopの画面で状態や副作用をどこに持たせるか整理し、表示と判断の境界、再利用部品やリストの設計を整えます。