.claude/skills/pull-request-msg/SKILL.md
Generate a PR_MESSAGE.md file from session context using GitHub CLI. Detects related issues via branch-keyword search, writes a structured PR description with commit subject, summary, test plan, and changelog. Validates with commitlint and markdownlint. Use when preparing a pull request on GitHub.
npx skillsauth add dirien/yet-another-agent-harness pull-request-msg-with-ghInstall 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.
Generate a PR_MESSAGE.md file summarizing the current session's work.
Requires gh CLI authenticated with the target repository.
gh --version 2>/dev/null && gh auth status 2>/dev/null
If gh is not installed, stop and report:
gh cannot be installed via npmgh auth login to authenticateDo not proceed without a working, authenticated gh CLI.
git diff and git status to
understand the full scope of work, in addition to reviewing
conversation history. Both sources inform the PR message.Closes #<issue-number> footer entirely.references/pr-message-format.md for the list of types)references/pr-message-format.mdPR_MESSAGE.md if not already presentThe issue number MUST be determined by searching GitHub, NOT by extracting numbers from branch names.
# Step 1: Get branch name
BRANCH=$(git branch --show-current)
# Step 2: Extract keywords (strip leading numbers and hyphens)
# Example: "125-greenops-equivalencies" → "greenops equivalencies"
KEYWORDS=$(echo "$BRANCH" | sed 's/^[0-9]*-//' | tr '-' ' ')
# Step 3: Search GitHub issues
gh issue list --search "$KEYWORDS" --state all \
--json number,title --limit 5
125- is NOT issue #125)specs/125-xyz/)These are internal identifiers, not GitHub issue numbers.
## Commit Message section — the first line IS the commit
message.markdownlint.json — use CLI flags insteadIf the commitlint and markdownlint skills are available in the current context, use them to validate PR_MESSAGE.md. Otherwise, run directly:
# Validate commit message format
cat PR_MESSAGE.md | npx commitlint
# Validate markdown (MD041 disabled — first line is commit subject,
# not heading)
npx markdownlint --disable MD041 -- PR_MESSAGE.md
If neither the skills nor npx are available, fail hard:
npm install -g @commitlint/cli @commitlint/config-conventionalnpm install -g markdownlint-cliDo not silently skip validation.
Fix any issues and re-validate before reporting success.
tools
Implements advanced TypeScript type systems, creates custom type guards, utility types, and branded types, and configures tRPC for end-to-end type safety. Use when building TypeScript applications requiring advanced generics, conditional or mapped types, discriminated unions, monorepo setup, or full-stack type safety with tRPC.
development
Use when challenging ideas, plans, decisions, or proposals using structured critical reasoning. Invoke to play devil's advocate, run a pre-mortem, red team, or audit evidence and assumptions.
development
Systematic technical debt analysis across architecture, testing, documentation, and infrastructure. Investigates the codebase, scores findings by impact and effort, and generates a prioritized TECH_DEBT.md remediation plan. Delegates to specialized skills for code quality (scout) and linting (lint-fix). Use when assessing overall project health, planning cleanup sprints, or onboarding to an unfamiliar codebase.
testing
Install and configure Tailscale across platforms. Detects OS, distro, and environment (including WSL2 and containers). Verifies existing installations, performs platform-appropriate install, and guides initial connection. Use when setting up Tailscale on a new machine, onboarding a server to a tailnet, or verifying an existing install.