TOOLS & SKILLS
The AI Feedback Loop Nobody Builds 🛠️
Your AI writes a draft. You make your final edits. You publish. Then the lesson dies and next week it makes the same mistake. This is the setup that makes your.
A skill that gets smarter every single time you use it. That is the whole idea, and almost nobody sets it up.
Here is the loop in one sentence. Your skill writes a draft. You make your final edits and publish. Then you hand the published version back and make it compare the two, pull out the edits that will happen again, and write those rules straight into its own instructions. Not a memory it might forget. The actual file that tells it how to work.
That last part is the whole thing. Your final edit is the answer key, and the lesson gets written into the skill file after every publish. The one piece of evidence that cannot be argued with is what you decided was good enough to ship.
The Loop, At A Glance
1. Your skill runs and hands you a draft.
2. You make your final edits and publish.
3. The agent compares its draft to your final version.
4. The edits that will repeat get written into SKILL.md.
5. The next run starts smarter. Then it all repeats.
↻ Every publish makes the instructions better
I run this on the email agent for my clothing brand. It drafts, my team edits, we send, then the agent reads the sent version against its draft. Two months in, the drafts need a lot less work. You do not need a brand to do this. It works on a newsletter, client proposals, product descriptions, job posts, or ad copy, anything a person edits before it goes out.
Two Folders And One File
Two minutes, once. Then you never think about it again.
The file. A skill is a plain text file named SKILL.md in its own folder, either personal (~/.claude/skills/newsletter/SKILL.md, available everywhere) or in the project (.claude/skills/newsletter/SKILL.md, shared with your team). The one fact that makes a per-publish loop possible: Claude Code watches that folder live, so an edited skill takes effect in the session you are already in. No restart. Never built one? 3 Ways To Build A Claude Skill is the two-minute first build.
The folders. Make two of them in your project: drafts/ and published/. Every piece gets the same filename in both, a date then a short slug, so drafts/2026-07-19-welcome-email.md and later published/2026-07-19-welcome-email.md. Matching names is how the agent finds the pair without you explaining anything.
Three Moves, Every Publish
The moment the agent finishes, that draft has to land in a file, not the chat and not the doc you are about to edit. You cannot compare two versions if you only kept one. The whole value of this loop is the gap between what the machine produced and what you decided to ship, so save the raw output, typos and all.
Add one line to the bottom of your skill file so it happens on its own: "When you finish a draft, save it to drafts/ as YYYY-MM-DD-slug.md before showing it to me."
After it goes out, copy the exact final version, including any last-second change someone made in the email tool at 11pm, and paste it into published/ with the matching filename. Thirty seconds, no clever tooling.
One prompt does the rest. It reads both versions, lists what changed, keeps only the edits that will happen again, and writes them into your skill file as rules, after you approve them. Paste it, swap the two file paths, and change nothing else the first few times you run it.
You will get three to eight rules on the first run, and most will be right, because your edits are more consistent than you think. Because the skills folder is watched live, the very next thing you ask it to write already follows the new rules. No restart, no waiting for Monday. That thirty seconds of reading the proposed rules and cutting the ones you disagree with is the only quality control this loop has, so do not skip it.
Keep The File From Getting Fat
This is the part that quietly kills these loops, and nobody warns you. Month one it is beautiful: six sharp rules, better drafts. Month four you have sixty rules, some say the same thing twice, two flatly contradict each other, and the output is worse than it was at rule fifteen. A learning loop with no pruning is just a hoarding loop.
Four habits keep it lean, and you need all four:
- Cap it. Write the limit into the file itself: "Learned Rules never exceeds 15 items." When rule sixteen wants in, something has to leave. The cap is what forces the agent to decide what actually matters.
- Merge duplicates. "Keep the intro short" and "cut the opening to two sentences" are one rule wearing two outfits. Merge into the sharper wording and keep the newer date.
- Delete rules that stopped firing. If a pattern has not shown up in the last 8 diffs, it is done. Delete it. If it comes back, the loop catches it again. That is the whole point of a loop.
- Date every rule and prune on a schedule. Every 10 publishes, or monthly, whichever comes first. Nobody prunes voluntarily, so put it on the calendar.
One prompt runs the whole prune pass:
Run It Once This Week
You do not need a new project. You need one thing you already publish on a schedule and already edit before it goes out.
- Pick the piece you edit the hardest. Newsletter, proposals, product descriptions, ad copy. Whatever you rewrite the most is where the most learning is sitting.
- Make drafts/ and published/, and copy the skill out of any plugin into ~/.claude/skills/ so updates cannot wipe it.
- Save the next draft before anyone edits it. This is the step you will forget. Set a reminder if you have to.
- Publish like normal, then paste the final version into published/ with the matching filename.
- Run the engine prompt, cut the rules you disagree with, and let it write the rest into the file. Do it four times before you judge it. One run tells you nothing.
The reason almost nobody has this running is not that it is hard. It is that the edit feels finished the moment you hit publish. It is not. Every edit you make is training data, and right now you are throwing all of it away. For the theory underneath it, Loop Engineering covers what a loop actually is.
The real unlock of AI agents is not full autonomy, but human-in-the-loop systems design. Structure your agent inputs with explicit constraints, negative prompts, and automated test checkpoints. When building tools, keep token consumption lean by caching system prompts and isolating tasks into specialized sub-agents.