Analyze Patterns.Zh CN
Description
分析 `~/.claude/tool_logs/operations.jsonl` 操作日志,识别跨会话的重复模式,并自动生成可复用的 Skills。 ## 步骤 ### 1. 读取日志 读取 `~/.claude/tool_logs/operations.jsonl`。如果文件不存在或为空,告知用户"日志还在积累中——使用几次会话后再试"并停止。如果超过 3000 行,只读取最近的 3000 行。跳过任何格式错误的行(并发写入或日志轮转可能导致不完整的 JSON)——不要因此失败。 ### 2. 统计概览 提供基本统计信息: - 总记录数、会话数(不同的 `sid`)、时间跨度 - 工具使用频率 TOP 5 - 最常见的 10 个 Bash 命令(提取 `input.command` 字段) - 最常见的 5 个工作目录(`cwd` 字段) ### 3. 扫描已有技能 在检测模式之前,读取 `~/.claude/commands/` 中所有 `.md` 文件,了解已有哪些技能。对每个文件记录: - 文件名(技能名称) - 功能描述(用途/工作流) - 覆盖的关键操作(如
Installation
Installs to ~/.claude/skills/naghamyehya-claude-recall-analyze-patterns.zh-cn/SKILL.md
mkdir -p ~/.claude/skills/naghamyehya-claude-recall-analyze-patterns.zh-cn && curl -fsSL https://raw.githubusercontent.com/NaghamYehya/claude-recall/HEAD/commands/analyze-patterns.zh-CN.md -o ~/.claude/skills/naghamyehya-claude-recall-analyze-patterns.zh-cn/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
Full documentation available on GitHub
View Source RepositoryRelated Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development