pseudocode-to-java-code

Installation
SKILL.md

Pseudocode → Java

Pseudocode is under-specified on purpose. The Java you produce has to commit to everything pseudocode leaves open: types, nullability, error handling, mutability, collection implementations.

Decisions pseudocode doesn't make (but Java requires)

Pseudocode says Java must decide
let S be a set HashSet? TreeSet? LinkedHashSet? (Does order matter?)
x ← lookup(k) Returns null on miss? Optional<V>? Throws?
list of numbers int[]? List<Integer>? IntStream? (Boxed vs primitive matters.)
error: ... Checked Exception? RuntimeException? Return sentinel?
for each x in S Enhanced for? Stream? (Mutation during iteration → ConcurrentModificationException.)
procedure f(x) Static method? Instance method? What class does it live on?

Default choices (absent a reason to deviate):

  • Sets/maps → HashSet/HashMap unless order is mentioned; LinkedHash* if insertion order matters; Tree* if sorted iteration is used.
  • Missing lookup → Optional for new code, null if matching an existing API.
Related skills

More from santosomar/general-secure-coding-agent-skills

Installs
1
GitHub Stars
1
First Seen
Mar 29, 2026