skills-auditor

Change approval for agent skills: who changed what, and is it still what we approved?

Painted illustration of a long thermal paper strip unrolling across a dark desk, held by four people's hands, with one faded red approval stamp.

Command output in this post comes from a test run on 2026-11-30. Paths were shortened or changed to match the examples, and long output was trimmed.

A shared agent skill is a file of instructions that runs with each teammate’s permissions. When someone edits skills/pr-review/SKILL.md, every agent that loads it starts behaving differently. A week later, someone usually asks one of two questions. Who changed the review skill? Is the copy on my machine the one we agreed on?

Git answers the first question for the source file. It does not answer the second, because the copy an agent reads lives in .claude/skills, .cursor/skills or .agents/skills, on each person’s machine, and it can differ from the repository.

This post describes a workflow that answers both, using the managed lifecycle in skills-auditor, an MIT-licensed CLI (skills-audit). The commands were run against the 0.13.0 release.

The workflow in one paragraph

A teammate changes the skill in a pull request, and the team reviews the text as usual. Before the new version reaches anyone’s agent, skills-auditor writes an install plan that names the exact bytes, the target folder and the before and after state. Someone approves that plan by its ID. Apply records a grant and a receipt. From then on, verify and preflight check that the installed bytes still match what was approved, and an edit voids the approval instead of inheriting it.

Step 1: review the source in a pull request

Keep the team’s skills in a repository, for example under skills/. A change to a skill is an ordinary pull request. Reviewers read the diff of SKILL.md and any scripts or templates the skill uses. This is the step where a person decides whether the new instructions are acceptable. skills-auditor does not judge whether a skill’s behavior is safe; its own docs say that no operation proves semantic safety.

Step 2: plan the install, and review the plan

After the pull request merges, plan the installation from the reviewed checkout:

skills-audit lifecycle --project-root /work/team-skills plan install \
  --source /work/team-skills/skills/pr-review \
  --target "$HOME/.claude/skills/pr-review" \
  --plan-out /work/plans/pr-review.install.json
[PLAN] install 65489d6da8247bf2065e22fd07cacfeeac5ab84a5f16bfc4555368b7110d6f4e
Review sources, targets and before/after states; approval must name this exact plan ID.

The plan file is JSON. The fields a reviewer should read:

Saving a plan does not change anything. It does not move a pointer, activate a version or grant approval.

Step 3: approve the exact plan ID

Applying requires the plan ID, so the approval is tied to the file that was reviewed:

skills-audit lifecycle --project-root /work/team-skills apply /work/plans/pr-review.install.json \
  --approve-plan-id 65489d6da8247bf2065e22fd07cacfeeac5ab84a5f16bfc4555368b7110d6f4e \
  --actor alice

Apply copies the source into a content-addressed snapshot under .skills-auditor-local/lifecycle/store/sha256/<hash>/tree, removes its write bits, and points ~/.claude/skills/pr-review at it. It then records three things you can read back later:

skills-audit lifecycle --project-root /work/team-skills inspect grant 63fd0d123bba4248b25e7fed307afb90
{
  "actor": "alice",
  "approved_at": "2026-11-30T07:13:37.787591Z",
  "plan_id": "65489d6da8247bf2065e22fd07cacfeeac5ab84a5f16bfc4555368b7110d6f4e",
  "target": "/home/alice/.claude/skills/pr-review",
  "version_id": "6b55d26aa32bef4d08ef6c0a16528d0d3a2aec41bd9995ec678c974bca888541",
  "installation_generation": 1
}

The grant says which plan was approved, for which version, at which target, and when. The receipt records the completed transaction. The actor value comes from --actor. It is a local attribution label, not an authenticated identity, and plan and receipt IDs are checksums, not signatures. If you need to prove who approved a change, that proof still comes from your code review system. The grant links the installed bytes to the plan that review approved.

Step 4: edits no longer leak into agents

With a plain copy or symlink, editing the skill changes what agents read immediately. With a managed install, the agent reads the snapshot. After apply, we added a line to the source SKILL.md and checked again:

$ skills-audit lifecycle --project-root /work/team-skills verify 98240ba84c2a4ff797413a861f0cbf9d
[OK] approval=valid
Reasons: none

The installed version did not change, so the approval is still valid. To ship the edit, the team plans an update, reviews it and approves its new plan ID. That gives the same record as the first install.

Step 5: drift voids approval, and restoring bytes does not bring it back

Read-only bits prevent accidental writes, not deliberate ones. To test that, we made the snapshot writable and appended a line to the installed SKILL.md:

$ skills-audit lifecycle --project-root /work/team-skills verify 98240ba84c2a4ff797413a861f0cbf9d
[BLOCK] approval=invalidated
Reasons: snapshot_tree, approval_invalidated

The verification is stored as a denial. According to the managed lifecycle docs, restoring the original bytes does not renew the grant, and an explicit revocation survives later successful checks. Getting back to a valid state takes a new reviewed plan and a new approval. A tampered copy cannot become trusted again just because someone put the old file back.

Run preflight right before an agent uses the skill. It refreshes the verification and returns proceed, warn or block:

skills-audit lifecycle --project-root /work/team-skills preflight 98240ba84c2a4ff797413a861f0cbf9d

Preflight is a point-in-time check. It blocks use only in hosts that call it; nothing is enforced automatically inside an agent or editor that does not integrate the preflight step.

Answering “who changed what”

With this workflow, each question has a record behind it:

Question Where the answer is
Who proposed the new text, and who reviewed it? The pull request and Git history
What exactly was going to be installed, and where? The saved plan file (plan_id, hashes, before/after)
When was it approved, for which target, under which label? lifecycle inspect grant <id>
What was actually applied? lifecycle inspect receipt <id> and inspect transaction <id>
Is the installed copy still the approved one? lifecycle verify <installation-id> or preflight

When something goes wrong, lifecycle incidents lists recorded failures, investigate pages through the evidence, and append-note adds a reviewer’s note with an --actor label. Those records stay local to the project. Incident packets leave out prompt bodies and environment dumps.

Across several repositories

If the same skills go into several projects, commit a workspace declaration to each repository. It pins each source to a Git commit, selects a baseline and lists per-project overrides. Changing the pinned commit is then a pull request too. skills-audit workspace plan, workspace apply --approve-plan-id and workspace verify run the same review, approve and verify cycle across projects. Since 0.13.0, a team can also run a private catalog. Each machine enrolls with its own revocable credential and installs pinned releases through a reviewed plan.

Limits to know before you adopt it


We are opening a small number of team pilots: one source across your repos, pinned versions, a private catalog and verify on every machine. There is no price yet and nothing to pay. If your team already argues about which version of a skill is running, start a team pilot on b.skillsauditor.dev.