When AGENTS.md, CLAUDE.md and a Skill Conflict, Which Wins?
agents claude
| Source: Dev.to | Original article
A new discussion explores how conflicts between AGENTS.md, CLAUDE.md, and Skill files are resolved in repositories.
A new post on the AI‑agent developer community has sparked a fresh debate over rule precedence in multi‑file agent configurations. The author demonstrates a minimal repository where three files – AGENTS.md, CLAUDE.md and a SKILL.md – contain contradictory directives, exposing a “thin” documentation layer that leaves developers guessing which rule the runtime will honor and which will be silently ignored.
The conflict matters because AGENTS.md and CLAUDE.md are loaded at the start of every session and define standing project policies, while SKILL.md is only invoked when a specific task is executed. When a tool adds a CLAUDE.md file that clashes with an existing AGENTS.md entry, and a skill later asserts the opposite, the agent’s behavior can become unpredictable. As the post warns, the lack of a clear hierarchy can lead to hidden bugs, inconsistent outputs, and, in safety‑critical use cases, unintended actions.
The issue builds on earlier guidance that distinguished the three file types. A September 2026 article explained that CLAUDE.md and AGENTS.md hold persistent rules, whereas SKILL.md is procedural. A May 2026 update further broke down format and monorepo handling for each file, and an October 2026 ProfessorGPT piece reiterated that most projects combine the files precisely because they solve different problems. The new example, however, shows that without an explicit precedence model, the “stack” of rules can behave arbitrarily.
What to watch next: developers are calling for a formalized rule‑resolution schema from the platforms that ship these markdown‑based configurations. Expect community‑driven best‑practice guides, possible changes to the runtime that surface conflicts during build, and tighter integration with tooling such as Linq’s AI‑agent infrastructure, which recently secured a $90 million Series B round. As the ecosystem matures, clearer standards could turn the current “thin” documentation into a robust contract, reducing silent overrides and improving reliability for AI‑driven applications.
Sources
Back to AIPULSEN