fusion-rules

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Fusion Rules

Fusion规则

Gateway for AI coding assistant rule authoring. Detects the target editor and routes to the right agent.
AI代码助手规则编写的网关。可检测目标编辑器并路由至对应的Agent。

Routing

路由

IntentAgent
Set up GitHub Copilot instructions / rules
agents/copilot.agent.md
Set up Cursor project rules
agents/cursor.agent.md
Set up Claude Code rules / CLAUDE.md
agents/claude-code.agent.md
Set up rules for all editors / mixed teamRun all three agents sequentially
Review or improve existing rulesRoute to the agent matching the file format
意图Agent
设置GitHub Copilot指令/规则
agents/copilot.agent.md
设置Cursor项目规则
agents/cursor.agent.md
设置Claude Code规则/CLAUDE.md
agents/claude-code.agent.md
为所有编辑器/混合团队设置规则依次运行三个Agent
审核或改进现有规则路由至与文件格式匹配的Agent

Intent detection

意图检测

Detect the target editor from the request. Look for:
  • Copilot — mentions "copilot", "copilot-instructions", ".github/instructions", "applyTo"
  • Cursor — mentions "cursor", ".cursor/rules", "mdc", "alwaysApply", "globs"
  • Claude Code — mentions "claude", "CLAUDE.md", ".claude/rules", "paths"
  • All / unknown — mentions "rules", "instructions", "set up AI rules", or doesn't specify an editor
Route directly based on detected intent. If no editor is specified, run all three agents.
从请求中检测目标编辑器,需查找以下关键词:
  • Copilot — 提及"copilot"、"copilot-instructions"、".github/instructions"、"applyTo"
  • Cursor — 提及"cursor"、".cursor/rules"、"mdc"、"alwaysApply"、"globs"
  • Claude Code — 提及"claude"、"CLAUDE.md"、".claude/rules"、"paths"
  • 所有/未知 — 提及"rules"、"instructions"、"set up AI rules",或未指定编辑器
根据检测到的意图直接路由。如果未指定编辑器,则运行全部三个Agent。

Loading behavior

加载行为

Load ONLY the routed agent file. Each agent carries the full workflow and references
.system/fusion-rule-author/
assets and templates on demand. Do not preload all agents.
仅加载路由指向的Agent文件。每个Agent均包含完整工作流,并会按需引用
.system/fusion-rule-author/
下的资源和模板。请勿预加载所有Agent。

Multi-editor workflow

多编辑器工作流

When targeting multiple editors:
  1. Run the first agent's scan and interview (Steps 1–3) in full
  2. Pass the scan summary and interview answers as context to the remaining agents — they skip Steps 1–3 and start at Step 4 (Classify)
  3. Each agent drafts, reviews, and writes files for its own editor format
  4. Generate parallel files with equivalent content — no duplication within a single editor
当针对多个编辑器时:
  1. 完整运行第一个Agent的扫描和访谈流程(步骤1–3)
  2. 将扫描摘要和访谈答案作为上下文传递给剩余Agent——它们会跳过步骤1–3,直接从步骤4(分类)开始
  3. 每个Agent会为其对应的编辑器格式起草、审核并写入文件
  4. 生成内容等效的并行文件——单个编辑器内无重复内容

What this skill does NOT do

本Skill不支持的操作

  • Author skills (
    SKILL.md
    ) — use
    fusion-skill-authoring
  • Author agent definitions (
    .agent.md
    ) — separate concern
  • Write CI checks for rule validation — out of scope
  • Migrate entire legacy codebases — incremental adoption only
  • 编写Skill(SKILL.md)——请使用
    fusion-skill-authoring
  • 编写Agent定义文件(.agent.md)——属于独立范畴
  • 编写用于规则验证的CI检查——超出本范围
  • 迁移整个遗留代码库——仅支持增量适配

Safety

安全规范

  • No secrets or credentials in rule files
  • No overwrites without showing diff and getting approval
  • No invented conventions — only document what the developer confirms
  • Show drafts before writing any files
  • 规则文件中不得包含密钥或凭证
  • 未展示差异并获得批准前,不得覆盖文件
  • 不得自创约定——仅记录开发者确认的内容
  • 在写入任何文件前,需先展示草稿