rlm-reasoning-skill

Execute Python REPL code iteratively for recursive multi-step problem solving.

356|66|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/zeenie-ai/MachinaOS --skill rlm-reasoning-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rlm-reasoning-skill
Source: https://github.com/zeenie-ai/MachinaOS/tree/main/server/skills/rlm_agent/rlm-reasoning-skill
Command: npx skills add https://github.com/zeenie-ai/MachinaOS --skill rlm-reasoning-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you solve complex, multi-step problems by combining iterative code execution with recursive language-model reasoning.

Core Features & Use Cases

  • REPL-driven reasoning loop: Execute Python in repl blocks, inspect stdout, and refine outputs across iterations.
  • Recursive decomposition: Use llm_query for simple sub-tasks and rlm_query to spawn deeper recursive RLM reasoning when code-backed iteration is needed.
  • Context-aware processing: Read and transform the user input from the REPL namespace variable context using code before any final response.
  • Clean completion signaling: End with exactly one FINAL(...) or FINAL_VAR(...) to reliably return the final answer.

Quick Start

Ask your AI to solve the problem by writing Python in repl blocks, using recursive sub-queries when necessary, and returning the result via FINAL or FINAL_VAR.

Frequently Asked Questions about rlm-reasoning-skill

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

FAQPage Schema
How do I use Python REPL to solve multi-step reasoning problems?

Python REPL enables multi-step reasoning by executing code in repl blocks, inspecting stdout, and refining outputs across iterations. You write Python to process context, run recursive sub-queries, and signal completion via FINAL or FINAL_VAR.

What is recursive decomposition for complex problem solving?

Recursive decomposition breaks complex problems into smaller sub-tasks by using llm_query for simple operations and rlm_query to spawn deeper recursive reasoning when code-backed iteration is needed.

How do I execute Python code iteratively to transform and extract data?

You execute Python code iteratively by writing repl fenced blocks that run in a sandboxed exec environment. This allows you to read and transform input from the persistent context variable namespace across multiple iterations.

How does persistent variable state work in a Python REPL reasoning loop?

Persistent variable state in a Python REPL reasoning loop retains variable values across multiple iterations within the sandboxed exec environment. This allows subsequent repl blocks to access and modify data from previous execution steps.

Can I use recursive model calls for algorithmic reasoning and task planning?

Yes, you can use recursive model calls for algorithmic reasoning and planning by spawning deeper rlm_query sub-tasks. This handles decomposition-heavy tasks by combining executable Python code with nested language model calls.

Why do I need to use FINAL or FINAL_VAR to signal completion in code execution?

You need FINAL or FINAL_VAR to signal completion because it reliably returns the final answer and ends the reasoning loop. Using exactly one of these structured completion signals prevents unbounded or ambiguous code execution.