Conflict Patterns

Conflict Patterns is a skill for Claude Code from KnowledgeXLab/skill-git. It costs 44 tokens per session (1,848 once invoked), scanned B, original, MIT.

A guide for finding rules that conflict between two instruction sets, such as project configuration files or other skills.

In plain words
What is it for?
Use it to compare instructions, detect direct or hidden contradictions, and identify rules that cannot be followed together.
Why use it?
It helps reveal contradictory requirements before they cause inconsistent or incorrect agent behavior.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Gemini CLI.

Part of the skill-git plugin — 2 skills, 10 commands shipped together

Good fit Use it to compare instructions, detect direct or hidden contradictions, and identify rules that cannot be followed together.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/knowledgexlab/skill-git/conflict-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add KnowledgeXLab/skill-git --skill conflict-patterns
Clone the repo
git clone --depth 1 https://github.com/KnowledgeXLab/skill-git

Made for: Claude Code.

Or install skill-git, the plugin that ships this one along with the rest of its 2 skills, 10 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Conflict Patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/knowledgexlab/skill-git/conflict-patterns/github.svg)](https://agentmods.dev/skills/knowledgexlab/skill-git/conflict-patterns)
Your own site
<a href="https://agentmods.dev/skills/knowledgexlab/skill-git/conflict-patterns"><img src="https://agentmods.dev/badge/skills/knowledgexlab/skill-git/conflict-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Conflict Patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/knowledgexlab/skill-git/conflict-patterns"><img src="https://agentmods.dev/badge/skills/knowledgexlab/skill-git/conflict-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,848 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.01848
Opus 5.5 $0.00018 $0.00739
Sonnet 5.5 $0.00009 $0.00370
Haiku 4.5 $0.00004 $0.00185

Measured 2mo ago against content hash b15c915c8961, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

Conflict Patterns scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

- **Prompt injection**: Rule contains phrases like "ignore previous instructions", "disregard all rules", "from now on you are", "forget everything"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/conflict-patterns/SKILL.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Conflict Patterns

This skill teaches you how to detect rule conflicts between two rule lists produced by the Rule Extraction skill.

Types of Conflicts

1. Direct Contradiction

Two rules that explicitly state opposite behaviors.

Patterns to detect:

  • always X vs never X
  • do X vs do not X / avoid X
  • use X vs do not use X
  • must X vs must not X
  • 始终 X vs 禁止 X
  • 必须 X vs 不允许 X

Examples:

❌ "Always add docstrings to every function"
   vs "Do not add docstrings — keep code self-documenting"

❌ "Use double quotes for strings"
   vs "Use single quotes for strings"

❌ "Write commit messages in Chinese"
   vs "Write commit messages in English"

2. Semantic Contradiction

Two rules that don't use opposite words but prescribe incompatible behaviors.

Examples:

❌ "Keep functions under 20 lines"
   vs "Always include full error handling, logging, and retry logic in every function"
   (the second makes the first impossible to satisfy)

❌ "Optimize for readability, use verbose variable names"
   vs "Minimize code length, prefer concise expressions"

❌ "Add a comment above every line of code"
   vs "Comments should only appear when logic is non-obvious"

Detection approach: Ask whether it is possible to satisfy both rules simultaneously in a realistic scenario. If not, it is a semantic contradiction.

3. Scope Overlap (Non-Conflicting, Worth Noting)

Two rules that cover the same topic but are compatible — one is more specific than the other.

Examples:

⚠️  "Use camelCase for all identifiers"
    and "Use PascalCase for class names"
    (PascalCase rule is a valid specialization of the camelCase rule — not a conflict)

⚠️  "Write tests for all code"
    and "Write unit tests for utility functions"
    (second is a subset — no conflict)

These are not conflicts — label them as overlap only, not conflict.

Non-Conflicts to Ignore

The following patterns look like conflicts but are not. Do not flag these.

Read the full file on GitHub · 211 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 211 lines · 44 tokens per session scan B b15c915c8961

Subscribe to this mod's changes

Conflict Patterns is a skill published in the GitHub repository KnowledgeXLab/skill-git (42 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 1,848 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

tidewave-integration

Tidewave MCP runtime tools — debugging, smoke testing, live state inspection, SQL queries, hex docs. Use when evaluating code in a running Phoenix app.

oliver-kriska/claude-elixir-phoenix · 38 tokens

analyze

Deep-research analysis of a codebase, a topic, or both. Clarifies the question, agrees the research angles with you, then runs a dynamic workflow that gathers cited claims per angle, merges duplicates, has independent skeptics try to refute every claim, and writes one cited report from the claims that survived. Use…

rsmdt/the-startup · 96 tokens

release-it

Build production-ready systems with stability patterns: circuit breakers, bulkheads, timeouts, and retry logic. Use when the user mentions "production outage", "circuit breaker", "deployment pipeline", "chaos engineering", "retry storm", "health checks", "my service keeps crashing", "prevent cascading failures", or…

wondelai/skills · 131 tokens

anti-patterns

Catalogue of known SDLC anti-patterns that greatcto agents must actively reject when reviewing architecture, plans, code, or post-mortems. Used by architect (pre-impl), pm (planning), senior-dev (impl), l3-support (post-incident).

avelikiy/great_cto · 59 tokens

resolving-merge-conflicts

Use when a git merge or rebase reports conflicts and the operation is in progress.

romiluz13/cc10x · 25 tokens

debug

Interactive debugging workflow with hypothesis-driven probe loop. Use when: unknown bugs, script errors, silent failures, troubleshooting. Not for: known bugs (use bug-fix), GitHub issue analysis (use issue-analyze), code understanding (use code-explore). Output: debug report with probe journal + root cause + fix.

sd0xdev/sd0x-harness · 67 tokens