pseudocode-to-python-code

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

A code generator that turns pseudocode or algorithm descriptions into complete Python programs. It can also produce type hints, documentation, error handling, and tests.

In plain words
What is it for?
Use it to implement algorithms from pseudocode, specifications, or plain-language descriptions and create related test cases.
Why use it?
An algorithm outline explains what code should do but is not directly executable. This helps turn that outline into working Python code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to implement algorithms from pseudocode, specifications, or plain-language descriptions and create related test cases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arabelatso/skills-4-se/pseudocode-to-python-code
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.

Any agent
npx skills add ArabelaTso/Skills-4-SE --skill pseudocode-to-python-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-python-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/pseudocode-to-python-code/github.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/pseudocode-to-python-code)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/pseudocode-to-python-code"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/pseudocode-to-python-code/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pseudocode-to-python-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/pseudocode-to-python-code"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/pseudocode-to-python-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00110 $0.02473
Opus 5 $0.00055 $0.01236
Sonnet 5 $0.00022 $0.00495
Haiku 4.5 $0.00011 $0.00247

Measured 9d ago against content hash a79f5b0b60d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

pseudocode-to-python-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (assets/template.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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-python-code/SKILL.md · 367 lines

How it starts

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

Pseudocode to Python Code

Convert pseudocode and algorithm descriptions into complete, executable Python code with proper structure, documentation, and tests.

Workflow

1. Understand the Input

Identify the input format and extract the algorithm logic:

Natural language description:

  • Example: "Sort an array using bubble sort"
  • Extract: Algorithm name, input/output, basic steps

Structured pseudocode:

  • Example: "FOR i FROM 0 TO n-1 DO..."
  • Parse: Control structures, data operations, logic flow

Algorithm specification:

  • Example: "Precondition: array is non-empty. Postcondition: array is sorted"
  • Identify: Constraints, requirements, expected behavior

Mixed format:

  • Combine natural language with pseudocode keywords
  • Extract both high-level intent and specific logic

2. Analyze Algorithm Structure

Break down the algorithm into components:

  1. Identify data structures: Arrays, dictionaries, sets, queues, stacks, trees, graphs
  2. Identify control flow: Loops (for, while), conditionals (if/else), recursion
  3. Identify operations: Sorting, searching, insertion, deletion, traversal
  4. Identify edge cases: Empty input, single element, duplicates, boundaries
  5. Identify complexity: Time and space complexity considerations

3. Map to Python Constructs

Use references/pseudocode-patterns.md for common mappings:

Control structures:

  • IF/ELSE → if/elif/else
  • FOR loops → for i in range() or for item in collection
  • WHILE loops → while condition:
  • REPEAT-UNTIL → while True: with break

Data structures:

  • Arrays → list
  • Hash maps → dict
  • Sets → set
  • Stacks → list with append()/pop()
  • Queues → collections.deque
  • Priority queues → heapq

Common operations:

  • Swap → a, b = b, a
  • Min/Max → min(), max()
  • Sort → sorted() or list.sort()
  • Search → in operator, list.index(), or binary search

4. Generate Python Code

Follow this structure using assets/template.py as a base:

Read the full file on GitHub · 367 lines

Files

What ships with it

3 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. 9d ago First seen · 367 lines · 110 tokens per session scan A a79f5b0b60d4

Subscribe to this mod's changes

pseudocode-to-python-code is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (252 stars, last pushed 22d ago), licensed Apache-2.0. It adds 110 tokens to every session and 2,473 once invoked, about $0.0006 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

astropy

Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology. Use when implementing or debugging astronomical data analysis code with Astropy.

K-Dense-AI/scientific-agent-skills · 56 tokens

cobrapy

Constraint-based metabolic modeling (COBRA). FBA, FVA, gene knockouts, flux sampling, SBML models, for systems biology and metabolic engineering analysis.

K-Dense-AI/scientific-agent-skills · 38 tokens

bioservices

Unified Python interface to 40+ bioinformatics services. Use when querying multiple databases (UniProt, KEGG, ChEMBL, Reactome) in a single workflow with consistent API. Best for cross-database analysis, ID mapping across services. For quick single-database lookups use gget; for sequence/file manipulation use…

K-Dense-AI/scientific-agent-skills · 73 tokens

polars

High-performance DataFrame library for Python ETL, analytics, and pandas migration. Use for expression-based data manipulation with lazy query optimization, parallel execution, streaming out-of-core processing, Arrow interoperability, and optional GPU execution.

K-Dense-AI/scientific-agent-skills · 47 tokens

pennylane

Hardware-agnostic quantum ML framework with automatic differentiation. Use when training quantum circuits via gradients, building hybrid quantum-classical models, or needing device portability across IBM/Google/Rigetti/IonQ. Best for variational algorithms (VQE, QAOA), quantum neural networks, and integration with…

K-Dense-AI/scientific-agent-skills · 98 tokens

fastapi-expert

Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms…

Jeffallan/claude-skills · 95 tokens