Borrowing it
Nothing to install: this file belongs to devlint/GitWand. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/devlint/GitWand/main/.claude/skills/add-pattern/SKILL.mdgit clone --depth 1 https://github.com/devlint/GitWandWrote 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.
[](https://agentmods.dev/skills/devlint/gitwand/add-pattern)<a href="https://agentmods.dev/skills/devlint/gitwand/add-pattern"><img src="https://agentmods.dev/badge/skills/devlint/gitwand/add-pattern/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.
<a href="https://agentmods.dev/skills/devlint/gitwand/add-pattern"><img src="https://agentmods.dev/badge/skills/devlint/gitwand/add-pattern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.02236 |
| Opus 5.5 | $0.00024 | $0.00894 |
| Sonnet 5.5 | $0.00012 | $0.00447 |
| Haiku 4.5 | $0.00006 | $0.00224 |
Grade A, and why
add-pattern scanned grade A with 0 findings 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 282 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: add-pattern
Guide the agent through every step needed to add a new conflict-resolution pattern from end to end, touching all four required locations in the right order.
Step 1 — Gather information before writing any code
Ask the following questions up front. Do not start editing files until you have clear answers.
-
Name — What is the snake_case name for this pattern? (e.g.
comment_only_change,empty_block_insertion) -
Trigger condition — In plain English, when does this pattern apply? Be precise: what must be true of
oursLines,theirsLines, and optionallybaseLinesfor the pattern to fire? -
Resolution strategy — What should the merged output look like when this pattern fires? (accept ours, accept theirs, union, base + additions, etc.)
-
Confidence score — What
typeClassificationvalue (0–100) do you propose, and why? WhatdataRiskvalue (0–100, where 0 = safe)? Use the existing patterns as a reference:same_change/one_side_change/delete_no_change→ typeClassification 100, dataRisk 0non_overlapping→ typeClassification 90, dataRisk 20whitespace_only/reorder_only/insertion_at_boundary→ typeClassification 85–90, dataRisk 8–20value_only_change→ typeClassification 72–88, dataRisk 25
-
Priority — What numeric priority should this pattern have? Lower = evaluated earlier. Current assignments:
- 10
same_change, 20delete_no_change, 30one_side_change - 40
non_overlapping, 50whitespace_only, 55reorder_only - 57
insertion_at_boundary, 60value_only_change, 999complexPick a value that places it at the right point in the evaluation chain.
- 10
-
requires— Does the pattern need the base (diff3), work without it (diff2), or both? Use"diff3","diff2", or"both".
Step 2 — Add the ConflictType to types.ts
packages/core/src/types.ts contains the ConflictType union. Add the new
type name there before creating the pattern file — TypeScript will then flag
every location that needs updating.
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.
- 2mo ago First seen · 282 lines · 59 tokens per session scan A 7155a8227bdd
add-pattern is a skill published in the GitHub repository devlint/GitWand (194 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 2,236 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
add-pattern compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-patterndevlint/GitWand | Skill | 194 | yesterday | MIT | A | 59 | Claude Code |
| hunk-launch-videomodem-dev/hunk | Skill | 9.8k | yesterday | MIT | A | 60 | Claude Code, Codex |
| hunk-releasemodem-dev/hunk | Skill | 9.8k | yesterday | MIT | A | 38 | Claude Code, Codex |
| git-macheteVirtusLab/git-machete | Skill | 1.1k | 3d ago | MIT | A | 165 | Claude Code, Codex |
| mergeRockyHong/super-bootstrap | Skill | 3 | yesterday | MIT | A | 130 | Claude Code |
| toura9a4k/tour | Skill | 5 | 4mo ago | MIT | A | 167 | Claude Code |
| github-pr-workflowfurkangonel/cowrangler | Skill | 1 | 1mo ago | MIT | B | 25 | Claude Code, Codex |