/flc-skills:github-create-prfrom flc-skills
Creates GitHub pull requests from a local branch with branch checks, diff analysis, and PR title/body writing via gh CLI.
Ships in flc-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create GitHub pull requests with a clear, reviewable workflow.
Act as a pragmatic PR writer and GitHub workflow assistant.
Prioritize:
Assume gh is installed and authenticated unless local evidence shows otherwise.
Follow this sequence unless the user asks for only one part of the PR process.
Check:
Use commands such as:
git status
git branch --show-current
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'
git log <base>..HEAD --oneline
If there are uncommitted changes that should be part of the PR, stop PR creation and handle commits first.
If the branch is stale or diverged, call that out and recommend rebasing or merging before opening the PR.
Review the commits and full diff that will land in the PR.
Use commands such as:
git log <base>..HEAD
git diff <base>...HEAD
Extract:
Build a change-impact inventory before drafting:
Use the base-to-head diff, current code, and tests as the primary evidence. Treat commit messages, plans, and earlier design notes as secondary context because they may describe ideas that were later revised or removed.
Do not write the PR body until the scope is understood.
Prefer a short, searchable title that matches the repository's existing convention.
If the repository uses conventional-commit style titles, follow that pattern:
feat(scope): add token refreshfix(api): handle null responserefactor(auth): extract validation logicUse the conventional-commit ! marker when the change is actually incompatible, for example refactor(auth)!: replace token storage. Do not use ! merely because a diff is large or heavily refactored.
If no convention is visible, use a plain imperative summary.
Use the default PR body conventions in references/pr-body-conventions.md unless the user explicitly asks for another format.
When the change is incompatible, or the user asks for breaking changes, before-and-after comparisons, upgrade notes, or migration guidance, also read and apply references/breaking-change-conventions.md. Add only the sections supported by the actual change; do not emit empty headings.
Before creating or updating a PR, review the title, body, and any public notes for local execution details that should not be published.
Remove or generalize:
/Users/..., /tmp/..., workspace checkout paths, cache directories, or generated artifact pathsRepository-relative paths are fine when they identify changed source files. For testing, summarize the command and result instead of pasting local filesystem output.
For a new PR, prefer gh pr create with explicit title and body. Build the body from references/pr-body-conventions.md:
gh pr create --title "<title>" --body "$(cat <<'EOF'
<body>
EOF
)"
Use --draft when the branch is intentionally not ready for full review.
For an existing PR, use gh pr edit to update the title, body, or reviewers.
Keep reviewer count focused. Prefer the smallest set of relevant reviewers.
Use commands such as:
gh pr edit --add-reviewer username1,username2
gh pr edit --add-reviewer org/team-name
If the user does not specify reviewers, infer likely owners only from clear local evidence such as CODEOWNERS or recent authorship. Otherwise leave reviewers unset.
When the user asks for help writing a PR, provide:
# PR Draft
## Title
<proposed PR title>
## Body
<proposed PR body>
Add Notes only when there is important reviewer context, a blocker, or a useful command to call out.
If the user asks to open the PR directly, still summarize the final title, body, and any assumptions after running the command.
Stop and reassess if:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pull-request, github, pr-workflow, branch-management, code-review
npx claudepluginhub flc1125/skills --plugin flc-skills31 skills in this plugin
/asyncLaunch and coordinate Codex subagents as deferred tasks. Use when the user wants to start bounded subagent work now, keep the main thread moving without waiting by default, then later join, collect, or redirect that work through a stable task reference./code-reviewRequest or perform a git-backed code review for a defined diff or SHA range using implementation context and requirements. Use when finishing a task, completing a major feature, preparing to merge, or when you need a fresh review before proceeding./create-planCreate and maintain repository-aware technical plans, implementation plans, refactor proposals, design drafts, and migration plans. Use when Codex is asked to investigate a codebase and propose a solution before implementation; write or update a durable plan file; produce a 方案、实施计划或重构计划; split engineering work into phases or pull requests; document scope, non-goals, API and behavior decisions, breaking changes, migrations, risks, testing, or validation; or transition a plan through draft, planned, in-progress, blocked, and completed states./design-workflow-graphsDesign, transform, review, and evolve graph-based workflows with explicit state, nodes, edges, routing, concurrency, joins, loops, approvals, recovery, termination, side effects, and observability. Use when Codex needs to decide whether graph orchestration fits a process; turn requirements, a linear workflow, or an agent loop into a workflow graph; audit an existing DAG or state graph; or produce a framework-neutral graph specification before implementation./eli5Create a simple, picture-first explanation of a topic, defaulting to self-contained HTML. Use when the user says ELI5, asks to explain something like they are five, or wants a visual explanation with very few words; do not use for ordinary concise explanations that do not ask for this style./engineering-backend-architectDesign backend system architecture for new products, large features, platform refactors, API and database design, microservices decomposition, event-driven systems, scaling, reliability, observability, and cloud deployment.Other plugins' skills for the same job