I've been a software engineer for years. Separating raw data from derived data felt like an obvious architectural decision to me. Then I started building Agent Skills.
I recently built two open-source skills for a personal problem: I own more games and books than I have time to enjoy.
- Game Curator learns from my Steam library, wishlist, reviews, and gaming experiences.
- Book Curator learns from my Goodreads history and reading experiences.
Both skills can maintain persistent memory in two human-readable Markdown files:
feedback.md — an append-only history of what the user has said about their experiences.profile.md — the agent's current understanding of the user's preferences, with references to the supporting feedback entries.
The idea was to separate evidence from inference. The profile could evolve over time without losing the original feedback that informed it.
Pretty reasonable, right?
Then, while dogfooding Book Curator in Claude Code, I gave it feedback on five books.
Claude Code's auto mode allowed the edit to profile.md but denied the edit to feedback.md.
I ended up with a profile referencing five feedback entries that didn't exist.
Claude noticed the inconsistency, reported it, and stopped. I temporarily switched to accept-edits, let it finish the update, and switched back. The screenshot shows what actually happened.
This was a small incident, but it made me reconsider the architecture.
In traditional software, I'd probably use a database transaction to guarantee consistency. But here, the agent is responsible for updating the files, and its individual tool calls can be independently approved or denied.
The agent's permission boundaries are part of the architecture.
There was already an instruction to save feedback before updating the profile. Claude didn't follow that ordering correctly. I could reinforce the instruction, or I could reconsider whether these really need to be two separate files.
I'm now considering a single memory.md with separate sections for synthesized preferences and feedback history. The logical separation would remain, but the physical separation might be unnecessary.
A single file wouldn't magically guarantee atomicity, of course. The agent would still need to make the related changes in one update. But it might reduce the number of things that need to go right.
This is part of a broader pattern I've noticed while developing these skills with Claude Code.
For Steam data collection, I ended up writing dedicated collectors because agents weren't reliably handling lazy loading, pagination, and validation.
For Audible, I experimented with letting Codex design its own data format and documentation. A fresh Claude Code session was able to interpret the saved data and combine it with my other reading records without a dedicated Audible importer.
Sometimes deterministic code is necessary. Sometimes it's unnecessary complexity. And sometimes a perfectly reasonable traditional software architecture introduces new problems when an AI agent is responsible for executing it.
The two skills are free and open source (MIT), and work with both Claude Code and Codex:
https://github.com/CatChen/curator-skills
I'm still actively dogfooding them and haven't implemented the single-file memory design yet.
I'm curious whether other people building Agent Skills have encountered similar issues. Have Claude Code's permission model or tool execution behavior ever made you reconsider how you structure your skills or persistent data?