Install
openclaw skills install nexus-agent-framework安全優先的通用 Agent 工作框架 | Secure Universal Agent Framework - 自動知識索引、創意建議、關聯系統
openclaw skills install nexus-agent-framework安全優先的通用 Agent 工作框架
提供自動化知識管理、智能建議系統和關聯分析,讓您的 Agent 工作區更智能、更高效。
自動掃描並索引所有工作區檔案,建立知識網絡:
.md 檔案memory/index.json使用:
./scripts/auto-index.sh
輸出示例:
{
"version": "1.2",
"files": [
{
"path": "memory/2026-03-24.md",
"date": "2026-03-24",
"keywords": ["日誌", "任務", "優化"],
"entities": ["Jazz", "Nexus"],
"word_count": 153
}
],
"statistics": {
"total_files": 18,
"total_words": 3388
}
}
分析日誌模式,自動提供可執行的優化建議:
使用:
./scripts/idea-generator.sh
輸出:
📊 日誌分析統計
• 實作任務:5 次
• 修復問題:3 次
• 優化改進:3 次
💡 建議
1️⃣ 實作模式分析
💡 建議:建立可重用組件庫
計算檔案之間的關聯關係,建立知識網絡:
memory/relations.json使用:
./scripts/relations-analyzer.sh
workspace/
├── SKILL.md # 本文件
├── AGENTS.md # Agent 行為規則
├── SOUL.md # 身份與原則
├── MEMORY.md # 長期記憶
├── NEXUS.md # 記憶網絡樞紐
├── HEARTBEAT.md # 自我檢查清單
├── TOOLS.md # 工具配置
├── USER.md # 用戶設定
├── WAL.md # 操作日誌
├── EMOJI-JOURNAL.md # 情緒溫度計
│
├── scripts/
│ ├── auto-index.sh # 知識索引腳本
│ ├── idea-generator.sh # 創意建議腳本
│ └── relations-analyzer.sh # 關聯分析腳本
│
├── docs/
│ ├── KNOWLEDGE-INDEX-ARCHITECTURE.md
│ ├── IDEA-SYSTEM-USAGE.md
│ ├── NEXUS-RELATIONS.md
│ └── IMPLEMENTATION-NOTES.md
│
└── memory/
├── index.json # 知識索引
├── relations.json # 關聯圖譜
├── heartbeat-state.json
├── daily/ # 每日記錄
├── lessons/ # 經驗教訓
└── ideas/ # 創意想法
# 初始化目錄結構
mkdir -p memory/daily memory/lessons memory/ideas
# 建立每日日誌
echo "# $(date +%Y-%m-%d)" > memory/$(date +%Y-%m-%d).md
# 建立知識索引
./scripts/auto-index.sh
# 獲取創意建議
./scripts/idea-generator.sh
# (可選) 計算關聯
./scripts/relations-analyzer.sh
每日 Heartbeat:
# 添加到你的 Heartbeat 系統
./scripts/auto-index.sh > /dev/null 2>&1
每週報告:
# Crontab: 每週日早上 9 點
0 9 * * 0 cd /path/to/workspace && ./scripts/idea-generator.sh
1. 每日寫日誌
└─> memory/YYYY-MM-DD.md
2. 自動索引更新
└─> ./scripts/auto-index.sh
└─> memory/index.json
3. 創意建議生成
└─> ./scripts/idea-generator.sh
└─> idea-suggestions.txt
4. 關聯分析
└─> ./scripts/relations-analyzer.sh
└─> memory/relations.json
5. 定期回顧
└─> 每週/每月彙整到 MEMORY.md
編輯 scripts/idea-generator.sh:
# 添加你的關鍵詞
your_keyword=$(grep -rc '你的關鍵詞' "$LOG_DIR")
# 每日 9 點生成建議
0 9 * * * cd ~/workspace && ./scripts/idea-generator.sh >> weekly.log
# 每週日全量索引
0 8 * * 0 cd ~/workspace && ./scripts/auto-index.sh
# 提交前生成報告
./scripts/idea-generator.sh > .commit-report.md
git add . && git commit -F .commit-report.md
本框架特性:
| 功能 | 文件數 | 字數 | 狀態 |
|---|---|---|---|
| 知識索引 | 18+ | 3,388 | ✅ |
| 創意建議 | 3 腳本 | 2,341 | ✅ |
| 關聯分析 | 4 文件 | 4,401 | ✅ |
| 使用文檔 | 1 文件 | 6,000+ | ✅ |
memory/YYYY-MM-DD.md 寫日誌MEMORY.mdMIT-0 - 免費使用,修改,重新分發。無需署名。
感謝所有 OpenClaw 社區成員與貢獻者。
版本: 2.0.0
最後更新: 2026-03-25
作者: @lalawgwg99