File contents self-evolution - 自我迭代
基于官方文档进行最佳实践级别的自我优化。
触发词
"自我迭代"
"自我优化"
"升级配置"
"学习新功能"
官方文档位置
/Users/liuyishou/.claude/claude-code-docs/
包含:
settings.md - 配置选项
hooks.md / hooks-guide.md - Hook 机制
skills.md - Skill 定义
sub-agents.md - Subagent 创建
mcp.md - MCP 服务器
best-practices.md - 最佳实践
plugins.md - 插件系统
changelog.md - 更新日志
执行流程
Step 1: 确定优化方向
用户可能指定方向,或让我自行诊断:
优化方向
查阅文档
Hook 优化
hooks.md, hooks-guide.md
Skill 优化
skills.md
Subagent 优化
sub-agents.md
配置优化
settings.md
MCP 扩展
mcp.md
新功能探索
changelog.md, best-practices.md
Step 2: 审计当前配置
检查现有配置状态:
# 配置文件
cat ~/.claude/settings.json
cat ~/.claude.json | head -200
# Skills
ls -la ~/.claude/skills/
# Subagents
ls -la ~/.claude/agents/
# Hooks
ls -la ~/.claude/hooks/
Step 3: 查阅官方文档
根据优化方向,读取对应的官方文档:
# 示例:读取 best-practices
cat /Users/liuyishou/.claude/claude-code-docs/best-practices.md
Step 4: 对比分析
将当前配置与官方最佳实践对比:
缺失的推荐配置
可以改进的 Hook
未使用的新功能
Skill/Subagent 的优化空间
Step 5: 生成优化方案
输出结构化的优化建议:
## 优化报告
### 发现的问题
1. xxx 配置缺失
2. xxx Hook 可以优化
### 推荐改进
1. 添加 xxx 配置
2. 创建 xxx Subagent
### 执行计划
- [ ] 步骤 1
- [ ] 步骤 2
Step 6: 执行优化(需用户确认)
在用户确认后执行具体的配置修改。
自动诊断清单
当用户没有指定方向时,自动检查:
settings.json 完整性
是否有推荐的 permission 配置
Hook 是否覆盖关键事件
Skill 健康度
skill.md 格式是否规范
是否有重复/冗余的 skill
Subagent 规范性
frontmatter 是否完整
description 是否足够清晰供自动委派
新功能检查
对比 changelog.md 看是否有未使用的新功能
注意事项
修改配置前必须备份
重大改动需用户确认
记录每次优化的变更日志
1 --- 2 name: self-evolution 3 description: self-evolution - 自我迭代 4 --- 5 # self-evolution - 自我迭代 6 7 基于官方文档进行最佳实践级别的自我优化。 8 9 ## 触发词 10 11 - "自我迭代" 12 - "自我优化" 13 - "升级配置" 14 - "学习新功能" 15 16 ## 官方文档位置 17 18 `/Users/liuyishou/.claude/claude-code-docs/` 19 20 包含: 21 - settings.md - 配置选项 22 - hooks.md / hooks-guide.md - Hook 机制 23 - skills.md - Skill 定义 24 - sub-agents.md - Subagent 创建 25 - mcp.md - MCP 服务器 26 - best-practices.md - 最佳实践 27 - plugins.md - 插件系统 28 - changelog.md - 更新日志 29 30 ## 执行流程 31 32 ### Step 1: 确定优化方向 33 34 用户可能指定方向,或让我自行诊断: 35 36 | 优化方向 | 查阅文档 | 37 |----------|----------| 38 | Hook 优化 | hooks.md, hooks-guide.md | 39 | Skill 优化 | skills.md | 40 | Subagent 优化 | sub-agents.md | 41 | 配置优化 | settings.md | 42 | MCP 扩展 | mcp.md | 43 | 新功能探索 | changelog.md, best-practices.md | 44 45 ### Step 2: 审计当前配置 46 47 检查现有配置状态: 48 49 ```bash 50 # 配置文件 51 cat ~/.claude/settings.json 52 cat ~/.claude.json | head -200 53 54 # Skills 55 ls -la ~/.claude/skills/ 56 57 # Subagents 58 ls -la ~/.claude/agents/ 59 60 # Hooks 61 ls -la ~/.claude/hooks/ 62 ``` 63 64 ### Step 3: 查阅官方文档 65 66 根据优化方向,读取对应的官方文档: 67 68 ```bash 69 # 示例:读取 best-practices 70 cat /Users/liuyishou/.claude/claude-code-docs/best-practices.md 71 ``` 72 73 ### Step 4: 对比分析 74 75 将当前配置与官方最佳实践对比: 76 - 缺失的推荐配置 77 - 可以改进的 Hook 78 - 未使用的新功能 79 - Skill/Subagent 的优化空间 80 81 ### Step 5: 生成优化方案 82 83 输出结构化的优化建议: 84 85 ```markdown 86 ## 优化报告 87 88 ### 发现的问题 89 1. xxx 配置缺失 90 2. xxx Hook 可以优化 91 92 ### 推荐改进 93 1. 添加 xxx 配置 94 2. 创建 xxx Subagent 95 96 ### 执行计划 97 - [ ] 步骤 1 98 - [ ] 步骤 2 99 ``` 100 101 ### Step 6: 执行优化(需用户确认) 102 103 在用户确认后执行具体的配置修改。 104 105 ## 自动诊断清单 106 107 当用户没有指定方向时,自动检查: 108 109 1. **settings.json 完整性** 110 - 是否有推荐的 permission 配置 111 - Hook 是否覆盖关键事件 112 113 2. **Skill 健康度** 114 - skill.md 格式是否规范 115 - 是否有重复/冗余的 skill 116 117 3. **Subagent 规范性** 118 - frontmatter 是否完整 119 - description 是否足够清晰供自动委派 120 121 4. **新功能检查** 122 - 对比 changelog.md 看是否有未使用的新功能 123 124 ## 注意事项 125 126 - 修改配置前必须备份 127 - 重大改动需用户确认 128 - 记录每次优化的变更日志
leoyishou/personal-ai-company/tree/main/claude-global/skills/self-evolution commit 3913d092ff
Frequently asked questions How do I install the Self Evolution skill? Run npx skillmds@latest add leoyishou/self-evolution in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Self Evolution skill do? self-evolution - 自我迭代 It is listed under Coding & Dev Tools on SkillMD.
Is Self Evolution safe to use? This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Self Evolution? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Self Evolution free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Self Evolution? leoyishou (@leoyishou) published this skill. Their other Agent Skills are listed on their SkillMD profile.