diff --git a/.agents/_TOC.md b/.agents/_TOC.md index 065df133..83375f41 100644 --- a/.agents/_TOC.md +++ b/.agents/_TOC.md @@ -13,4 +13,4 @@ 11. [Advanced safety rules](advanced-safety-rules.md) 12. [Refactoring guidelines](refactoring-guidelines.md) 13. [Common tasks](common-tasks.md) -14. [Java to Kotlin conversion](java-kotlin-conversion.md) +14. [Java to Kotlin conversion](skills/java-to-kotlin/SKILL.md) diff --git a/.agents/quick-reference-card.md b/.agents/quick-reference-card.md index 6c25b9a7..e2be69cb 100644 --- a/.agents/quick-reference-card.md +++ b/.agents/quick-reference-card.md @@ -3,7 +3,6 @@ ``` 🔑 Key Information: - Kotlin/Java project with CQRS architecture -- Use ChatGPT for documentation, Codex for code generation, GPT-4o for complex analysis - Follow coding guidelines in Spine Event Engine docs - Always include tests with code changes - Version bump required for all PRs diff --git a/.agents/java-kotlin-conversion.md b/.agents/skills/java-to-kotlin/SKILL.md similarity index 88% rename from .agents/java-kotlin-conversion.md rename to .agents/skills/java-to-kotlin/SKILL.md index 95cf9295..d3abdc2f 100644 --- a/.agents/java-kotlin-conversion.md +++ b/.agents/skills/java-to-kotlin/SKILL.md @@ -1,3 +1,11 @@ +--- +name: java-to-kotlin +description: > + Convert Java code to Kotlin, including Java API comments from Javadoc to KDoc. + Use when asked to migrate Java files, classes, methods, nullability semantics, + or common Java patterns into idiomatic Kotlin while preserving behavior. +--- + # 🪄 Converting Java code to Kotlin * Java code API comments are Javadoc format. diff --git a/.agents/skills/java-to-kotlin/agents/openai.yaml b/.agents/skills/java-to-kotlin/agents/openai.yaml new file mode 100644 index 00000000..252920fe --- /dev/null +++ b/.agents/skills/java-to-kotlin/agents/openai.yaml @@ -0,0 +1,4 @@ +interface: + display_name: "Java to Kotlin" + short_description: "Convert Java code to idiomatic Kotlin" + default_prompt: "Use $java-to-kotlin to convert Java code to Kotlin while preserving behavior, nullability, and API documentation wording." diff --git a/.junie/skills b/.junie/skills new file mode 120000 index 00000000..2b7a412b --- /dev/null +++ b/.junie/skills @@ -0,0 +1 @@ +../.agents/skills \ No newline at end of file