Skip to content

Add plugin scaffolding, catalog automation and documentation - #1

Merged
Samarth2001 merged 3 commits into
mainfrom
claude/plugin-repo-generalization-xxm4pf
Oct 2, 2026
Merged

Samarth2001 merged 3 commits into
mainfrom
claude/plugin-repo-generalization-xxm4pf

Conversation

@Samarth2001

Copy link
Copy Markdown
Owner

This PR establishes infrastructure for managing the plugin marketplace, adds tooling to scaffold new plugins, and documents plugin development practices.

Summary

Introduces a shared library for marketplace operations, a script to create new plugins from templates, automated catalog generation, and comprehensive guides for plugin development. This enables consistent plugin structure and reduces manual work when adding new plugins.

Key changes

  • scripts/lib.mts: Shared library for reading/writing marketplace entries, validating catalog consistency, and generating the README catalog table. Includes catalogErrors() to detect drift between folders, marketplace entries, manifests and changelogs.

  • scripts/new-plugin.mts: Scaffolds a new plugin with manifest, README, CHANGELOG and chosen components (skill, agent, hooks, mcp, mod). Automatically adds the marketplace entry and regenerates the catalog.

  • scripts/catalog.mts: Validates catalog consistency and regenerates the README table from marketplace.json. Runs in CI with --check to fail on drift.

  • Templates (templates/plugin/, templates/skill/, templates/agent/, templates/mod/): Boilerplate for new plugins with variable substitution for name, description, display name and date.

  • Documentation:

    • docs/plugin-anatomy.md: Explains each component type, standard layout, manifest fields, paths/variables and rules of thumb
    • docs/writing-skills.md: Guide to writing effective SKILL.md files with frontmatter reference and habits
    • CLAUDE.md: Internal rules for the repo (marketplace structure, versioning, validation)
  • Skills (.claude/.claude/skills/): new-plugin and release skills to guide plugin creation and releases within Claude Code sessions.

  • CI/CD:

    • Updated validate.yml to run catalog consistency check and generalized asset validation
    • Updated release.yml to validate manifest exists before checking version
    • Updated check-version-bumps.sh to clarify that skills/agents (Markdown) count as shipped changes
  • Contributing guide: Rewritten to emphasize conventions, self-contained plugins, standard layout, and links to new documentation.

  • Root README: Restructured with quick start, generated catalog table, guides section, and clearer layout explanation.

  • Pull request template: Added checklist for version bumps, validation and catalog consistency.

Notable implementation details

  • formatJson() preserves hand-written style: single-line arrays/objects that fit within 100 chars and contain no nested structures
  • Catalog validation checks folder/entry/manifest/changelog agreement in one pass
  • Template variables use {{name}} syntax with simple string replacement
  • The catalog table is generated from marketplace entries, keeping the root README neutral
  • Asset scripts moved to scripts/assets/ subdirectory for organization

https://claude.ai/code/session_01QUAMWfzunRcEdkbuZNaq9F

Samarth2001 and others added 3 commits October 2, 2026 07:39
A plugin with no manifest at the base commit made git show fail under
pipefail, so the check exited 128 on any push that added a plugin. Only a
plugin's README and CHANGELOG are exempt now: SKILL.md and agent files are
Markdown that ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUAMWfzunRcEdkbuZNaq9F
- scripts/catalog.mts checks that plugin folders, marketplace entries,
  manifests and changelogs agree, and generates the README catalog table.
- scripts/new-plugin.mts scaffolds a plugin from templates/ with any of
  skill, agent, hooks, mcp and mod, and registers it.
- Asset generators live in scripts/assets/; CI runs each with --check.
- Release notes read the marketplace name instead of hardcoding it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUAMWfzunRcEdkbuZNaq9F
The root README describes the marketplace as a whole, with a generated
catalog instead of a buddy hero. Adds docs/ guides on plugin anatomy and
writing skills, a CLAUDE.md with repo rules, /new-plugin and /release
project skills, and a PR template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUAMWfzunRcEdkbuZNaq9F
@Samarth2001
Samarth2001 merged commit 0496d93 into main Oct 2, 2026
2 checks passed
@Samarth2001
Samarth2001 deleted the claude/plugin-repo-generalization-xxm4pf branch October 4, 2026 00:59
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