writing-pymodules

Build, test, and debug PyModules for RISC OS Pyromaniac.

3|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/gerph/riscos-agent-skills --skill writing-pymodules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-pymodules
Source: https://github.com/gerph/riscos-agent-skills/tree/main/skills/writing-pymodules
Command: npx skills add https://github.com/gerph/riscos-agent-skills --skill writing-pymodules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides guidance for developers to create, test, and debug PyModules for the RISC OS Pyromaniac environment, ensuring correct structure, semantics, and integration patterns.

Core Features & Use Cases

  • Module structure and lifecycle guidance for PyModules in Pyromaniac.
  • Testing and debugging workflows with sample commands and error handling conventions.
  • Best practices for SWI dispatch, vector entry points, and integration with RISC OS primitives.

Quick Start

Create or load a PyModule with host-run pyrodev to load the module, run tests, and inspect results.

Frequently Asked Questions about writing-pymodules

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and test Python modules for RISC OS?

To build and test Python modules for RISC OS, you structure the PyModule according to Pyromaniac conventions, load it with the host-run pyrodev command, and execute end-to-end testing workflows to inspect results.

What is a PyModule in the RISC OS Pyromaniac environment?

A PyModule in the RISC OS Pyromaniac environment is a Python-based module that integrates with RISC OS primitives, covering module structure, lifecycle, and SWI dispatch patterns.

How do I handle SWI dispatch and vector entry points in Python 2.7?

Handling SWI dispatch and vector entry points in Python 2.7 involves following specific PyModule conventions for error handling and integration with RISC OS OS interfaces.

Can I debug RISC OS PyModules using host-run pyrodev?

Yes, you can debug RISC OS PyModules using host-run pyrodev to load the module, run tests, and inspect results to identify and resolve errors in your dispatch patterns.

Does RISC OS Pyromaniac support Python 3 or is it limited to Python 2.7?

RISC OS Pyromaniac PyModule development currently covers Python 2.7 compatibility, ensuring correct structure and semantics for modules built within this specific version constraint.

Why is my PyModule failing during RISC OS integration testing?

PyModule integration testing failures in RISC OS often stem from incorrect module structure, improper SWI dispatch patterns, or errors in vector entry points, which require debugging via pyrodev.