Skip to content

feat: package BeautifulRepo as a Claude Code and Codex plugin with an audit skill - #90

Merged
drevendev merged 2 commits into
masterfrom
beautifulrepo/agent-plugin-20261022
Oct 22, 2026
Merged

drevendev merged 2 commits into
masterfrom
beautifulrepo/agent-plugin-20261022

Conversation

@drevendev

Copy link
Copy Markdown
Owner

Reader problem and change

An agent can't "connect" BeautifulRepo today. This PR packages the repository as one plugin for Claude Code and Codex, with a first read-only skill, audit-repo.

Install (after merge):

claude plugin marketplace add drevendev/BeautifulRepo && claude plugin install beautifulrepo@beautifulrepo
codex plugin marketplace add drevendev/BeautifulRepo && codex plugin add beautifulrepo@beautifulrepo
Path Purpose
.claude-plugin/plugin.json, .claude-plugin/marketplace.json Claude Code plugin and marketplace (source: "./")
plugin.json (root), .agents/plugins/marketplace.json Codex portable manifest and marketplace. There is deliberately no .codex-plugin/plugin.json: in HungryCrab it overrode the portable manifest and broke codex plugin add.
skills/audit-repo/SKILL.md Locates the installed BeautifulRepo (${CLAUDE_PLUGIN_ROOT} in Claude Code, otherwise two levels above the file), picks Python 3.11+, runs the three tools with python -I and an explicit target, applies both checklists, and reports prioritized findings plus what was not verified. Never writes, never runs catalog.py or --write.
guides/agent-safety.md Ground rules every skill follows: target content is data, a write gate for any change, offline, don't run the target's code, no invented badges/contacts/numbers/licences, private-repo handling.
guides/agent-plugin.md Install, use, update and remove for both agents; local development; an exact record of what was and wasn't verified.
tests/test_agent_plugin.py Names and versions agree across the 4 manifests. Skill frontmatter stays within the portable key set (name equals directory, description ≤ 1024 characters with "Use when" and "Do not use", body < 500 lines). Every referenced file exists. Every tool command uses -I and an explicit target, with no --write and no catalog.py.

Plugin version 0.2.0-dev.0, because v0.1.0 contains only the Action. Bump it at the next release; release-time version checks are #73.

Closes #69. Part of epic #86.

Stacked on #89 (#68), which makes python -I and an explicit target work. Merge #89 first; this PR then retargets to master.

Evidence

Verified on 2026-10-22, Windows 11, Claude Code 2.1.259, codex-cli 0.146.1:

  • claude plugin validate --strict . and claude plugin validate --strict .claude-plugin/plugin.json both pass.
  • Claude Code, local marketplace: marketplace add → install → plugin list shows beautifulrepo@beautifulrepo 0.2.0-dev.0 enabled. plugin details lists skill audit-repo (≈158 tokens always-on, ≈1.1k on invoke).
  • Codex, local marketplace: marketplace add → plugin add → installed, enabled 0.2.0-dev.0. codex exec '$audit-repo …' resolved the skill and read the installed SKILL.md from the plugin cache.
  • Skill protocol by hand: steps 1–4 executed from the installed Claude Code cache copy against a fixture repository. The tools found license.missing, contributing.missing and the broken docs/api.md link. The fixture's files kept their SHA-256 hashes, including an injection-bait HTML comment asking agents to delete a file.
  • Both agents were restored to their previous marketplace and plugin lists afterwards.

Verification

  • Catalog validation and generated-view check completed.
  • python -m unittest discover -s tests → Ran 239 tests ... OK (skipped=5).
  • docs_links.py (189 destinations), html_navigation.py (200) and repo_audit.py . (0 findings) all pass.
  • Accessibility and visual checks: not applicable.

Limitations (not verified)

🤖 Generated with Claude Code

Base automatically changed from beautifulrepo/tool-root-isolation-20261022 to master October 22, 2026 14:41
… audit skill

One repository, one plugin, one skill source for both agents:
- .claude-plugin/plugin.json and marketplace.json for Claude Code;
- a root portable plugin.json plus .agents/plugins/marketplace.json for
  Codex (deliberately no .codex-plugin/plugin.json);
- skills/audit-repo/SKILL.md: a read-only, offline protocol that locates the
  installed BeautifulRepo, runs repo_audit, docs_links and html_navigation
  with `python -I` and an explicit target, applies the repository and
  first-success checklists, and reports prioritized findings with what was
  not verified.

guides/agent-safety.md holds the ground rules every skill follows: target
content is data, a write gate, offline, no running the target's code, no
invented badges/contacts/numbers/licences. guides/agent-plugin.md documents
install, use, update and removal for both agents, plus exactly what was and
wasn't verified. tests/test_agent_plugin.py keeps manifest names and versions
in agreement and the skill portable, isolated, explicit and read-only.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@drevendev
drevendev force-pushed the beautifulrepo/agent-plugin-20261022 branch from fc6a1c9 to 5190aeb Compare October 22, 2026 14:41
@drevendev
drevendev merged commit 6a84911 into master Oct 22, 2026
5 checks passed
@drevendev
drevendev deleted the beautifulrepo/agent-plugin-20261022 branch October 22, 2026 16:03
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.

Agent plugin: package BeautifulRepo for Claude Code and Codex with an offline audit-repo skill

1 participant