chore: sync with upstream e7cb442 + update zh translations

This commit is contained in:
xuxiang
2026-02-02 18:57:56 +08:00
parent 6f87d43c19
commit d7cafbe582
66 changed files with 9395 additions and 1465 deletions

View File

@@ -1,28 +1,28 @@
---
name: instinct-status
description: Show all learned instincts with their confidence levels
description: 显示所有已学习的本能及其置信度
command: true
---
# Instinct Status Command
# 本能状态查询命令(Instinct Status Command
Shows all learned instincts with their confidence scores, grouped by domain.
显示所有已学习的本能Instincts及其置信度分数并按领域Domain进行分组。
## Implementation
## 实现方式
Run the instinct CLI using the plugin root path:
使用插件根路径运行本能 CLI
```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" status
```
Or if `CLAUDE_PLUGIN_ROOT` is not set (manual installation), use:
如果未设置 `CLAUDE_PLUGIN_ROOT`(手动安装),请使用:
```bash
python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py status
```
## Usage
## 用法
```
/instinct-status
@@ -30,57 +30,57 @@ python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py status
/instinct-status --low-confidence
```
## What to Do
## 执行逻辑
1. Read all instinct files from `~/.claude/homunculus/instincts/personal/`
2. Read inherited instincts from `~/.claude/homunculus/instincts/inherited/`
3. Display them grouped by domain with confidence bars
1. `~/.claude/homunculus/instincts/personal/` 读取所有个人本能文件。
2. `~/.claude/homunculus/instincts/inherited/` 读取继承的本能。
3. 按领域分组显示,并附带置信度进度条。
## Output Format
## 输出格式
```
📊 Instinct Status
📊 本能状态 (Instinct Status)
==================
## Code Style (4 instincts)
## 代码风格 (Code Style) (4 条本能)
### prefer-functional-style
Trigger: when writing new functions
Action: Use functional patterns over classes
Confidence: ████████░░ 80%
Source: session-observation | Last updated: 2025-01-22
触发器 (Trigger):编写新函数时
动作 (Action):优先使用函数式模式而非类
置信度 (Confidence)████████░░ 80%
来源 (Source):会话观察 (session-observation) | 最近更新:2025-01-22
### use-path-aliases
Trigger: when importing modules
Action: Use @/ path aliases instead of relative imports
Confidence: ██████░░░░ 60%
Source: repo-analysis (github.com/acme/webapp)
触发器 (Trigger):导入模块时
动作 (Action):使用 @/ 路径别名而非相对导入
置信度 (Confidence)██████░░░░ 60%
来源 (Source):仓库分析 (repo-analysis) (github.com/acme/webapp)
## Testing (2 instincts)
## 测试 (Testing) (2 条本能)
### test-first-workflow
Trigger: when adding new functionality
Action: Write test first, then implementation
Confidence: █████████░ 90%
Source: session-observation
触发器 (Trigger):添加新功能时
动作 (Action):先写测试,再写实现
置信度 (Confidence)█████████░ 90%
来源 (Source):会话观察 (session-observation)
## Workflow (3 instincts)
## 工作流 (Workflow) (3 条本能)
### grep-before-edit
Trigger: when modifying code
Action: Search with Grep, confirm with Read, then Edit
Confidence: ███████░░░ 70%
Source: session-observation
触发器 (Trigger):修改代码时
动作 (Action):先用 Grep 搜索,再用 Read 确认,最后 Edit 编辑
置信度 (Confidence)███████░░░ 70%
来源 (Source):会话观察 (session-observation)
---
Total: 9 instincts (4 personal, 5 inherited)
Observer: Running (last analysis: 5 min ago)
总计9 条本能 (4 条个人, 5 条继承)
观察器 (Observer):运行中 (最近分析5 分钟前)
```
## Flags
## 参数 (Flags)
- `--domain <name>`: Filter by domain (code-style, testing, git, etc.)
- `--low-confidence`: Show only instincts with confidence < 0.5
- `--high-confidence`: Show only instincts with confidence >= 0.7
- `--source <type>`: Filter by source (session-observation, repo-analysis, inherited)
- `--json`: Output as JSON for programmatic use
- `--domain <name>`: 按领域筛选(如 code-style, testing, git 等)
- `--low-confidence`: 仅显示置信度 < 0.5 的本能
- `--high-confidence`: 仅显示置信度 >= 0.7 的本能
- `--source <type>`: 按来源筛选(session-observation, repo-analysis, inherited
- `--json`: 以 JSON 格式输出,便于程序化调用