# I gave Claude Code 8 real tickets with and without aposlop agent skills, and it wrote 59% less code

> Ran Claude Code on 8 real Django and ripgrep tickets, with and without my skills. With them it wrote 59% less code, and once argued a feature away.

Published November 27, 2026 on EzyGang: https://blog.ezygang.digital/claude-code-agent-skills-8-tickets/

Quick context: aposlop is my scanner for the stuff coding agents love to leave behind (copy-pasted logic, huge files, functions with way too many branches). It also ships a few agent skills, which are basically markdown checklists the agent reads before it touches code. The main one says this, word for word:

> The best solution to a coding problem is the one that requires NO CODE.

Writing that into a file is easy. Whether Claude actually listens is a different story, so I set up a test.

## The setup

8 real tickets: the four newest fixed ones in Django and the four newest closed issues in ripgrep as of 23 November, taken in order so there's no cherry-picking (two got skipped on the way, one needs a memcached server and the other is 464 lines). Claude Code 2.1.332, Opus 5.5 on medium effort, a fresh checkout at the commit right before the real fix, and the prompt is just the ticket text + "Make the change and run the relevant tests." Nothing about duplication or keeping it small.

Every ticket ran twice with the skills (`npx skills add EzyGang/aposlop`, plus aposlop and its config in the repo) and twice without, 32 runs total. Then each result got the tests that shipped with the real fix and an aposlop scan for new copies/complexity. The merged commits went through the same thing, so the humans are on the board too.

Nobody told Claude about the skills, and it still opened one on its own in 13 of 16 runs, nearly always `aposlop-code-changes`.

## First thing that jumped out

The size of the diffs. Take `--max-bytes` in ripgrep, where the issue asks for a way to only search the first N bytes of a file, "like with `head -c`". Without skills Claude wrote 202 lines in one run and 175 in the other. With skills, 85 both times. The commit that actually shipped has 117.

Full picture, source lines only (tests and docs don't count), two runs each:

| Ticket | Without skills | With skills | Change | Merged commit |
| --- | --- | --- | --- | --- |
| Django, cloning combined queries | 2, 2 | 2, 2 | 0% | 2 |
| Django, raw block closing tags | 29, 30 | 12, 10 | -63% | 21 |
| Django, `Meta.ordering` crash | 2, 31 | 14, 6 | -39% | 9 |
| Django, `FETCH_PEERS` | 3, 3 | 3, 3 | 0% | 3 |
| ripgrep, `RIPGREP_THREADS` | 38, 68 | 0, 0 | -100% | 41 |
| ripgrep, multi-line look-ahead | 90, 81 | 95, 7 | -40% | 22 |
| ripgrep, `--max-bytes` | 202, 175 | 85, 85 | -55% | 117 |
| ripgrep, POSIX classes | 177, 110 | 57, 46 | -64% | 140 |
| Total | 1,043 | 427 | -59% | 355 |

So ~65 lines a run without skills, ~27 with them and ~44 in the real commits. The tiny 2-3 line bugs came out identical everywhere, the gap is all on the bigger stuff, and the multi-line fix is mostly noise (95 lines in one run with skills, 7 in the other). The template tags went the other way entirely: without skills it added ~30 lines, with skills it deleted more than it added (+12 -16 and +10 -20), and the real commit is +21 -16.

## Then the tests

Less code is only worth anything if it works. Two of the real tests turned out to be unfair, though.

The `--max-bytes` ones call the flag by the name ripgrep picked, and no run could know that: three went with `--head-bytes` and one with `--max-read-bytes` (a pretty reasonable guess when the issue says `head -c` and links a branch called `feat_head-bytes`). With each run's own name swapped into the tests, all four runs pass all four. The other one checks what `[[:bogus:]]` should turn into, which the issue doesn't mention at all, so it's out. Every other glob test passed on both sides.

After that it's 16/16 without skills and 14/16 with them. Both losses are the same ticket, and honestly it's the best part of the whole test.

## The ticket it talked itself out of

`RIPGREP_THREADS`: somebody wants an env variable for a default thread count, because on a shared server people forget `-j`. Without skills Claude just built it, 38 and 68 lines. With skills it opened `aposlop-code-changes`, and the first line of that checklist is "Decide whether the requested behavior must exist."

So it did. Turns out ripgrep already reads default flags from whatever file `RIPGREP_CONFIG_PATH` points at, and `--threads=2` works in there just fine. Both runs checked that on a real build, wrote ZERO lines and came back with "I didn't change any code, because ripgrep can already do this." plus a how-to. Which is correct (ripgrep merged the variable anyway, so the tests failed, but still).

This is exactly what I want from an agent. When you run stuff through agents you want them to challenge the decision before they add code and take the leanest path, and here it did that on its own, off a markdown file. Whether ripgrep still wants the variable is a product call, and that call stays with a person. Kinda cool that 8 tickets were enough to run into it.

## Copies, time and money

Without skills 80 added lines landed in duplicate code, with skills 50 (-38%), and the real commits 28. Most of the 80 is `--max-bytes` again, 54 and 22 against 16 and 12, and the real commit put 26 lines into copies there too, so nobody's clean on that one. Complexity didn't move at all, 4 new findings on each side. And not a single run actually ran aposlop before finishing, even though the skills ask for it, so all of this is the checklist alone.

The median run took 5m41s without skills and 2m26s with them (-57%), and the cost Claude Code reported for 16 runs went from $6.90 to $5.25 (-24%). Writing less code is faster, who knew. The slowest run without skills spent almost 12 minutes and 41 turns on a Django crash that the real fix handles in 9 lines, and shipped 31.

## So, in the end

| | Without skills | With skills | Change | Merged commits |
| --- | --- | --- | --- | --- |
| Source lines added | 1,043 (16 runs) | 427 (16 runs) | -59% | 355 (8 commits) |
| Added lines in copies | 80 | 50 | -38% | 28 |
| Passed the real tests | 16/16 | 14/16 | | 8/8 |
| Median run | 5m41s | 2m26s | -57% | |
| Cost Claude Code reported | $6.90 | $5.25 | -24% | |

Both test losses are the feature it argued away.

And that's the skills alone, with the scanner never touched. The scanner is the other half: it catches the copies and the oversized files/functions after the fact, whoever wrote them, and I put it up against jscpd and PMD CPD on five repos in [the previous post](https://blog.ezygang.digital/aposlop-duplicate-code-five-repos/). So use both: skills first (one command, your prompts stay the same), then `aposlop ci .` in the pipeline so the build fails on whatever still slips through.

```bash
npx skills add EzyGang/aposlop
uv tool install aposlop
```

Other ways to install it are on the [installation page](https://aposlop.ezygang.digital/getting-started/installation/), the [skills page](https://aposlop.ezygang.digital/skills/) has every skill with what it tells the agent, and the source is on [GitHub](https://github.com/EzyGang/aposlop).

