- Home
- Skills
- Code Quality & Review
- Agent Change Record: Audit Trail & Rollback for Agents
More screenshots
Works with the AI Agents you already use
Agent Change Record: Audit Trail & Rollback for Agents
by Louis Philip
Reverted attempts go to git stash, so nothing is ever deleted.
$12
Agent Change Record: Audit Trail & Rollback for Agents
Example session with this skill installed
Report generation is too slow, make it at least 10x faster. Only touch app/report.py. Benchmark is python3 bench.py, tests are python3 -m unittest -q. I need a change record I can attach to the ticket.
- Read your context and instructions
- Compiled the agent change record
Summary
build_report now runs the benchmark in 1-2 ms, down from 335-520 ms, and all tests pass. Three attempts: one reverted, two kept. Only app/report.py changed.
Change record
Goal: Make build_report at least 10x faster (check: python3 bench.py x3 median; unittest green)
Baseline: record-baseline-20261128-175923 (2098e20)
Operator: Maya (agent-assisted)
Starting result: bench x3: 335 ms 344 ms 520 ms; unittest: OK
Initial scope: app/report.py
| # | when | outcome | the one change | evidence | files | ref |
|---|---|---|---|---|---|---|
| 1 | 2026-11-28 17:59 | reverted | Sort orders by id before the loop | bench x3: 420 ms 430 ms 508 ms (no gain); unittest: FAILED (failures=1) - customer order no longer first-seen | app/report.py | stash: record-attempt-1 |
| 2 | 2026-11-28 17:59 | kept | Track seen order ids in a set instead of rebuilding a list per order | bench x3: 38 ms 38 ms 39 ms; unittest: OK. Not covered by check: ids must now be hashable (approved) | app/report.py | 055d67a |
| 3 | 2026-11-28 17:59 | kept | Accumulate per-customer totals in a dict instead of scanning a list | bench x3: 1 ms 1 ms 2 ms; unittest: OK | app/report.py | 6686960 |
Approvals
| when | approved by | what |
|---|---|---|
| 2026-11-28 17:59 | Maya | yes, go ahead - report.py only |
| 2026-11-28 17:59 | Maya | fine, order ids are always ints - hashable-only is ok |
Final scope: app/report.py
Net change since baseline
app/report.py | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
Closed: 2026-11-28 17:59 at 6686960
Noticed but not touched
bench.pytimes a single run, so numbers are noisy; each measurement above is three runs.- The tests do not cover duplicate order ids.
How to go back
Baseline tag: record-baseline-20261128-175923. I have not reset anything. The reverted attempt is still in git stash as record-attempt-1.
Left behind
The baseline tag, one stashed attempt, local exclude entries, and .change-record/change-record.md (not committed). Say the word and I will copy the record into the ticket or remove the leftovers.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
After an agent fixes or optimizes your code, what usually remains is one diff. Nobody can tell what state the work started from, what was tried and dropped, what was measured, who agreed to the parts that went beyond the original ask, or how to get back to the version that worked.
What this skill does
It makes the session leave a change record you can attach to a pull request or ticket, plus a baseline tag to roll back to.
The record contains:
- Goal, operator, baseline tag and commit
- Initial scope and final scope
- Starting result of the agreed check
- One row per attempt: the one change, kept or reverted, evidence, files, commit or stash reference
- Approvals: who, what in their words, when
- Net diff since baseline
How it works
A small helper script (bash + git, nothing else) gives the agent seven commands: start, measured, approve, check, keep, revert, finish. Kept attempts become commits. Reverted attempts go to git stash, so nothing is ever deleted. Changes are classed as standard, normal or emergency, following ITIL change enablement, so it is clear which ones needed your explicit yes.
A reference file maps each part of the record to the question a reviewer or auditor asks, and to ITIL terms.
What it does not do
It does not make an agent more careful or more correct. It makes what happened provable, reviewable and reversible.
The record is a plain file written on your machine. It is not tamper-proof, and the approver's name is as typed, not authenticated. The commits and the baseline tag are the strongest evidence.
Who it is for
- Teams that review or audit agent-made changes
- Anyone handing agent work over to someone else
- Developers who want a safe way back to the last good version
When not to use it
Throwaway spikes, one-line fixes you are watching, repos without git, or when you do not want extra commits and a tag.
Requires bash and git, a repo with at least one commit, and a clean working tree to start. Creates commits, a baseline tag and stash entries. The record is a plain file: not tamper-proof, and approver names are as typed, not authenticated. It does not make an agent more careful; an agent can skip the script. Tested with Claude on small repos only.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 6 days ago
- Software
Git
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.