docs(zh-CN): sync Chinese docs with latest upstream changes (#341)

* docs(zh-CN): sync Chinese docs with latest upstream changes

* docs(zh-CN): update link

---------

Co-authored-by: neo <neo.dowithless@gmail.com>
This commit is contained in:
zdoc.app
2026-03-08 06:48:02 +08:00
committed by GitHub
parent da17d33ac3
commit abcf38b085
53 changed files with 2977 additions and 610 deletions

View File

@@ -1,6 +1,6 @@
---
name: evolve
description: 将相关本能聚类为技能、命令或代理
description: 分析本能并建议或生成进化结构
command: true
---
@@ -30,9 +30,7 @@ python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py evolve [
```
/evolve # Analyze all instincts and suggest evolutions
/evolve --domain testing # Only evolve instincts in testing domain
/evolve --dry-run # Show what would be created without creating
/evolve --threshold 5 # Require 5+ related instincts to cluster
/evolve --generate # Also generate files under evolved/{skills,commands,agents}
```
## 演化规则
@@ -88,63 +86,50 @@ python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py evolve [
## 操作步骤
1. `~/.claude/homunculus/instincts/` 读取所有本能
2. 按以下方式对本能进行分组:
* 领域相似性
* 触发器模式重叠
* 操作序列关联性
3. 对于每个包含 3 个以上相关本能的集群:
* 确定演化类型(命令/技能/代理
* 生成相应的文件
* 保存到 `~/.claude/homunculus/evolved/{commands,skills,agents}/`
4. 将演化后的结构链接回源本能
1. 检测当前项目上下文
2. 读取项目 + 全局本能(项目优先级高于 ID 冲突)
3. 按触发器/领域模式分组本能
4. 识别:
* 技能候选(包含 2+ 个本能的触发器簇)
* 命令候选(高置信度工作流本能)
* 智能体候选(更大、高置信度的簇
5. 在适用时显示升级候选(项目 -> 全局)
6. 如果传入了 `--generate`,则将文件写入:
* 项目范围:`~/.claude/homunculus/projects/<project-id>/evolved/`
* 全局回退:`~/.claude/homunculus/evolved/`
## 输出格式
```
🧬 Evolve Analysis
==================
============================================================
EVOLVE ANALYSIS - 12 instincts
Project: my-app (a1b2c3d4e5f6)
Project-scoped: 8 | Global: 4
============================================================
Found 3 clusters ready for evolution:
High confidence instincts (>=80%): 5
## Cluster 1: Database Migration Workflow
Instincts: new-table-migration, update-schema, regenerate-types
Type: Command
Confidence: 85% (based on 12 observations)
## SKILL CANDIDATES
1. Cluster: "adding tests"
Instincts: 3
Avg confidence: 82%
Domains: testing
Scopes: project
Would create: /new-table command
Files:
- ~/.claude/homunculus/evolved/commands/new-table.md
## COMMAND CANDIDATES (2)
/adding-tests
From: test-first-workflow [project]
Confidence: 84%
## Cluster 2: Functional Code Style
Instincts: prefer-functional, use-immutable, avoid-classes, pure-functions
Type: Skill
Confidence: 78% (based on 8 observations)
Would create: functional-patterns skill
Files:
- ~/.claude/homunculus/evolved/skills/functional-patterns.md
## Cluster 3: Debugging Process
Instincts: debug-check-logs, debug-isolate, debug-reproduce, debug-verify
Type: Agent
Confidence: 72% (based on 6 observations)
Would create: debugger agent
Files:
- ~/.claude/homunculus/evolved/agents/debugger.md
---
Run `/evolve --execute` to create these files.
## AGENT CANDIDATES (1)
adding-tests-agent
Covers 3 instincts
Avg confidence: 82%
```
## 标志
* `--execute`: 实际创建演化后的结构(默认为预览)
* `--dry-run`: 仅预览而不创建
* `--domain <name>`: 仅演化指定领域的本能
* `--threshold <n>`: 形成集群所需的最小本能数默认3
* `--type <command|skill|agent>`: 仅创建指定类型
* `--generate`:除了分析输出外,还生成进化后的文件
## 生成的文件格式