[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CFBQJD4BJ836MJB4ECAJ7D":3,"skill-same:01M7CFBQJD4BJ836MJB4ECAJ7D":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7CFBQJD4BJ836MJB4ECAJ7D","kotlin-tooling-java-to-kotlin",null,"Use when converting Java source files to idiomatic Kotlin, when user mentions \"java to kotlin\", \"j2k\", \"convert java\", \"migrate java to kotlin\", or when working with .java files that need to become .kt files. Handles framework-aware conversion for Spring, Lombok, Hibernate, Jackson, Micronaut, Quarkus, Dagger\u002FHilt, RxJava, JUnit, Guice, Retrofit, and Mockito.","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fkotlin-kotlin-agent-skills\u002Fkotlin-tooling-java-to-kotlin\u002Fskills\u002Fkotlin-tooling-java-to-kotlin\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: kotlin-tooling-java-to-kotlin\ndescription: >\n  Use when converting Java source files to idiomatic Kotlin, when user mentions\n  \"java to kotlin\", \"j2k\", \"convert java\", \"migrate java to kotlin\", or when\n  working with .java files that need to become .kt files. Handles framework-aware\n  conversion for Spring, Lombok, Hibernate, Jackson, Micronaut, Quarkus, Dagger\u002FHilt,\n  RxJava, JUnit, Guice, Retrofit, and Mockito.\nlicense: Apache-2.0\nmetadata:\n  author: JetBrains\n  version: \"1.0.0\"\n---\n\n# Java to Kotlin Conversion\n\nConvert Java source files to idiomatic Kotlin using a disciplined 4-step conversion\nmethodology with 5 invariants checked at each step. Supports framework-aware conversion\nthat handles annotation site targets, library idioms, and API preservation.\n\n## Workflow\n\n```dot\ndigraph j2k_workflow {\n  rankdir=TB;\n  \"User specifies files\" -> \"Step 0: Scan & Detect\";\n  \"Step 0: Scan & Detect\" -> \"Load framework guides\";\n  \"Load framework guides\" -> \"Step 1: Convert\";\n  \"Step 1: Convert\" -> \"Step 2: Write .kt\";\n  \"Step 2: Write .kt\" -> \"Step 3: Git rename\";\n  \"Step 3: Git rename\" -> \"Step 4: Verify\";\n  \"Step 4: Verify\" -> \"Next file?\" [label=\"pass\"];\n  \"Step 4: Verify\" -> \"Fix issues\" [label=\"fail\"];\n  \"Fix issues\" -> \"Step 1: Convert\";\n  \"Next file?\" -> \"Step 0: Scan & Detect\" [label=\"batch: yes\"];\n  \"Next file?\" -> \"Done\" [label=\"no more files\"];\n}\n```\n\n## Step 0: Scan & Detect Frameworks\n\nBefore converting, scan the Java file's import statements to detect which frameworks\nare in use. Load ONLY the matching framework reference files to keep context focused.\n\n### Framework Detection Table\n\n| Import prefix | Framework guide |\n|---|---|\n| `org.springframework.*` | [SPRING.md](references\u002Fframeworks\u002FSPRING.md) |\n| `lombok.*` | [LOMBOK.md](references\u002Fframeworks\u002FLOMBOK.md) |\n| `javax.persistence.*`, `jakarta.persistence.*`, `org.hibernate.*` | [HIBERNATE.md](references\u002Fframeworks\u002FHIBERNATE.md) |\n| `com.fasterxml.jackson.*` | [JACKSON.md](references\u002Fframeworks\u002FJACKSON.md) |\n| `io.micronaut.*` | [MICRONAUT.md](references\u002Fframeworks\u002FMICRONAUT.md) |\n| `io.quarkus.*`, `javax.enterprise.*`, `jakarta.enterprise.*` | [QUARKUS.md](references\u002Fframeworks\u002FQUARKUS.md) |\n| `dagger.*`, `dagger.hilt.*` | [DAGGER-HILT.md](references\u002Fframeworks\u002FDAGGER-HILT.md) |\n| `io.reactivex.*`, `rx.*` | [RXJAVA.md](references\u002Fframeworks\u002FRXJAVA.md) |\n| `org.junit.*`, `org.testng.*` | [JUNIT.md](references\u002Fframeworks\u002FJUNIT.md) |\n| `com.google.inject.*` | [GUICE.md](references\u002Fframeworks\u002FGUICE.md) |\n| `retrofit2.*`, `okhttp3.*` | [RETROFIT.md](references\u002Fframeworks\u002FRETROFIT.md) |\n| `org.mockito.*` | [MOCKITO.md](references\u002Fframeworks\u002FMOCKITO.md) |\n\nIf `javax.inject.*` is detected, check for Dagger\u002FHilt vs Guice by looking for other\nimports from those frameworks. If ambiguous, load both guides.\n\n## Step 1: Convert\n\nApply the conversion methodology from [CONVERSION-METHODOLOGY.md](references\u002FCONVERSION-METHODOLOGY.md).\n\nThis is a 4-step chain-of-thought process:\n1. **Faithful 1:1 translation** — exact semantics preserved\n2. **Nullability & mutability audit** — val\u002Fvar, nullable types\n3. **Collection type conversion** — Java mutable → Kotlin types\n4. **Idiomatic transformations** — properties, string templates, lambdas\n\nFive invariants are checked after each step. If any invariant is violated, revert\nto the previous step and redo.\n\nApply any loaded framework-specific guidance during step 4 (idiomatic transformations).\n\n## Step 2: Write Output\n\nWrite the converted Kotlin code to a `.kt` file with the same name as the original\nJava file, in the same directory.\n\n## Step 3: Preserve Git History\n\nTo preserve `git blame` history, use a two-phase approach:\n\n```bash\n# Phase 1: Rename (creates rename tracking)\ngit mv src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.java src\u002Fmain\u002Fkotlin\u002Fcom\u002Fexample\u002FFoo.kt\ngit commit -m \"Rename Foo.java to Foo.kt\"\n\n# Phase 2: Replace content (tracked as modification, not new file)\n# Write the converted Kotlin content to Foo.kt\ngit commit -m \"Convert Foo from Java to Kotlin\"\n```\n\nIf the project keeps Java and Kotlin in the same source root (e.g., `src\u002Fmain\u002Fjava\u002F`),\nrename in place:\n\n```bash\ngit mv src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.java src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.kt\n```\n\nIf the project does not use Git, simply write the `.kt` file and delete the `.java` file.\n\n## Step 4: Verify\n\nAfter conversion, verify using [checklist.md](assets\u002Fchecklist.md):\n- Attempt to compile the converted file\n- Run existing tests\n- Check annotation site targets\n- Confirm no behavioral changes\n\n## Batch Conversion\n\nWhen converting multiple files (a directory or package):\n\n1. **List all `.java` files** in the target scope\n2. **Sort by dependency order** — convert leaf dependencies first (files that don't\n   import other files in the conversion set), then work up to files that depend on them\n3. **Convert one file at a time** — apply the full workflow (steps 0-4) for each\n4. **Track progress** — report which files are done, which remain\n5. **Handle cross-references** — after converting a file, update imports in other Java\n   files if needed (e.g., if a class moved packages)\n\nFor large batches, consider converting in packages (bottom-up from leaf packages).\n\n## Common Pitfalls\n\nSee [KNOWN-ISSUES.md](references\u002FKNOWN-ISSUES.md) for:\n- Kotlin keyword conflicts (`when`, `in`, `is`, `object`)\n- SAM conversion ambiguity\n- Platform types from Java interop\n- `@JvmStatic` \u002F `@JvmField` \u002F `@JvmOverloads` usage\n- Checked exceptions and `@Throws`\n- Wildcard generics → Kotlin variance\n","# Java to Kotlin Conversion\n\nConvert Java source files to idiomatic Kotlin using a disciplined 4-step conversion\nmethodology with 5 invariants checked at each step. Supports framework-aware conversion\nthat handles annotation site targets, library idioms, and API preservation.\n\n## Workflow\n\n```dot\ndigraph j2k_workflow {\n  rankdir=TB;\n  \"User specifies files\" -> \"Step 0: Scan & Detect\";\n  \"Step 0: Scan & Detect\" -> \"Load framework guides\";\n  \"Load framework guides\" -> \"Step 1: Convert\";\n  \"Step 1: Convert\" -> \"Step 2: Write .kt\";\n  \"Step 2: Write .kt\" -> \"Step 3: Git rename\";\n  \"Step 3: Git rename\" -> \"Step 4: Verify\";\n  \"Step 4: Verify\" -> \"Next file?\" [label=\"pass\"];\n  \"Step 4: Verify\" -> \"Fix issues\" [label=\"fail\"];\n  \"Fix issues\" -> \"Step 1: Convert\";\n  \"Next file?\" -> \"Step 0: Scan & Detect\" [label=\"batch: yes\"];\n  \"Next file?\" -> \"Done\" [label=\"no more files\"];\n}\n```\n\n## Step 0: Scan & Detect Frameworks\n\nBefore converting, scan the Java file's import statements to detect which frameworks\nare in use. Load ONLY the matching framework reference files to keep context focused.\n\n### Framework Detection Table\n\n| Import prefix | Framework guide |\n|---|---|\n| `org.springframework.*` | [SPRING.md](references\u002Fframeworks\u002FSPRING.md) |\n| `lombok.*` | [LOMBOK.md](references\u002Fframeworks\u002FLOMBOK.md) |\n| `javax.persistence.*`, `jakarta.persistence.*`, `org.hibernate.*` | [HIBERNATE.md](references\u002Fframeworks\u002FHIBERNATE.md) |\n| `com.fasterxml.jackson.*` | [JACKSON.md](references\u002Fframeworks\u002FJACKSON.md) |\n| `io.micronaut.*` | [MICRONAUT.md](references\u002Fframeworks\u002FMICRONAUT.md) |\n| `io.quarkus.*`, `javax.enterprise.*`, `jakarta.enterprise.*` | [QUARKUS.md](references\u002Fframeworks\u002FQUARKUS.md) |\n| `dagger.*`, `dagger.hilt.*` | [DAGGER-HILT.md](references\u002Fframeworks\u002FDAGGER-HILT.md) |\n| `io.reactivex.*`, `rx.*` | [RXJAVA.md](references\u002Fframeworks\u002FRXJAVA.md) |\n| `org.junit.*`, `org.testng.*` | [JUNIT.md](references\u002Fframeworks\u002FJUNIT.md) |\n| `com.google.inject.*` | [GUICE.md](references\u002Fframeworks\u002FGUICE.md) |\n| `retrofit2.*`, `okhttp3.*` | [RETROFIT.md](references\u002Fframeworks\u002FRETROFIT.md) |\n| `org.mockito.*` | [MOCKITO.md](references\u002Fframeworks\u002FMOCKITO.md) |\n\nIf `javax.inject.*` is detected, check for Dagger\u002FHilt vs Guice by looking for other\nimports from those frameworks. If ambiguous, load both guides.\n\n## Step 1: Convert\n\nApply the conversion methodology from [CONVERSION-METHODOLOGY.md](references\u002FCONVERSION-METHODOLOGY.md).\n\nThis is a 4-step chain-of-thought process:\n1. **Faithful 1:1 translation** — exact semantics preserved\n2. **Nullability & mutability audit** — val\u002Fvar, nullable types\n3. **Collection type conversion** — Java mutable → Kotlin types\n4. **Idiomatic transformations** — properties, string templates, lambdas\n\nFive invariants are checked after each step. If any invariant is violated, revert\nto the previous step and redo.\n\nApply any loaded framework-specific guidance during step 4 (idiomatic transformations).\n\n## Step 2: Write Output\n\nWrite the converted Kotlin code to a `.kt` file with the same name as the original\nJava file, in the same directory.\n\n## Step 3: Preserve Git History\n\nTo preserve `git blame` history, use a two-phase approach:\n\n```bash\n# Phase 1: Rename (creates rename tracking)\ngit mv src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.java src\u002Fmain\u002Fkotlin\u002Fcom\u002Fexample\u002FFoo.kt\ngit commit -m \"Rename Foo.java to Foo.kt\"\n\n# Phase 2: Replace content (tracked as modification, not new file)\n# Write the converted Kotlin content to Foo.kt\ngit commit -m \"Convert Foo from Java to Kotlin\"\n```\n\nIf the project keeps Java and Kotlin in the same source root (e.g., `src\u002Fmain\u002Fjava\u002F`),\nrename in place:\n\n```bash\ngit mv src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.java src\u002Fmain\u002Fjava\u002Fcom\u002Fexample\u002FFoo.kt\n```\n\nIf the project does not use Git, simply write the `.kt` file and delete the `.java` file.\n\n## Step 4: Verify\n\nAfter conversion, verify using [checklist.md](assets\u002Fchecklist.md):\n- Attempt to compile the converted file\n- Run existing tests\n- Check annotation site targets\n- Confirm no behavioral changes\n\n## Batch Conversion\n\nWhen converting multiple files (a directory or package):\n\n1. **List all `.java` files** in the target scope\n2. **Sort by dependency order** — convert leaf dependencies first (files that don't\n   import other files in the conversion set), then work up to files that depend on them\n3. **Convert one file at a time** — apply the full workflow (steps 0-4) for each\n4. **Track progress** — report which files are done, which remain\n5. **Handle cross-references** — after converting a file, update imports in other Java\n   files if needed (e.g., if a class moved packages)\n\nFor large batches, consider converting in packages (bottom-up from leaf packages).\n\n## Common Pitfalls\n\nSee [KNOWN-ISSUES.md](references\u002FKNOWN-ISSUES.md) for:\n- Kotlin keyword conflicts (`when`, `in`, `is`, `object`)\n- SAM conversion ambiguity\n- Platform types from Java interop\n- `@JvmStatic` \u002F `@JvmField` \u002F `@JvmOverloads` usage\n- Checked exceptions and `@Throws`\n- Wildcard generics → Kotlin variance\n",{"name":5,"license":15,"metadata":24,"description":27},{"author":25,"version":26},"JetBrains","1.0.0","Use when converting Java source files to idiomatic Kotlin, when user mentions \"java to kotlin\", \"j2k\", \"convert java\", \"migrate java to kotlin\", or when working with .java files that need to become .kt files. Handles framework-aware conversion for Spring, Lombok, Hibernate, Jackson, Micronaut, Quarkus, Dagger\u002FHilt, RxJava, JUnit, Guice, Retrofit, and Mockito.\n","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fkotlin-kotlin-agent-skills\u002Fkotlin-tooling-java-to-kotlin\u002Fskills\u002Fkotlin-tooling-java-to-kotlin",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill kotlin-tooling-java-to-kotlin",{"tool":42,"command":43},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill kotlin-tooling-java-to-kotlin",{"tool":45,"command":46},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill kotlin-tooling-java-to-kotlin","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fkotlin-kotlin-agent-skills\u002Fkotlin-tooling-java-to-kotlin\u002Fskills\u002Fkotlin-tooling-java-to-kotlin\u002FSKILL.md",true,[],[51,59,64,71,76,83],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":60,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":72,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":84,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":55,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]