.github/skills/git-pr-creator/SKILL.md
Create a pull request from the current branch to the core branch (`main` or `develop`, whichever exists on `origin`). Use when the user asks to open a PR, create a pull request from the current branch, or publish work for review. If the branch name contains a ticket-like prefix such as `TST-2056_*` or `2056_*`, start the PR title with that prefix in square brackets. If a PR with the same prefix already exists, ask whether to continue.
npx skillsauth add dneprokos/skills-examples git-pr-creatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create a pull request from the current branch safely.
Use it for requests like:
Do not use it for:
main or develop)Check the current local branch name first.
Resolve the core base branch first (main preferred, then develop).
If the current branch matches the resolved base branch, stop immediately and return:
You cannot create a pull request from the <base-branch> branch with this skill.
If the branch name starts with a ticket-like prefix followed by _ or -, use that prefix in square brackets at the start of the PR title.
Examples:
TST-2056_testBranch -> [TST-2056]: added new git related skills
2056_testBranch -> [2056]: added new git related skills
Rules:
testBranch, work, or changes, summarize the branch from commit messages and changed files.If a ticket-like prefix was found, check open PRs for the same prefix.
If one already exists, ask the user:
A pull request with prefix [TST-2056] already exists. Do you want to create an additional PR?
Offer exactly these options:
Yes — continue and create another PRNo — stop the skillIf the answer is No, stop immediately.
Before running the helper script without -DryRun, verify a GitHub token is available from this order:
GITHUB_TOKEN or GH_TOKEN (non-empty),GitHubToken stored in the SecretManagement/SecretStore vault,GitHubToken, then use it immediately,github-pr.local.json at the repository root with string property github_token,.github/skills/git-pr-creator/config/github-pr.local.json with the same property.If SecretManagement is not installed, use the setup skill:
pwsh -NoProfile -File ./.github/skills/windows-secretmanagement-setup/scripts/install-secretmanagement.ps1
If no source provides a token for a real PR run, stop and tell the user to follow README.md. Never commit github-pr.local.json or paste tokens into chat.
-DryRun does not require a token (local preview only). Duplicate-prefix checks during DryRun may still need an authenticated gh if they call the API.
Ensure gh is installed. If gh is missing, the script can ask for approval before auto-installing (winget, choco, or scoop); pre-approve with -ApproveInstall.
When a token is set (step 4), the script sets GH_TOKEN for gh and skips interactive gh auth login. If GH_TOKEN is not set (DryRun-only paths or edge cases), the script may still prompt for gh auth login --web unless pre-approved with -ApproveAuth.
pwsh -NoProfile -File ./.github/skills/git-pr-creator/scripts/create-pr.ps1 -ApproveInstall -ApproveAuth
If installation fails or gh cannot authenticate with the token, stop and return the exact error.
Run the helper script:
pwsh -NoProfile -File ./.github/skills/git-pr-creator/scripts/create-pr.ps1
The script will:
main then develop) when -BaseBranch is omittedGitHubToken, interactive prompt-and-save, then legacy JSON fallback)gh when neededmain or develop) with this skill.GITHUB_TOKEN, GH_TOKEN, SecretManagement GitHubToken, or legacy fallback JSON paths).github-pr.local.json or expose tokens in logs or commits.[PREFIX]: ... in the title.git log vs base); do not replace that with invented narrative unless the user asks.data-ai
Install and configure Windows Credential Manager style secret storage for PowerShell using SecretManagement and SecretStore. Use when users ask to install secret manager support, set up Credential Manager for GitHub token storage, or bootstrap GitHubToken for PR skills.
development
Generate a complete, compilable unit test file from an Analyst test plan and Architect strategy. Uses AAA pattern, language-specific frameworks (NUnit, JUnit 5, pytest, Vitest), correct mock/real dependency instantiation, constructor null-guard tests, parameterized tests, and setup/teardown hooks. Input is the Analyst JSON plan plus Architect strategy summary. Use when asked to generate test code, write test implementation, create test file, or implement tests from a plan. Also invoked as Phase 3 by the unit-test-generator agent.
development
Define the mocking strategy and assertion style for a unit test plan. Classifies each dependency as mock or real, resolves assertion framework and test file location from project patterns, lists constructor null-guard tests with expected exception types, and specifies abstraction interfaces for non-deterministic calls. Input is a JSON test plan from ut-analyst. Use when asked to define mocking strategy, plan test architecture, classify dependencies as mock vs real, or design test structure. Also invoked as Phase 2 by the unit-test-generator agent.
testing
Analyze a class or function and produce a structured JSON test plan. Classifies all dependencies (interface, abstract, valueObject, dto, primitive), detects non-deterministic calls, enumerates test cases using black-box techniques (Equivalence Partitioning, Boundary Value Analysis, Decision Table, State Transition), and lists constructor null-guard requirements. Use when asked to analyze a class for testing, create a test plan, classify dependencies, or produce test case inventory. Also invoked as Phase 1 by the unit-test-generator agent.