nextjs-pr-workflow-skill

nextjs-pr-workflow-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 36 tokens per session (2,914 once invoked), scanned C, original, Apache-2.0.

A pull-request workflow for Next.js projects. A pull request is a proposed code change that is reviewed before it is merged into a shared codebase.

In plain words
What is it for?
Use it to find the target branch, run linting, builds, and tests, identify JIRA or issue references, format the pull request title, and create the pull request.
Why use it?
It checks code quality before review and prevents a pull request from being created when the required tests fail.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Good fit Use it to find the target branch, run linting, builds, and tests, identify JIRA or issue references, format the pull request title, and create the pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/nextjs-pr-workflow-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add darellchua2/opencode-config-template --skill nextjs-pr-workflow-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nextjs-pr-workflow-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/nextjs-pr-workflow-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/nextjs-pr-workflow-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/nextjs-pr-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/nextjs-pr-workflow-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,914 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.02914
Opus 5 $0.00018 $0.01457
Sonnet 5 $0.00007 $0.00583
Haiku 4.5 $0.00004 $0.00291

Measured 4d ago against content hash 1ec2b5e8c7a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade C, and why

nextjs-pr-workflow-skill scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

When protocol is enabled, this skill defaults to `Iterations: 10` (sufficient for typical single-pass workflows). Override with `Iterations: N` for specific tasks. Safety blocks: `.env`, `node_modules/`, `rm -rf`, `git p
opencode_app/.opencode/skills/nextjs-pr-workflow-skill/SKILL.md · 299 lines

How it starts

The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.

What I do

I implement a complete Next.js PR creation workflow by extending framework skills:

  1. Identify Target Branch: Determine which branch PR should merge into (configurable, not hardcoded)
  2. Run Next.js Quality Checks: Execute npm run lint, npm run build, and npm run test using linting-workflow framework
  3. Identify Tracking: Check for JIRA tickets or git issue references
  4. Create Pull Request: Use pr-creation-workflow framework with git-semantic-commits for PR title formatting
  5. Add JIRA Comments: Use git-issue-updater framework for consistent JIRA ticket updates

Critical Requirement: All tests MUST pass (npm run test) before PR creation. This is a blocking step.

When to use me

Use this workflow when:

  • Completing implementation of a PLAN.md file
  • Finishing new feature implementation in Next.js apps
  • Ready to create a PR after development is complete
  • Need to ensure code quality before submitting changes
  • Following the standard practice of linting, building, and testing before PR
  • All tests must pass before PR can be created (blocking requirement)

Governance: This skill follows semantic-release-convention for PR titles, version labels, merge strategy, and release tags (inherited via pr-creation-workflow).

Frameworks Used:

  • pr-creation-workflow: For PR creation logic and quality checks
  • linting-workflow: For Next.js linting (npm run lint)
  • jira-git-integration: For JIRA ticket management and comments

Prerequisites

  • Next.js project with npm run lint, npm run build, and npm run test scripts
  • Git repository initialized and on a feature branch
  • Active Atlassian/JIRA account (if using JIRA integration)
  • Write access to repository
  • PLAN.md file with implementation details
  • All existing tests must pass before using this workflow

Steps

Step 1: Check Project Structure

Verify this is a Next.js project and check for required scripts:

# Verify package.json exists and has required scripts
jq -r '.scripts.lint and .scripts.build and .scripts.test' package.json

Read the full file on GitHub · 299 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 299 lines · 36 tokens per session scan C 1ec2b5e8c7a5

Subscribe to this mod's changes

nextjs-pr-workflow-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 36 tokens to every session and 2,914 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.

react/react · 42 tokens

prowler-changelog

Manages changelog entries for Prowler components following keepachangelog.com format. Trigger: When creating PRs, adding changelog entries, or working with any CHANGELOG.md file in ui/, api/, mcpserver/, or prowler/.

prowler-cloud/prowler · 55 tokens

writing-clearly-and-concisely

Apply whenever writing content a human will read — emails, documents, reports, documentation, messages, UI copy, commit messages, explanations, or any other prose. Applies Strunk's timeless rules for clearer, stronger, more professional writing.

JanDeDobbeleer/oh-my-posh · 55 tokens

verify-behavior

Verify or reproduce visible product behavior by driving the real UI with pi-computer-use's checked tools, requiring verified expect postconditions and durable state evidence for meaningful UI flows. Use when triage needs visual reproduction, implementation needs behavioral proof, review needs interactive confirmation…

nicknisi/dotfiles · 68 tokens

qa

QA test your code changes by reading your git diff, choosing the right validation path for frontend/browser and backend changes, and reporting pass/fail with evidence.

Skyvern-AI/skyvern · 33 tokens

finalize

Pre-ship gate — runs detector, verifies brief and tokens, applies the 10-pass finish bar, ranks findings by feedback hierarchy. Use when the user wants to ship, merge, or finalize a surface and needs a verdict (READY / NOT READY / BLOCKED) before committing. Invoke when the user asks for finalize on their UI, or…

educlopez/ui-craft · 85 tokens