Skip to content

Two script errors in the skill "incoherence" #26

@Snape3058

Description

@Snape3058
  • Undefined command-line option --thoughts:

The skill text mentions the command-line option --thoughts, which is also mentioned in the texts generated in the script.

| `--thoughts` | Yes | Accumulated state from all previous steps |

f' Start: <invoke working-dir=".claude/skills/scripts" cmd="python3 -m {MODULE_PATH} --step-number 4 --thoughts \\"Dimension: {{{{letter}}}}\\"" />',

f' Start: <invoke working-dir=".claude/skills/scripts" cmd="python3 -m {MODULE_PATH} --step-number 10 --thoughts \\"Verifying: {{{{id}}}}\\"" />',

f' Start: <invoke working-dir=".claude/skills/scripts" cmd="python3 -m {MODULE_PATH} --step-number 18 --thoughts \\"FILE: {{{{file}}}}\\"" />',

But this option is not defined in the script.
parser = argparse.ArgumentParser(description="Incoherence Detector")
parser.add_argument("--step-number", type=int, required=True)
args = parser.parse_args()

  • Local variable not defined:

Variable total used here is not defined, which leads to a NameError during execution

if step >= total or "COMPLETE" in next_text.upper():

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions