본문으로 건너뛰기
cccskills
무료GitHub에 공개

ship

Ship — commit and push in one command. Chains quality gates, conventional commit, push, and optional PR creation + merge. Use when the user says "ship", "commit and push", "/ship", or wants to finalize a branch.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구GitHub
설치 방법 보기

포함된 파일(1)

  • SKILL.md3.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Ship — Commit & Push

Activation

This skill activates with /ship. It chains verification, commit, push, and optionally PR creation and merge.

Optional arguments

/ship                   # Commit + push (no PR)
/ship pr                # Commit + push + gh pr create
/ship pr merge          # Commit + push + gh pr create + gh pr merge --admin --squash

Workflow

Step 0: Quality Gates (BLOCKING)

BEFORE any commit, run:

yarn verify

yarn verify runs: TypeScript check + Biome lint + Vitest tests.

If it fails: display the errors and STOP. Do not proceed until all quality gates pass.


Step 1: Analysis

git status --short
git branch --show-current
git log --oneline -5

Guards:

  • If branch = master: STOP — the protect-main-push.sh hook blocks push to master. Create a feature branch first.
  • If nothing to commit: inform and stop.

Step 2: Staging

  • If files are not staged, list them and add them by name (never git add -A or git add .)
  • NEVER include .env, credentials, secrets, or lock files unless explicitly requested
  • NEVER include files unrelated to the current change

Preferred pattern:

git add src/usecases/foo.usecase.ts src/tests/units/usecases/foo.usecase.test.ts

Step 3: Commit

Infer the message from the staged changes. Follow Conventional Commits:

<type>(<scope>): <description>
TypeUsage
featNew feature
fixBug fix
refactorRefactoring (no feature or fix)
testTests only
docsDocumentation only
choreMaintenance, dependencies
styleFormatting (no logic change)
perfPerformance improvement
ciCI/CD changes

Rules:

  • Header max 72 characters
  • Description in lowercase, no trailing period
  • Scope optional in parentheses, must match bounded context name when applicable

Commit via heredoc (preserves formatting):

git commit -m "$(cat <<'EOF'
feat(webhook): add GitHub signature validation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"

The pre-commit-gate.sh and verify-spec-updated.sh hooks run automatically. If they fail, fix the issue and retry — never use --no-verify.


Step 4: Push

git push -u origin <branch>

The protect-main-push.sh hook blocks push to master and force push. If it triggers, verify you are on a feature branch.


Step 5 (if pr or pr merge): Create PR

gh pr create --title "<type>(<scope>): <description>" --body "$(cat <<'EOF'
## Summary
- <bullet point 1>
- <bullet point 2>

## Test plan
- [ ] yarn verify passes
- [ ] Acceptance tests green

🤖 Generated with Claude Code
EOF
)"

Base branch: master.


Step 6 (if pr merge only and user explicitly requested): Merge PR

gh pr merge --admin --squash

ONLY if the user explicitly asked for merge. Never merge without explicit confirmation.


Step 7: Summary

SHIP

Branch  : <branch>
Commit  : <type>(<scope>): <description>
Push    : origin/<branch>
Gates   : yarn verify — green
PR      : <url or "not created">
Merge   : <squash merged or "not merged">

Security Rules

  • NEVER use --force push
  • NEVER push to master directly (hook enforces this)
  • NEVER use --no-verify or bypass hooks
  • NEVER commit .env, credentials, or secrets
  • NEVER stage with git add -A or git add .
  • ALWAYS verify you are on a feature branch before pushing

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Guide for creating optimized Claude Code agents. Use to design a new specialized agent, a swarm sub-agent, or a multi-agent workflow. Follows the Skill → Agent (preloaded skills) → Skill orchestration pattern.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DGouron/review-flow442026년 10월 18일 업데이트

Anti-overengineering guide based on YAGNI. Use before adding an architectural pattern, during code review, or to challenge an overly complex implementation.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DGouron/review-flow442026년 10월 18일 업데이트

Clean Architecture (Uncle Bob) guide for this project. Use when creating modules, entities, use cases, presenters, controllers, gateways, guards, services. Contains tactical patterns and structure conventions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DGouron/review-flow442026년 10월 18일 업데이트

Audit documentation for duplication, staleness, language issues, and verbosity. Read-only — produces an actionable report.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DGouron/review-flow442026년 10월 18일 업데이트

Local auto-review of modified code (no GitLab/GitHub). Runs 5 sequential audits and generates a local report. Ideal for validating code before creating a MR/PR.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DGouron/review-flow442026년 10월 18일 업데이트

Clean Code (Robert C. Martin) guide to produce and challenge code that is readable, durable, simple, and consistent. Covers naming, functions, comments, smells, and refactor heuristics. Complements `/solid` (SOLID principles) and `/anti-overengineering` (YAGNI/KISS). Activate during the REFACTOR phase of the TDD cycle and during implementation self-review.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

DGouron/review-flow442026년 10월 18일 업데이트

DGouron의 스킬 모두 보기

이 스킬의 문제 신고