pseudocode-to-java-code

pseudocode-to-java-code is a skill for Claude Code, Codex from ArabelaTso/Skills-4-SE. It costs 85 tokens per session (1,752 once invoked), scanned A, original, Apache-2.0.

A converter that turns pseudocode or algorithm specifications into complete Java programs. It preserves the described logic and control flow while adding Java structures, data types, and tests.

In plain words
What is it for?
Use it to implement textbook algorithms, flowchart-like descriptions, or structured pseudocode as Java classes and methods.
Why use it?
Pseudocode describes an algorithm without being executable. This helps turn a language-independent plan into working Java code.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/arabelatso/skills-4-se/pseudocode-to-java-code
Any agent
npx skills add ArabelaTso/Skills-4-SE --skill pseudocode-to-java-code
Clone the repo
git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pseudocode-to-java-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/pseudocode-to-java-code.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/pseudocode-to-java-code)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/pseudocode-to-java-code"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/pseudocode-to-java-code.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,752 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00085 $0.01752
Opus 5 $0.00043 $0.00876
Sonnet 5 $0.00017 $0.00350
Haiku 4.5 $0.00009 $0.00175

Measured yesterday against content hash bba613c71a78, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pseudocode-to-java-code scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pseudocode-to-java-code/SKILL.md · 296 lines

How it starts

The opening of the file, as written. The whole thing — 296 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pseudocode to Java Code

Overview

This skill converts pseudocode descriptions and algorithm specifications into complete, executable Java programs. It preserves the original logic and control flow, applies appropriate Java idioms and data structures, and generates test cases to verify correctness.

Workflow

1. Provide Pseudocode Input

Give the pseudocode or algorithm specification. Formats accepted:

  • Structured pseudocode with keywords (IF, FOR, WHILE, etc.)
  • Algorithm descriptions in plain text
  • Textbook-style algorithm specifications
  • Flowchart-like descriptions

Example:

FUNCTION findMax(array)
    max ← array[0]
    FOR i FROM 1 TO LENGTH(array) - 1 DO
        IF array[i] > max THEN
            max ← array[i]
        END IF
    END FOR
    RETURN max
END FUNCTION

2. Specify Requirements (Optional)

Provide additional context:

  • Expected input/output types
  • Performance requirements
  • Specific Java version or features to use
  • Edge cases to handle
  • Naming preferences

3. Generate Java Code

The skill will produce:

  • Complete Java class with proper structure
  • Converted algorithm as Java method(s)
  • Appropriate data structures and types
  • Necessary imports
  • Main method with test cases

Output Example:

import java.util.*;

public class ArrayMaxFinder {

    public static void main(String[] args) {
        ArrayMaxFinder solution = new ArrayMaxFinder();

        // Test case 1: Normal array
        int[] arr1 = {3, 7, 2, 9, 1};
        System.out.println("Max: " + solution.findMax(arr1)); // Expected: 9

        // Test case 2: Single element
        int[] arr2 = {5};
        System.out.println("Max: " + solution.findMax(arr2)); // Expected: 5
    }

    /**
     * Finds the maximum value in an array
     * @param array the input array
     * @return the maximum value
     */
    public int findMax(int[] array) {
        int max = array[0];
        for (int i = 1; i < array.length; i++) {
            if (array[i] > max) {
                max = array[i];
            }
        }
        return max;
    }
}

Read the full file on GitHub · 296 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 296 lines · 85 tokens per session scan A bba613c71a78

Subscribe to this mod's changes

pseudocode-to-java-code is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (248 stars, last pushed 15d ago), licensed Apache-2.0. It adds 85 tokens to every session and 1,752 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

spring-boot-engineer

Generates Spring Boot 3.x configurations, creates REST controllers, implements Spring Security 6 authentication flows, sets up Spring Data JPA repositories, and configures reactive WebFlux endpoints. Use when building Spring Boot 3.x applications, microservices, or reactive Java applications; invoke for Spring Data…

Jeffallan/claude-skills · 91 tokens

112-java-maven-plugins

Use when you need to add or configure Maven plugins in your pom.xml — including quality tools (enforcer, surefire, failsafe, jacoco, pitest, spotbugs, pmd), security scanning (OWASP), code formatting (Spotless), version management, container image build (Jib), build information tracking, and benchmarking (JMH) …

jabrena/plinth · 149 tokens

121-java-object-oriented-design

Use when reviewing, improving, or refactoring Java object-oriented design, including applying SOLID, DRY, or YAGNI; improving classes and interfaces; correcting encapsulation, inheritance, or polymorphism; resolving God Class, Feature Envy, or Data Clumps; and improving object creation, methods, or exception…

jabrena/plinth · 107 tokens

jspecify-skill

Use this skill when asked to perform any of the following actions in a Java project: To add jspecify support To prevent NullPointerExceptions To better handle Nullability This skill will add jspecify dependency, configure Maven or Gradle build to automatically use jspecify for checking Nullability issues.

sivaprasadreddy/sivalabs-agent-skills · 75 tokens

110-java-maven-best-practices

Use when you need to review, improve, or troubleshoot a Maven pom.xml file — including dependency management with BOMs, plugin configuration, version centralization, multi-module project structure, build profiles, or any situation where you want to align your Maven setup with industry best practices. This should…

jabrena/plinth · 115 tokens

111-java-maven-dependencies

Use when you need to add or evaluate Maven dependencies that improve code quality or domain modeling — including nullness annotations (JSpecify), static analysis (Error Prone + NullAway), functional programming (VAVR), architecture testing (ArchUnit), or money and currency support (JavaMoney) — and want a…

jabrena/plinth · 133 tokens