ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Openclaw Self Analyzer

Skill by fofo365

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/fofo365/openclaw-self-analyzer
Or

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/[email protected]) Authors. All Rights Reserved.

Metadata

Author@fofo365
Stars2387
Views0
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-fofo365-openclaw-self-analyzer": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.