paren-debug

Diagnoses and guides fixes for unbalanced parentheses in Scheme source files.

7|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/osoleve/the-fold --skill paren-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paren-debug
Source: https://github.com/osoleve/the-fold/tree/main/.claude/skills/paren-debug
Command: npx skills add https://github.com/osoleve/the-fold --skill paren-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers diagnose and fix unbalanced or mismatched parentheses in Scheme source files, reducing parse errors and editing time.

Core Features & Use Cases

  • Parens balance checks: identify unclosed, extra closing, or mismatched brackets using the provided paren tools.
  • Precise diagnostics: report the exact location (file, line, column) of each error.
  • Guided fixes: suggest concrete edits and commands to restore balance during refactoring or debugging.
  • Use cases: after editing Scheme code and triggering syntax errors like "unexpected end-of-file reading list" or "unexpected close parenthesis".

Quick Start

Run paren-locate on path/to/file.ss to locate unbalanced parens, then fix the reported issues in the file and verify balance with paren-ok? and paren-check.

Frequently Asked Questions about paren-debug

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

FAQPage Schema
How do I find unbalanced parentheses in a Scheme file?

To find unbalanced parentheses in a Scheme file, run the paren-locate tool on your target file path to identify unclosed or extra closing brackets, then validate balance using paren-ok?.

Why does my Scheme code throw an unexpected end-of-file reading list error?

An unexpected end-of-file reading list error in Scheme code occurs because of unbalanced parentheses, which you can diagnose by running targeted balance checks to locate missing closing brackets.

Can I get exact line and column numbers for mismatched Scheme brackets?

Yes, you can get exact line and column numbers for mismatched Scheme brackets by running precise diagnostics that report the exact file location of each unbalanced parenthesis error.

What is the best way to fix extra closing parens in Scheme scripts?

The best way to fix extra closing parens in Scheme scripts is to use guided fixes that suggest concrete edits and commands to restore balance during refactoring or debugging sessions.

Do I need the Fold CLI to check Scheme syntax errors?

Yes, you need the Fold CLI along with the paren-locate, paren-ok?, and paren-check tools to perform locate, validate, and repair tasks for Scheme syntax errors.