agentleFS
redai-infraredai-infra/Relax/skills/relax-github-workflow/SKILL.md

relax-github-workflow

Skill647 starsChanged 59 days agoApache-2.0View on GitHub

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.

  • Commits and pushes

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this workflow for contributions to redai-studio/Relax.

    line 8
  2. Very specific:

    Use the user's explicitly requested branch name.

    line 34
  3. Distinctive:

    When publication is authorized, push to the selected remote and create the PR with explicit repository, base and head.

    line 43
  4. Distinctive:

    Read back the PR title, body, head and base.

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.