gh

GitHub

用于通过 GitHub CLI 管理 PR、检查状态和 Issues。涵盖创建 PR、查看运行日志及失败排查,并遵循 FlexPrice 特定工作流规范。

.cursor/skills/gh/SKILL.md flexprice/flexprice

Trigger Scenarios

使用 gh CLI 进行 GitHub 操作 处理 Pull Request 创建与审查 查看 CI/CD 检查结果与日志 查询 Issue 上下文

Install

npx skills add flexprice/flexprice --skill gh -g -y
More Options

Use without installing

npx skills use flexprice/flexprice@gh

指定 Agent (Claude Code)

npx skills add flexprice/flexprice --skill gh -a claude-code -g -y

安装 repo 全部 skill

npx skills add flexprice/flexprice --all -g -y

预览 repo 内 skill

npx skills add flexprice/flexprice --list

SKILL.md

Frontmatter
{
    "name": "gh",
    "description": "gh CLI for FlexPrice repos — PRs, checks, issues. Trigger: gh, github pr."
}

gh — GitHub CLI

Prerequisites

  • gh installed and gh auth login completed.
  • Respect user rules:** do not change git config; avoid destructive git unless explicitly requested.

Before gh pr create

Per user workflow preference:

  1. git status, git diff, branch vs base tracking, git log / git diff base...HEAD for full branch story.
  2. Draft title + body (summary, test plan).
  3. Push: git push -u origin HEAD when needed (network).

Create PR

gh pr create --title "..." --body "$(cat <<'EOF'
## Summary
- ...

## Test plan
- [ ] ...
EOF
)"

Use gh pr view --web to open in browser.

Checks & failures

gh pr checks
gh run list --limit 5
gh run view <run-id> --log-failed

For a specific failing job, open run URL or inspect logs with gh.

Issues & context

gh issue view <n>
gh pr view <n>

FlexPrice-specific

  • SDK publish workflows and path filters: see .github/workflows/ and AGENTS.md (SDK pipeline).
  • Do not push or publish packages unless the user explicitly asked.

Related

  • Pre-PR quality: pr

Version History

  • 0b58626 Current 2026-08-20 14:48

Same Skill Collection

.context/sync/SKILL.md
.cursor/skills/apitest/SKILL.md
.cursor/skills/arch/SKILL.md
.cursor/skills/compose/SKILL.md
.cursor/skills/godev/SKILL.md
.cursor/skills/openapi/SKILL.md
.cursor/skills/pr/SKILL.md
.cursor/skills/devenv/SKILL.md

Metadata

Files
0
Version
0b58626
Hash
2891c17e
Indexed
2026-08-20 14:48

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-24 19:50
浙ICP备14020137号-1 $방문자$