Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

meta-debugger元调试器

Agent Skill

meta-debugger 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,869

周安装

122

GitHub Stars

公开资料未说明

下载量

1,005
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:meta-debugger(元调试器)
来源仓库:https://github.com/jason-aka-chen/meta-debugger
安装命令:
openclaw skills install meta-debugger
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install meta-debugger

简介

meta-debugger 是一个人工智能驱动的自调试系统,可自动识别、分析和修复错误。

  • 适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。
  • 通过记录任务执行中的错误、用户纠正和经验缺口,构建错误模式并生成修复建议。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库和原始 README 继续核验具体用法。

SKILL.md

name
meta-debugger
description
AI-powered self-debugging system that identifies, analyzes, and fixes errors automatically. Learns from past errors, builds error patterns, generates fix suggestions, and can apply fixes autonomously. Essential capability for self-healing AI systems.
tags
version
1.0.0
author
chenq

Meta Debugger

Self-diagnosing and self-healing AI capability.

Features

1. Error Detection

  • Runtime Monitoring: Detect errors in real-time
  • Pattern Recognition: Identify error patterns
  • Anomaly Detection: Find unusual behaviors
  • Log Analysis: Parse and analyze logs

2. Root Cause Analysis

  • Stack Trace Analysis: Understand error origins
  • Context Tracking: Track what led to error
  • Similar Errors: Find related past errors
  • Impact Assessment: Evaluate error severity

3. Fix Generation

  • Solution Suggestions: Generate fix candidates
  • Code Patches: Create actual code changes
  • Configuration Fixes: Fix config issues
  • Workarounds: Suggest alternative approaches

4. Automatic Fix

  • Safe Application: Apply fixes safely
  • Rollback Support: Undo if needed
  • Test Validation: Verify fix works
  • Learning Loop: Learn from results

5. Prevention

  • Pattern Building: Build error patterns
  • Pre-flight Checks: Validate before execution
  • Guard Rails: Add safety checks
  • Monitoring: Ongoing error watch

Installation

pip install json traceback ast

Usage

Initialize Debugger

from meta_debugger import MetaDebugger

debugger = MetaDebugger(
    name="my_assistant",
    auto_fix=True,
    safe_mode=True
)

Register Error Handlers

@debugger.error_handler
def handle_api_error(error, context):
    """Custom error handler"""
    return {
        'action': 'retry',
        'max_retries': 3,
        'backoff': 'exponential'
    }

@debugger.error_handler  
def handle_timeout(error, context):
    """Handle timeout errors"""
    return {
        'action': 'increase_timeout',
        'new_timeout': 60
    }

Wrap Functions

@debugger.wrap
def call_api(url, params):
    """Function that might fail"""
    return requests.get(url, params=params)

Manual Debug

# Analyze an error
analysis = debugger.analyze(
    error=ValueError("Invalid input"),
    context={'input': user_input, 'function': 'process_data'}
)

print(analysis)
# {
#     'root_cause': 'Type mismatch',
#     'severity': 'medium',
#     'suggestions': [
#         'Convert input to correct type',
#         'Add input validation'
#     ]
# }

# Apply fix
result = debugger.apply_fix(analysis)

Error History

# Get error patterns
patterns = debugger.get_error_patterns()

# Get common fixes
fixes = debugger.get_common_fixes()

# Get prevention suggestions
prevention = debugger.get_prevention_tips()

API Reference

Error Handling

MethodDescription
@error_handlerDecorator for error handlers
register_handler(type, handler)Register custom handler
handle(error, context)Handle an error

Analysis

MethodDescription
analyze(error, context)Analyze error root cause
get_stack_trace(error)Parse stack trace
find_similar(error)Find similar past errors

Fix Generation

MethodDescription
generate_fixes(error)Generate fix candidates
rank_fixes(fixes)Rank fixes by probability
apply_fix(fix)Apply a fix

Prevention

MethodDescription
add_guardrail(check)Add pre-execution check
validate_input(input, rules)Validate inputs
build_pattern(error)Build error pattern

Learning

MethodDescription
record_error(error, context)Record error for learning
record_fix(error, fix, success)Record fix result
get_insights()Get learned insights

Error Patterns

ERROR_PATTERNS = {
    "timeout": {
        "causes": ["network", "server_load", "query_complexity"],
        "fixes": ["increase_timeout", "retry", "cache"],
        "prevention": ["timeout_guards", "circuit_breaker"]
    },
    "value_error": {
        "causes": ["type_mismatch", "invalid_format", "out_of_range"],
        "fixes": ["type_conversion", "validation", "default_value"],
        "prevention": ["input_validation", "schema_check"]
    },
    "connection_error": {
        "causes": ["network_down", "server_unavailable", "auth_failed"],
        "fixes": ["retry", "reconnect", "fallback"],
        "prevention": ["health_check", "load_balancing"]
    }
}

Fix Strategies

Retry Strategy

{
    'strategy': 'retry',
    'max_attempts': 3,
    'backoff': 'exponential',
    'backoff_base': 2,
    'max_delay': 60
}

Fallback Strategy

{
    'strategy': 'fallback',
    'primary': 'api_v1',
    'fallback': 'api_v2',
    'condition': 'primary_unavailable'
}

Circuit Breaker

{
    'strategy': 'circuit_breaker',
    'failure_threshold': 5,
    'timeout': 60,
    'half_open_requests': 3
}

Default Value

{
    'strategy': 'default',
    'field': 'result',
    'default': {'status': 'unknown'}
}

Example: Full Usage

from meta_debugger import MetaDebugger

# Initialize
debugger = MetaDebugger("production_assistant")

# Register handlers
@debugger.error_handler
def handle_api_error(error, context):
    if "timeout" in str(error).lower():
        return {'action': 'retry', 'max_retries': 3}
    elif "auth" in str(error).lower():
        return {'action': 'refresh_token'}
    return {'action': 'log_and_continue'}

# Wrap risky function
@debugger.wrap
def fetch_stock_data(symbol):
    # This might fail
    return api.get(f"/stock/{symbol}")

# Use it
try:
    data = fetch_stock_data("600519")
except Exception as e:
    # Debugger automatically handles
    debugger.handle(e, {'function': 'fetch_stock_data', 'symbol': '600519'})

Integration

With Skills

class MySkill:
    def __init__(self):
        self.debugger = MetaDebugger()
    
    def execute(self, input):
        try:
            return self._execute(input)
        except Exception as e:
            return self.debugger.handle(e, {'skill': 'MySkill', 'input': input})

With OpenClaw

@hookimpl
def on_error(error, context):
    debugger = MetaDebugger()
    return debugger.handle(error, context)

Metrics

MetricDescription
error_rateErrors per 1000 calls
fix_success_rateSuccessful fixes
avg_recovery_timeTime to recover
prevented_errorsErrors caught by guards

Best Practices

  1. Start with Safe Mode: Always review before auto-fixing
  2. Log Everything: Build learning data
  3. Test Fixes: Validate before production
  4. Iterate: Improve patterns over time
  5. Balance: Don't over-catch or under-catch

Future Capabilities

  • Cross-system error correlation
  • AI-generated fixes with LLMs
  • Self-healing infrastructure
  • Predictive error prevention

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

88.53%
按下载量换算890

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills