Engineering Small Prs logo

Engineering Small Prs

Organization
MiniMax-AI
engineering-small-prs

Use when planning, splitting, shrinking, or sequencing large features, refactors, migrations, or pull requests into small reviewable PRs or CLs. TRIGGER on "split this PR", "this diff is too large", "stacked PRs", "change sequence", "reviewable chunks", "migration plan", "how should I break this up?", or implementation scope too broad for one review. DO NOT TRIGGER for full code review, PR description writing, or tiny one-file edits that already form one self-contained change.

Overview

PublisherMiniMax-AI
Repositorymcode-stack
Skill nameengineering-small-prs
Stars
464
Forks
36
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by MiniMax-AI on GitHub. Read the source before you install it.

Installation

Install the Engineering Small Prs AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/engineering-small-prs
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MiniMax-AI/mcode-stack.git /tmp/mcode-stack
mkdir -p .claude/skills
cp -r /tmp/mcode-stack/stacks/ronny/skills/engineering-small-prs .claude/skills/engineering-small-prs
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Engineering Small Prs in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Engineering Small Prs on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Engineering Small Prs is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Engineering Small PRs

Small PRs are easier to review thoroughly, safer to merge, easier to roll back, and less likely to waste work if the direction changes. "Small" means conceptually focused and self-contained, not merely a low line count.

Adapted from Google Engineering Practices Documentation, especially "Small CLs." Source: https://google.github.io/eng-practices/review/developer/small-cls.html. License: CC-BY 3.0.

Definition of a Good Small PR

A good PR:

  • Makes one self-contained change.
  • Includes the tests needed to validate that change.
  • Leaves the system working after merge.
  • Gives reviewers enough context in the PR, description, existing code, or earlier reviewed PRs.
  • Is not so tiny that the behavior cannot be understood. A new API usually needs at least one usage in the same PR.
  • Separates large refactors from behavior changes unless the cleanup is very local.

Reviewers may reasonably reject a PR solely because it is too large to review well.

Splitting Workflow

  1. Name the final outcome in one sentence.
  2. List independent behavior changes, refactors, schema/config changes, tests, and docs.
  3. Identify dependencies that must land earlier.
  4. Choose split strategies from the section below.
  5. Build a merge sequence where every PR keeps the build green.
  6. Add context notes so reviewers understand how each PR fits into the larger work.
  7. For risky or unavoidable large changes, get reviewer consent before sending the PR.

Split Strategies

  • Preparatory tests first: add missing tests around existing behavior before risky refactors.
  • Refactor first: move, rename, extract, or simplify code without changing behavior.
  • Vertical slices: deliver one small user-visible or API-visible behavior end-to-end.
  • Horizontal slices: add shared interfaces, protocol definitions, or adapters only when paired with a real first usage in the same PR or a clearly linked dependent PR already under review.
  • File or owner groups: split files by reviewer expertise when the changes are otherwise self-contained.
  • Config separately: keep rollout configuration, experiments, or deployment wiring separate from code when rollback timing differs.
  • Generated or mechanical changes separately: isolate trusted automated rewrites from hand-written logic.
  • Deletions separately when useful: removing dead code can be a compact, easy-to-review PR.

Migration Safety

For schema, data, API, or infrastructure migrations, prefer an expand/contract sequence:

  1. Expand: add backward-compatible schema/API/config support without removing old behavior.
  2. Dual path: write or read both paths only when needed, with observability for divergence.
  3. Backfill: migrate existing data with progress tracking, retry behavior, and validation.
  4. Cut over: switch traffic or callers after validation proves both paths are safe.
  5. Contract: remove old schema, code paths, flags, and compatibility shims in a cleanup PR.

Each migration PR should state deployment order, rollback behavior, validation signal, and what must not happen until the next PR lands.

Output Template

markdown
## Goal
[Final outcome]

## Proposed PR Sequence
| # | PR | Purpose | Depends On | Tests | Reviewer Notes |
|---|----|---------|------------|-------|----------------|
| 1 | Add characterization tests for ... | Protect existing behavior before refactor | None | ... | ... |
| 2 | Extract ... without behavior change | Prepare smaller implementation | 1 | ... | ... |
| 3 | Implement ... vertical slice | User-visible behavior | 2 | ... | ... |

## Migration Safety
- Expand/contract phase:
- Backfill/validation:
- Observability:
- Rollback:

## Build Safety
- Each PR keeps:
- Rollback notes:

## Large-Change Risk
- What could not be split:
- Reviewer consent needed:

Heuristics

  • Prefer a PR that is smaller than you think necessary; reviewers rarely object to focused changes.
  • If a PR spreads a small logical change across many files, treat it as larger than the line count suggests.
  • If the reviewer needs substantial future context to understand the PR, the sequence is probably missing an earlier preparatory PR or a better description.
  • If you cannot split the PR, make it extra easy to review: stronger tests, clearer description, explicit risk, and prior reviewer agreement.

Common Mistakes

  • Mixing broad formatting changes with functional logic.
  • Landing a new abstraction with no real usage.
  • Creating a stacked sequence where intermediate PRs break the build.
  • Hiding risky behavior change inside a "refactor" PR.
  • Waiting for one PR to merge before starting the next when a safe stacked workflow is available.

Also published in agentara/skills (MIT, Copyright (c) 2026 agentara) by the same author. The content is adapted from Google Engineering Practices under CC-BY 3.0; see the source note above. Full notices: NOTICE.md.

Frequently asked questions

What does the Engineering Small Prs AI skill do?

Use when planning, splitting, shrinking, or sequencing large features, refactors, migrations, or pull requests into small reviewable PRs or CLs. TRIGGER on "split this PR", "this diff is too large", "stacked PRs", "change sequence", "reviewable chunks", "migration plan", "how should I break this up?", or implementation scope too broad for one review. DO NOT TRIGGER for full code review, PR description writing, or tiny one-file edits that already form one self-contained change.

Why use Engineering Small Prs on TypingMind?

Because you install it once and use it with any model. Engineering Small Prs is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Engineering Small Prs in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/MiniMax-AI/mcode-stack/tree/main/stacks/ronny/skills/engineering-small-prs. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Engineering Small Prs?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Engineering Small Prs?

As many as you like. As long as a model supports skills, you can use Engineering Small Prs with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Engineering Small Prs AI skill free?

Yes. It is published on GitHub by MiniMax-AI under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇