Generate .pseu Pseudocode from Source Files with Codex
Produce a separate .pseu file that follows the program’s execution order and explains its purpose, dependencies, and control flow.
中文Install in Codex
Use Codex with access to a local project. Keep the skill directory and its companion files from the same pinned revision.
- Run git clone https://github.com/Siyuexi/codex-research-kit.git. From the checkout, run git checkout --detach 7d4c66b07159d74c8fa9cb32475f008f8d36fe0e.
- Copy the full plugins/codex-research-kit/skills/code2pseu folder to .agents/skills/code2pseu in your project, with its companion files.
- Open your project in Codex. Select the skill via /skills or $code2pseu and use the example on this page.
Example task
Create a sum.py file with a function that adds two integers and an entry point that prints the sum of 2 and 3. Pass only that file to the skill and ask for a matching .pseu file.What to check
The output identifies the goal, dependencies, and ordered steps from entry through addition to printing. A diff confirms sum.py is unchanged.
Original SKILL.md on GitHub · Updated
Frequently asked question
Can I generate pseudocode for a directory?
Yes. For a first check, give it one file so you can compare the explanation against the original control flow.