diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 0d32b9e..23fec2f 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -5,6 +5,9 @@ "name": "Mimi" }, "description": "Mimi's personal skill bundle covering life, soft, and tech skills.", + "allowCrossMarketplaceDependenciesOn": [ + "claude-plugins-official" + ], "plugins": [ { "name": "life-skills", @@ -29,6 +32,12 @@ "source": "./plugins/craft-skills", "description": "Bundled Skills for creative crafts: background removal, sprite cutting, animated stickers and glowing mascot PFPs.", "version": "1.0.0" + }, + { + "name": "code-skills", + "source": "./plugins/code-skills", + "description": "Bundled Skills for coding: pull request preparation and review, with Anthropic's code-review plugin as a dependency.", + "version": "1.0.0" } ] } diff --git a/README.md b/README.md index 9a97dbe..b92428f 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,20 @@ Claude Plugin Skill to assist a female's life. +## Installation + +```bash +claude plugin marketplace add whoamimi/plugin-mimi +claude plugin install @plugin-mimi +``` + +`code-skills` depends on Anthropic's `code-review` plugin. Add Anthropic's marketplace once before installing it, so the dependency can be installed automatically: + +```bash +claude plugin marketplace add anthropics/claude-plugins-official +claude plugin install code-skills@plugin-mimi +``` + ## Directory Overview @@ -21,6 +35,14 @@ Claude Plugin Skill to assist a female's life. ├── assets │   └── logo.png ├── plugins +│   ├── code-skills +│   │   ├── .claude-plugin +│   │   │   └── plugin.json +│   │   ├── assets +│   │   │   └── icon.png +│   │   └── skills +│   │   └── mimi-pr-review +│   │   └── SKILL.md │   ├── craft-skills │   │   ├── .claude-plugin │   │   │   └── plugin.json diff --git a/plugins/code-skills/.claude-plugin/plugin.json b/plugins/code-skills/.claude-plugin/plugin.json new file mode 100644 index 0000000..d40d401 --- /dev/null +++ b/plugins/code-skills/.claude-plugin/plugin.json @@ -0,0 +1,13 @@ +{ + "name": "code-skills", + "version": "1.0.0", + "description": "Mimi's coding skills: pull request preparation and review, built on Anthropic's code-review plugin.", + "author": { + "name": "Mimi" + }, + "icon": "./assets/icon.png", + "keywords": ["code-review", "pull-requests", "github"], + "dependencies": [ + { "name": "code-review", "marketplace": "claude-plugins-official" } + ] +} diff --git a/plugins/code-skills/assets/icon.png b/plugins/code-skills/assets/icon.png new file mode 100644 index 0000000..5826bee Binary files /dev/null and b/plugins/code-skills/assets/icon.png differ diff --git a/plugins/code-skills/skills/mimi-pr-review/SKILL.md b/plugins/code-skills/skills/mimi-pr-review/SKILL.md new file mode 100644 index 0000000..477cccc --- /dev/null +++ b/plugins/code-skills/skills/mimi-pr-review/SKILL.md @@ -0,0 +1,29 @@ +--- +name: mimi-pr-review +description: Prepare and review a GitHub pull request end to end — check the branch is ready, run Anthropic's multi-agent code review, then summarise and fix the findings. Use when the user asks to "review my PR", "check this branch before I merge", "is this PR ready", or wants a pre-merge review of their changes. +--- + +# PR Review + +This skill relies on the `code-review` plugin from `claude-plugins-official`, which `code-skills` installs as a dependency. It provides the `/code-review:code-review` command. + +## Prerequisites + +- The repository has a GitHub remote, and the current branch has an open pull request. +- The GitHub CLI is installed and authenticated (`gh auth status`). If it is not, tell the user to run `gh auth login` and stop. + +## Steps + +1. **Check the branch is ready** + - Run `git status` and `git log --oneline origin/..HEAD`; report uncommitted changes or unpushed commits. + - Run the repository's own fast checks (lint, format, type-check, unit tests) when they exist, and report failures before reviewing. +2. **Run the review** — invoke `/code-review:code-review`. It launches specialised review agents and keeps only high-confidence findings. +3. **Summarise** the findings for the user, most severe first: + - **[Severity] file:line** — the problem, and a concrete fix. + - Say plainly when the review found nothing. +4. **Fix on request** — apply only the fixes the user approves, re-run the checks from step 1, then commit with a clear message. + +## Rules + +- Never push, merge, or post comments on the pull request unless the user asks. +- Treat review findings as claims to verify against the code, not as orders; drop any you cannot reproduce and say why.