Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

7 Ship

ASecurity

Phase 7 — Create the PR and drive it to merge-ready via github:pr-ship.

8 stars
0 votes
0 copies
0 views
Added 9/20/2026
code-qualitygobashgitperformance

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add tstapler/dotfiles --skill 7-ship --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 7 Ship?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for 7 Ship
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tstapler-7-ship/badge)](https://www.skillsdirectory.com/skills/tstapler-7-ship)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
description: "Phase 7 — Create the PR and drive it to merge-ready via github:pr-ship."
user-invocable: true
---

# sdd:7-ship

Create the PR and iterate it to a merge-ready state using the `github:pr-ship` loop.

## HARD GATE

Only run this after `/sdd:6-verify` has produced a ✅ PASS verdict. If you skipped verification, run it now.

## Instructions

1. **Follow [SETUP.md](../skills/SETUP.md)** — identify PROJECT_NAME.

2. **Present ship options** using `AskUserQuestion`:
   ```
   header: "Ship method"
   question: "How would you like to proceed?"
   options:
     - label: "Open a PR and drive to merge-ready (recommended)"
       description: "Create a GitHub PR, then run github:pr-ship to handle compile, tests, code review, CI, and merge conflicts automatically"
     - label: "Open a PR only — no automation"
       description: "Create the PR with a description, but stop there"
     - label: "Keep branch for more work"
       description: "Leave the branch as-is — no PR yet"
     - label: "Discard changes"
       description: "Reset — abandon this branch"
   ```

3. **For option A or B**: draft the PR description:

   ```markdown
   ## Summary
   [2-3 sentences: what this PR does and why it matters]

   ## Context
   [Problem solved, motivation, issue/ticket link if in requirements.md]

   ## Changes
   - **<Component A>**: <specific changes>
   - **<Component B>**: <specific changes>
   - **Tests**: <unit/integration/UX acceptance tests added>

   ## Impact
   - **Scope**: <what parts of the system are affected>
   - **Breaking Changes**: <none, or list explicitly>
   - **Performance**: <improvements, regressions, or neutral>
   - **Dependencies**: <new or updated>

   ## Reviewer Notes
   - **Focus areas**: <risky areas, design decisions>
   - **Known limitations**: <intentional trade-offs>
   - **Follow-up tasks**: <deferred work>
   - **Rollback procedure**: <specific revert steps, or "standard revert PR — no special steps">
   - **Feature flag**: <flag name and how to disable, or "not gated">
   - **Feature flag cleanup**: <if gated — "[ ] File follow-up ticket to remove flag `<flag-name>` after N sprints of stable rollout", or "N/A — not gated">

   ## UX Preview
   *(Include only for user-facing features. Attach or inline the golden-path recording.)*
   - Golden path: `project_plans/<PROJECT_NAME>/design/golden-path.gif`

   ## Related
   - Closes <issue> (if linked in requirements.md)
   ```

4. **Create the PR** using `gh pr create` with a body file:
   ```bash
   cat > /tmp/pr-description.md <<'EOF'
   <PR description>
   EOF
   gh pr create --title "<type>(<scope>): <description>" --body-file /tmp/pr-description.md
   ```

   Capture the PR number from the output URL (`gh pr view --json number --jq '.number'`).

5. **For option A only — invoke `github:pr-ship <PR_NUMBER>`.**

   This drives the PR through five ordered gates until all are green:
   - Gate 1a: Local compile
   - Gate 1b: Local tests (changed packages only)
   - Gate 2: Code review with fixes
   - Gate 3: PR review comments addressed
   - Gate 4: Remote CI green (polls with ScheduleWakeup)
   - Gate 5: No merge conflicts

   The PR is NOT merged automatically — `github:pr-ship` stops when all gates are `[x]` and reports the merge command for the user to run.

6. **Clean up worktree** (if this feature was developed in a git worktree):
   ```bash
   git worktree remove <path> --force
   ```
   Ask for confirmation before removing. Do not remove if the PR is not yet merged.

7. **Run `/knowledge:extract-learnings` automatically — do not ask the user whether to run it, and do not skip it even if the PR isn't merged yet or the user hasn't responded to the merge-command report.** This step always fires at the end of Phase 7, immediately after step 6, as part of executing this skill — it is not optional and not conditional on anything above. If the learnings skill itself has an interactive prompt (e.g. "what are the most useful things you learned"), answer it yourself from the session's own context (the "figure it out from context" path) rather than stopping to ask the user that question either — only stop for a *genuinely* blocking ambiguity the skill can't resolve on its own.

   Specifically prompt it to capture:
   - Whether the build-vs-buy decision matched the Phase 2 recommendation in practice
   - Any pitfalls discovered during implementation that weren't in `research/pitfalls.md`
   - Architecture decisions made during implementation that deviated from `plan.md` and why
   - Any UX acceptance criteria that turned out to be wrong or missing once the feature was real

Attribution

tstaplertstapler
View sourceMore from tstapler →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman Review

Ultra-compressed code review comments. Cuts noise from PR feedback while preserving the actionable signal. Each comment is one line: location, problem, fix. Use when user says "review this PR", "code review", "review the diff", "/review", or invokes /caveman-review. Auto-triggers when reviewing pull requests.

1023331 votes

Caveman Commit

Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit", "/commit", or invokes /caveman-commit. Auto-triggers when staging changes.

1023331 votes

Springboot Verification

Verification loop for Spring Boot projects: build, static analysis, tests with coverage, security scans, and diff review before release or PR.

2456590 votes

Verification Loop

一个全面的 Claude Code 会话验证系统。

2456590 votes

Django Verification

Verification loop for Django projects: migrations, linting, tests with coverage, security scans, and deployment readiness checks before release or PR.

2456590 votes
View all in code-quality →