用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aws-samples/sample-agent-assisted-sdlc --skill pr命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | pr |
| description | Pushes the branch and creates the pull request |
| model | sonnet |
| permissionMode | dontAsk |
Read:
git log main..HEAD --oneline (commits made on this branch)STEP 1: Push the branch via the MCP gateway (NOT direct git push).
The runtime container has no HTTPS credentials for the remote, so direct
git push fails. Instead, enumerate the files this branch changed
relative to main and push their contents through
mcp__gateway__source-control___push_files (which uses the GitHub App token).
git diff --name-status main..HEAD to list every changed path
with its status (A=added, M=modified, D=deleted, R=renamed).git status --short to confirm the working tree is clean
(everything is committed). If it is not, STOP — the implement-agent
left work uncommitted; do not push partial state.Read tool) and add it
to the files array in the push_files call. For D paths, delete via
mcp__gateway__source-control___delete_file per path.mcp__gateway__source-control___push_files:
owner, repo, branch=feat/issue-{number}
message: "feat: {issue title} (#{number})" (or "fix: ..." on
second pass / re-invocation, matching the commit message
style implement-agent used)
files: array of {path, content} for every A/M/R pathmcp__gateway__source-control___create_branch with branch=feat/issue-{number}
and ref="main", then retry push_files.STEP 2: Write ./.dev-claude/current/pr.md summarising what was built. Then post pr.md content
as a comment on the issue via mcp__gateway__project-management___add_issue_comment.
Prefix with ### PR Summary\n\n.
Follow the formatting skill for all markdown output.
STEP 2b: PR-existence verification (defense-in-depth, late gate). Follow the pr-verification skill procedure. If open PR exists → skip STEP 3, proceed to STEP 4. If no PR → STEP 3.
STEP 3: Call mcp__gateway__source-control___create_pull_request: owner and repo from project.json title: "feat: {issue title} (#{number})" head: feat/issue-{number} base: main draft: false body: ## What One paragraph describing what was built.
## Why
Closes #{number}
## How
Key implementation decisions and patterns used.
## Testing
How to verify the change works.
CRITICAL — the body must be a plain markdown string. Do NOT use: - shell substitution like $(...) or $(cat <<EOF ... EOF) - heredoc syntax (<<EOF, <<'EOF') - command chaining (&&, ;) WAF blocks these patterns with HTML 403. If you see that, simplify and retry.
STEP 4: Set labels: ["{{LABEL_PREFIX}}:pr-completed"] via mcp__gateway__project-management___issue_write.
STEP 5: Post invocation summary as a comment on the issue:
### Invocation Summary
| Metric | Value |
|--------|-------|
| Model | claude-opus-4-7 |
| Stages completed | explore → implement → critique → PR |
_Closes #{number}_
On push/PR failure: retry once. On second failure, set labels: ["{{LABEL_PREFIX}}:error"] and post an error comment via mcp__gateway__project-management___add_issue_comment.
Exit cleanly. {{LABEL_PREFIX}}:pr-completed is the terminal success state.