pr-creation-workflow-skill

pr-creation-workflow-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 32 tokens per session (5,830 once invoked), scanned A, original, Apache-2.0.

A workflow for creating a pull request by detecting the project type, running suitable quality checks, linking tracking issues, and preparing the request details.

In plain words
What is it for?
Use it to create pull requests with configurable target branches, linting, builds, tests, type checks, JIRA or Git issue links, and image attachments.
Why use it?
It collects the checks and project-tracking steps needed before asking others to review code.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: positional $N argument; mentions OpenCode.

Good fit Use it to create pull requests with configurable target branches, linting, builds, tests, type checks, JIRA or Git issue links, and image attachments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/pr-creation-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 pr-creation-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 pr-creation-workflow-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pr-creation-workflow-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/pr-creation-workflow-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/pr-creation-workflow-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/pr-creation-workflow-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,830 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00032 $0.05830
Opus 5 $0.00016 $0.02915
Sonnet 5 $0.00006 $0.01166
Haiku 4.5 $0.00003 $0.00583

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

Security

Grade A, and why

pr-creation-workflow-skill scanned grade A 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

if curl -s -o /dev/null -w "%{http_code}" "$image_path" | grep -q "200"; then
opencode_app/.opencode/skills/pr-creation-workflow-skill/SKILL.md · 657 lines

How it starts

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

What I do

I provide a generic PR creation workflow:

  • Detect framework/language automatically from project files
  • Identify target branch (configurable, not hardcoded)
  • Run quality checks (linting, build, test, type check) appropriate for detected framework
  • Detect tracking (JIRA tickets or git issues)
  • Create PR with comprehensive description linked to tracking
  • Handle images (upload local to JIRA, embed URLs)
  • Post JIRA comments with PR details and image attachments
  • Merge confirmation with JIRA status update

When to use me

Use when:

  • Creating PR after completing work
  • Need configurable quality checks (not just linting)
  • Need PRs linked to JIRA or git issues
  • Support multiple merge targets (not just dev)
  • Need image attachments in PRs
  • Building workflow skill with PR creation

This is a framework skill - provides PR creation logic that other skills extend.

Steps

Step 1: Identify Target Branch

Methods:

  • Ask user: read -p "Enter target branch (main/develop/staging): " TARGET_BRANCH
  • Detect default: git symbolic-ref refs/remotes/origin/HEAD
  • Read config: Check .git/config

Common targets: main, develop, staging, production, master

Important: Don't hardcode to dev - different projects use different conventions!

Step 2: Detect Framework and Run Quality Checks

2.1: Detect Framework/Language

Detection Logic:

# JavaScript/TypeScript detection
if [ -f "package.json" ]; then
  if grep -q '"next"' package.json 2>/dev/null; then
    FRAMEWORK="nextjs"
  elif grep -q '"@nestjs/core"' package.json 2>/dev/null; then
    FRAMEWORK="nestjs"
  elif grep -q '"vue"' package.json 2>/dev/null; then
    FRAMEWORK="vue"
  elif grep -q '"@angular/core"' package.json 2>/dev/null; then
    FRAMEWORK="angular"
  elif grep -q '"react"' package.json 2>/dev/null; then
    FRAMEWORK="react"
  elif grep -q '"express"' package.json 2>/dev/null; then
    FRAMEWORK="express"
  else
    FRAMEWORK="node"
  fi
# Python detection
elif [ -f "pyproject.toml" ] || [ -f "setup.py" ] || [ -f "requirements.txt" ]; then
  if grep -q "django" pyproject.toml 2>/dev/null || grep -q "django" requirements.txt 2>/dev/null; then
    FRAMEWORK="django"
  elif grep -q "fastapi" pyproject.toml 2>/dev/null || grep -q "fastapi" requirements.txt 2>/dev/null; then
    FRAMEWORK="fastapi"
  elif grep -q "flask" pyproject.toml 2>/dev/null || grep -q "flask" requirements.txt 2>/dev/null; then
    FRAMEWORK="flask"
  else
    FRAMEWORK="python"
  fi
# Java detection
elif [ -f "pom.xml" ]; then
  if grep -q "spring-boot" pom.xml 2>/dev/null; then
    FRAMEWORK="spring-boot"
  else
    FRAMEWORK="java-maven"
  fi
elif [ -f "build.gradle" ] || [ -f "build.gradle.kts" ]; then
  if grep -q "spring-boot" build.gradle* 2>/dev/null; then
    FRAMEWORK="spring-boot-gradle"
  else
    FRAMEWORK="java-gradle"
  fi
# .NET detection
elif ls *.csproj 1>/dev/null 2>&1 || ls *.sln 1>/dev/null 2>&1; then
  FRAMEWORK="dotnet"
# Go detection
elif [ -f "go.mod" ]; then
  FRAMEWORK="go"
# Rust detection
elif [ -f "Cargo.toml" ]; then
  FRAMEWORK="rust"
# PHP detection
elif [ -f "composer.json" ]; then
  if grep -q "laravel" composer.json 2>/dev/null; then
    FRAMEWORK="laravel"
  elif grep -q "symfony" composer.json 2>/dev/null; then
    FRAMEWORK="symfony"
  else
    FRAMEWORK="php"
  fi
# Ruby detection
elif [ -f "Gemfile" ]; then
  if grep -q "rails" Gemfile 2>/dev/null; then
    FRAMEWORK="rails"
  else
    FRAMEWORK="ruby"
  fi
else
  FRAMEWORK="unknown"
fi

echo "Detected framework: $FRAMEWORK"

Read the full file on GitHub · 657 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 · 657 lines · 32 tokens per session scan A ce6474952895

Subscribe to this mod's changes

pr-creation-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 32 tokens to every session and 5,830 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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