Fusion Rules

equinor/fusion-skills/skills/fusion-rules

作者 equinore8fd6cfaf8edMIT2 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

Entrypoint for AI coding assistant rule authoring across GitHub Copilot, Cursor, and Claude Code. USE FOR: setting up rules, reviewing existing rules, scaffolding instruction files, or asking which editor format to use. DO NOT USE FOR: authoring skills (SKILL.md), agent definitions (.agent.md), or CI enforcement of rule files.

僅含說明AI & Agents
AI 產生的概覽

將撰寫 AI 程式助理規則檔案的需求導向對應編輯器的代理。

功能
此技能是撰寫 AI 程式助理規則與指示檔案的進入點。它會從需求中辨識目標編輯器,並導向 GitHub Copilot、Cursor 或 Claude Code 對應的代理檔案;若未指定編輯器,則依序執行全部三個代理。它也會透過符合檔案格式的代理來檢視或改善現有規則檔案。它明確不負責撰寫技能、代理定義或 CI 驗證。
適用情境
適用於為 Copilot、Cursor 或 Claude Code 設定規則或指示檔案、檢視現有規則、建立指示檔案,或判斷該使用哪種編輯器格式的情況。它面向需要在多個編輯器間產生等效規則檔案的混合團隊。
執行需求
僅為指示,未附帶指令碼。它依賴隨附的代理檔案(agents/copilot.agent.md、agents/cursor.agent.md、agents/claude-code.agent.md),並視需要引用 .system/fusion-rule-author/ 下的資產與範本。未說明需要憑證或網路存取。

Fusion Rules

Gateway for AI coding assistant rule authoring. Detects the target editor and routes to the right agent.

Routing

IntentAgent
Set up GitHub Copilot instructions / rulesagents/copilot.agent.md
Set up Cursor project rulesagents/cursor.agent.md
Set up Claude Code rules / CLAUDE.mdagents/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

Intent detection

Detect target editor from the request:

  • Copilot — "copilot", "copilot-instructions", ".github/instructions", "applyTo"
  • Cursor — "cursor", ".cursor/rules", "mdc", "alwaysApply", "globs"
  • Claude Code — "claude", "CLAUDE.md", ".claude/rules", "paths"
  • All / unknown — "rules", "instructions", "set up AI rules", or no editor specified

Route directly on detected intent. No editor specified → run all three agents.

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. Don't preload all agents.

Multi-editor workflow

When targeting multiple editors:

  1. Run first agent's scan and interview (Steps 1–3) in full
  2. Pass scan summary + interview answers as context to 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

What this skill does NOT do

  • 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

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

來源與署名

來源:equinor/fusion-skills位於skills/fusion-rules提交e8fd6cf

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架