Files
everything-claude-code/docs/ja-JP/commands/instinct-import.md
Hirokazu Tanaka bf7ed1fce2 docs(ja-JP): translate plain text code blocks to Japanese
Translate English prose inside plain text code blocks (```text, ```)
across ja-JP documentation to Japanese, following the same approach
as PR #753 (zh-CN translation).

Translated content includes:
- Output template labels and status messages
- Folder tree inline comments
- CLI workflow descriptions
- Error/warning message examples
- Commit message templates and PR title examples

Technical identifiers, file paths, and actual code remain untranslated.
2026-03-25 08:20:14 +09:00

143 lines
4.4 KiB
Markdown
Raw 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.
---
name: instinct-import
description: チームメイト、Skill Creator、その他のソースからインスティンクトをインポート
command: true
---
# インスティンクトインポートコマンド
## 実装
プラグインルートパスを使用してインスティンクトCLIを実行します:
```bash
python3 "${CLAUDE_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" import <file-or-url> [--dry-run] [--force] [--min-confidence 0.7]
```
または、`CLAUDE_PLUGIN_ROOT` が設定されていない場合(手動インストール):
```bash
python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py import <file-or-url>
```
以下のソースからインスティンクトをインポートできます:
- チームメイトのエクスポート
- Skill Creatorリポジトリ分析
- コミュニティコレクション
- 以前のマシンのバックアップ
## 使用方法
```
/instinct-import team-instincts.yaml
/instinct-import https://github.com/org/repo/instincts.yaml
/instinct-import --from-skill-creator acme/webapp
```
## 実行内容
1. インスティンクトファイルを取得ローカルパスまたはURL
2. 形式を解析して検証
3. 既存のインスティンクトとの重複をチェック
4. 新しいインスティンクトをマージまたは追加
5. `~/.claude/homunculus/instincts/inherited/` に保存
## インポートプロセス
```
📥 instinctsをインポート中: team-instincts.yaml
================================================
12件のinstinctsが見つかりました。
競合を分析中...
## 新規instincts (8)
以下が追加されます:
✓ use-zod-validation (confidence: 0.7)
✓ prefer-named-exports (confidence: 0.65)
✓ test-async-functions (confidence: 0.8)
...
## 重複instincts (3)
類似のinstinctsが既に存在:
⚠️ prefer-functional-style
ローカル: 信頼度0.8, 12回の観測
インポート: 信頼度0.7
→ ローカルを保持 (信頼度が高い)
⚠️ test-first-workflow
ローカル: 信頼度0.75
インポート: 信頼度0.9
→ インポートに更新 (信頼度が高い)
## 競合instincts (1)
ローカルのinstinctsと矛盾:
❌ use-classes-for-services
競合: avoid-classes
→ スキップ (手動解決が必要)
---
8件を新規追加、1件を更新、3件をスキップしますか?
```
## マージ戦略
### 重複の場合
既存のインスティンクトと一致するインスティンクトをインポートする場合:
- **高い信頼度が優先**: より高い信頼度を持つ方を保持
- **証拠をマージ**: 観察回数を結合
- **タイムスタンプを更新**: 最近検証されたものとしてマーク
### 競合の場合
既存のインスティンクトと矛盾するインスティンクトをインポートする場合:
- **デフォルトでスキップ**: 競合するインスティンクトはインポートしない
- **レビュー用にフラグ**: 両方を注意が必要としてマーク
- **手動解決**: ユーザーがどちらを保持するか決定
## ソーストラッキング
インポートされたインスティンクトは以下のようにマークされます:
```yaml
source: "inherited"
imported_from: "team-instincts.yaml"
imported_at: "2025-01-22T10:30:00Z"
original_source: "session-observation" # or "repo-analysis"
```
## Skill Creator統合
Skill Creatorからインポートする場合:
```
/instinct-import --from-skill-creator acme/webapp
```
これにより、リポジトリ分析から生成されたインスティンクトを取得します:
- ソース: `repo-analysis`
- 初期信頼度が高い0.7以上)
- ソースリポジトリにリンク
## フラグ
- `--dry-run`: インポートせずにプレビュー
- `--force`: 競合があってもインポート
- `--merge-strategy <higher|local|import>`: 重複の処理方法
- `--from-skill-creator <owner/repo>`: Skill Creator分析からインポート
- `--min-confidence <n>`: 閾値以上のインスティンクトのみをインポート
## 出力
インポート後:
```
✅ インポート完了!
追加: 8件のinstincts
更新: 1件のinstinct
スキップ: 3件のinstincts (2件の重複, 1件の競合)
新規instinctsの保存先: ~/.claude/homunculus/instincts/inherited/
/instinct-statusを実行してすべてのinstinctsを確認できます。
```