К основному содержанию
плагин CX Codex

jiachen — плагин для Claude Code: что делает и как установить

Плагин jiachen для Claude Code проверяет ветки и PR через MCode Review. Запускается по просьбе агента или в CI GitHub и GitLab; блокирующие замечания требуют доказанного пути сбоя.

MIT ★ 741 обновлён 2026-11-11

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add MiniMax-AI/mcode-stack
/plugin install jiachen@mcode-stack
Открыть на GitHub

Что делает jiachen

jiachen проверяет изменения относительно целевой ветки и требует для каждого замечания файл и строку. Блокирующий вывод проходит отдельную проверку на опровержение. Вердикт выносит скрипт ci/core/verdict.mjs: неполная проверка изменений не получит одобрения. Обсуждения сохраняются между отправками изменений, а повторно проверяются затронутые файлы.

В сессии агента pr-review использует её модель и ничего не публикует. В CI нужны файл рабочего процесса с закреплённым коммитом плагина, MCODE_REVIEW_API_KEY и MCODE_REVIEW_BASE_URL; для GitLab ещё MCODE_REVIEW_GITLAB_TOKEN. По умолчанию CI запускает MiniMax-M3.1-Flash через MiniMax Code CLI. Правила из .mcode-review.json и .mcode-review.md CI читает из общего предка веток, поэтому PR не может переписать собственные критерии проверки.

В набор входят подготовка описания PR и настройка CI. Скилл pr-review-tuning проверяет предложения по изменению правил на прошлых PR и ждёт одобрения. Есть и отдельные скиллы для поиска повторяющихся ручных шагов при работе с агентами и подготовки постов с изображениями для Xiaohongshu и коротких вертикальных видео.

Какие задачи решает

  • Проверить ветку относительно целевой и обосновать найденные дефекты
  • Ограничить проверку безопасностью и правами доступа
  • Применять одинаковые правила проверки локально и в CI
  • Составить описание PR с проверками и планом отката
  • Пересмотреть правила по истории PR и проверить предложенные изменения

Примеры запросов агенту

  • Проверь текущую ветку с помощью pr-review и покажи замечания с доказательствами.
  • Проверь PR 123 через pr-review, ограничившись безопасностью и правами доступа.
  • Запусти pr-review-tuning для PR за прошлую неделю и предложи изменения правил на одобрение.

Как установить jiachen

Через маркетплейс плагинов

/plugin marketplace add MiniMax-AI/mcode-stack
/plugin install jiachen@mcode-stack

По шагам, с командами для каждой платформы: Плагины Claude Code: маркетплейсы, установка и как собрать свой

Вопросы о jiachen

Как установить jiachen в Claude Code?

Сначала добавляется маркетплейс командой /plugin marketplace add MiniMax-AI/mcode-stack, затем устанавливается плагин командой /plugin install jiachen@mcode-stack.

Что делает jiachen?

Главная часть плагина, MCode Review, проверяет ветки и PR с доказательствами для замечаний; окончательный вердикт определяет скрипт. В набор также входят подготовка описания PR, настройка CI и пересмотр правил по истории проверок.

Что нужно для работы jiachen?

Локальная проверка использует модель текущей сессии агента в рабочей копии репозитория. Для CI нужны файл рабочего процесса с закреплённым коммитом плагина, ключ MCODE_REVIEW_API_KEY и адрес API в MCODE_REVIEW_BASE_URL; GitLab также требует MCODE_REVIEW_GITLAB_TOKEN. По умолчанию CI использует MiniMax Code CLI с моделью MiniMax-M3.1-Flash; модель можно сменить через ci/config/models.json на доступную через выбранный API.

Исходный текст

jiachen · MIT
# jiachen

<p align="center">
  <img src="docs/pr-review-overview.png" alt="MCode Review: the same review rules in your agent and in GitHub or GitLab CI, a verdict decided by a script, and a weekly loop that tunes the rules" width="100%">
</p>

The stack of Jiachen, an engineer on MiniMax Code. Its centerpiece is
**MCode Review**, the PR reviewer our team runs on its own merge requests,
published with everything it needs to run on yours. Two smaller skills come
along: one that keeps lifting me out of the agent loop, and one that turns
notes into posts and short videos.

## MCode Review: PR review that has to prove its findings

Getting a model to comment on a diff is easy. Getting a reviewer that people
still read after the hundredth PR is not: it has to be right when it blocks,
stay quiet when it has nothing, and stop asking what was already answered.
MCode Review is built around that.

- **A finding is a claim, and claims need evidence.** Every finding carries a
  severity (P0 to P3) and an evidence level. No file and line, no finding. To
  block, it needs a traced failure path, and a second, separate pass tries to
  refute it first.
- **A script, not a model, decides the verdict.** `pass`, `request changes`
  or `needs a person` comes from fixed rules in
  [`ci/core/verdict.mjs`](ci/core/verdict.mjs), not from how sure a model
  sounds. A round where part of the change went unreviewed never passes.
- **Threads are the memory.** Each finding or question is one thread. Resolve
  it and it stays dismissed; fix the code and the bot closes it, but only
  after the direction that raised it has looked at that file again. It never
  asks a question that is already in a thread.
- **It reviews what changed.** Results are kept per file by a fingerprint of
  that file's net diff: a clean rebase costs nothing, and a push re-reviews
  only the files it touched.
- **Depth scales with the PR.** Small PRs get one pass. Large ones get five
  directions in parallel: behavior, contracts and data, security and
  permissions, cross-feature impact, duplication.
- **Your repository's rules, protected.** Risk paths go in
  `.mcode-review.json` and known pitfalls in `.mcode-review.md`, in your own
  repository. CI reads both from the merge base, like `AGENTS.md`, so a PR
  cannot rewrite the rules that review it.
- **It knows when to stop.** Three blocking rounds in a row turn into "needs
  a person": the argument goes to people instead of two agents taking turns.
- **It tunes itself, and you sign off.** `pr-review-tuning` measures the
  reviewer on your own PRs, proposes at most three rule changes, backtests
  them on past PRs with known bugs, and changes nothing until you approve.

## Two ways to use it

**1. In your agent, before you ask anyone.** No setup: install the stack (see
[Install](#install)) and, in a checkout, say:

- "Review this branch with pr-review", or "Review PR 123 with pr-review". It
  works with GitHub pull requests and GitLab merge requests: it fetches the PR
  head, diffs it against its target and reports blocking findings, questions
  for a person and suggestions.
- "Review it with pr-review, security and permissions only" for chosen
  directions.
- "Draft the PR description with pr-description".

It uses your own session's model, posts nothing, and applies your
repository's `.mcode-review.json` and `.mcode-review.md` when they exist.

**2. In CI, on every PR, for the whole team.** One workflow file, pinned to a
commit of this repository.

- **GitHub Actions.** Copy [`ci/github/mcode-review.yml`](ci/github/mcode-review.yml)
  to `.github/workflows/mcode-review.yml`, put a commit of this repository
  in its `MCODE_REVIEW_PLUGIN_REF`, add the secret `MCODE_REVIEW_API_KEY`
  and the variable `MCODE_REVIEW_BASE_URL` (for example
  `https://api.minimax.io/anthropic/v1`), and open a PR.
- **GitLab CI.** Copy [`ci/gitlab/review.gitlab-ci.yml`](ci/gitlab/review.gitlab-ci.yml)
  to `.gitlab/mcode-review.gitlab-ci.yml`, paste the job in
  [`ci/gitlab/dispatch.gitlab-ci.yml`](ci/gitlab/dispatch.gitlab-ci.yml) into
  your `.gitlab-ci.yml` with the same commit, set `MCODE_REVIEW_API_KEY`,
  `MCODE_REVIEW_BASE_URL` and `MCODE_REVIEW_GITLAB_TOKEN`, and open a merge
  request.

Or let your agent do it: "Set up MCode Review on this repository with
pr-review-ci". Both scenarios run the same `pr-review` rules, so a branch your
agent reviewed is judged the same way in CI.

Then, once a week if you like: "Run pr-review-tuning on last week's PRs".

## What a review looks like

The bot keeps one summary comment per PR up to date:

> **MCode Review: 🔧 Changes requested** (shadow phase: comments only, does not block merging)
>
> 1 blocking, 1 for a person, 2 suggestions.
>
> Reviewed `4f2c9e1a7b`, round 2, tier L, 14 files kept from the previous round.
>
> **Changes needed**
> 1. **[P1·defect] A retried payment is charged twice after a gateway timeout** (F-3c91a2, behavior) `src/billing/charge.ts:88`
>
> **For a person**
> - **Does the new refund worker start in every environment, or only where its queue exists?** (new this round)
>
> **Suggestions**
> 1. **[P2·maintainability] `formatAmount` copies the rounding rule of `money.ts`** (F-91be07, duplication) `src/billing/format.ts:12`
> 2. **[P2·defect] An empty coupon list skips the minimum-amount check** (F-0a4f3d, general) `src/cart/total.ts:41`

Each of those is also a thread on the PR, anchored on the line when it can be,
with the failure path, a suggestion and whether the verifier confirmed it.
Answer in the thread; resolve it to dismiss it. Set `MCODE_REVIEW_LANGUAGE` to
`zh` and everything the bot posts is in Simplified Chinese.

Out of the box it runs `MiniMax-M3.1-Flash` through the MiniMax Code CLI;
[`ci/config/models.json`](ci/config/models.json) takes any model your
endpoint serves.

| Skill | What it does |
| --- | --- |
| [`pr-review`](skills/pr-review/SKILL.md) | Reviews a branch or a PR (GitHub or GitLab) against its target with the severity scale, the evidence ladder and one checklist per direction. CI runs the same skill. |
| [`pr-description`](skills/pr-description/SKILL.md) | Drafts or checks a PR description: background, changes, behavior changes, out of scope, verification, rollback, not done, related. |
| [`pr-review-ci`](skills/pr-review-ci/SKILL.md) | Connects a repository to the CI review on GitHub Actions or GitLab CI, upgrades or rolls back the pinned commit, and changes rules, models, language or the quiz. |
| [`pr-review-tuning`](skills/pr-review-tuning/SKILL.md) | The weekly self-tuning loop: measure the reviewer on your PRs, find noise and misses, propose at most three rule changes, backtest them, re-check the numbers independently, and wait for your approval. |
| [`pr-quiz`](skills/pr-quiz/SKILL.md) | Rules for the optional author quiz: a few plain-language questions on why the change works and how it fails. CI uses it. |

How it decides, every setting, the security model and development notes:
[`docs/pr-review.md`](docs/pr-review.md).

## Also in this stack

| Skill | What it does |
| --- | --- |
| [`lifting-loops`](skills/lifting-loops/SKILL.md) | Find the loops where you keep acting as a manual step for your agents (retrying, judging output, approving, carrying context, starting the same task by hand) and turn each one into a concrete fix: delete a stale rule, change a skill or `AGENTS.md`, add a script, a skill or a scheduled task. Reads local MiniMax Code, Claude Code and Codex sessions; keeps its ledger in a gitignored `private/` folder. |
| [`making-content`](skills/making-content/SKILL.md) | Rewrite an AI-sounding Chinese draft in a restrained voice, make a Xiaohongshu (小红书) image post from scratch, or turn material into a 60–180 s vertical video with real sources, voice-over and captions. |

How these fit into a working day: [`WORKFLOW.md`](WORKFLOW.md).

## Install

In Claude Code, one command installs this stack. In a shell:

```bash
claude plugin install jiachen --marketplace MiniMax-AI/mcode-stack
```

Inside a session:

```bash
/plugin install jiachen --marketplace MiniMax-AI/mcode-stack
```

Older Claude Code can add the marketplace first, then install:

```bash
/plugin marketplace add MiniMax-AI/mcode-stack
/plugin install jiachen@mcode-stack
```

In Codex, add the marketplace, then install from the Plugins Directory or the CLI:

```bash
codex plugin marketplace add MiniMax-AI/mcode-stack
codex plugin add jiachen@mcode-stack
```

In MiniMax Code, copy this whole directory into the local plugin directory
shown by `mcode plugin marketplace list`, or copy single skills into
`~/.agents/skills/`. See the [repository README](../../README.md#quick-start).

## Requirements

- MCode Review, local: `git`; `gh` or `glab` are used when installed, to
  find a PR's target branch. CI: GitHub Actions or GitLab CI runners that can
  run Node 22 and reach github.com, the npm registry and your model endpoint.
  `pr-review-tuning` needs Node 22 and a token that can read your PRs.
- `lifting-loops`: Python 3, standard library only.
- `making-content`: text rewriting needs nothing. Video needs Python 3 with
  `pip install -r skills/making-content/requirements.txt`, Playwright's
  Chromium, `ffmpeg` and a CJK font; see
  [`video-pipeline.md`](skills/making-content/references/video-pipeline.md).
  A cloned voice is optional and needs the user's own Volcengine key.

Personal data stays local: `making-content` reads before/after samples from a
gitignored `test-cases/` folder, `lifting-loops` writes everything it learns
about you to a gitignored `private/` folder, and `pr-review-tuning` keeps its
weekly data in a working folder you keep out of git.

## Origin

MCode Review started as the review bot our team runs on its own merge
requests; this is its public edition, released under MIT, with our internal
rule packs replaced by your repository's own `.mcode-review.json` and
`.mcode-review.md`.

`lifting-loops` and `making-content` are maintained in
[yujiachen-y/dotfiles](https://github.com/yujiachen-y/dotfiles/tree/main/agents/skills), where changes land
first; this stack carries a copy with personal examples replaced by neutral
ones, released under MIT. The dotfiles repository has a few more skills (for
example `making-flashcards` for Anki and `review-skill` for auditing skills)
and its own marketplace for Claude Code and Codex:

```bash
/plugin marketplace add yujiachen-y/dotfiles      # Claude Code
npx skills add yujiachen-y/dotfiles --skill <name>
```

© Jiachen (MiniMax Code team) · MIT · MiniMax-AI/mcode-stack

Похожие плагины

Все плагины по теме «Код-ревью и рефакторинг» →
debate-review amElnagdy Скилл debate-review для Claude Code запускает ревью PR, MR или локальных изменений с участием двух моделей. Он собирает замечания и публикует итоговые комментарии либо печатает результат. CX Codex +1 705установок shepherd chrisbanes Скилл shepherd отслеживает открытые pull request и merge request, разбирает замечания ревьюеров и падения CI, а также готовит правки к пушу. CX Codex +1 1 400установок verify-and-ship cyrusagents Скилл verify-and-ship проводит изменения через проверку критериев задачи, тесты, обновление changelog, коммит и создание pull request. CX Codex +1 888установок om-followup-issue-from-pr open-mercato Скилл om-followup-issue-from-pr для Claude Code превращает ссылку на PR или комментарий из ревью в задачу трекера. Фиксирует правки после ревью как issue. CX Codex +1 3 700установок greploop greptileai Скилл greploop запускает проверку через Greptile, исправляет замечания бота и пушит код до высшего балла. Помогает довести до идеала PR в GitHub, MR в GitLab или список в Perforce. CX Codex +1 3 100установок check-pr greptileai Скилл check-pr проверяет pull request в GitHub, merge request в GitLab или changelist в Perforce на упавшие тесты и незакрытые замечания ревью. Пригодится перед отправкой изменений в основную ветку. CX Codex +1 1 500установок

Из того же набора27

Весь набор →
quiz.en Промпт quiz.en для Claude Code генерирует опросник для автора pull request в пайплайне MCode Review. Проверяет понимание краевых сценариев и логики изменений без тестов и правок кода. CX Codex GP ChatGPT ★ 741звёзд репо lens Промпт lens для Claude Code проверяет pull request по выбранной линзе и правилам MCode Review. Он возвращает находки и вопросы для человека в JSON. CX Codex GP ChatGPT ★ 741звёзд репо youfang Плагин youfang для Claude Code превращает схемы архитектуры и процессов в интерактивные HTML-презентации с эффектом Magic Move. Генерирует один автономный файл с плавными переходами блоков. CX Codex ★ 741звёзд репо req-tpm Плагин req-tpm для Claude Code ведёт требования от сбора до проверки результата. Агент помогает зафиксировать ожидаемый эффект, подготовить решение и отслеживать ход работы. CX Codex ★ 741звёзд репо ronny Плагин ronny для Claude Code включает скиллы для ревью кода, работы с агентами и проверки их результатов. Он подключается к запросам на ревью изменений, делегирование задач и аудит рабочих процессов агента. CX Codex ★ 741звёзд репо handoff-doc Скилл handoff-doc для Claude Code фиксирует контекст задачи в отдельный файл перед сбросом сессии или передачей работы. Документ помогает продолжить процесс без чтения всей истории чата. CX Codex +1 ★ 741звёзд репо review-capacity-check Скилл review-capacity-check для Claude Code проверяет очередь агентских результатов перед новым запуском. Он запускается перед параллельной сессией и на еженедельном разборе. CX Codex +1 ★ 741звёзд репо taste-to-checks Скилл taste-to-checks для Claude Code превращает повторяющиеся замечания к коду в тесты, линтеры, хуки, шаги CI или правила проекта. Он срабатывает после повторного промаха в ревью. CX Codex +1 ★ 741звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой