From ai-tools
Create pull requests with automated validation and smart title/description generation
npx claudepluginhub waynebrantley/aitools --plugin ai-toolsThis skill uses the workspace's default tool permissions.
Create a pull request for the current branch with automated validation and smart title/description generation.
Retrieves texts, DMs, one-time codes, and inspects threads in ECC workflows. Provides evidence of exact sources checked for verification before replies.
Delivers expertise for HS tariff classification, customs documentation, duty optimization, restricted party screening, and trade compliance across jurisdictions.
Process documents with Nutrient API: convert formats (PDF, DOCX, XLSX, images), OCR scans (100+ languages), extract text/tables, redact PII, sign, fill forms.
Create a pull request for the current branch with automated validation and smart title/description generation.
/create-pr
The user wants to create a pull request targeting master.
Run build doctor - Execute the global ai-tools build-doctor skill:
/ai-tools:build-doctor
This skill automatically detects the project type, runs the appropriate build/lint/test commands, and fixes any issues it finds.
If build-doctor reports "no frameworks detected": Do NOT silently skip this step. Ask the user whether the project has a build system that should be validated before creating the PR. The project may have build frameworks that detection missed.
Check git status - Verify the current branch and ensure changes are committed:
git status
git rev-parse --abbrev-ref HEAD
If there are uncommitted changes, warn the user and ask if they want to commit first.
Verify remote is up to date - Check if local branch is ahead of remote:
git fetch origin && git status -sb
If there are unpushed commits, push them:
git push -u origin HEAD
Analyze the changes - Gather information about what changed BEFORE creating the PR:
a. Get the list of commits on this branch (compared to master):
git log master..HEAD --oneline
b. Get the diff summary:
git diff master --stat
c. Get the full diff for context:
git diff master
Generate title and description - Based on the analysis, write both as a human developer would:
Title: Create a concise, descriptive title (max 72 characters) that:
MIN-1234)Description: Write a description the way a developer would in a real team:
Create the pull request - Create the PR with the correct title and description from the start:
gh pr create --base master --title "<generated-title>" --body "<generated-description>"
IMPORTANT: Create the PR with the final title immediately. Do NOT create with a placeholder title and edit later — GitHub workflows trigger on PR creation and will validate the title before any edit can occur.
Report success - Show the user:
Run workflow doctor - Monitor the GitHub Actions workflow triggered by the PR:
Get the head commit SHA from the PR, then find the workflow run for that commit:
gh pr view <PR-NUMBER> --json headRefOid --jq '.headRefOid'
gh run list --commit <head-sha> --limit 1 --json databaseId --jq '.[0].databaseId'
Then pass the run ID directly to the workflow doctor:
/ai-tools:github-workflow-doctor <run-id>
Write the PR title and description the way a busy senior developer would — someone who respects the reviewer's time.
Principles:
## Context header for two sentences is noise. Just write the sentences. Use headers only when the PR is large enough that they aid scanning.Avoid these AI tells:
Small fix:
Order total was wrong when discount codes were applied after tax calculation. Moved the discount step before tax.
Medium feature:
Adds webhook retry logic with exponential backoff.
- Failed webhooks retry up to 3 times (1s, 5s, 30s delays)
- Dead-lettered after final failure for manual review
- New `webhook_deliveries` table tracks attempt history
Needed for Acme integration — they have intermittent 502s that resolve within seconds.
Large change:
Migrates auth from session cookies to JWT tokens.
## Why
Session store was the bottleneck under load — 40% of Redis ops were session lookups.
JWTs let us validate stateless and drop that dependency for read-heavy paths.
## What changed
- New `/auth/token` endpoint issues short-lived JWTs (15 min) + refresh tokens (7 days)
- Middleware validates JWT signature instead of hitting Redis
- Session endpoints still work but are deprecated (remove in v3.2)
## Migration
Existing sessions remain valid until natural expiry. No user-facing disruption.
masterMIN-1234-feature-name), include it in the PR title