[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B0A033Y7QD4YCQX6131Z55":3,"skill-same:01M7B0A033Y7QD4YCQX6131Z55":63},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M7B0A033Y7QD4YCQX6131Z55","java-bloch-audit",null,"Audit Java vs Effective Java and verify refactors compile.","dbillion\u002Fhermes-skills-public","dbillion","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49393855?v=4","01M7AVH8QPGCM8WKWS22TRT0T6","Oludayo Adeoye","01M7AVH8RD1JJWA0YS9CFEWAV9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fjava\u002Fjava-bloch-audit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: java-bloch-audit\ndescription: \"Audit Java vs Effective Java and verify refactors compile.\"\nversion: 1\nauthor: hermes\nlicense: MIT\nmetadata:\n  tags: [java, effective-java, code-review, bloch, audit]\n  related_skills: [java-springboot-projects, java-21-springboot-projects]\n---\n\n# Java Bloch Audit\n\n## When to Use\n- Reviewing Java code for Effective-Java compliance.\n- Responding to an \"expert\" review note claiming static methods are bad \u002F interfaces preferred.\n- Auditing a repo (e.g. a DSA\u002FGradle Java project) before a rewrite.\n- Triggers: \"audit this Java\", \"is this static method bad\", \"Bloch says prefer\n  interface\", \"review the DSA repo\", \"is this class design wrong\".\n\nUse when reviewing Java code, responding to an \"expert\" Java review note, or\nauditing a repo for Effective-Java compliance. Triggers: \"audit this Java\",\n\"is this static method bad\", \"Bloch says prefer interface\", \"review the DSA\nrepo\", \"is this class design wrong\".\n\n## The #1 misdiagnosis to catch\n\nA reviewer says: *\"A static method isn't the best implementation. A functional\ninterface is better. Interfaces are preferred to static methods.\"*\n\n**This is a misreading of Bloch.** Do NOT blindly apply it. Map the claim to\nthe actual Items before changing code:\n\n| Bloch Item | What it actually says | Implication |\n|---|---|---|\n| **Item 4** — Enforce noninstantiability with a private constructor | A class that is *only* stateless functions should have a `private` constructor (or be `final`). | **Endorses** the `final class X { private X(){} ... static methods ... }` utility pattern. Not a smell. |\n| **Item 20** — Prefer interfaces to abstract classes | When you have a *family of polymorphic implementations* of a **type**, use an interface (+ skeletal impl) so existing classes can adopt it. | Governs **type hierarchies**, NOT \"ban static methods\". A `twoSum` with one correct behavior gains nothing from an interface. |\n| **Item 22** — Use interfaces only to define types | Don't use interfaces for constants \u002F dumping grounds. | Reinforces: don't manufacture phantom interfaces for pure functions. |\n| **Item 44** — Favor standard functional interfaces | Where a **variation of behavior** exists (ordering, comparison, a strategy), pass `Comparator` \u002F `Predicate` \u002F `Function` instead of hard-coding it. | **The one real win.** Apply only where a strategy truly varies. |\n\n**Rule of thumb:** Stateless, single-behavior functions STAY `static` (Item 4).\nIntroduce an interface\u002Ffunctional interface ONLY where a *variation* exists\n(graph representation, sort order, a pluggable algorithm).\n\n## Real, verified wins (from a dsa-java-gradleqa audit)\n\n1. **Graph as interface, not `int[][] edges`.** `dijkstra`\u002F`bfs`\u002F`dfs`\u002F`topoSort`\u002F\n   `kruskal`\u002F`prim`\u002Fetc. all take a raw edge list. A `WeightedGraph` interface\n   lets any representation plug in; the *algorithm method stays static* (the\n   algorithm is fixed, the data varies). → Items 20\u002F44.\n2. **Generic `Comparator`-parameterized sort.** `mergeSort(int[])` →\n   `\u003CT> T[] mergeSort(T[], Comparator\u003C? super T>)`. One impl serves every type. → Item 44.\n3. **Dijkstra comparator overflow.** `new PriorityQueue\u003Cint[]>((a,b)->a[1]-b[1])`\n   overflows on large weights. Use `Integer.compare(a[1], b[1])`. → Items 42\u002F44.\n\nSee [references\u002Fbloch_static_vs_interface.md](references\u002Fbloch_static_vs_interface.md)\nfor the full audit write-up and the verified refactor source pattern.\n\n## Methodology (verify, don't assert)\n\n- **Argue back rigorously.** Before refactoring, cite the specific Bloch Item.\n  The reviewer may be wrong in general but right in specific spots — separate the two.\n- **Compile + run before claiming improvement.** Prototype the refactor in a\n  standalone `.java`, `javac` it, run `main()` with sanity assertions.\n- **Don't break existing tests.** Run the project's suite (`gradlew test` \u002F\n  `mvn test` \u002F `.\u002Fmvnw test`) and confirm BUILD SUCCESSFUL before reporting.\n- **Distinguish \"code is wrong\" from \"review note over-generalized\".** If the\n  repo's tests already pass, the audit is about the *note*, not the code — say so.\n\n## Pitfalls\n\n- Assuming a tool\u002Fintegration is \"not wired\" without checking. Before reporting\n  an MCP\u002Fserver\u002Fpipeline as unavailable, actually invoke it (e.g. `mcp-cli call\n  \u003Cserver> \u003Ctool>`). A skill-*name* collision can block loading and look like\n  \"not installed\" — resolve the collision instead of assuming absence.\n- Turning a Bloch audit into a rewrite. Keep stateless functions static; add\n  interfaces only at the genuine variation points.\n","# Java Bloch Audit\n\n## When to Use\n- Reviewing Java code for Effective-Java compliance.\n- Responding to an \"expert\" review note claiming static methods are bad \u002F interfaces preferred.\n- Auditing a repo (e.g. a DSA\u002FGradle Java project) before a rewrite.\n- Triggers: \"audit this Java\", \"is this static method bad\", \"Bloch says prefer\n  interface\", \"review the DSA repo\", \"is this class design wrong\".\n\nUse when reviewing Java code, responding to an \"expert\" Java review note, or\nauditing a repo for Effective-Java compliance. Triggers: \"audit this Java\",\n\"is this static method bad\", \"Bloch says prefer interface\", \"review the DSA\nrepo\", \"is this class design wrong\".\n\n## The #1 misdiagnosis to catch\n\nA reviewer says: *\"A static method isn't the best implementation. A functional\ninterface is better. Interfaces are preferred to static methods.\"*\n\n**This is a misreading of Bloch.** Do NOT blindly apply it. Map the claim to\nthe actual Items before changing code:\n\n| Bloch Item | What it actually says | Implication |\n|---|---|---|\n| **Item 4** — Enforce noninstantiability with a private constructor | A class that is *only* stateless functions should have a `private` constructor (or be `final`). | **Endorses** the `final class X { private X(){} ... static methods ... }` utility pattern. Not a smell. |\n| **Item 20** — Prefer interfaces to abstract classes | When you have a *family of polymorphic implementations* of a **type**, use an interface (+ skeletal impl) so existing classes can adopt it. | Governs **type hierarchies**, NOT \"ban static methods\". A `twoSum` with one correct behavior gains nothing from an interface. |\n| **Item 22** — Use interfaces only to define types | Don't use interfaces for constants \u002F dumping grounds. | Reinforces: don't manufacture phantom interfaces for pure functions. |\n| **Item 44** — Favor standard functional interfaces | Where a **variation of behavior** exists (ordering, comparison, a strategy), pass `Comparator` \u002F `Predicate` \u002F `Function` instead of hard-coding it. | **The one real win.** Apply only where a strategy truly varies. |\n\n**Rule of thumb:** Stateless, single-behavior functions STAY `static` (Item 4).\nIntroduce an interface\u002Ffunctional interface ONLY where a *variation* exists\n(graph representation, sort order, a pluggable algorithm).\n\n## Real, verified wins (from a dsa-java-gradleqa audit)\n\n1. **Graph as interface, not `int[][] edges`.** `dijkstra`\u002F`bfs`\u002F`dfs`\u002F`topoSort`\u002F\n   `kruskal`\u002F`prim`\u002Fetc. all take a raw edge list. A `WeightedGraph` interface\n   lets any representation plug in; the *algorithm method stays static* (the\n   algorithm is fixed, the data varies). → Items 20\u002F44.\n2. **Generic `Comparator`-parameterized sort.** `mergeSort(int[])` →\n   `\u003CT> T[] mergeSort(T[], Comparator\u003C? super T>)`. One impl serves every type. → Item 44.\n3. **Dijkstra comparator overflow.** `new PriorityQueue\u003Cint[]>((a,b)->a[1]-b[1])`\n   overflows on large weights. Use `Integer.compare(a[1], b[1])`. → Items 42\u002F44.\n\nSee [references\u002Fbloch_static_vs_interface.md](references\u002Fbloch_static_vs_interface.md)\nfor the full audit write-up and the verified refactor source pattern.\n\n## Methodology (verify, don't assert)\n\n- **Argue back rigorously.** Before refactoring, cite the specific Bloch Item.\n  The reviewer may be wrong in general but right in specific spots — separate the two.\n- **Compile + run before claiming improvement.** Prototype the refactor in a\n  standalone `.java`, `javac` it, run `main()` with sanity assertions.\n- **Don't break existing tests.** Run the project's suite (`gradlew test` \u002F\n  `mvn test` \u002F `.\u002Fmvnw test`) and confirm BUILD SUCCESSFUL before reporting.\n- **Distinguish \"code is wrong\" from \"review note over-generalized\".** If the\n  repo's tests already pass, the audit is about the *note*, not the code — say so.\n\n## Pitfalls\n\n- Assuming a tool\u002Fintegration is \"not wired\" without checking. Before reporting\n  an MCP\u002Fserver\u002Fpipeline as unavailable, actually invoke it (e.g. `mcp-cli call\n  \u003Cserver> \u003Ctool>`). A skill-*name* collision can block loading and look like\n  \"not installed\" — resolve the collision instead of assuming absence.\n- Turning a Bloch audit into a rewrite. Keep stateless functions static; add\n  interfaces only at the genuine variation points.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"description":7},"hermes",1,{"tags":27,"related_skills":33},[28,29,30,31,32],"java","effective-java","code-review","bloch","audit",[34,35],"java-springboot-projects","java-21-springboot-projects","master","f341c46fed021656175d5c9ccc67a72126e50bfb","skills\u002Fjava\u002Fjava-bloch-audit","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public","https:\u002F\u002Fgithub.com\u002Fdbillion","I enjoy writing codes,teaching programming, solving problems, tasted automation in Python and never looked back😋😋😋💞","2026-10-14 03:31:55",{"source":8,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add dbillion\u002Fhermes-skills-public --skill java-bloch-audit",{"tool":49,"command":50},"bunx","bunx skills add dbillion\u002Fhermes-skills-public --skill java-bloch-audit",{"tool":52,"command":53},"pnpm","pnpm dlx skills add dbillion\u002Fhermes-skills-public --skill java-bloch-audit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fjava\u002Fjava-bloch-audit\u002FSKILL.md",true,[57],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fbloch_static_vs_interface.md","REFERENCE","参考文档",2805,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fjava\u002Fjava-bloch-audit\u002Freferences\u002Fbloch_static_vs_interface.md",[64,71,78,87,94,101],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7B25T0V7RBKES86Y3RTXQRN","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7B25DSBBMZRHVD28MAX7N5X","gemini-vision-fallback","Vision fallback: Gemini REST API if vision_analyze blocked.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fvision\u002Fgemini-vision-fallback\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":82,"licenseFileUrl":83,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7B22XW9QXT2ZWWXVZDFWYZP","twitter-cli","Use twitter-cli for ALL Twitter\u002FX operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7B22QMWY1B4F7BC114RG4S6","prism-scan","Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code\u002Fartifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-scan\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7B22JA5XCAP1ACT6V50WYR1","prism-reflect","Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-reflect\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7B22EB15M75M4X3C52YGDCC","prism-full","Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-full\u002FSKILL.md",[],[]]