Writes the title, labels, reviewers and description of the merge request Kraft opens from a finished branch, following the repository's own templates and rules. Use when Kraft is about to open that merge request, after the work is done and reviewed locally.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Mr Metadata?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/itsomidkarami-mr-metadata)
---
name: mr-metadata
description: "Writes the title, labels, reviewers and description of the merge request Kraft opens from a finished branch, following the repository's own templates and rules. Use when Kraft is about to open that merge request, after the work is done and reviewed locally."
---
# Authoring the merge request's metadata
Kraft is about to open a merge request from your branch. Everything you write
here becomes the merge request itself: its title, its labels, who it asks to
review, and the description a reviewer reads before they read anything else. Write it
for the reviewer, not for Kraft. If a person has since edited the description on the
forge, Kraft keeps theirs and yours is not published.
The title is one line of at most 72 characters: Kraft cuts a longer one with an
ellipsis, and a clipped title can fail a repo's title check.
## Read the repo's conventions first, and obey them over anything here
- `.gitlab/merge_request_templates/*.md`, `.github/PULL_REQUEST_TEMPLATE.md`
(and `.github/PULL_REQUEST_TEMPLATE/*.md`; GitHub also takes
`pull_request_template.md` in any letter case, in the root, `docs/` or
`.github/`): if the project ships a template, fill *that*, section for section.
Put the answers listed under "What the description answers" under its sections;
if none fits one, add that answer to the closest section. Tick a checkbox only
for what you did or saw in this run; leave the rest unticked, and write N/A
under a section that doesn't apply.
- Any pull-request rules file your instructions point you to.
- `CONTRIBUTING.md` for stated title and description rules, **and for any
label CI requires**. Some projects fail a merge request that carries no
label of a given kind (a release or change-type label, say). If this one
does, you must pick one: its CONTRIBUTING, or the CI job that checks, is
where the choices are written down. Pick by what the diff does against each
label's definition there (`kraft view labels` carries descriptions), never
from habit: a wrong label mislabels what ships. If the one it requires isn't in
that list, or none fits, leave it out, finish `done_with_concerns` and say so.
If it states no label rule, there is none to satisfy: add no label. The same
goes for **a section the description must carry**: a project can fail a merge
request whose body lacks one (a removed-tests list, a changelog), and a
template may show it commented out, which does not make it optional. Look in
CONTRIBUTING, the whole template (comments included) and the CI job that reads
the body. If the repo ships a checker for the body, run it on your draft before
you finish.
- What the project already does: `git log --oneline -30` for the title pattern
(Conventional Commits or not), `kraft view merged --limit 20` for how merged
ones are titled and how a required label is spelled, and `kraft view labels`
for the project's existing label set.
## Then read the change, not the plan
The diff against the base branch (`git diff origin/<base>...HEAD`, where `<base>`
is the branch the work goes into: the repo's default unless the work item names
another; `kraft view diff` shows the same change), the spec, the plan, and the
local review findings. A description written from the spec
describes the change that was planned, not the one that was made.
## What the description answers, in this order
- **What** this introduces, in the repo's own terms -- files, functions,
behaviour.
- **Why** -- the problem being solved, inlined. This work item's spec and plan
are not committed: a reviewer cannot open them, so a link or a spec id is
not an answer.
- **How** -- the approach, and the alternatives rejected, if a reviewer would
otherwise ask "why not X".
- **Evidence** -- the commands run and what they printed. Test counts, lint,
typecheck. Not "tests pass". Quote results you saw in this item's documents
or logs, or from a command you ran now; a reviewer trusts this block, so
never write a result you didn't see.
## Rules
- Do not advocate for approval. You are not selling the change.
- Do not restate the work item title as the description.
- Do not invent a reviewer, an assignee or a label. Empty is correct unless the
repo names one. Use only labels in `kraft view labels`: GitHub refuses one the
project doesn't have, and GitLab creates it without a word. `CODEOWNERS` is not
a reviewer list: the forge handles code owners itself, and a forge can refuse to
ask a merge request's own author.
- Three lines is a fine description for a three-line diff.
- Scope deliberately left out belongs in the description -- it is most of
what gets rejected.
- Do not hard-wrap a paragraph at some fixed column. GitHub and GitLab render
a single `\n` inside a paragraph as a line break, not a space -- unlike a
terminal or an editor, they don't reflow it back into prose. Write each
paragraph as one unwrapped line (or let it wrap in your editor without
inserting real newlines); use a blank line only where you mean an actual
paragraph break.
## Before you finish
Check that every label the project's rules require is in `labels` and exists in
its label list, that every section they require is in the description (and the
repo's body checker, if it has one, passes on it), and that the description describes
`git diff origin/<base>...HEAD`, the change that was made, not the plan.