Agent Native

contrib-pr

This skill guides external contributors through opening a pull request against prisma-next by following the project's contribution guidelines.

by PrismaOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (prisma)

Agents
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, claude.ai and API
License
Apache-2.0 (permissive)
Pin
55458c4pinned Oct 9, 2026
Context cost
about 2,200 tokenswhen the skill loads
GitHub stars
415on prisma/prisma-next
Scripts
None found

What it does

“Open a high-quality external contributor PR against prisma-next. Use when the user is an outside contributor (not a Prisma maintainer) and wants to submit a change as a pull request from a fork. Encodes the contribution flow from CONTRIBUTING.md so the resulting PR passes review on the first round.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill guides external contributors through opening a pull request against prisma-next by following the project's contribution guidelines. It ensures the PR passes initial review by verifying scope, running required test suites, signing commits with DCO, and formatting the title and body correctly.

When to use it

  • Submitting a change as a PR from a contributor fork
  • Finalizing or polishing a contribution before opening a PR
  • Opening a PR for a single logical change to prisma-next
  • Ensuring a PR meets maintainer expectations on first review

When not to

  • User is a Prisma maintainer with internal Linear access; use create-pr instead
  • Fixing security vulnerabilities; use Private Vulnerability Reporting instead
  • Change is incomplete or spans multiple unrelated concerns

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add prisma/prisma-next --skill contrib-pr

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install prisma/prisma-next contrib-pr@55458c441d2cf452028c22eed21370447720840a

Installs the commit we checked (55458c4).

Copy by hand

Download the folder at 55458c4 and put it in .claude/skills/contrib-pr for Claude Code and in .agents/skills/contrib-pr for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at 55458c4

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "contrib-pr" by Prisma.

Source, pinned to commit 55458c441d2cf452028c22eed21370447720840a:
https://github.com/prisma/prisma-next/tree/55458c441d2cf452028c22eed21370447720840a/skills-contrib/contrib-pr

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/contrib-pr/ for Claude Code and .agents/skills/contrib-pr/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/prisma/contrib-pr

SKILL.md at the pin

---
name: contrib-pr
description: Open a high-quality external contributor PR against prisma-next. Use when the user is an outside contributor (not a Prisma maintainer) and wants to submit a change as a pull request from a fork. Encodes the contribution flow from CONTRIBUTING.md so the resulting PR passes review on the first round.
---

# Contributor PR skill (external)

This skill is for **external contributors** to `prisma/prisma-next` who are using an LLM-based agent to author or finalize a PR. It is intentionally separate from the maintainer-facing `create-pr` skill: it does not depend on Linear access, internal plan/spec documents, or any private context. It encodes the expectations laid out in [`CONTRIBUTING.md`](../../../CONTRIBUTING.md) as a runnable workflow, so the PR you produce matches the shape maintainers expect on the first review round.

If the user is a maintainer with access to internal Linear tickets, use `create-pr` instead.

## When to use

Trigger this skill when the user says any of:

- "Open a PR for this contribution"
- "Submit this as a PR to prisma-next"
- "I'm contributing to prisma-next, finalize my change"
- "Help me get this PR ready for review"

If the user has clearly already followed the contribution flow and just needs the `gh pr create` invocation, you may skip directly to step 5.

## Operating principle

Verify the **result**, not the authorship. The maintainers do not ask whether the change was AI-assisted; they verify that:

1. It is scoped to one logical concern.
2. The right test suite is green.
3. The PR explains *why* the change exists, not file-by-file *what*.
4. Every commit is signed off (DCO).
5. The PR title is in conventional-commit form.

This skill is a pit of success — there is no CI gate that checks you used it. Following it is the cheapest way to land the PR cleanly.

## Workflow

### Step 1 — Read the contribution contract

Before doing anything else, read the project's contribution docs:

1. Read [`CONTRIBUTING.md`](../../../CONTRIBUTING.md). This is the source of truth for setup, the test command set, DCO signoff, and PR expectations.
2. Read [`CODE_OF_CONDUCT.md`](../../../CODE_OF_CONDUCT.md) so you understand what's expected in your interactions on the PR thread.
3. Skim [`SECURITY.md`](../../../SECURITY.md). If your change is fixing a security issue, **stop and use the Private Vulnerability Reporting flow instead** — do not open a public PR.

If anything in `CONTRIBUTING.md` contradicts what this skill says, `CONTRIBUTING.md` wins.

### Step 2 — Confirm the change is in the right shape

Before opening the PR, check:

- **One logical change.** If the diff includes unrelated cleanup or "while I was here" fixes, ask the user whether to split them into separate PRs. Mixed-scope PRs almost always trigger a "please split this" review comment.
- **Substantive change?** If the change is more than a typo / doc fix / obvious bug fix, ask the user whether they opened a tracking issue first per `CONTRIBUTING.md`. If not, recommend they do — maintainers will respond within 5 business days, and a half-day issue conversation can prevent a one-week PR rewrite when the design direction differs from what they expect.
- **Tests updated.** If the change has any behavioural delta and there are no test changes in the diff, push back on the user before opening the PR. "Why aren't there tests?" is the most common reason a PR gets bounced.
- **No backward-compat shims.** prisma-next is pre-1.0; if the change renames or removes an API, the call sites should be updated, not aliased.

### Step 3 — Run the right test suites

Run the suite that matches the scope of the change. From `CONTRIBUTING.md`:

| Change scope                       | Command                              |
| ---------------------------------- | ------------------------------------ |
| Type errors only                   | `pnpm typecheck`                     |
| Lint / formatting                  | `pnpm lint`                          |
| Unit tests in `packages/**`        | `pnpm test:packages`                 |
| Examples                           | `pnpm test:examples`                 |
| Postgres / SQLite e2e              | `pnpm test:e2e`                      |
| Database integration               | `pnpm test:integration`              |
| Vite plugin / Cloudflare Worker    | `pnpm test:vite-plugin` *(needs Docker)* |
| Everything                         | `pnpm test:all`                      |

The minimum bar before opening any PR is:

```bash
pnpm typecheck && pnpm lint && pnpm test:packages
```

If any of these fail, fix the failure (or push back on the user about whether the change is actually right) before continuing. **Do not open a PR with a known-failing test or lint error.** It will be closed for that reason alone.

If the change touches the SQL runtime, also run `pnpm test:integration` and/or `pnpm test:e2e`. If you can't tell whether the change touches the SQL runtime, run them anyway — they're self-contained (PGlite + mongodb-memory-server, no external DB needed).

### Step 4 — Sign off the commits (DCO)

Every commit on the PR must have a `Signed-off-by:` trailer matching the commit author's name + email. Without this, the DCO status check blocks the PR from merging.

Check current commits:

```bash
git log origin/main..HEAD --format='%h %an <%ae>%n%b%n---'
```

For each commit, verify the body contains a `Signed-off-by:` line whose name + email match `%an <%ae>`.

If any commit is missing the trailer:

- **Last commit only**: `git commit --amend --signoff --no-edit`
- **Multiple commits**: `git rebase --signoff origin/main`

After amending or rebasing, force-push to the contributor's fork: `git push --force-with-lease`.

### Step 5 — Compose the PR title and body

#### Title

Conventional commit form, lowercase after the colon, no trailing period, under ~60 chars:

```text
type(scope): concise lowercase description
```

`type` is one of: `feat`, `fix`, `chore`, `docs`, `refactor`, `test`. Pick the one that best describes the change. `scope` is the primary affected package or layer (`sql-runtime`, `postgres-adapter`, `contract`, `cli`, `framework`, `mongo-orm`, etc.). If the change spans many packages, pick the one most central to the change.

Examples:
- `feat(sql-orm-client): support computed includes`
- `fix(postgres-adapter): handle null in jsonb columns`
- `docs(contributing): clarify pnpm install steps`

The PR title flows directly into the auto-generated GitHub Release notes when the version that contains it is published — pick a title a downstream user would understand.

#### Body

Fill in the [pull request template](../../../.github/PULL_REQUEST_TEMPLATE.md) sections in order:

- **Linked issue**: `Fixes #N` / `Refs #N`. If no issue exists because the change is small, write `n/a — small change`.
- **Summary**: one or two sentences focused on *why*, not file-by-file *what*. "Adds X because Y was broken" rather than "Adds X function in foo.ts and modifies bar.ts".
- **Testing performed**: list the actual `pnpm test:*` commands you ran. If you ran a manual repro (e.g. against the demo), say so.
- **Checklist**: confirm DCO signoff, scope, tests, conventional title.
- **Notes for the reviewer** (optional): alternative approaches you considered, follow-ups intentionally deferred, anything you want the reviewer to focus on.

Do **not** include an "AI-authored" disclosure. Maintainers do not require it; it adds noise.

### Step 6 — Confirm with the user, then push and open

1. Show the user the proposed title + body in full and ask for confirmation.
2. After confirmation, push to the contributor's fork (`git push -u origin HEAD` from the contributor's branch in the fork).
3. Open the PR:

```bash
gh pr create --title "the title" --body "$(cat <<'EOF'
the body
EOF
)"
```

   The `gh` CLI must be authenticated against the contributor's GitHub account, not against `prisma/prisma-next` directly. The PR will open against `prisma:main` from the contributor's fork.

4. Return the PR URL.

5. Tell the user: a maintainer from `@prisma/ORM-TS-Maintain` will be auto-assigned via CODEOWNERS and is committed to a 5-business-day response window. If the change is large or controversial, expect a review thread before merge.

## Don'ts

- **Don't** rename `CONTRIBUTING.md` rules. If they've changed since this skill was written, follow the file, not the skill.
- **Don't** force a maintainer's email into a `Signed-off-by:` trailer. The DCO sign-off must be the contributor's own name and email matching the commit author.
- **Don't** open the PR with a failing local check. If `pnpm test:packages` is red, fix it before pushing.
- **Don't** include AI-disclosure boilerplate in the PR body, an "intent artifact" attachment, or any prompt logs. The project does not ask for these.
- **Don't** open public issues or PRs for security vulnerabilities. Use Private Vulnerability Reporting per `SECURITY.md`.
- **Don't** ask the user to share secrets, npm tokens, or anything they wouldn't put in a public commit.

From prisma/prisma-next at 55458c4, shown as plain text under its license: Apache-2.0 (permissive). The license text is in LICENSE.

View SKILL.md on GitHub at 55458c4

Files

1 file, 9.1 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at 55458c4
All 44 skills from Prisma

More from Prisma

  • prisma-8

    This skill helps agents work with Prisma 8, a contract-first data layer for TypeScript projects.

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 3.5K tokens · pinned 6 days ago

  • adr-review

    This skill reviews Architecture Decision Records (ADRs) from a fresh perspective, identifying clarity and structural issues, then rewrites them for future…

    Claude Code, Codex, Cursor +4 · about 590 tokens · pinned 6 days ago

  • ast-visitor-pattern

    This skill teaches agents to use the visitor pattern with frozen subclasses for discriminated unions that need multiple dispatch sites.

    Claude Code, Codex, Cursor +4 · about 710 tokens · pinned 6 days ago

  • bumping-biome

    Updates the biome code formatter package to a specified version using pnpm, renames configuration files to biome.jsonc format, updates schema references, and…

    Claude Code, Codex, Cursor +4 · about 290 tokens · pinned 6 days ago

  • create-pr

    This skill creates a GitHub pull request with a Linear-ticket-prefixed title and a decision-led narrative description for the prisma-next repository.

    Claude Code, Codex, Cursor +4 · about 4.3K tokens · pinned 6 days ago

  • draft-release-notes

    Authors release notes for stable Prisma Next releases by enumerating merged PRs since the previous stable tag, resolving Linear issue references to…

    Claude Code, Codex, Cursor +4 · about 4.9K tokens · pinned 6 days ago

All Coding workflow skills
  • prisma-next-build

    This skill integrates Prisma Next's contract-emit into the Vite build system via the @prisma-next/vite-plugin-contract-emit plugin, automatically re-emitting…

    by PrismaOfficial publisher

    Claude Code, Codex, Cursor +4 · about 2.3K tokens · pinned 6 days ago

  • prisma-next-extension-upgrade

    Upgrades Prisma Next dependencies in an extension package across one or more minor versions.

    by PrismaOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 2K tokens · pinned 6 days ago

  • prisma-next-feedback

    Routes bug reports, feature requests, and team Q&A to the appropriate Prisma Next channel.

    by PrismaOfficial publisher

    Claude Code, Codex, Cursor +4 · about 4.2K tokens · pinned 6 days ago

  • prisma-next-upgrade

    Upgrades Prisma Next dependencies in a user app from one version to the next, applying code translations from per-transition instructions, validating with the…

    by PrismaOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 1.9K tokens · pinned 6 days ago

  • psl-ast-layers

    This skill teaches agents how to correctly use the three-layer syntax tree produced by the PSL parser: the green tree for internal storage, the red tree for…

    by PrismaOfficial publisher

    Claude Code, Codex, Cursor +4 · about 2.2K tokens · pinned 6 days ago

  • record-upgrade-instructions

    Records upgrade instructions in published skill packages whenever a PR makes breaking changes to Prisma Next that require downstream users or extension…

    by PrismaOfficial publisher

    Claude Code, Codex, Cursor +4 · about 4.2K tokens · pinned 6 days ago

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use