skills/claude-skills-open/skills/core/memory/SKILL.md
--- name: memory description: Persistent memory: observations, session summaries, search --- # Memory > Persistent memory system: automatic capture of observations, session summaries, memory search ## When to use - "what did I do yesterday?" / "what happened last week?" - "remember this" / "save this decision" - "memory stats" / "show memory" - "search memory" / "find sessions about X" ## Architecture ``` PostToolUse hook → observations (local JSONL) SessionEnd hook → session summary (local
npx skillsauth add aaaaqwq/agi-super-skills skills/claude-skills-open/skills/core/memoryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Persistent memory system: automatic capture of observations, session summaries, memory search
PostToolUse hook → observations (local JSONL)
SessionEnd hook → session summary (local + git)
SessionStart hook → inject context (auto)
Hybrid storage:
~/.claude-memory/observations/ (local)$PROJECT_ROOT/memory/sessions/ (git)| What | Path |
|------|------|
| Observations (local) | ~/.claude-memory/observations/ |
| Sessions (local) | ~/.claude-memory/sessions/ |
| Sessions (git) | $PROJECT_ROOT/memory/sessions/ |
| Session index | $PROJECT_ROOT/memory/index.md |
| Search tool | ~/.claude-memory/hooks/memory-search.sh |
| Hook scripts | ~/.claude-memory/hooks/ |
| Config | ~/.claude-memory/config.json |
# By type
~/.claude-memory/hooks/memory-search.sh --type crm_update --days 7
# By project
~/.claude-memory/hooks/memory-search.sh --project $PROJECT_ROOT --days 30
# By tags
~/.claude-memory/hooks/memory-search.sh --tags crm,leads --days 14
# Text search
~/.claude-memory/hooks/memory-search.sh --query "Acme Corp" --days 30
# Full details
~/.claude-memory/hooks/memory-search.sh --query "Acme" --full
# By session
~/.claude-memory/hooks/memory-search.sh --session abc12345
~/.claude-memory/hooks/memory-search.sh --stats
~/.claude-memory/hooks/memory-search.sh --sessions
echo '{"id":"obs-'$(date +%Y%m%d)'-'$(openssl rand -hex 4)'","timestamp":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","session_id":"CURRENT_SESSION","type":"decision","tool":"manual","summary":"DECISION_DESCRIPTION","context":{},"project":"$PROJECT_ROOT","tags":["TAG1"]}' >> ~/.claude-memory/observations/observations-$(date +%Y-%m-%d).jsonl
cat $PROJECT_ROOT/memory/sessions/YYYY-MM-DD-SESSION_ID.md
| Type | When |
|------|------|
| feature | New functionality |
| bugfix | Bug fix |
| decision | Architectural/business decision |
| discovery | New knowledge about the system |
| change | General change (git, PR) |
| outreach | Communication through channels |
| crm_update | CRM data change |
| config | Configuration change |
| skill_update | Skill change |
| retrospective | Quality assessment: what worked, what didn't, what to change |
At the end of a session or after a significant task, Claude records a retrospective observation:
echo '{"id":"obs-'$(date +%Y%m%d)'-'$(openssl rand -hex 4)'","timestamp":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","session_id":"SESSION_ID","type":"retrospective","tool":"manual","summary":"RETROSPECTIVE TEXT","context":{},"project":"$PROJECT_ROOT","tags":["retro"]}' >> ~/.claude-memory/observations/observations-$(date +%Y-%m-%d).jsonl
What to record:
Summary format: one sentence, specific. For example:
"telegram-send: need to check bot access before bulk sending""change-review was skipped before PR — add a reminder""CSV parsing via csv.DictReader breaks on empty rows — use pandas"When to record:
Retrospective automatically:
## Retrospective)## Last retro in context)4 layers of protection:
<private>...</private> tags → stripped before savingmkdir -p ~/.claude-memory/observations/archive
find ~/.claude-memory/observations -name "observations-*.jsonl" -mtime +30 -exec mv {} ~/.claude-memory/observations/archive/ \;
du -sh ~/.claude-memory/
du -sh $PROJECT_ROOT/memory/
cd $PROJECT_ROOT
git checkout -b update/memory-sessions-$(date +%Y-%m-%d)
git add memory/
git commit -m "Add session summaries for $(date +%Y-%m-%d)"
git push -u origin update/memory-sessions-$(date +%Y-%m-%d)
gh pr create --title "Memory: session summaries $(date +%Y-%m-%d)" --body "Auto-generated session summaries"
gh pr merge --squash --delete-branch
git checkout main && git pull
| Hook | Event | What it does |
|------|-------|--------------|
| session-start.sh | SessionStart | Inject context from past sessions |
| post-tool-use.sh | PostToolUse (Edit/Write/Bash) | Records observations |
| session-end.sh | SessionEnd + PreCompact | Generates session summary |
daily-briefing — morning context (includes memory)show-today — today's tasksquery-leads — CRM searchlog-activity — activity logging (complements observations)testing
AI驱动的智能浏览器自动化工具。使用LLM理解页面并自动执行任务,比传统Playwright更智能、更省token。适用于复杂交互、动态页面、需要智能决策的浏览器操作。Chrome浏览器优先。
tools
网页登录态管理。使用 fast-browser-use (fbu) 管理各平台登录状态,定期检查可用性,新平台授权时自动保存 profile。
development
Monitor and report on API provider quotas, balances, and usage. Query official providers (Moonshot, DeepSeek, xAI, Google AI Studio) and relay/proxy providers (Xingjiabiapi, Aixn, WoW) via their billing APIs. Also checks subscription services (Brave Search, OpenRouter). Generates quota reports. Triggers on "查额度", "API余额", "quota check", "billing report", "api balance", "供应商额度", "中转站余额", "费用报告", "check balance", "how much credit".
development
# A股基金监控 Skill A股基金净值监控,支持实时估值和盘后净值,自动判断交易日/节假日。 ## 用法 ### 快速监控(命令行) ```bash # 默认配置,输出到控制台 bash ~/clawd/skills/a-fund-monitor/scripts/monitor.sh # 推送到群(使用--push参数) bash ~/clawd/skills/a-fund-monitor/scripts/monitor.sh --push # 监控指定基金 bash ~/clawd/skills/a-fund-monitor/scripts/monitor.sh --codes "000979 002943" ``` ### Agent调用 ``` 执行A股基金监控任务。 1. 读取配置文件: ~/clawd/skills/a-fund-monitor/config.json 2. 获取实时净值数据 3. 非交易日自动切换为简短报告 配置文件格式: { "funds": [ {"code": "000979", "name": "景顺长城沪港深精选股票