Agent Skillsnixopus/nixopus › github-workflow

github-workflow

GitHub

定义 GitHub 操作规范,涵盖连接器解析、文件读写及分支管理。核心为 Fix-via-PR 工作流:创建特性分支、提交 PR、合并后触发重新部署。强调禁止直接推送主分支等安全规则,确保变更通过 PR 流程流转。

api/skills/github-workflow/SKILL.md nixopus/nixopus

Trigger Scenarios

修复仓库中的文件 创建新的分支 发起或处理 Pull Request 执行与 GitHub 相关的版本控制操作

Install

npx skills add nixopus/nixopus --skill github-workflow -g -y
More Options

Non-standard path

npx skills add https://github.com/nixopus/nixopus/tree/master/api/skills/github-workflow -g -y

Use without installing

npx skills use nixopus/nixopus@github-workflow

指定 Agent (Claude Code)

npx skills add nixopus/nixopus --skill github-workflow -a claude-code -g -y

安装 repo 全部 skill

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

预览 repo 内 skill

npx skills add nixopus/nixopus --list

SKILL.md

Frontmatter
{
    "name": "github-workflow",
    "metadata": {
        "version": "1.0"
    },
    "description": "Fix-via-PR workflow, file operations, connector resolution, and GitHub safety rules. Load when performing GitHub operations like creating branches, PRs, or file changes."
}

GitHub Workflow

Connector Resolution

When a connectorId is provided in the delegation message, use that connector_id when calling get_github_repositories to list repos from the correct GitHub account. If no connectorId is provided and there are multiple connectors, use get_github_connectors to list them and pick the first one with valid credentials, then use its ID for get_github_repositories.

File Write Capabilities

  • github_create_or_update_file: Create or update a single file. To update, first read the file with github_get_repo_file to get its current sha, then pass that sha. To create a new file, omit sha.
  • github_create_branch: Create a new branch from a commit SHA. Use get_github_repository_branches to find the source branch HEAD SHA.
  • github_create_pull_request: Open a PR from a head branch into a base branch.

Fix-via-PR Flow

When asked to fix a file in a repo:

  1. Call github_get_branch with the default branch name (e.g. "main") to get its HEAD commit SHA.
  2. Create a fix branch with github_create_branch using that SHA (e.g. branch name "nixopus/fix-dockerfile").
  3. Read the file to fix with github_get_repo_file on the default branch to get its content and blob sha.
  4. Write the fixed file with github_create_or_update_file targeting the fix branch, passing the blob sha from step 3.
  5. Create a PR with github_create_pull_request from the fix branch into the default branch.
  6. Ask the user to review and merge the PR. Once merged, the changes land on the default branch.
  7. After the PR is merged, call redeploy_application to pick up the changes from the default branch. Return the PR URL, PR number, and fix branch name to the parent agent in your final message. Never say work is "underway" or that you will send the link later.

Branch Limitation

The application's branch is set at creation time via create_application and CANNOT be changed via update_application. The app always deploys from its configured branch (usually main/master). This is why you MUST use the branch → PR → merge → redeploy flow: changes go to a feature branch, get merged into the default branch via PR, then redeploy picks them up.

GitHub Safety — NON-NEGOTIABLE

  • NEVER commit or push directly to main/master. The tool will reject it. Always create a feature branch → commit there → open a PR.
  • Never merge PRs unless user explicitly requests. Return PR URL.
  • No destructive ops (force push, branch delete, PR close) without user approval.

Version History

  • cf05d97 Current 2026-08-20 14:52

Same Skill Collection

api/skills/api-catalog/SKILL.md
api/skills/caddyfile-generation/SKILL.md
api/skills/compose-setup/SKILL.md
api/skills/container-resource-tuning/SKILL.md
api/skills/cpp-deploy/SKILL.md
api/skills/database-migration/SKILL.md
api/skills/deno-deploy/SKILL.md
api/skills/deploy-delegation/SKILL.md
api/skills/deploy-flow/SKILL.md
api/skills/deployment-analysis/SKILL.md
api/skills/diagnostic-workflow/SKILL.md
api/skills/dockerfile-generation/SKILL.md
api/skills/dockerignore-generation/SKILL.md
api/skills/domain-attachment/SKILL.md
api/skills/domain-tls-routing/SKILL.md
api/skills/dotnet-deploy/SKILL.md
api/skills/elixir-deploy/SKILL.md
api/skills/failure-diagnosis/SKILL.md
api/skills/github-onboarding/SKILL.md
api/skills/gleam-deploy/SKILL.md
api/skills/go-deploy/SKILL.md
api/skills/incident-response/SKILL.md
api/skills/java-deploy/SKILL.md
api/skills/machine-ops/SKILL.md
api/skills/mcp-integrations/SKILL.md
api/skills/monorepo-strategy/SKILL.md
api/skills/nixopus-docs/SKILL.md
api/skills/node-deploy/SKILL.md
api/skills/onboarding/SKILL.md
api/skills/php-deploy/SKILL.md
api/skills/post-deploy-verification/SKILL.md
api/skills/pre-deploy-checklist/SKILL.md
api/skills/python-deploy/SKILL.md
api/skills/rollback-strategy/SKILL.md
api/skills/ruby-deploy/SKILL.md
api/skills/rust-deploy/SKILL.md
api/skills/self-heal/SKILL.md
api/skills/shell-deploy/SKILL.md
api/skills/static-deploy/SKILL.md

Metadata

Files
0
Version
cf05d97
Hash
4d102678
Indexed
2026-08-20 14:52

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