Skip to content

Conversation

@dviersel
Copy link

This refactor transforms the repository from a single ast-grep skill into a full-fledged Claude Code plugin marketplace architecture.

Changes

New Marketplace Structure

  • Added .claude-plugin/marketplace.json to define this repo as a plugin marketplace with registry of available plugins
  • Restructured ast-grep as a proper plugin under plugins/ast-grep/

Plugin Architecture

  • Created plugins/ast-grep/.claude-plugin/plugin.json with plugin manifest (name, version, description, author, repository, homepage)
  • Moved skill files to plugins/ast-grep/skills/ast-grep/ following the standard Claude Code plugin directory structure
  • Preserved all skill content: SKILL.md and references/rule_reference.md

Documentation Updates

  • Rewrote README.md as marketplace documentation with installation instructions (/plugin marketplace add, /plugin install)
  • Added CLAUDE.md with development guidance for the marketplace structure
  • Documented how to add new plugins to the marketplace

Removed

  • Deleted old flat structure (ast-grep/ at root level)
  • Removed ast-grep.zip archive
  • Cleaned up logs directory

Installation

Users can now install via:

/plugin marketplace add github:dylan/claude-skills-marketplace
/plugin install ast-grep@claude-skills-marketplace

This architecture enables easy addition of future plugins while maintaining the ast-grep skill functionality.

This refactor transforms the repository from a single ast-grep skill into a
full-fledged Claude Code plugin marketplace architecture.

## Changes

### New Marketplace Structure
- Added `.claude-plugin/marketplace.json` to define this repo as a plugin
  marketplace with registry of available plugins
- Restructured ast-grep as a proper plugin under `plugins/ast-grep/`

### Plugin Architecture
- Created `plugins/ast-grep/.claude-plugin/plugin.json` with plugin manifest
  (name, version, description, author, repository, homepage)
- Moved skill files to `plugins/ast-grep/skills/ast-grep/` following the
  standard Claude Code plugin directory structure
- Preserved all skill content: SKILL.md and references/rule_reference.md

### Documentation Updates
- Rewrote README.md as marketplace documentation with installation
  instructions (`/plugin marketplace add`, `/plugin install`)
- Added CLAUDE.md with development guidance for the marketplace structure
- Documented how to add new plugins to the marketplace

### Removed
- Deleted old flat structure (ast-grep/ at root level)
- Removed ast-grep.zip archive
- Cleaned up logs directory

## Installation

Users can now install via:
```
/plugin marketplace add github:dylan/claude-skills-marketplace
/plugin install ast-grep@claude-skills-marketplace
```

This architecture enables easy addition of future plugins while maintaining
the ast-grep skill functionality.
Copy link
Member

@HerringtonDarkholme HerringtonDarkholme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please clean up this pull request according to other PRs

@HerringtonDarkholme
Copy link
Member

hi this is solved by 2bec15c

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.

2 participants