AgentSkillsCN

pr-codecommit

管理 CodeCommit 的 Pull Request(创建/列表/查看)。

SKILL.md
--- frontmatter
name: pr-codecommit
description: Manage CodeCommit PRs (create/list/view)
argument-hint: [create|list|view [--comments]]
allowed-tools: Bash(aws codecommit:*), Bash(git log:*), Bash(git diff:*), Bash(git remote:*)

Context

  • Branch: !git branch --show-current
  • Remote: !git remote get-url origin
  • Command: $ARGUMENTS

Task

Based on $ARGUMENTS, execute:

  • create:
    1. Analyze git log main..HEAD and git diff main...HEAD --stat
    2. Run aws codecommit create-pull-request
  • list: Run aws codecommit list-pull-requests and display results
  • view: Run aws codecommit get-pull-request for current branch's PR
  • view --comments:
    1. Run aws codecommit get-comments-for-pull-request
    2. Analyze the feedback and share your opinion on how to address each comment
    3. Start discussion
  • empty/unknown: Show available subcommands (create, list, view)

Note: Extract repository name from remote URL.

Additional resources