ErrorLens for Openclaw

ErrorLens is a local-first static analysis tool that scans multi-language codebases for over 90 dangerous error handling anti-patterns and exception safety risks.

suhteevah
v1.0.1
Apr 15, 2026
0
685
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install errorlens

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install errorlens using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ErrorLens?

ErrorLens is a powerful addition to the Openclaw Skills ecosystem designed to fortify software reliability by identifying dangerous coding patterns. It specifically targets the "silent killers" of production environments: empty catch blocks, swallowed exceptions, and missing error boundaries. By utilizing regex-based pattern matching against a library of over 90 error handling anti-patterns, it provides developers with a score-based assessment of their code's exception safety.

Operating with a strict zero-telemetry policy, ErrorLens ensures that your proprietary code never leaves your local machine. It supports a wide range of languages including JavaScript, TypeScript, Python, Java, Go, Rust, and C#. Whether you are performing a manual audit or integrating automated checks into your development workflow, this skill offers actionable remediation recommendations to improve your overall error safety score.

ErrorLens Use Cases

  • Identifying swallowed exceptions that lead to silent failures in production
  • Auditing legacy codebases for bare except clauses or generic error types
  • Preventing sensitive information leaks within error messages and API responses
  • Enforcing error handling standards during the pre-commit phase via git hooks
  • Generating comprehensive markdown reports for architectural quality audits
  • Tracking incremental improvements in error safety using baseline snapshots

How ErrorLens Works

  1. The user initiates a scan on a specific file or directory using Openclaw Skills commands.
  2. ErrorLens discovers source files while automatically ignoring binaries, node_modules, and git-internal files.
  3. The engine executes 90+ pattern checks categorized by severity (Critical to Medium).
  4. A safety score (0-100) and letter grade (A-F) are calculated for individual files and the project as a whole.
  5. Detailed findings are generated, including line numbers, check IDs, and specific remediation advice.
  6. For Pro and Team users, the tool can watch for live changes or integrate into CI/CD pipelines with strict exit codes.

ErrorLens Setup

To install ErrorLens as part of your Openclaw Skills, ensure you have the required dependencies (git, bash, python3, jq). Use the following commands to get started:

# Install the necessary git hook manager
brew install lefthook

# Configure your license key (for Pro/Team features) in ~/.openclaw/openclaw.json
# Run your first scan
bash "path/to/errorlens.sh" scan .

# Install git pre-commit hooks
bash "path/to/errorlens.sh" hook install

ErrorLens Data Schema & Taxonomy

ErrorLens organizes its analysis and configuration through a structured metadata taxonomy and local file system:

Data Component Format Description
Configuration JSON Located in ~/.openclaw/openclaw.json; manages API keys and ignore patterns.
Baseline Data JSON .errorlens-baseline.json; stores known issues to enable incremental tracking.
Reports Markdown Human-readable audit summaries with severity breakdowns and remediation steps.
Allowlist Plain Text .errorlens-allowlist; contains specific patterns or files to bypass during scans.
Scoring Numeric 0-100 scale based on weighted severity of detected anti-patterns.

ErrorLens Advanced Features

  • Continuous Monitoring: Automated re-scans on file save for real-time developer feedback.
  • CI/CD Enforcement: Native integration for GitHub Actions and GitLab CI with configurable severity thresholds.
  • Baseline Snapshots: Record existing issues to focus exclusively on new errors in legacy projects.
  • Team Analytics: Aggregate maturity scores and ownership analysis across complex directory structures.
  • Git Hook Integration: Leverages lefthook to block unsafe commits before they reach the repository.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*