AGENT SKILLS · PRACTICAL FIELD GUIDE

Why Didn’t My Coding Agent Use the Skill I Wrote?

One CSV bug, three requests, and a one-line edit to the description of a release-notes skill.

AIConnector editorial · · 4 minute read

← All field guides
A support colleague passes a handwritten request to a developer at a laptop
“What should I tell the customer who reported this?”

A customer has found an odd bug. They export a CSV, open it, and see the first two column headings on top of their data. The fix is two lines. Support wants two sentences. Your team already has a skill for writing about fixes, so this ought to be the easy part.

Suppose the agent writes a perfectly good reply. Did it use your skill? You could read those two sentences a dozen times and still be guessing. Here’s a small experiment you can run in Claude Code to find out what happens when a colleague asks for help in their own words.

Give the agent one change worth telling a customer about

In an empty Git repository, run the following in a shell. The first version puts every CSV row on the same line. The patch adds the missing line break and privately renames the separator. Only the line break belongs in a customer update.

printf '%s\n' 'SEP = ","' 'def row(cells):' '    return SEP.join(cells)' > export.py
git add export.py
printf '%s\n' 'DELIMITER = ","' 'def row(cells):' '    return DELIMITER.join(cells) + "\n"' > export.py
git diff -- export.py

Staging the first version gives you a baseline without making a commit. To see the customer’s side of the fix, run python3 -c 'from export import row; print(row(["name","city"]) + row(["Mina","Pune"]), end="")'. The header and Mina’s record should print on separate lines.

Write the smallest useful skill

Create .claude/skills/release-notes/SKILL.md in that repo with the contents below. Launch Claude Code from the repo root. Check that the skill appears in the skills menu, then leave the menu and open a fresh session for the first trial. The description is what Claude can consult when deciding whether to load the full instructions. Claude Code skill documentation.

---
name: release-notes
description: Draft release notes from a Git diff.
---
Read the unstaged diff. Write up to two sentences for customers.
Describe the symptom they would recognize and what changes for them.
Omit internal renames. Claim a release only if the input confirms one.

Ask for the same patch three ways

Two colleagues compare cards labeled Release notes, Reply to customer, and Explain refactor
The middle card is the interesting one. Support has named the reader and the job, without naming the document.
  1. “Write release notes for this patch.” This is the easy case. You expect a skill invocation and a sentence about CSV rows.
  2. “Support wants two sentences they can send the customer who reported yesterday’s CSV bug. What should they say about this patch?” You want the same editorial rules to apply here. Watch whether the agent makes that connection.
  3. “Walk me through the variable rename in this patch so I can review it.” This time the name change is the whole point. An agent that invokes the skill and obligingly omits the rename has missed the request.

Use a fresh session for each prompt and keep the model, repository and enabled skills fixed. Expand the tool activity for the turn. Record a hit when the trace shows the agent invoking release-notes or loading that skill’s instructions. If your client hides tool activity, record “unknown.” Asking the agent afterward introduces a second source of guesswork.

Change one line and try again

Keep the skill body intact. Replace its description with this one:

description: Draft customer-facing updates about a patch, including release notes and replies from support about a reported bug.

Try each prompt three times under each description. For every run, keep the prompt, skill invocation, and final reply on one line in your notes. Count the invocations separately for each prompt. More hits on the support request would be promising. More hits on the rename request would be a cost. Three runs are enough to spot a case worth chasing, though a single changed answer carries little weight.

Read the replies, too. “This patch puts each exported CSV record on its own line” fits the diff. “We shipped a fix this morning” invents a release. If the trace shows the skill ran and the agent still promises a rollout, you have a concrete reason to revise the instructions inside the file. Rewriting its description again would address a different problem.

For the last trial, ask someone in support to phrase the request as they actually would. Keep that wording out of both descriptions. It’s the closest test here to what happens on Monday morning, when nobody remembers what you named the skill.

Join the discussion

Share a question, correction, or something you learned. Sign in with GitHub to comment.

Comments powered by Giscus. You can also browse the discussions on GitHub.