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

ship

Run quality gates, commit, push, and open a PR with the canonical template. Use when the user runs /ship or wants to ship the current changes.

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

연동 도구GitHub
설치 방법 보기

포함된 파일(2)

  • SKILL.md5.7 KB
  • agents/openai.yaml217 B

SKILL.md(원문)

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

/ship — Quality Gates → Commit → Push → PR

Runs all quality checks, commits staged/unstaged changes, pushes the branch, and creates or updates a PR.

Usage

/ship                        # Auto-generate commit message
/ship "add login redirect"   # Use provided commit message
/ship --amend                # Amend previous commit (use sparingly)

Step 1 — Pre-flight Check

git status                   # Show what will be committed
git diff --stat              # Show changed files summary

If working tree is clean (nothing to commit): report "Nothing to ship. Working tree is clean."


Step 2 — Quality Gates

Run all checks. All must pass before committing.

bun run typecheck            # TypeScript — 0 errors required
bun run lint                 # Lint (skip if no lint script in package.json)
bun test                     # Tests (skip if no test files exist)

Strict evaluator verdict (optional): If AGENT_FORGE_EVAL_VERDICT=strict is set in the environment where hooks run, the task is shippable only once its run's evaluator verdict is on file and the gate has read it. The quality gate enforces this on TaskCompleted, and only for a run it can tie to that Beads issue through a run correlation; without one the strict check fails. Three steps, with one pointer for all of them: (1) the run's correlation: a Forge run has one from forge:phase-gate … --write --bead <TASK-ID>; otherwise create it once with bun run forge:correlate --bead <TASK-ID>. Either prints a pointer. (2) File the verdict with that pointer: bun run forge:verdict --correlation <pointer> … (schema 2, written once at the path that run declares: .claude/protocols/evaluation-verdict.md). (3) Run the gate with the same pointer: bun run quality-gate --correlation <pointer>. Running forge:correlate --bead again mints a new run, whose verdict has not been filed.

If any check fails:

  1. Report which check failed and the exact error
  2. Fix the issue
  3. Re-run the failing check
  4. Maximum 2 auto-fix attempts; escalate to user if still failing after 2

Step 3 — Security Scan

Scan the diff for security issues before committing:

git diff HEAD

Check for:

  • Hardcoded secrets, API keys, passwords, tokens
  • SQL string concatenation
  • eval() or unsafe dynamic code execution
  • Auth checks being bypassed (commented out, if (true))
  • Unescaped user input in HTML templates

If any security issue is found: stop, fix, do not ship. Never commit secrets.


Step 4 — Commit

Stage all changes:

git add -A
git status --short           # Confirm staged files look right

Commit with the provided or generated message:

# Format: type(scope): description\n\nRefs: <TASK-ID>
git commit -m "<message>"

If --amend flag: git commit --amend --no-edit

Generating commit messages

If no message was provided, infer from:

  1. The Beads task title (if a task is active)
  2. The diff summary (most-changed files and purpose)
  3. Format: <type>(<scope>): <description>\n\nRefs: <TASK-ID>

Types: feat, fix, refactor, test, docs, chore, build


Step 5 — PR Stack Detection

Check if the current branch has a stack relationship:

gh pr list --state open --json number,headRefName,baseRefName
git log --oneline master..HEAD
  • If current branch is based off another feature branch: set --base <that-branch> in PR creation
  • If current branch is based off master: set --base master

Step 6 — Push

git pull --rebase origin <base-branch>   # Rebase on latest before pushing
git push origin <current-branch>

If push fails due to diverged history:

  • git pull --rebase and retry once
  • If still failing: report the conflict; do NOT force push

Step 7 — Create or Update PR

The PR body MUST follow the canonical template — see .claude/skills/pr-description/SKILL.md. Do not hand-roll an ad-hoc body; start from the template, fill every required section with real content, and validate before posting.

Check if PR already exists

gh pr list --head <current-branch> --json number,url

Build the body from the template

mkdir -p .tmp/work
cp .claude/skills/pr-description/references/pr-template.md .tmp/work/pr-body.md
# Fill every section in .tmp/work/pr-body.md:
#   What Changed · Why It's Needed · How It Was Tested · Test Evidence
#   (paste real `bun test` / typecheck output) · Risk & Rollback · Linked Issues & AC Trace.
# Pull AC from: bd show <TASK-ID>
bun run .claude/skills/pr-description/scripts/check-pr-body.ts .tmp/work/pr-body.md
# Must print "ok": true before continuing.

Create new PR

gh pr create \
  --title "<TASK-ID>: <task title>" \
  --base <base-branch> \
  --body "$(cat .tmp/work/pr-body.md)"

Update existing PR

gh pr edit <number> --body "$(cat .tmp/work/pr-body.md)"

Step 8 — Post-Ship

# Close Beads task
bd close <TASK-ID> 2>/dev/null || true
bd comments add <TASK-ID> "worklog: shipped — PR #<n>" 2>/dev/null || true

# Beads is local-only here: nothing to push (see "Tracker is local-only" in CLAUDE.md)

# Deploy dashboard
bun run build-pages 2>/dev/null || true

# Final status
git status
echo "✓ Shipped: <branch> → PR #<n>"

Output

Quality gates: PASS (tsc, lint, tests)
Security scan: PASS
Committed: abc1234 — feat(auth): add refresh token rotation
Pushed: origin/feat/T-42-refresh-tokens
PR: https://github.com/org/repo/pull/17 (created)
Beads: T-42 closed

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

add-bead

무료

Capture free-text work as a tracked Beads issue. Use when the user runs /add-bead or wants to quickly file a Beads issue.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

add-repo

무료

Register a new sub-repo in the knowledge base.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

Add focused Bun unit tests for mission-critical behavior and edge cases — not blanket coverage.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

ask

무료

Answer questions about the codebase from knowledge files. Use when the user runs /ask or asks a domain/knowledge question about the repos.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

Meta-skill for creating Agent Forge skills under .claude/skills/ with SKILL.md, optional references/ and scripts/, and Bun scaffolds. Use when the user wants to add or author a skill, scaffold a new skill folder, or align skill docs with harness conventions (JSON script output, Beads for tasks).

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

Choose Beads issue priority (P0–P4, numeric, or named) from urgency, impact, and risk when creating or triaging work.

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

jupes/agent-forge-harness22026년 10월 19일 업데이트

jupes의 스킬 모두 보기

이 스킬의 문제 신고