Agent Skills › redai-studio/Relax › relax-github-workflow

relax-github-workflow

GitHub

用于在 Relax 项目中准备和发布 GitHub 贡献,包括创建或更新 PR、处理审查反馈及关联 CI 工作流。

skills/relax-github-workflow/SKILL.md redai-studio/Relax

Trigger Scenarios

创建新的 Pull Request 更新现有 PR 内容 处理代码审查反馈 配置 Git 远程仓库与分支

Install

npx skills add redai-studio/Relax --skill relax-github-workflow -g -y
More Options

Use without installing

npx skills use redai-studio/Relax@relax-github-workflow

指定 Agent (Claude Code)

npx skills add redai-studio/Relax --skill relax-github-workflow -a claude-code -g -y

安装 repo 全部 skill

npx skills add redai-studio/Relax --all -g -y

预览 repo 内 skill

npx skills add redai-studio/Relax --list

SKILL.md

Frontmatter
{
    "name": "relax-github-workflow",
    "description": "Prepare and publish Relax GitHub contributions, create or update pull requests, and address review feedback. Use when opening a PR, choosing a contribution branch, publishing changes, following up on a review, or organizing dependent Relax PRs. Connects commit and CI workflows."
}

Relax GitHub workflow

Use this workflow for contributions to redai-studio/Relax. Publishing stays within the user's request; preparing a change does not itself authorize a push, PR, or merge.

Identify the repository and branch

Inspect the working tree, remotes, authenticated account, and target repository permissions:

git status -sb
git remote -v
gh api user --jq .login
gh api repos/redai-studio/Relax --jq '{default_branch, permissions}'

Suggested remote names are upstream for redai-studio/Relax and origin for your fork (<your-org-name>):

upstream  https://github.com/redai-studio/Relax.git (fetch)
upstream  https://github.com/redai-studio/Relax.git (push)
origin    https://github.com/<your-org-name>/Relax.git (fetch)
origin    https://github.com/<your-org-name>/Relax.git (push)

Choose the remote for redai-studio/Relax and the push destination by their URLs, rather than assuming the remote names above; leave unrelated files and worktrees alone. For an existing PR, verify its head repository, branch and SHA before editing or publishing an update.

  • Base new contributions on the current main of redai-studio/Relax, unless the task needs another base or a stack layer.
  • Publish ordinary contributions from a personal fork, even with write access to redai-studio/Relax. Push personal branches directly to redai-studio/Relax only when needed, such as for shared development or gh-stack.
  • Use the user's explicitly requested branch name. When none is specified and pushing directly to redai-studio/Relax, name the branch <name>/<type>/<description>. Use the contributor's chosen name or GitHub login for <name> and the commit type for <type>.
  • For a fork, branch names are unrestricted; <type>/<description> is recommended when the user has not specified a name.

Fetch the remote for redai-studio/Relax before creating the branch. Use a separate worktree when it helps preserve ongoing work.

Prepare and publish a PR

  1. Implement the requested change and verify the affected behavior. Use git-commit to stage only intended files, run pre-commit, and commit.

  2. Read .github/PULL_REQUEST_TEMPLATE.md. Preserve its headings and checkboxes. Explain the background and problem, resulting behavior, and validation in enough detail for a reviewer without the task history. Link relevant PRs, issues, and public documentation; do not include internal or intranet links. Mark only checks actually completed. Use a Conventional Commits title; Relax squash merges use the PR title as the resulting commit subject.

  3. When publication is authorized, push to the selected remote and create the PR with explicit repository, base and head. Prepare a body file so multiline content is passed intact:

    git push --set-upstream <push-remote> HEAD
    gh pr create --repo redai-studio/Relax --base <base-branch> \
        --head <head-branch-or-owner:branch> --title '<type>: <description>' --body-file <body-file>
    
  4. Read back the PR title, body, head and base. Check the published diff before advancing review; report the PR URL and verification results. For an update, verify that the remote PR head matches the intended commit.

Use a Draft PR while work is still in progress. Mark it ready when it is ready for review. Use relax-github-ci to inspect required checks and investigate failures. Required checks and the repository's review requirements determine merge readiness; an optional check failure does not by itself block merging.

Address review feedback

Read the original review thread and the affected code. Apply reasonable findings, or explain a disagreement with evidence. Verify the fix, publish the intended update, and follow up in the original thread within the user's authorization. Reuse the existing thread for the same issue and avoid repeating settled findings.

Dependent PRs

For dependent changes, consider using gh-stack to split the work into cohesive, independently reviewable PRs.

Version History

  • 903fa2f Current 2026-10-19 05:54

Same Skill Collection

skills/agentic-rollout/SKILL.md
skills/code-review/SKILL.md
skills/create-training-script/SKILL.md
skills/creating-skills/SKILL.md
skills/debug-hang/SKILL.md
skills/dev/SKILL.md
skills/doc-writer/SKILL.md
skills/git-commit/SKILL.md
skills/model-integration/SKILL.md
skills/nemo-gym-recipe-integration/SKILL.md
skills/opd-tuning/SKILL.md
skills/perf-doctor/SKILL.md
skills/redaccel-to-relax/SKILL.md
skills/relax-github-ci/SKILL.md
skills/sglang-upgrade/SKILL.md
skills/ssh-ray-cluster/SKILL.md
skills/sync-github/SKILL.md
skills/verl-to-relax/SKILL.md

Metadata

Files
0
Version
903fa2f
Hash
eb0ed1c2
Indexed
2026-10-19 05:54

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-21 23:37
浙ICP备14020137号-1