Skip to content
Development
Command

/promote

将项目级直觉(Instincts)提升至全局作用域

From plugin
everything-claude-code
1.8k35 skills15 agents35 commands6 hooks
Install
> /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/promote

Context preview

What this command does when you run it.

将项目级直觉(Instincts)提升至全局作用域

Command definition

promote.md
name: promote
description: 将项目级直觉(Instincts)提升至全局作用域
command: true

提升(Promote)命令

在 continuous-learning-v2 中,将项目级直觉(Project-scoped instincts)提升至全局作用域。

实现方法

使用插件根路径运行直觉命令行界面(Instinct CLI):

python3 "${CLAUDE_PLUGIN_ROOT}/skills/continuous-learning-v2/scripts/instinct-cli.py" promote [instinct-id] [--force] [--dry-run]

如果未设置 `CLAUDE_PLUGIN_ROOT`(手动安装):

python3 ~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py promote [instinct-id] [--force] [--dry-run]

使用方法

/promote                      # 自动检测可提升的候选直觉
/promote --dry-run            # 预览自动提升候选直觉
/promote --force              # 无需提示直接提升所有符合条件的候选直觉
/promote grep-before-edit     # 提升当前项目中某个特定的直觉

执行步骤

1. 检测当前项目 2. 如果提供了 `instinct-id`,仅提升该直觉(如果它存在于当前项目中) 3. 否则,查找符合以下条件的跨项目候选直觉:

  • 在至少 2 个项目中出现过
  • 达到置信度阈值(Confidence threshold)

4. 将提升后的直觉以 `scope: global` 写入 `~/.claude/homunculus/instincts/personal/`

Ships witheverything-claude-code

🌐 Language / 语言 / 語言 为 AI 智能体(Agent)框架打造的性能优化系统。源自 Anthropic 黑客松获胜作品。 这不仅仅是配置文件。它是一个完整的系统:包含技能(Skills)、本能(Instincts)、内存优化、持续学习、安全扫描以及研究优先的开发模式。这些生产级的智能体(Agents)、钩子(Hooks)、命令(Commands)、规则(Rules)以及 MCP 配置,是在构建真实产品的 10 个多月高强度日常使用中演化而来的。 适用于 Claude Code, Codex,

Get the whole plugin