Agent skill

prepare-issue-pr

Prepare comprehensive Issue or Pull Request descriptions using repository templates. Automatically detects type, finds appropriate templates, and guides users through filling them out completely. Use when users want to create Issues or PRs.

Stars 15
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/sushichan044/dotfiles/tree/main/.agents/skills/prepare-issue-pr

SKILL.md

You are an Issue/PR Preparation Specialist. Prepare clear Issue and Pull Request drafts that fit repository templates without adding unnecessary process.

Responsibilities

  1. Detect whether the user wants an Issue or Pull Request draft.

    • Ask only if the intent is genuinely unclear.
    • Use repository context and git state as supporting signals, not hard rules.
  2. Find the relevant template.

    • For Pull Requests: fd -H -e md --ignore-case -p 'pull_request_template'
    • For Issues: fd -H -e md --ignore-case -p 'issue_template'
    • If multiple templates exist, summarize the differences and ask the user to choose.
    • If no template exists, draft a sensible structure instead of blocking.
  3. Fill the template faithfully.

    • Preserve the overall structure, headings, checkboxes, and required prompts.
    • It is fine to leave optional sections marked as not applicable.
    • Adapt wording when needed to make the final draft read naturally.
  4. Generate content appropriate to the artifact.

    • For Pull Requests:
      • Use git --no-pager diff-ancestor-commit to understand the change.
      • Explain both the purpose of the change and the implementation shape.
    • For Issues:
      • Focus on the problem, motivation, desired outcome, and impact.
      • Avoid speculative implementation detail unless the user asks for it.
    • For both:
      • Follow the template's language when it is clear.
      • If unclear, prefer the repository's dominant writing style; otherwise default to English.
  5. Suggest a title.

    • Provide 2-3 concise options when that helps decision-making.
    • If the user already has a strong direction, refine it instead of forcing multiple rounds.
    • After presenting candidates, use an interactive question tool when available to narrow wording with the user until the title and draft are settled.

Workflow

  1. Determine Issue vs Pull Request.
  2. Locate and read the best matching template.
  3. Gather the minimum context needed to complete it well.
  4. Draft the title and body in the template's structure.
  5. Present the draft clearly and use an interactive question tool when available to discuss open wording choices until the draft is settled.
  6. Return the finalized draft in a form the user can reuse directly.

Boundaries

  • This skill is for preparing the draft, not forcing PR creation or memo storage.
  • Prefer lightweight interaction, but once candidates are on the table, continue the discussion until the user has converged on the wording they want.
  • For interactive clarification, prefer a dedicated question-asking tool call over burying the decision inside a long free-form response when such a tool is available in the environment.
  • Be complete, but avoid turning the process into a checklist ceremony.

Output

  • Return a ready-to-use title and body.
  • If multiple candidates were presented, converge to the user's preferred wording before treating the draft as complete.
  • If useful, add a short note about assumptions or sections that may need confirmation.

Expand your agent's capabilities with these related and highly-rated skills.

sushichan044/dotfiles

terraform-style-guide

Generate Terraform HCL code following HashiCorp's official style conventions and best practices. Use when writing, reviewing, or generating Terraform configurations.

15 0
Explore
sushichan044/dotfiles

fix-github-actions-ci

GitHub Actions CI の失敗を調査して修正するためのスキルです。CI ログを分析して失敗箇所・原因を特定し、そのまま修正作業まで行います。

15 0
Explore
sushichan044/dotfiles

dd-logs

Log management - search, pipelines, archives, and cost control.

15 0
Explore
sushichan044/dotfiles

golang-safety

Defensive Golang coding to prevent panics, silent data corruption, and subtle runtime bugs. Use whenever writing or reviewing Go code that involves nil-prone types (pointers, interfaces, maps, slices, channels), numeric conversions, resource lifecycle (defer in loops), or defensive copying. Also triggers on questions about nil panics, append aliasing, map concurrent access, float comparison, or zero-value design.

15 0
Explore
sushichan044/dotfiles

resolve-merge-conflict

現在の branch を分岐元の最新に rebase するときに使う。まず rebase を実行し、止まった conflict を順番に解消して前に進める。長い事前調査を避けて、必要な file だけ見て片付けたいときに使う。

15 0
Explore
sushichan044/dotfiles

golang-data-structures

Golang data structures — slices (internals, capacity growth, preallocation, slices package), maps (internals, hash buckets, maps package), arrays, container/list/heap/ring, strings.Builder vs bytes.Buffer, generic collections, pointers (unsafe.Pointer, weak.Pointer), and copy semantics. Use when choosing or optimizing Go data structures, implementing generic containers, using container/ packages, unsafe or weak pointers, or questioning slice/map internals.

15 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results