Skip to content

Commit b2f18f2

Browse files
committed
feat: add switch-provider plugin, readme, contributing, ci review
1 parent 2c27dc5 commit b2f18f2

14 files changed

Lines changed: 469 additions & 314 deletions

File tree

.github/workflows/review-pr.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Review PR
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
review:
9+
name: Claude Code Review
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pull-requests: write
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v6
18+
19+
- name: Run Claude Code Review
20+
uses: anthropics/claude-code-action@v1
21+
with:
22+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

CLAUDE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Claude Code Community Marketplace
2+
3+
## PR Review Instructions
4+
5+
При review PR проверяй следующее:
6+
7+
### Обязательные проверки
8+
9+
1. **Структура плагина**: директория `plugins/<name>/` содержит `.claude-plugin/plugin.json` и `README.md`
10+
2. **plugin.json**: валидный JSON с обязательными полями (`name`, `version`, `description`, `author`)
11+
3. **marketplace.json**: запись добавлена с корректным `source` путём, нет дубликатов имён
12+
4. **Безопасность**: команды и хуки не содержат вредоносного кода, не крадут данные, не выполняют опасные операции
13+
5. **Полезность**: плагин решает реальную задачу, не является спамом или пустышкой
14+
15+
### Формат ответа
16+
17+
Используй один из статусов:
18+
- **APPROVE** — всё в порядке, можно мержить
19+
- **NEEDS_CHANGES** — есть замечания, нужны исправления (перечисли что именно)
20+
- **BLOCK** — критические проблемы безопасности или нарушения структуры
21+
22+
### Язык
23+
24+
Пиши review на русском языке.

CONTRIBUTING.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Contributing
2+
3+
## Adding a Plugin
4+
5+
### Plugin Structure
6+
7+
Your plugin must follow this structure:
8+
9+
```
10+
plugins/your-plugin/
11+
├── .claude-plugin/
12+
│ └── plugin.json # Required: plugin manifest
13+
├── commands/ # Slash commands (*.md)
14+
├── skills/ # Skills (optional)
15+
├── agents/ # Sub-agents (optional)
16+
├── hooks/ # Hooks (optional)
17+
└── README.md # Required: documentation
18+
```
19+
20+
### plugin.json
21+
22+
Minimum required fields:
23+
24+
```json
25+
{
26+
"name": "your-plugin",
27+
"version": "1.0.0",
28+
"description": "What your plugin does",
29+
"author": { "name": "your-github-username" },
30+
"license": "MIT"
31+
}
32+
```
33+
34+
### Steps
35+
36+
1. Fork this repository
37+
2. Create your plugin in `plugins/your-plugin/`
38+
3. Add your plugin entry to `.claude-plugin/marketplace.json`
39+
4. Ensure your plugin has a `README.md`
40+
5. Open a Pull Request
41+
42+
### PR Requirements
43+
44+
- `marketplace.json` includes your plugin entry with correct `source` path
45+
- `plugin.json` is valid JSON with required fields (`name`, `version`, `description`, `author`)
46+
- `README.md` exists and describes installation and usage
47+
- CI validation passes (`validate-plugins.yml`)
48+
49+
### What Gets Reviewed
50+
51+
PRs are automatically reviewed by CI and Claude. Checks include:
52+
53+
- Plugin structure and manifest validity
54+
- No duplicate plugin names in marketplace
55+
- Security review of commands and hooks
56+
- Plugin usefulness and quality

0 commit comments

Comments
 (0)