Skip to content

Commit f8b89a6

Browse files
committed
fix: clarify skill priority comment to match actual behavior
1 parent 28e9865 commit f8b89a6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/services/skills/SkillsManager.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,11 +598,13 @@ Add your skill instructions here.
598598
// Get list of modes to check for mode-specific skills
599599
const modesList = await this.getAvailableModes()
600600

601-
// Priority order (later entries override earlier ones with same skill name):
602-
// 1. Global .agents/skills (shared across AI coding tools, lowest priority)
603-
// 2. Project .agents/skills
604-
// 3. Global .roo/skills (Roo-specific)
605-
// 4. Project .roo/skills (highest priority)
601+
// Priority rules for skills with the same name:
602+
// 1. Source level: project > global > built-in (project always wins over global)
603+
// 2. Within the same source level: .roo overrides .agents
604+
//
605+
// Processing order (later entries override earlier ones at the same source level):
606+
// - Global: .agents/skills, then .roo/skills
607+
// - Project: .agents/skills, then .roo/skills
606608

607609
// Global .agents directories (lowest priority - shared across agents)
608610
dirs.push({ dir: path.join(globalAgentsDir, "skills"), source: "global" })

0 commit comments

Comments
 (0)