Agent skill

Pseudocode Extractor

by ArabelaTso in ArabelaTso/Skills-4-SE

Extract programming-language-agnostic pseudocode from source code in any language, preserving control flow and logical structure while filtering out implementation details.

Apache-2.0Auto-check passed

Install Pseudocode Extractor

skills CLI
$ npx skills add ArabelaTso/Skills-4-SE --skill pseudocode-extractor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ArabelaTso/Skills-4-SE pseudocode-extractor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/pseudocode-extractor .claude/skills/pseudocode-extractor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pseudocode-extractor
GitHub stars
253
Token cost
~1.9k tokens
SKILL.md length
401 words
Files
1
Skills in repo
151
Repo updated
First seen
Licence
Apache-2.0

At a glance

Extract programming-language-agnostic pseudocode from source code in any language, preserving control flow and logical structure while filtering out implementation details.

  • Works in 4 steps: Analyze Input Code → Extract Core Logic → Format Pseudocode → …
  • The user asks to convert code to pseudocode
  • SKILL.md covers Overview, Extraction Process, Examples and Best Practices, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Pseudocode Extractor is an agent skill from ArabelaTso/Skills-4-SE. Extract programming-language-agnostic pseudocode from source code in any language, preserving control flow and logical structure while filtering out implementation details. Use when the user asks to convert code to pseudocode, abstract code logic, understand code structure without syntax, create language-independent documentation, or analyze algorithmic flow without language-specific details.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A curated list of 180+ useful Claude Skills for Software Engineering and resources for customizing AI for SE workflows. The licence is Apache-2.0.

When your agent uses it

  • The user asks to convert code to pseudocode
  • Abstract code logic
  • Understand code structure without syntax
  • Create language-independent documentation

Example prompts

  • “/pseudocode-extractor”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Analyze Input Code
  2. Extract Core Logic
  3. Format Pseudocode
  4. Organize Output

What it can do on your machine

Read from SKILL.md and the folder at commit 4f38503. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python, javascript and java).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pseudocode Extractor loads about 1.9k tokens when it runs. Until then it costs about 104 tokens; SKILL.md has 401 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~104
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ArabelaTso/Skills-4-SE at commit 4f38503, republished under its Apache-2.0 licence (© ArabelaTso). 401 words, ~1,872 tokens.

Download SKILL.mdSave it as .claude/skills/pseudocode-extractor/SKILL.md (or your agent's skills folder).
name
pseudocode-extractor
description
Extract programming-language-agnostic pseudocode from source code in any language, preserving control flow and logical structure while filtering out implementation details. Use when the user asks to convert code to pseudocode, abstract code logic, understand code structure without syntax, create language-independent documentation, or analyze algorithmic flow without language-specific details.

Pseudocode Extractor

Overview

Transform source code from any programming language into clear, language-agnostic pseudocode that captures the essential logic and control flow while removing syntax-specific details.

Extraction Process

1. Analyze Input Code

First, identify the programming language and understand the code structure:

  • Recognize functions, classes, methods, and modules
  • Identify control flow structures (loops, conditionals, error handling)
  • Note data structures and their relationships
  • Understand the overall algorithmic approach
2. Extract Core Logic

Focus on WHAT the code does, not HOW it's implemented:

Preserve:

  • Function/method names and their purpose
  • Control flow (if/else, loops, switch/case logic)
  • Logical operations and conditions
  • Data transformations and assignments
  • Function calls and their relationships
  • Class structures and inheritance relationships
  • Key variable names that convey meaning

Filter out:

  • Language-specific syntax (semicolons, braces, keywords)
  • Type declarations and annotations
  • Import/include statements (unless critical to understanding)
  • Error handling boilerplate (try/catch unless the logic is important)
  • Memory management details
  • Language-specific idioms
  • Verbose getter/setter methods
  • Standard library implementation details
3. Format Pseudocode

Use clear, readable pseudocode conventions:

Structure:

FUNCTION function_name(parameters)
    // High-level description of what function does

    IF condition THEN
        action
    ELSE IF another_condition THEN
        another_action
    ELSE
        default_action
    END IF

    FOR EACH item IN collection DO
        process item
    END FOR

    WHILE condition DO
        action
    END WHILE

    RETURN result
END FUNCTION

Conventions:

  • Use UPPERCASE for keywords (FUNCTION, IF, FOR, WHILE, RETURN, etc.)
  • Use descriptive names in lowercase or camelCase
  • Indent to show nesting and structure
  • Use comments to explain complex logic
  • Keep operations at a high level of abstraction
  • Use mathematical notation where appropriate (←, ≠, ≤, etc.)
Show full SKILL.md (193 more words)Show less
4. Organize Output

Structure the pseudocode to match the original code organization:

For single functions:

  • Start with function signature
  • Add brief description
  • Show main logic flow
  • Note return value

For classes:

  • Show class name and inheritance
  • List key attributes
  • Show method signatures with brief descriptions
  • Detail only the most important methods

For modules/files:

  • Group related functions
  • Show high-level module structure
  • Indicate dependencies between components
  • Use section headers for clarity

Examples

Example 1: Simple Function

Input (Python):

python
def calculate_discount(price, customer_type):
    if customer_type == "premium":
        discount = 0.20
    elif customer_type == "regular":
        discount = 0.10
    else:
        discount = 0.05

    final_price = price * (1 - discount)
    return round(final_price, 2)

Output (Pseudocode):

FUNCTION calculate_discount(price, customer_type)
    // Calculate final price after applying customer-specific discount

    IF customer_type is "premium" THEN
        discount ← 20%
    ELSE IF customer_type is "regular" THEN
        discount ← 10%
    ELSE
        discount ← 5%
    END IF

    final_price ← price × (1 - discount)

    RETURN final_price rounded to 2 decimals
END FUNCTION
Example 2: Loop with Data Processing

Input (JavaScript):

javascript
function filterActiveUsers(users) {
    const activeUsers = [];
    for (let i = 0; i < users.length; i++) {
        if (users[i].lastLogin !== null &&
            users[i].status === 'active') {
            activeUsers.push({
                id: users[i].id,
                name: users[i].name
            });
        }
    }
    return activeUsers;
}

Output (Pseudocode):

FUNCTION filter_active_users(users)
    // Extract active users who have logged in at least once

    active_users ← empty list

    FOR EACH user IN users DO
        IF user has logged in AND user status is "active" THEN
            ADD user.id and user.name to active_users
        END IF
    END FOR

    RETURN active_users
END FUNCTION
Example 3: Class Structure

Input (Java):

java
public class ShoppingCart {
    private List<Item> items;
    private double totalPrice;

    public ShoppingCart() {
        this.items = new ArrayList<>();
        this.totalPrice = 0.0;
    }

    public void addItem(Item item) {
        items.add(item);
        totalPrice += item.getPrice();
    }

    public void removeItem(String itemId) {
        for (int i = 0; i < items.size(); i++) {
            if (items.get(i).getId().equals(itemId)) {
                totalPrice -= items.get(i).getPrice();
                items.remove(i);
                break;
            }
        }
    }

    public double getTotalPrice() {
        return totalPrice;
    }
}

Output (Pseudocode):

CLASS ShoppingCart
    ATTRIBUTES:
        items: list of Item objects
        total_price: numeric value

    CONSTRUCTOR
        Initialize empty items list
        Set total_price to 0
    END CONSTRUCTOR

    METHOD add_item(item)
        Add item to items list
        Increase total_price by item price
    END METHOD

    METHOD remove_item(item_id)
        FOR EACH item IN items DO
            IF item.id equals item_id THEN
                Decrease total_price by item price
                Remove item from items list
                EXIT loop
            END IF
        END FOR
    END METHOD

    METHOD get_total_price()
        RETURN total_price
    END METHOD
END CLASS

Best Practices

  1. Maintain Clarity: Pseudocode should be easier to understand than the original code
  2. Be Consistent: Use the same conventions throughout the extraction
  3. Preserve Intent: Focus on the algorithm's purpose, not implementation details
  4. Use Natural Language: Write operations in plain English where possible
  5. Show Structure: Use indentation and keywords to make control flow obvious
  6. Add Context: Include brief comments for complex logic
  7. Stay Abstract: Avoid language-specific constructs unless they're conceptually important
  8. Group Related Logic: Keep related operations together for readability

Common Patterns

Conditional Logic
IF condition THEN
    action
ELSE IF another_condition THEN
    another_action
ELSE
    default_action
END IF
Loops
FOR i FROM 1 TO n DO
    action
END FOR

FOR EACH element IN collection DO
    process element
END FOR

WHILE condition DO
    action
END WHILE

REPEAT
    action
UNTIL condition
Data Operations
// Assignment
variable ← value

// Comparison
IF x > y THEN ...
IF x ≠ y THEN ...

// Collections
ADD item TO list
REMOVE item FROM list
FIND item IN list WHERE condition
Function Calls
result ← function_name(arguments)
CALL procedure_name(arguments)

© ArabelaTso, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/pseudocode-extractor of ArabelaTso/Skills-4-SE.

Open the folder on GitHubat commit 4f38503

Compare with similar skills

Pseudocode Extractor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pseudocode Extractor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pseudocode Extractor this skillArabelaTso/Skills-4-SE253—~1.9kAutomated safety check: PassApache-2.0
Extractalirezarezvani/claude-skills28k—~1.4kAutomated safety check: PassMIT
Agent Pseudocoderuvnet/ruflo74k3 repos~2.1kAutomated safety check: PassMIT
Brand Extractnexu-io/open-design100k—~3.1kAutomated safety check: PassApache-2.0
Design Extractnexu-io/open-design100k—~549Automated safety check: PassApache-2.0
Kg Extractruvnet/ruflo74k—~751Automated safety check: NotesMIT

Similar skills

  • Extract

    alirezarezvani/claude-skills

    Turn a proven pattern or debugging solution into a standalone reusable skill with SKILL.md, reference docs, and examples.

    28k GitHub stars~1.4k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Agent Pseudocode

    ruvnet/ruflo

    Agent skill for pseudocode - invoke with $agent-pseudocode. An agent skill from ruvnet/ruflo.

    74k GitHub starsUsed in 3 repos~2.1k tokens
    DevelopmentAuto-check passed
  • Brand Extract

    nexu-io/open-design

    Extract a complete Brand Kit from a live website by driving the in-app browser.

    100k GitHub stars~3.1k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Design Extract

    nexu-io/open-design

    Extract design tokens (color / typography / spacing) from imported source code, screenshots, or Figma exports into the canonical token bag token-map consumes.

    100k GitHub stars~549 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Kg Extract

    ruvnet/ruflo

    Extract entities and relations from source files to build a knowledge graph

    74k GitHub stars~751 tokensUpdated today
    Knowledge ManagementAuto-check: notes
  • Browser Extract

    ruvnet/ruflo

    Extract structured data via stored browser-templates or one-shot DOM queries, with mandatory AIDefence PII + prompt-injection gates before content reaches the model

    74k GitHub stars~888 tokensUpdated today
    SecurityAuto-check: notes

More from ArabelaTso/Skills-4-SE

All 151 skills in this repo
  • Framework Migration Assistant

    ArabelaTso/Skills-4-SE

    Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).

    253 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Metamorphic Test Generator

    ArabelaTso/Skills-4-SE

    Generate test cases using metamorphic testing by applying transformations based on metamorphic properties.

    253 GitHub stars~798 tokensUpdated 1 mo ago
    Auto-check passed
  • Reproduction Trace Instrumenter

    ArabelaTso/Skills-4-SE

    Instruments programs to capture execution traces specifically for reproducing reported bugs, enabling consistent replay and diagnosis of failures.

    253 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Spring Mvc To Boot Migrator

    ArabelaTso/Skills-4-SE

    Automatically migrate Spring MVC applications to Spring Boot.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • State Snapshot Instrumenter

    ArabelaTso/Skills-4-SE

    Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed

Questions about Pseudocode Extractor

What does Pseudocode Extractor do?

Extract programming-language-agnostic pseudocode from source code in any language, preserving control flow and logical structure while filtering out implementation details. Pseudocode Extractor is an agent skill from ArabelaTso/Skills-4-SE. Extract programming-language-agnostic pseudocode from source code in any language, preserving control flow and logical structure while filtering out implementation details.

When should I use Pseudocode Extractor?

Pseudocode Extractor fits situations like: the user asks to convert code to pseudocode; abstract code logic; understand code structure without syntax; create language-independent documentation.

How do I install Pseudocode Extractor in Claude Code?

Run `npx skills add ArabelaTso/Skills-4-SE --skill pseudocode-extractor -a claude-code`. Or copy the skill folder (skills/pseudocode-extractor in ArabelaTso/Skills-4-SE) into .claude/skills/pseudocode-extractor in your project. Claude Code loads it when a task matches its description.

How do I install Pseudocode Extractor in Codex?

Run `npx skills add ArabelaTso/Skills-4-SE --skill pseudocode-extractor -a codex`. Or copy the skill folder (skills/pseudocode-extractor in ArabelaTso/Skills-4-SE) into .agents/skills/pseudocode-extractor in your project. Codex loads it when a task matches its description.

Can I use Pseudocode Extractor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ArabelaTso/Skills-4-SE --skill pseudocode-extractor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pseudocode-extractor, .gemini/skills/pseudocode-extractor, .github/skills/pseudocode-extractor and .opencode/skills/pseudocode-extractor in your project.

What does Pseudocode Extractor need to run?

SKILL.md names no scripts, command-line tools or credentials: Pseudocode Extractor is instructions for the agent only. Our summary lists: Python 3.

Does Pseudocode Extractor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Pseudocode Extractor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pseudocode Extractor use?

Pseudocode Extractor is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pseudocode Extractor use?

About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pseudocode Extractor?

Skills that share tags, products or a category with Pseudocode Extractor: Extract (alirezarezvani/claude-skills, 28k stars), Agent Pseudocode (ruvnet/ruflo, 74k stars), Brand Extract (nexu-io/open-design, 100k stars) and Design Extract (nexu-io/open-design, 100k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pseudocode Extractor?

ArabelaTso (a GitHub user) maintains it in ArabelaTso/Skills-4-SE, which has 253 GitHub stars. The repository holds 151 skills in this directory. The repository was last updated on August 21, 2026.

Source: ArabelaTso/Skills-4-SE on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.