← 返回
数据分析

OpenClaw Self Analyzer - 自分析工具

自动分析OpenClaw架构,检测钩子点,生成钩子代码,扫描代码并生成详细分析报告。
自动分析OpenClaw架构,检测钩子点,生成钩子代码,扫描代码并生成详细分析报告。
fofo365
数据分析 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 599
下载
💾 28
安装
1
版本
#latest

概述

OpenClaw Self Analyzer - 自分析工具

深度分析OpenClaw架构,自动生成钩子和扩展。

功能

  • 架构分析
  • 钩子点检测
  • 自动生成钩子
  • 代码扫描
  • 报告生成

使用

完整分析

cd /root/.openclaw/workspace/skills/openclaw-self-analyzer
python3 core/architecture_analyzer.py

生成钩子

from generators.hook_generator import HookGenerator

generator = HookGenerator()
hook = generator.generate_hook_package(
    hook_name='my_hook',
    hook_type='pre',
    stage='context_gather',
    logic='// your logic'
)

生成报告

from reporters.report_generator import ReportGenerator

generator = ReportGenerator()
files = generator.save_reports(Path('./reports'))

架构映射

OpenClaw处理流水线:

  1. input_receive - 接收用户输入
  2. context_gather - 收集历史上下文
  3. memory_retrieve - 检索记忆
  4. prompt_assemble - 组装prompt
  5. token_check - token检查
  6. context_compress - 上下文压缩
  7. llm_submit - 提交给LLM
  8. response_process - 处理响应
  9. memory_store - 存储新记忆

每个阶段支持三种钩子:

  • pre - 前置处理
  • post - 后置处理
  • replace - 完全替换

Copyright © 2025-2026 Edison Wang (fofo365/edisonw@163.com) Authors. All Rights Reserved.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 06:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,120
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 60,015
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,461