一键导入
speckit-ship-run
Automate the release pipeline including pre-flight checks, branch sync, changelog generation, CI verification, and pull request creation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Automate the release pipeline including pre-flight checks, branch sync, changelog generation, CI verification, and pull request creation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ACT AS the Agency CEO. You manage the lifecycle of a project by invoking specific expert agents in a strict 9-phase sequence using XML Protocols, Decision Trees, and Constitution enforcement. Integrates with GitHub Spec-Kit v0.4.4 + spec-kit-learn extension. Spec-Kit tools are execution engines called FROM inside Agency phases — Agency governs, Spec-Kit executes.
Act as a Principal Business Analyst (8+ years exp) bridging the gap between Strategy and Execution. Specializes in translating vague vision into rigorous technical specifications using Gherkin (BDD), BPMN 2.0, and strict Requirement Engineering standards.
The ultimate database authority. Merges the comprehensive, encyclopedic knowledge of the "Database Architect" (15+ domains, strategy, tech selection) with the battle-hardened execution of the "Senior DBA" (Synthetic data, stress testing, 1-year simulations).
Act as a Senior Technical Project Manager (10+ years exp) specializing in Agile Delivery at Scale, Sprint Planning, and Backlog Refinement.
Act as a Principal Product Manager (8+ years exp) driving product vision, strategy, and market fit. Specializes in RICE prioritization, Lean Canvas modeling, and defining high-impact MVPs. Bridges the gap between business goals and technical execution.
The ultimate architectural persona. Merges the specific, execution-focused "Principal Solution Architect" (FAANG-scale, 3-pass refinement, specific stack) with the comprehensive "Master Software Architect" (Review standards, 10+ capability categories, governance).
| name | speckit-ship-run |
| description | Automate the release pipeline including pre-flight checks, branch sync, changelog generation, CI verification, and pull request creation. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"extension:ship"} |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Check for extension hooks (before ship):
.specify/extensions.yml exists in the project root.hooks.before_ship keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Pre-Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Pre-Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
Wait for the result of the hook command before proceeding to the Outline.
.specify/extensions.yml does not exist, skip silentlyAutomate the complete release engineering workflow: verify readiness, synchronize branches, generate a changelog, verify CI status, create a well-structured pull request, and archive release artifacts. This command transforms the implemented feature into a shippable, reviewable PR with full traceability back to the original specification.
SAFE BY DEFAULT: Every destructive or potentially destructive operation (e.g., rebase/merge during branch sync, push/force push, branch delete, PR creation) requires explicit user confirmation.
TRACEABILITY: The PR description and changelog must link back to spec, plan, tasks, review, and QA artifacts for full audit trail.
Run .specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'''m Groot' (or double-quote if possible: "I'm Groot").
Pre-Flight Readiness Checks: Run a comprehensive readiness assessment before proceeding:
Task Completion:
tasks.md and count total tasks vs. completed tasks (marked [X] or [x])/speckit.implement first.Review Status (if FEATURE_DIR/reviews/ exists):
/speckit.review after fixes (if available).QA Status (if FEATURE_DIR/qa/ exists):
/speckit.qa after fixes (if available).Working Tree:
git status to check for uncommitted changesDisplay a readiness summary:
Ship Readiness Check:
✅ Tasks: 12/12 complete
✅ Review: APPROVED
⚡️ QA: PARTIAL PASS (2 non-critical items)
✅ Working tree: Clean
Overall: READY TO SHIP (with notes)
Proceed? (yes/no)
Determine Shipping Configuration:
git branch --show-currentmain; allow override via user input/prompt)origin; check git remote -v)gh) is available for PR creationgh is not available, generate the PR description as a markdown file for manual creationBranch Synchronization:
git fetch {remote_name}git rev-list --count HEAD..{remote_name}/{target_branch}
git rebase {remote_name}/{target_branch}git merge {remote_name}/{target_branch}git push {remote_name} {feature_branch}Changelog Generation:
spec.md (overview section)tasks.mdgit log {remote_name}/{target_branch}..HEAD --oneline## [Feature Name] - {date}
### Added
- [List of new features/capabilities from spec]
### Changed
- [List of modifications to existing behavior]
### Fixed
- [List of bug fixes discovered during implementation]
### Technical Notes
- [Key architecture decisions from plan.md]
CI Verification:
gh) is available:
gh run list --branch {feature_branch} --limit 5gh is not available:
npm test, pytest, go test ./..., etc.Generate PR Description:
Compose a comprehensive PR description from .specify/ artifacts:
## Summary
[One-paragraph summary from spec.md overview]
## Specification
[Link to or summary of key requirements from spec.md]
## Implementation
[Key implementation decisions from plan.md]
[Summary of completed tasks from tasks.md]
## Testing
[QA results summary if qa/ reports exist]
[Test coverage information]
## Review Notes
[Summary of review findings if reviews/ reports exist]
[Any conditions or known limitations]
## Checklist
- [ ] All tasks completed
- [ ] Code review passed
- [ ] QA testing passed
- [ ] CI pipeline green
- [ ] Changelog updated
- [ ] Documentation updated (if applicable)
---
*Generated by `/speckit.ship` from spec-driven development artifacts.*
Create Pull Request:
FEATURE_DIR/releases/pr-description-{timestamp}.mdgh) is available:
gh pr create --base {target_branch} --head {feature_branch} --title "{PR title}" --body-file FEATURE_DIR/releases/pr-description-{timestamp}.md
gh is not available:
PR Title Format: feat: {feature_name} — {one-line summary from spec}
Archive Release Artifacts:
FEATURE_DIR/releases/release-{timestamp}.md with:
gh){base_sha}..{head_sha}Post-Ship Summary: Display a completion summary:
🚀 Ship Complete!
PR: #{pr_number} - {pr_title} ({pr_url})
Branch: {feature_branch} → {target_branch}
Commits: {commit_count}
Files changed: {files_changed}
Changelog: Updated
Next steps:
- Review the PR at {pr_url}
- After merge, consider running `/speckit.retro` for a retrospective (if available)
Check for extension hooks (after ship):
.specify/extensions.yml exists in the project root.hooks.after_ship keyenabled is explicitly false. Treat hooks without an enabled field as enabled by default.condition expressions:
condition field, or it is null/empty, treat the hook as executablecondition, skip the hook and leave condition evaluation to the HookExecutor implementationoptional flag:
optional: true):
## Extension Hooks
**Optional Hook**: {extension}
Command: `/{command}`
Description: {description}
Prompt: {prompt}
To execute: `/{command}`
optional: false):
## Extension Hooks
**Automatic Hook**: {extension}
Executing: `/{command}`
EXECUTE_COMMAND: {command}
.specify/extensions.yml does not exist, skip silently