[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H4A31XTB34PHWHRABDS257":3,"skill-same:01M6H4A31XTB34PHWHRABDS257":77},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6H4A31XTB34PHWHRABDS257","java-lang",null,"Java development workflow - build tooling, testing, code style, and common patterns such as Optional versus null, exceptions, and how to structure packages in a Spring or plain Java app. Use for writing, reviewing or testing Java code.","eyelock\u002Fassistants","eyelock","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1277325?v=4","01M6H423MGYJ0P316VZ2MMH75N","David Collie","01M6H423RR18QA9N8S2F3J8S8X",1,"MIT","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Ftech\u002Fskills\u002Fjava-lang\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"java lang","java","use","for","how to","style","app","as","structure","build","development workflow","testing","common","spring","how","code","development","packages","workflow","writing","2026-11-10 10:12:30",false,"---\nname: java-lang\ndescription: Java development workflow - build tooling, testing, code style, and common patterns such as Optional versus null, exceptions, and how to structure packages in a Spring or plain Java app. Use for writing, reviewing or testing Java code.\n---\n\n# Java Development\n\nYou assist with Java development following modern Java conventions and standard build tooling.\n\n## Build\n\n### Maven\n\n```bash\nmvn clean compile\n```\n\n### Gradle\n\n```bash\n.\u002Fgradlew build\n```\n\n- Always use the Gradle wrapper (`.\u002Fgradlew`) — never a system-installed Gradle\n- Use `--console=plain` in CI for clean log output\n- Build all modules before moving on. Fix compilation errors first.\n\n## Test\n\n```bash\n# Maven\nmvn test\n\n# Gradle\n.\u002Fgradlew test\n```\n\n- Use JUnit 5 (`org.junit.jupiter`) — not JUnit 4\n- Use `@DisplayName` for readable test names\n- Use `@Nested` classes to group related tests\n- Use `@ParameterizedTest` with `@CsvSource`, `@MethodSource`, or `@EnumSource` for table-driven tests\n- Use AssertJ for fluent assertions: `assertThat(result).isEqualTo(expected)`\n\n### Test patterns\n\n```java\n@Nested\n@DisplayName(\"UserService.create\")\nclass Create {\n\n    @Test\n    @DisplayName(\"creates user with valid input\")\n    void createsUserWithValidInput() {\n        var input = new CreateUserRequest(\"alice\", \"alice@example.com\");\n        var result = service.create(input);\n        assertThat(result.name()).isEqualTo(\"alice\");\n    }\n\n    @Test\n    @DisplayName(\"rejects duplicate email\")\n    void rejectsDuplicateEmail() {\n        service.create(new CreateUserRequest(\"alice\", \"alice@example.com\"));\n        assertThatThrownBy(() -> service.create(new CreateUserRequest(\"bob\", \"alice@example.com\")))\n            .isInstanceOf(DuplicateEmailException.class);\n    }\n}\n```\n\n- Use `@TempDir` for filesystem isolation\n- Use Mockito sparingly — prefer real implementations and in-memory fakes over mocks\n- Integration tests in a separate source set (`src\u002FintegrationTest\u002Fjava`)\n\n## Format and Lint\n\n### Formatting\n\nUse a consistent formatter configured once for the project:\n\n- **google-java-format**: `mvn com.spotify.fmt:fmt-maven-plugin:format`\n- **Spotless** (Gradle): `.\u002Fgradlew spotlessApply`\n- **IntelliJ**: Use `.editorconfig` and shared code style XML\n\n### Static analysis\n\n- **SpotBugs**: Find common bug patterns\n- **Error Prone**: Compile-time error checking (recommended as a compiler plugin)\n- **Checkstyle**: Code style enforcement\n\nFix issues directly rather than suppressing warnings unless there's a genuine false positive.\n\n## Dependency management\n\n### Maven\n\n```xml\n\u003CdependencyManagement>\n    \u003Cdependencies>\n        \u003C!-- Pin versions here -->\n    \u003C\u002Fdependencies>\n\u003C\u002FdependencyManagement>\n```\n\n### Gradle\n\n```kotlin\ndependencies {\n    implementation(platform(\"org.springframework.boot:spring-boot-dependencies:3.x.x\"))\n}\n```\n\n- Use BOMs (Bill of Materials) to manage transitive dependency versions\n- Keep dependencies up to date — use Dependabot or Renovate\n- Check licenses before adding new dependencies\n- Prefer well-maintained, widely-used libraries over niche ones\n\n## Project structure\n\n```\nproject\u002F\n├── src\u002F\n│   ├── main\u002Fjava\u002Fcom\u002Fexample\u002Fproject\u002F\n│   │   ├── domain\u002F           # Domain objects, business rules\n│   │   ├── service\u002F          # Business logic, orchestration\n│   │   ├── repository\u002F       # Data access\n│   │   ├── controller\u002F       # API endpoints\n│   │   └── config\u002F           # Configuration classes\n│   ├── main\u002Fresources\u002F\n│   │   └── application.yml\n│   └── test\u002Fjava\u002Fcom\u002Fexample\u002Fproject\u002F\n│       └── (mirrors main structure)\n├── pom.xml \u002F build.gradle.kts\n└── .editorconfig\n```\n\n- Package by feature, not by layer, for larger projects: `com.example.project.order` contains the controller, service, repository, and domain objects for orders\n- Keep the package hierarchy flat — avoid deep nesting\n\n## Code patterns\n\n### Records and sealed types (Java 17+)\n\nUse records for immutable data carriers:\n\n```java\npublic record CreateUserRequest(String name, String email) {}\n```\n\nUse sealed interfaces for closed type hierarchies:\n\n```java\npublic sealed interface Result\u003CT> {\n    record Success\u003CT>(T value) implements Result\u003CT> {}\n    record Failure\u003CT>(String error) implements Result\u003CT> {}\n}\n```\n\n### Optional\n\n- Return `Optional\u003CT>` from methods that may not have a result — never return null\n- Don't use `Optional` as a method parameter or field — it's for return types\n- Use `orElseThrow()` with a descriptive exception, not `get()`\n\n### Error handling\n\n- Use specific exception types, not generic `RuntimeException`\n- Wrap and rethrow with context: `throw new OrderCreationException(\"Failed to create order for user \" + userId, cause)`\n- Don't catch `Exception` broadly — catch specific types\n- Use try-with-resources for all `AutoCloseable` resources\n- Never swallow exceptions with an empty catch block\n\n### Null safety\n\n- Annotate parameters and return types with `@Nullable` \u002F `@NonNull` (JetBrains or Jakarta annotations)\n- Fail fast on unexpected nulls at public API boundaries: `Objects.requireNonNull(param, \"param must not be null\")`\n- Prefer empty collections over null: return `List.of()` not `null`\n\n### Modern Java\n\n- Use `var` for local variables where the type is obvious from context\n- Use text blocks (`\"\"\"`) for multi-line strings\n- Use `switch` expressions with pattern matching (Java 21+)\n- Use virtual threads (Java 21+) for I\u002FO-bound concurrent work instead of thread pool tuning\n- Use `Stream` API for collection transformations, but keep pipelines short and readable\n\n## CI pipeline\n\nStandard CI jobs:\n\n1. **Build** — `mvn compile` \u002F `.\u002Fgradlew compileJava`\n2. **Test** — `mvn test` \u002F `.\u002Fgradlew test`\n3. **Lint** — SpotBugs, Error Prone, Checkstyle\n4. **Format Check** — Spotless or google-java-format in check mode\n5. **All Clear** — aggregator job for branch protection\n\nUse the project's Java version via a `.java-version` file or `toolchains` configuration.\n","# Java Development\n\nYou assist with Java development following modern Java conventions and standard build tooling.\n\n## Build\n\n### Maven\n\n```bash\nmvn clean compile\n```\n\n### Gradle\n\n```bash\n.\u002Fgradlew build\n```\n\n- Always use the Gradle wrapper (`.\u002Fgradlew`) — never a system-installed Gradle\n- Use `--console=plain` in CI for clean log output\n- Build all modules before moving on. Fix compilation errors first.\n\n## Test\n\n```bash\n# Maven\nmvn test\n\n# Gradle\n.\u002Fgradlew test\n```\n\n- Use JUnit 5 (`org.junit.jupiter`) — not JUnit 4\n- Use `@DisplayName` for readable test names\n- Use `@Nested` classes to group related tests\n- Use `@ParameterizedTest` with `@CsvSource`, `@MethodSource`, or `@EnumSource` for table-driven tests\n- Use AssertJ for fluent assertions: `assertThat(result).isEqualTo(expected)`\n\n### Test patterns\n\n```java\n@Nested\n@DisplayName(\"UserService.create\")\nclass Create {\n\n    @Test\n    @DisplayName(\"creates user with valid input\")\n    void createsUserWithValidInput() {\n        var input = new CreateUserRequest(\"alice\", \"alice@example.com\");\n        var result = service.create(input);\n        assertThat(result.name()).isEqualTo(\"alice\");\n    }\n\n    @Test\n    @DisplayName(\"rejects duplicate email\")\n    void rejectsDuplicateEmail() {\n        service.create(new CreateUserRequest(\"alice\", \"alice@example.com\"));\n        assertThatThrownBy(() -> service.create(new CreateUserRequest(\"bob\", \"alice@example.com\")))\n            .isInstanceOf(DuplicateEmailException.class);\n    }\n}\n```\n\n- Use `@TempDir` for filesystem isolation\n- Use Mockito sparingly — prefer real implementations and in-memory fakes over mocks\n- Integration tests in a separate source set (`src\u002FintegrationTest\u002Fjava`)\n\n## Format and Lint\n\n### Formatting\n\nUse a consistent formatter configured once for the project:\n\n- **google-java-format**: `mvn com.spotify.fmt:fmt-maven-plugin:format`\n- **Spotless** (Gradle): `.\u002Fgradlew spotlessApply`\n- **IntelliJ**: Use `.editorconfig` and shared code style XML\n\n### Static analysis\n\n- **SpotBugs**: Find common bug patterns\n- **Error Prone**: Compile-time error checking (recommended as a compiler plugin)\n- **Checkstyle**: Code style enforcement\n\nFix issues directly rather than suppressing warnings unless there's a genuine false positive.\n\n## Dependency management\n\n### Maven\n\n```xml\n\u003CdependencyManagement>\n    \u003Cdependencies>\n        \u003C!-- Pin versions here -->\n    \u003C\u002Fdependencies>\n\u003C\u002FdependencyManagement>\n```\n\n### Gradle\n\n```kotlin\ndependencies {\n    implementation(platform(\"org.springframework.boot:spring-boot-dependencies:3.x.x\"))\n}\n```\n\n- Use BOMs (Bill of Materials) to manage transitive dependency versions\n- Keep dependencies up to date — use Dependabot or Renovate\n- Check licenses before adding new dependencies\n- Prefer well-maintained, widely-used libraries over niche ones\n\n## Project structure\n\n```\nproject\u002F\n├── src\u002F\n│   ├── main\u002Fjava\u002Fcom\u002Fexample\u002Fproject\u002F\n│   │   ├── domain\u002F           # Domain objects, business rules\n│   │   ├── service\u002F          # Business logic, orchestration\n│   │   ├── repository\u002F       # Data access\n│   │   ├── controller\u002F       # API endpoints\n│   │   └── config\u002F           # Configuration classes\n│   ├── main\u002Fresources\u002F\n│   │   └── application.yml\n│   └── test\u002Fjava\u002Fcom\u002Fexample\u002Fproject\u002F\n│       └── (mirrors main structure)\n├── pom.xml \u002F build.gradle.kts\n└── .editorconfig\n```\n\n- Package by feature, not by layer, for larger projects: `com.example.project.order` contains the controller, service, repository, and domain objects for orders\n- Keep the package hierarchy flat — avoid deep nesting\n\n## Code patterns\n\n### Records and sealed types (Java 17+)\n\nUse records for immutable data carriers:\n\n```java\npublic record CreateUserRequest(String name, String email) {}\n```\n\nUse sealed interfaces for closed type hierarchies:\n\n```java\npublic sealed interface Result\u003CT> {\n    record Success\u003CT>(T value) implements Result\u003CT> {}\n    record Failure\u003CT>(String error) implements Result\u003CT> {}\n}\n```\n\n### Optional\n\n- Return `Optional\u003CT>` from methods that may not have a result — never return null\n- Don't use `Optional` as a method parameter or field — it's for return types\n- Use `orElseThrow()` with a descriptive exception, not `get()`\n\n### Error handling\n\n- Use specific exception types, not generic `RuntimeException`\n- Wrap and rethrow with context: `throw new OrderCreationException(\"Failed to create order for user \" + userId, cause)`\n- Don't catch `Exception` broadly — catch specific types\n- Use try-with-resources for all `AutoCloseable` resources\n- Never swallow exceptions with an empty catch block\n\n### Null safety\n\n- Annotate parameters and return types with `@Nullable` \u002F `@NonNull` (JetBrains or Jakarta annotations)\n- Fail fast on unexpected nulls at public API boundaries: `Objects.requireNonNull(param, \"param must not be null\")`\n- Prefer empty collections over null: return `List.of()` not `null`\n\n### Modern Java\n\n- Use `var` for local variables where the type is obvious from context\n- Use text blocks (`\"\"\"`) for multi-line strings\n- Use `switch` expressions with pattern matching (Java 21+)\n- Use virtual threads (Java 21+) for I\u002FO-bound concurrent work instead of thread pool tuning\n- Use `Stream` API for collection transformations, but keep pipelines short and readable\n\n## CI pipeline\n\nStandard CI jobs:\n\n1. **Build** — `mvn compile` \u002F `.\u002Fgradlew compileJava`\n2. **Test** — `mvn test` \u002F `.\u002Fgradlew test`\n3. **Lint** — SpotBugs, Error Prone, Checkstyle\n4. **Format Check** — Spotless or google-java-format in check mode\n5. **All Clear** — aggregator job for branch protection\n\nUse the project's Java version via a `.java-version` file or `toolchains` configuration.\n",{"name":5,"description":7},"develop","5f79513fe27520bf03af784e8df568a04931c48d","skills\u002Ftech\u002Fskills\u002Fjava-lang",0,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants","https:\u002F\u002Feyelock.github.io\u002Fassistants\u002F","https:\u002F\u002Fgithub.com\u002Feyelock","http:\u002F\u002Fwww.eyelock.net\u002Fblog","2026-11-15 02:19:21",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add eyelock\u002Fassistants --skill java-lang",{"tool":59,"command":60},"bunx","bunx skills add eyelock\u002Fassistants --skill java-lang",{"tool":62,"command":63},"pnpm","pnpm dlx skills add eyelock\u002Fassistants --skill java-lang","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Ftech\u002Fskills\u002Fjava-lang\u002FSKILL.md",true,[67,73],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"evals\u002Feval_queries.json","REFERENCE","参考文档",936,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Ftech\u002Fskills\u002Fjava-lang\u002Fevals\u002Feval_queries.json",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"evals\u002Fevals.json",4644,"https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Ftech\u002Fskills\u002Fjava-lang\u002Fevals\u002Fevals.json",[78,84,109,124,136,149],{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":39},"01M6H46CHAJFE20J3Q118P9PW9","doctor","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fwheelhouse\u002Fskills\u002Fdoctor\u002FSKILL.md",[],[80],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":39},"01M6H45X8QJZTQAPN56WZ8V111","add-seat","Add a named seat to a Wheelhouse - a crew member, a standing role (such as a dispatcher) or a worker - as a ynh harness with its charter, standing orders and only the tools its job needs, named from the Wheelhouse's roster. Use when asked to add, create or set up a seat, role, worker or agent in a Wheelhouse (a release manager, a PR watcher, a dispatcher, a designer, more workers), or to give a role a name, or to start on a Wheelhouse's team (its starter team), one role at a time. Also use to trial, make official or drop a seat.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fplugins\u002Fwheelhouse\u002Fskills\u002Fadd-seat\u002FSKILL.md",[],[91,92,93,94,95,21,96,97,98,99,100,101,102,103,104,105,106,107,108,26],"add","add seat","harness","SET","roster","release manager","workers","team","with","create","watcher","starter","when","more","worker","up","only","pr",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M6H4BWCVR2YJVP8RW878NYDP","voice","How voices work - what a voice skill contains, how to write a new one, and how several voices compose into one reply. Use whenever drafting a reply in a named voice, or when asked to create or change a voice.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice\u002FSKILL.md",[],[111,100,23,116,117,118,21,119,33,120,121,122,103,123],"work","change","voice skill","compose","write","reply","new","drafting",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":39},"01M6H4BRVA87C6T495HCFNDQ7Z","voice-warm","A friendly voice that acknowledges the person and their effort. Compose with direct for friendly but brief.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice-warm\u002FSKILL.md",[],[131,111,132,99,133,119,134,22,135],"voice warm","person","brief","direct","but",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":39},"01M6H4BNFQ64X65YZDM9QMD61B","voice-formal","A careful, complete voice for people outside the team - customers, partners, senior stakeholders.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice-formal\u002FSKILL.md",[],[143,111,98,144,145,146,147,148,22],"voice formal","complete","senior","careful","partners","people",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":39},"01M6H4BHXE6KSNBY92TBFZY7QD","voice-direct","A plain, brief voice that leads with the answer. The default when no voice is named.","https:\u002F\u002Fgithub.com\u002Feyelock\u002Fassistants\u002Fblob\u002Fdevelop\u002Fskills\u002Fvoice\u002Fskills\u002Fvoice-direct\u002FSKILL.md",[],[156,134,111,99,133,157,158,159,103,160],"voice direct","leads","answer","default","plain"]