一键导入
ship
End-to-end shipping workflow — tests, PR creation, review request. Unified pr-create + pr-complete.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
End-to-end shipping workflow — tests, PR creation, review request. Unified pr-create + pr-complete.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review pull requests for code quality, security, and correctness
Review pull requests for code quality, security, and correctness
Periodic cross-agent learning consolidation — review what worked, what didn't, propagate insights
Break down complex problems through structured analytical frameworks
Persist and recall context across sessions — critical for continuity
Session lifecycle — checkpoint, restore, handoff, sleep/wake
| name | ship |
| version | 1.0.0 |
| standalone | true |
| description | End-to-end shipping workflow — tests, PR creation, review request. Unified pr-create + pr-complete. |
| uses | ["development/git","development/testing"] |
| requires | {"tools":["git","gh"],"env":[]} |
| security | {"risk_level":"write","capabilities":["git:read","git:write","github:pr:write"],"requires_approval":false} |
Unified shipping workflow. Takes code from "tests pass" to "PR created and review requested." Combines what pr-create and pr-complete do, adds pre-flight checks and embedded review readiness verification.
Standalone mode: Works without agent-coordinator. Skip coordinator status
updates and bus notifications when AC_COORDINATOR_URL is not set.
Do NOT begin shipping until you have verified:
Before creating the PR, verify ALL of these:
# 1. On a feature branch?
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "main" ] || [ "$BRANCH" = "master" ]; then
echo "ERROR: Cannot ship from main. Create a feature branch first."
exit 1
fi
# 2. Clean working directory?
if [ -n "$(git status --porcelain)" ]; then
echo "ERROR: Uncommitted changes. Commit or stash first."
exit 1
fi
# 3. Branch pushed to remote?
git push -u origin "$BRANCH" 2>/dev/null
# 4. Tests pass?
# Run the project's test command. Adapt to the project:
# PYTHONPATH=src python3 -m pytest tests/ --timeout=60 -q
If ANY check fails, STOP. Fix the issue before proceeding.
BRANCH=$(git branch --show-current)
TITLE=$(git log --format=%s -1) # Use last commit message as default title
gh pr create \
--title "$TITLE" \
--body "## Summary
<describe what changed and why>
## Test plan
<describe how to verify>
" \
--base main
Capture the PR number from the output.
PR_NUMBER=$(gh pr view --json number -q .number)
echo "PR #${PR_NUMBER} created"
If running within agent-coordinator:
COORDINATOR="${AC_COORDINATOR_URL:-http://localhost:9889}"
TASK_ID="${TASK_ID:-}"
if [ -n "$TASK_ID" ] && [ -n "$COORDINATOR" ]; then
# Move task to review status
curl -s -X POST "${COORDINATOR}/tasks/${TASK_ID}/status?new_status=review&agent_id=${AGENT_NAME}&pr_number=${PR_NUMBER}" 2>/dev/null || true
fi
Before requesting review, verify:
# Check CI status
gh pr checks "$PR_NUMBER" --watch --interval 30
# Check for merge conflicts
gh pr view "$PR_NUMBER" --json mergeable -q .mergeable
If CI fails or conflicts exist, fix them before requesting review.
# Publish review request to bus (framework only)
if [ -n "$COORDINATOR" ]; then
curl -s -X POST "${COORDINATOR}/bus/publish" \
-H "Content-Type: application/json" \
-d "{\"channel\": \"work\", \"type\": \"review_request\", \"sender\": \"${AGENT_NAME}\", \"payload\": {\"task_id\": \"${TASK_ID}\", \"pr_number\": \"${PR_NUMBER}\"}}"
fi
echo "PR #${PR_NUMBER} shipped. Awaiting review."
If you encounter issues during shipping:
It is always OK to stop and say "this is too hard for me."
On success, report:
{"pr_number": 123, "pr_url": "https://github.com/...", "success": true}
On failure, report:
{"pr_number": 0, "pr_url": "", "success": false, "error": "description"}
The tool.yaml handler executes only the core action (gh pr create).
The full workflow (pre-flight checks, CI verification, coordinator updates,
bus publish) is described in the Steps above — the agent follows the prose.
This is consistent with how lifecycle/land and other skills work.
Together: ship → review → land → retro