mirror of
https://github.com/sweetwisdom/everything-claude-code-zh.git
synced 2026-03-22 06:20:10 +00:00
docs: 完成所有文档的中文翻译并应用到项目
This commit is contained in:
@@ -1,38 +1,38 @@
|
||||
---
|
||||
name: instinct-export
|
||||
description: Export instincts for sharing with teammates or other projects
|
||||
description: 导出直觉(Instincts)以便与团队成员或其他项目共享
|
||||
command: /instinct-export
|
||||
---
|
||||
|
||||
# Instinct Export Command
|
||||
# 直觉导出命令(Instinct Export Command)
|
||||
|
||||
Exports instincts to a shareable format. Perfect for:
|
||||
- Sharing with teammates
|
||||
- Transferring to a new machine
|
||||
- Contributing to project conventions
|
||||
将直觉(Instincts)导出为可共享的格式。非常适用于:
|
||||
- 与团队成员共享
|
||||
- 迁移到新机器
|
||||
- 贡献到项目规范(Conventions)中
|
||||
|
||||
## Usage
|
||||
## 使用方法
|
||||
|
||||
```
|
||||
/instinct-export # Export all personal instincts
|
||||
/instinct-export --domain testing # Export only testing instincts
|
||||
/instinct-export --min-confidence 0.7 # Only export high-confidence instincts
|
||||
/instinct-export # 导出所有个人直觉
|
||||
/instinct-export --domain testing # 仅导出测试(Testing)领域的直觉
|
||||
/instinct-export --min-confidence 0.7 # 仅导出高置信度的直觉
|
||||
/instinct-export --output team-instincts.yaml
|
||||
```
|
||||
|
||||
## What to Do
|
||||
## 执行逻辑
|
||||
|
||||
1. Read instincts from `~/.claude/homunculus/instincts/personal/`
|
||||
2. Filter based on flags
|
||||
3. Strip sensitive information:
|
||||
- Remove session IDs
|
||||
- Remove file paths (keep only patterns)
|
||||
- Remove timestamps older than "last week"
|
||||
4. Generate export file
|
||||
1. 从 `~/.claude/homunculus/instincts/personal/` 读取直觉数据
|
||||
2. 根据参数(Flags)进行过滤
|
||||
3. 脱敏敏感信息:
|
||||
- 移除会话 ID(Session IDs)
|
||||
- 移除文件路径(仅保留模式串/Patterns)
|
||||
- 移除早于“上周”的时间戳
|
||||
4. 生成导出文件
|
||||
|
||||
## Output Format
|
||||
## 输出格式
|
||||
|
||||
Creates a YAML file:
|
||||
创建一个 YAML 文件:
|
||||
|
||||
```yaml
|
||||
# Instincts Export
|
||||
@@ -67,25 +67,25 @@ instincts:
|
||||
observations: 6
|
||||
```
|
||||
|
||||
## Privacy Considerations
|
||||
## 隐私说明
|
||||
|
||||
Exports include:
|
||||
- ✅ Trigger patterns
|
||||
- ✅ Actions
|
||||
- ✅ Confidence scores
|
||||
- ✅ Domains
|
||||
- ✅ Observation counts
|
||||
导出内容**包含**:
|
||||
- ✅ 触发模式(Trigger patterns)
|
||||
- ✅ 动作(Actions)
|
||||
- ✅ 置信度评分(Confidence scores)
|
||||
- ✅ 领域(Domains)
|
||||
- ✅ 观测计数(Observation counts)
|
||||
|
||||
Exports do NOT include:
|
||||
- ❌ Actual code snippets
|
||||
- ❌ File paths
|
||||
- ❌ Session transcripts
|
||||
- ❌ Personal identifiers
|
||||
导出内容**不包含**:
|
||||
- ❌ 实际代码片段
|
||||
- ❌ 文件路径
|
||||
- ❌ 会话转录(Session transcripts)
|
||||
- ❌ 个人身份标识符
|
||||
|
||||
## Flags
|
||||
## 参数(Flags)
|
||||
|
||||
- `--domain <name>`: Export only specified domain
|
||||
- `--min-confidence <n>`: Minimum confidence threshold (default: 0.3)
|
||||
- `--output <file>`: Output file path (default: instincts-export-YYYYMMDD.yaml)
|
||||
- `--format <yaml|json|md>`: Output format (default: yaml)
|
||||
- `--include-evidence`: Include evidence text (default: excluded)
|
||||
- `--domain <name>`: 仅导出指定领域(Domain)
|
||||
- `--min-confidence <n>`: 最低置信度阈值(默认值:0.3)
|
||||
- `--output <file>`: 输出文件路径(默认值:instincts-export-YYYYMMDD.yaml)
|
||||
- `--format <yaml|json|md>`: 输出格式(默认值:yaml)
|
||||
- `--include-evidence`: 包含证据(Evidence)文本(默认:排除)
|
||||
|
||||
Reference in New Issue
Block a user