/instinct-import
从文件或 URL 导入直觉(Instincts)到项目/全局作用域
> /plugin marketplace add xu-xiang/everything-claude-code-zh > /plugin install everything-claude-code@everything-claude-code
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/instinct-import
Context preview
What this command does when you run it.
从文件或 URL 导入直觉(Instincts)到项目/全局作用域
Command definition
instinct-import.mdname: instinct-import
description: 从文件或 URL 导入直觉(Instincts)到项目/全局作用域
command: true
直觉导入命令(Instinct Import Command)
实现 (Implementation)
使用插件根路径运行直觉(Instinct)命令行工具(CLI):
python3 "${CLAUDE_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" import <file-or-url> [--dry-run] [--force] [--min-confidence 0.7] [--scope project|global]或者如果未设置 `CLAUDE_PLUGIN_ROOT`(手动安装):
python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py import <file-or-url>
从本地文件路径或 HTTP(S) URL 导入直觉。
用法 (Usage)
/instinct-import team-instincts.yaml
/instinct-import https://github.com/org/repo/instincts.yaml
/instinct-import team-instincts.yaml --dry-run
/instinct-import team-instincts.yaml --scope global --force
执行流程 (What to Do)
1. 获取直觉文件(本地路径或 URL) 2. 解析并验证格式 3. 检查现有直觉是否重复 4. 合并或添加新直觉 5. 保存到继承的直觉目录:
- 项目作用域(Project scope):`~/.claude/homunculus/projects/<project-id>/instincts/inherited/`
- 全局作用域(Global scope):`~/.claude/homunculus/instincts/inherited/`
导入过程 (Import Process)
📥 正在导入直觉,来源:team-instincts.yaml
================================================
发现 12 条待导入的直觉。
正在分析冲突...
## 新直觉 (New Instincts) (8)
这些将被添加:
✓ use-zod-validation (置信度: 0.7)
✓ prefer-named-exports (置信度: 0.65)
✓ test-async-functions (置信度: 0.8)
...
## 重复直觉 (Duplicate Instincts) (3)
已存在类似的直觉:
⚠️ prefer-functional-style
本地: 0.8 置信度, 12 条观测记录
导入: 0.7 置信度
→ 保留本地 (置信度更高)
⚠️ test-first-workflow
本地: 0.75 置信度
导入: 0.9 置信度
→ 更新为导入版本 (置信度更高)
导入 8 条新直觉,更新 1 条?合并行为 (Merge Behavior)
导入具有现有 ID 的直觉时:
- 较高置信度的导入项将成为更新候选。
- 相同或较低置信度的导入项将被跳过。
- 除非使用 `--force`,否则需用户确认。
来源追踪 (Source Tracking)
导入的直觉会被标记为:
source: inherited
scope: project
imported_from: "team-instincts.yaml"
project_id: "a1b2c3d4e5f6"
project_name: "my-project"
参数列表 (Flags)
- `--dry-run`: 预览而不实际导入。
- `--force`: 跳过确认提示。
- `--min-confidence <n>`: 仅导入高于置信度阈值的直觉。
- `--scope <project|global>`: 选择目标作用域(默认为 `project`)。
输出结果 (Output)
导入完成后:
✅ 导入完成!
添加:8 条直觉
更新:1 条直觉
跳过:3 条直觉 (已存在相同或更高置信度的直觉)
新直觉已保存至:~/.claude/homunculus/instincts/inherited/
运行 /instinct-status 查看所有直觉。
Read more
name: instinct-import description: 从文件或 URL 导入直觉(Instincts)到项目/全局作用域 command: true
直觉导入命令(Instinct Import Command)
实现 (Implementation)
使用插件根路径运行直觉(Instinct)命令行工具(CLI):
python3 "${CLAUDE_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" import <file-or-url> [--dry-run] [--force] [--min-confidence 0.7] [--scope project|global]或者如果未设置 `CLAUDE_PLUGIN_ROOT`(手动安装):
python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py import <file-or-url>
从本地文件路径或 HTTP(S) URL 导入直觉。
用法 (Usage)
/instinct-import team-instincts.yaml /instinct-import https://github.com/org/repo/instincts.yaml /instinct-import team-instincts.yaml --dry-run /instinct-import team-instincts.yaml --scope global --force
执行流程 (What to Do)
1. 获取直觉文件(本地路径或 URL) 2. 解析并验证格式 3. 检查现有直觉是否重复 4. 合并或添加新直觉 5. 保存到继承的直觉目录:
- 项目作用域(Project scope):`~/.claude/homunculus/projects/<project-id>/instincts/inherited/`
- 全局作用域(Global scope):`~/.claude/homunculus/instincts/inherited/`
导入过程 (Import Process)
📥 正在导入直觉,来源:team-instincts.yaml
================================================
发现 12 条待导入的直觉。
正在分析冲突...
## 新直觉 (New Instincts) (8)
这些将被添加:
✓ use-zod-validation (置信度: 0.7)
✓ prefer-named-exports (置信度: 0.65)
✓ test-async-functions (置信度: 0.8)
...
## 重复直觉 (Duplicate Instincts) (3)
已存在类似的直觉:
⚠️ prefer-functional-style
本地: 0.8 置信度, 12 条观测记录
导入: 0.7 置信度
→ 保留本地 (置信度更高)
⚠️ test-first-workflow
本地: 0.75 置信度
导入: 0.9 置信度
→ 更新为导入版本 (置信度更高)
导入 8 条新直觉,更新 1 条?合并行为 (Merge Behavior)
导入具有现有 ID 的直觉时:
- 较高置信度的导入项将成为更新候选。
- 相同或较低置信度的导入项将被跳过。
- 除非使用 `--force`,否则需用户确认。
来源追踪 (Source Tracking)
导入的直觉会被标记为:
source: inherited scope: project imported_from: "team-instincts.yaml" project_id: "a1b2c3d4e5f6" project_name: "my-project"
参数列表 (Flags)
- `--dry-run`: 预览而不实际导入。
- `--force`: 跳过确认提示。
- `--min-confidence <n>`: 仅导入高于置信度阈值的直觉。
- `--scope <project|global>`: 选择目标作用域(默认为 `project`)。
输出结果 (Output)
导入完成后:
✅ 导入完成! 添加:8 条直觉 更新:1 条直觉 跳过:3 条直觉 (已存在相同或更高置信度的直觉) 新直觉已保存至:~/.claude/homunculus/instincts/inherited/ 运行 /instinct-status 查看所有直觉。
🌐 Language / 语言 / 語言 为 AI 智能体(Agent)框架打造的性能优化系统。源自 Anthropic 黑客松获胜作品。 这不仅仅是配置文件。它是一个完整的系统:包含技能(Skills)、本能(Instincts)、内存优化、持续学习、安全扫描以及研究优先的开发模式。这些生产级的智能体(Agents)、钩子(Hooks)、命令(Commands)、规则(Rules)以及 MCP 配置,是在构建真实产品的 10 个多月高强度日常使用中演化而来的。 适用于 Claude Code, Codex,
Repo: xu-xiang/everything-claude-code-zh
Other commands on everything-claude-code.
- /build-fix
通过最小化、安全的改动,逐步修复构建(Build)和类型(Type)错误。
Open command - /checkpoint
在工作流(Workflow)中创建或验证检查点。
Open command - /claw
启动 NanoClaw 智能体 (Agent) REPL — 一个由 claude CLI 驱动的持久化、会话感知 (session-aware) 的 AI 助手。
Open command - /code-review
对未提交的更改进行全面的安全和质量审查:
Open command - /e2e
使用 Playwright 生成并运行端到端测试。创建测试旅程、运行测试、捕获截图/视频/追踪,并上传产物。
Open command - /eval
管理评测驱动开发(eval-driven development)工作流。
Open command

