AgentSkillsCN

agents-priority-resolution

AGENTS.md 中的优先级与冲突解决规则。关键词:AGENTS、优先级、冲突。

SKILL.md
--- frontmatter
name: agents-priority-resolution
description: "AGENTS.md priority and conflict resolution rules. Keywords: AGENTS, priority, conflicts."

AGENTS.md Priority and Conflict Resolution

Priority Rules

When multiple AGENTS.md files apply, follow this order:

  1. Respect global hard constraints from higher-level strategy docs (project root, modular system root).
  2. Apply the most local applicable strategy for detailed decisions (module -> directory).
  3. Local strategies may refine or narrow global strategies but must not contradict explicit hard rules.

Conflict Resolution

If you detect conflicting rules:

  1. Prefer higher-level hard constraints when explicit.
  2. Prefer the more restrictive interpretation when uncertain.
  3. Record the uncertainty in workdocs for human review.
  4. Do not proceed with potentially unsafe actions.

Navigation Pattern

text
Project Root AGENTS.md
    -> (move down for module work)
/modules/AGENTS.md
    -> (move down for specific module)
/modules/<module_id>/AGENTS.md
    -> (move down for specific directory)
/modules/<module_id>/subdir/AGENTS.md

AI should:

  • Start at the most relevant level for the task.
  • Move down for more specific guidance.
  • Move up when task scope expands beyond current level.
  • Move sideways when task involves peer modules.

Related documents