Skip to content

## Bug Description -fix_skill corrupts the target SKILL.md file by writing the model's internal reasoning/thinking output instead of the evolved skill content. #41

@ricmagx

Description

@ricmagx

Steps to Reproduce

  1. Have a valid skill directory with a SKILL.md file
  2. Call fix_skill(skill_dir="...", direction="[any direction]")
  3. Observe SKILL.md content after the call

Expected Behavior

SKILL.md is updated with the improved skill content based on the direction provided.

Actual Behavior

Two failure modes observed:

Mode 1: Returns {"status": "failed", "error": "Evolution did not produce a new skill."}
but SKILL.md is still overwritten with garbled content (Arabic text / internal debug output).

Mode 2: SKILL.md is replaced with the model's raw <think> block — reasoning text
in Arabic or English debug commentary — instead of the actual skill content.

Environment

  • OpenSpace MCP (local install)
  • Claude Code (claude-sonnet-4-6)
  • macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions