Skip to content

Add agent-authored metadata to the Reviews skill - #11

Merged
rafael-archastro merged 1 commit into
mainfrom
feat/reviews-skill
Sep 10, 2026
Merged

rafael-archastro merged 1 commit into
mainfrom
feat/reviews-skill

Conversation

@rafael-archastro

@rafael-archastro rafael-archastro commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Review on ArchCode

Problem and author intent

The Reviews skill from #8 tells an agent to run reviews local and, for metadata, to have model access and an ArchDev session. ArchDev v0.36.0 (firstlanding #13031) added a path where the agent authors the risk/theme annotations itself: reviews manifest prints the frozen change set, reviews local --metadata <file> serves an archdev.review-metadata.v1 file with no login or model, and reviews publish --metadata accepts the same file. The skill should teach that path so a coding agent can review local changes for a human with nothing configured.

What changed

  • skills/reviews/references/agent-metadata.md: the four-step agent workflow (freeze and read the manifest, write the file, serve it, publish it) with the rules the CLI enforces: every annotation overlaps a changed range on its side, every path in changes[] carries at least one entry, diff_sha256 fences the file to the reviewed diff, and publish rejects a mismatched fence before pushing. Publish caveats are stated: title and body only for a PR it creates, no replacement of annotations already stored for a head.
  • SKILL.md: one intent-table row and a pointer in "Prepare local review" for when there is no session or key, or the human wants the agent's judgment.
  • Bootstrap (.sh and .ps1) also probes reviews manifest --help, so an older CLI upgrades.
  • tests/reviews-skill.sh checks the new reference is packaged and the fixture CLI answers the new probe.
  • README: one sentence in the Reviews install section.

Testing

  • bash tests/reviews-skill.sh passes: both install scopes through npx skills add, then cold, reused, outdated, and failed-installer bootstrap against a fixture CLI.
  • Real bootstrap with no archdev on PATH installed v0.36.0 from the official installer and passed the reviews manifest probe, so the upgrade check is satisfied by the current release.

Follow-up

Once this merges, remove the temporary overlay .agents/skills/archdev-reviews from firstlanding; it carries this same reference with a worktree bootstrap for pre-release dogfooding.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SeihH5jFmVuB1GsaNkFhpA

An agent with no model key and no ArchDev session can now freeze the diff
with `reviews manifest`, write archdev.review-metadata.v1 annotations, and
serve them with `reviews local --metadata`, or publish the same file with
`reviews publish --metadata`. The reference explains the file, the rules
the CLI enforces (changed-range overlap, per-path coverage, the
diff_sha256 fence), and the publish caveats. Bootstrap now also probes
`reviews manifest --help`, which ArchDev v0.36.0 provides.
@rafael-archastro
rafael-archastro merged commit b89879d into main Sep 10, 2026
10 checks passed
@rafael-archastro
rafael-archastro deleted the feat/reviews-skill branch September 10, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant