- Home
- Skills
- Productivity
- Conflict Count — Paste Merged Text, Get Conflict Blocks
Conflict Count — Paste Merged Text, Get Conflict Blocks
Count ours and theirs lines in complete two-way merge conflict blocks without changing source text.
$5
Works with the AI Agents you already use
Conflict Count — Paste Merged Text, Get Conflict Blocks
Example session with this skill installed
python3 scripts/conflict_count.py examples/conflicts.txt
- Read your context and instructions
- Compiled the conflict count
Ours Block Ours lines Theirs lines
OK 1 2 2
1 row; Total: 1 block; Ours 2 lines; Theirs 2 lines; 0 unreadable blocks.
Connects securely to your tools. The creator never sees your data.
About this skill
Paste plain merge text and get the number of lines on each side of every complete conflict block. Conflict Count counts; it does not choose a side, resolve conflicts, or change your text.
Input: a UTF-8 or UTF-16 text file (including BOM-less UTF-16 LE and BE), or standard input with -. An opening line begins with exactly seven < characters at column zero, a separator with exactly seven =, and a closing line with exactly seven >; a label may follow the marker. Longer marker runs and indented markers are ordinary text. Lines between the opening and the separator belong to Ours; lines between the separator and the closing belong to Theirs. Marker lines are excluded.
Output: one row per block with its Ours and Theirs line counts, plus a total of readable blocks and the two readable-side line sums. Unreadable blocks do not enter those totals. Diff3 blocks (with a ||||||| base marker) and malformed or unclosed blocks are marked unreadable; other blocks are still counted. If an opening marker appears before the outer block closes, the whole outer block is unreadable and nested blocks are not counted separately.
Formats: text (default), markdown, csv, or json. --output PATH creates a new UTF-8 file; existing files are not overwritten. Errors print one line and exit with code 2. Input is limited to 10,000,000 bytes and 300,000 lines.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Productivity.
Diff3 blocks (with a ||||||| base marker), malformed blocks and unclosed blocks are marked unreadable. If an opening marker appears before the outer block closes, the whole outer block is unreadable and nested blocks are not counted separately. Input is limited to 10,000,000 bytes and 300,000 lines.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
- Software
Python 3.9+