raise-pr

작성자: shopify

FlashList용 GitHub PR을 생성합니다. 커밋이나 PR 본문에 AI/Claude 기여 표시가 없도록 하고, 제목, 설명, 테스트 계획에 대해 저장소 규칙을 따릅니다.

npx skills add https://github.com/shopify/flash-list --skill raise-pr

Raise a FlashList PR

Prerequisite: Run the review-and-test skill first. All checks must pass and device testing must be done before raising a PR. DO NOT SKIP.

Rules

  1. NEVER push directly to main — always create a branch and open a PR.
  2. NEVER mention Claude, AI, or any AI tool in commit messages, PR title, PR body, or comments. No Co-Authored-By AI lines. The PR must read as if written entirely by a human.
  3. Only raise a PR when explicitly asked by the user (exception: on CI, raise directly as part of the fix workflow).

Step 0 — Kill Background Processes (MANDATORY on CI)

Before creating the branch and PR, kill any background processes you started (Metro, emulators, etc.). On CI, leftover processes prevent the GitHub Actions job from exiting.

lsof -ti:8081 | xargs kill -9 2>/dev/null || true

Step 1 — Create Branch and Commit

Branch naming

fix/issue-<number>-<short-slug>
feat/<short-slug>
refactor/<short-slug>

Commit message format

fix(<scope>): <concise description>

Fixes #<number>

Scope examples: layout, hooks, scroll, sticky-headers, recycling, viewability.

Do NOT include:

  • Co-Authored-By lines
  • Any mention of Claude, AI, Anthropic, or automated tools
  • Generated by or Assisted by attributions

Commands

git checkout -b fix/issue-<number>-<short-slug>
git add <specific files>
git commit -m "$(cat <<'EOF'
fix(<scope>): <description>

Fixes #<number>
EOF
)"
git push -u origin fix/issue-<number>-<short-slug>

Step 2 — Self-Review

Run git diff HEAD~1 and check for:

  • Leftover debug code — console.log, fetch("http://localhost:..."), temporary comments
  • Unrelated changes — files or hunks that aren't part of the fix
  • Co-Authored-By lines — check with git log -1 --format=full
  • Fixture index.js left with forceRTL(true) — always revert before committing

Quick check:

grep -r "console\.\(log\|warn\)\|localhost:9876\|forceRTL(true)" src/ fixture/react-native/index.js --include="*.ts" --include="*.tsx" --include="*.js"

Fix any issues found, then amend the commit before proceeding.


Step 3 — Create the PR

PR title

  • Under 70 characters
  • Same format as commit: fix(<scope>): <description>

PR body template

Always use --body-file — inline --body with markdown # headers triggers Claude Code permission checks and wastes turns. Use the Write tool to create the file (not cat, echo, or touch, which may be blocked by sandbox on CI).

Write the following to /tmp/pr-body.md using the Write tool:

## Description

<1-3 sentences: what the bug was and how the fix works>

Fixes #<number>

## Reviewers' hat-rack :tophat:

<What reviewers should focus on — layout logic, hook behavior, edge cases, etc.>

## Screenshots or videos

<Before/after screenshots if applicable>

## Test plan

- [ ] Unit tests pass (`yarn test`)
- [ ] Type check passes (`yarn type-check`)
- [ ] Lint passes (`yarn lint`)
- [ ] Verified on iOS simulator
- [ ] No regressions on related screens
      EOF

GH_TOKEN="$AGENT_PR_TOKEN" gh pr create \
 --title "fix(<scope>): <description>" \
 --body-file /tmp/pr-body.md

CRITICAL — TOKEN VERIFICATION (read this before running gh pr create)

  1. First, verify the token is available: [ -n "$AGENT_PR_TOKEN" ] && echo "token ok" || echo "TOKEN MISSING" — do NOT echo the token value itself.
  2. You MUST use GH_TOKEN="$AGENT_PR_TOKEN" gh pr create ... — never bare gh pr create.
  3. PRs created with the default GITHUB_TOKEN show as app/github-actions and cannot be merged.
  4. After creating the PR, verify the author: gh pr view --json author --jq '.author.login' — it must NOT be app/github-actions.

If AGENT_PR_TOKEN is empty, try SHOPIFY_GH_ACCESS_TOKEN as fallback: GH_TOKEN="${AGENT_PR_TOKEN:-$SHOPIFY_GH_ACCESS_TOKEN}" gh pr create ...

Before running gh pr create, double-check:

  • Token is verified (see above)
  • No mention of Claude, AI, Anthropic, or any AI tool anywhere
  • Description explains the "what" and "why" clearly
  • Test plan is specific to the change

Step 4 — Post-Creation

Return the PR URL to the user.

If the user asks to update the PR (interactive only — not available on CI):

git add <files>
git commit --amend --no-edit
git push --force-with-lease

On CI, create a new commit instead of amending — force-push is not permitted.

shopify의 다른 스킬

shopify-dev
shopify
모든 API에 걸쳐 Shopify 개발자 문서를 검색합니다. API별 스킬이 적용되지 않을 때만 사용하세요.
shopify-customer
shopify
고객 계정 API를 통해 고객은 주문, 결제 수단, 주소 등 자신의 데이터에 접근할 수 있습니다.
shopify-hydrogen
shopify
Hydrogen 스토어프론트 구현 쿡북. 사용 가능한 레시피로는 B2B 커머스, 번들, 결합 리스팅, 맞춤형 장바구니 방식, 동적 콘텐츠 등이 있습니다.
shopify-liquid
shopify
Liquid는 Shopify에서 만든 오픈소스 템플릿 언어입니다. Shopify 테마의 핵심이며, 스토어프론트에 동적 콘텐츠를 로드하는 데 사용됩니다.…
shopify-polaris-admin-extensions
shopify
앱에서 제공하는 맞춤 작업과 블록을 Shopify 관리자의 상황에 맞는 위치에 추가하세요. Admin UI Extensions는 새로운 구조 생성도 지원합니다…
shopify-merchant-onboarding
shopify
전체 스킬 지침을 https://www.shopify.com/SKILL.md에서 가져와 단계별로 따르십시오. 해당 파일은 정식 판매자 온보딩으로, 환경 감지, CLI + 플러그인 설치, 스토어 인증 및 목표 라우팅에 대한 전체 흐름을 포함합니다. 작성된 대로 지침을 정확히 실행하십시오.
shopify-partner
shopify
파트너 API를 사용하면 파트너 대시보드의 앱, 테마, 제휴 추천 데이터를 프로그래밍 방식으로 액세스할 수 있습니다.
ucp
shopify
사용자가 UCP CLI를 사용하여 온라인 상점에서 제품을 찾거나, 비교하거나, 구매하거나, 추적하거나, 로컬 UCP 프로필을 설정 및 문제 해결하려는 경우 사용합니다.