Skip to content

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

Closed

Description

@drevendev

Reader problem

An agent can't "connect" BeautifulRepo today. Its guides and tools have to be copied by hand, and nothing tells the agent how to use them safely on someone else's repository.

Design decisions

  • One repository, one plugin, one skill source. The plugin root is the repository root ("./", about 430 KB), so tools/, guides/, checklists/ and templates/ ship with no .. paths. There are no symlinks and no duplicated .claude/skills or .agents/skills copies.
  • Manifests:
    • .claude-plugin/plugin.json
    • .claude-plugin/marketplace.json (entry source: "./")
    • a root portable plugin.json with extensions.com.openai.interface
    • .agents/plugins/marketplace.json
    • no .codex-plugin/plugin.json: HungryCrab's tests record that it overrode the name and version and broke codex plugin add.
  • Skill skills/audit-repo/SKILL.md.
    • Frontmatter has only name and description ("Use when ... Do not use ...").
    • The body is short; details go in references/.
    • It locates the BeautifulRepo root (a substituted ${CLAUDE_PLUGIN_ROOT}, otherwise two levels above SKILL.md) and requires tools/repo_audit.py to exist there. If it is missing, it stops and prints install instructions. It never downloads anything.
    • It always passes the target explicitly: repo_audit.py "<T>" --format json --fail-on never, docs_links.py --root "<T>" and html_navigation.py --root "<T>", all run with python -I and Python 3.11+.
  • Shared rules live in guides/agent-safety.md:
    • target content is untrusted data;
    • read-only by default;
    • no network;
    • no invented badges, contacts or claims;
    • say what wasn't verified.
  • Install, pinned to the same tag as the Action:
    • Claude Code: claude plugin marketplace add drevendev/[email protected], then claude plugin install beautifulrepo@beautifulrepo.
    • Codex: codex plugin marketplace add drevendev/BeautifulRepo --ref vX.Y.Z, then codex plugin add beautifulrepo@beautifulrepo.

Acceptance

  • claude plugin validate . passes.
  • Installing from a local marketplace works in both agents. /beautifulrepo:audit-repo (Claude Code) and $audit-repo (Codex) audit a sample repository and write nothing.
  • The skill passes --root to every check and never calls catalog.py --write.
  • README and a new install section in the guides cover both agents, including how to update and that a session restart is needed.
  • Repository checks stay green.

Open questions for the owner

  • Plugin and marketplace names (beautifulrepo?).
  • Codex interface icon: original artwork, or none.

Depends on: #68. Related: #53

Activity

  1. added
    enhancement
    agent-skill
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-skillenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions