claude-code/claude-zh/commands/instinct-status.md

57 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 直覺狀態指令 (Instinct Status Command)
顯示目前的直覺、置信度評分及其來源摘要。
## 使用方式
`/instinct-status`
## 輸出範例
```text
直覺摘要 (Instincts Summary)
==========================
## 程式碼風格 (Code Style) (4 則直覺)
### prefer-functional-style
觸發:撰寫新函式時
行動:優先使用函式式模式而非類別 (Classes)
置信度:████████░░ 80%
來源session-observation | 上次更新2025-01-22
### use-path-aliases
觸發:匯入模組時
行動:使用 @/ 路徑別名而非相對路徑
置信度:██████░░░░ 60%
來源repo-analysis (github.com/acme/webapp)
## 測試 (Testing) (2 則直覺)
### test-first-workflow
觸發:新增功能時
行動:先寫測試,再實作
置信度:█████████░ 90%
來源session-observation
## 工作流 (Workflow) (3 則直覺)
### grep-before-edit
觸發:修改程式碼時
行動:先用 Grep 搜尋Read 確認,再進行 Edit
置信度:███████░░░ 70%
來源session-observation
---
總計9 則直覺 (4 則個人5 則繼承)
觀察器:執行中 (上次分析5 分鐘前)
```
## 旗標 (Flags)
- `--domain <name>`:依領域進行篩選 (code-style, testing, git 等)
- `--low-confidence`:僅顯示置信度 < 0.5 的直覺
- `--high-confidence`僅顯示置信度 >= 0.7 的直覺
- `--source <type>`:依來源篩選 (session-observation, repo-analysis, inherited)
- `--json`:以 JSON 格式輸出以便程式化使用