github-workflow
Handles the repository's GitHub delivery workflow end to end: issue creation, issue-number-linked branch creation, validation, conventional commit, push, and pull request creation.
- License 许可
- MIT
- 最近更新
- 2026-10-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- github-workflow
- description
- Handles the repository's GitHub delivery workflow end to end: issue creation, issue-number-linked branch creation, validation, conventional commit, push, and pull request creation.
- user-invocable
- false
02 资源文件 1
- 参考文档agents/openai.yml166 B
03 SKILL.md 正文
GitHub Workflow
Use this skill when the user wants the repository change wrapped up into GitHub artifacts, especially requests like:
- "이슈 생성/브랜치/커밋/pr까지 진행"
- "브랜치 이름 바꾸고 PR 열어줘"
- "이 작업 이슈랑 커밋까지 정리해줘"
Keep the flow non-interactive and repository-safe.
Preconditions
- Check local state first.
git status --short --branchgit remote -vgit log --oneline -5
- If there are unrelated staged or modified files, do not revert them. Scope the workflow only to the user-requested change.
- Check GitHub CLI auth before remote work.
gh auth status
- If network access or auth blocks the workflow, continue as far as possible locally, then surface the exact blocker.
- Run all
ghcommands outside the sandbox (with escalation in this environment).
Required Validation
Before committing non-trivial work, choose validation commands that match the
changed surface. This repository uses npm scripts, not pnpm or Biome.
- Always run
git diff --checkfor whitespace and patch hygiene. - For TypeScript, component, config, Sass, or formatting-sensitive changes, run
npm run check. - For logic or utility changes covered by tests, run
npm test. - For content, layout, Quartz config, build pipeline, or broad UI changes, run
npm run quartz -- build.
Report pass/fail status in the final handoff and include the same validation list in the PR body. If a validation command is skipped because it is not relevant, say why.
Workflow
- Summarize the change in one line and identify the conventional commit type.
- Use
feat(<domain>): ...,fix(<domain>): ..., orchore: ...
- Use
- Create the GitHub issue (required for full workflow).
- Use a conventional title matching the eventual commit and PR title.
- Example:
chore(agents): unify shared skill workflow - Use a body with
SummaryandValidationsections. - Capture issue number from the creation result.
- Create issue-numbered branch name and check out branch.
- Branch format:
prefix<issue_num>/<short-kebab-summary> prefixshould be the conventional commit type, such asfeat,fix,docs,style,refactor,test, orchore.- Example:
feat123/team-po-fourth-deck - Command:
git checkout -b <branch-name>
- Branch format:
- Stage only intended files.
git add <paths...>
- Commit with a conventional message.
git commit -m "<type(scope): summary>"
- Push branch.
git push -u origin <branch-name>
- Create the PR.
- Base branch is usually
mainunless local context says otherwise. - Use the same conventional title style as the issue and commit.
- PR body should contain:
SummaryValidationCloses #<issue-number>
- Base branch is usually
Naming Guidance
- Issue, commit, and PR title: conventional, short, outcome-oriented, and
consistent with each other
feat(<domain>): ...fix(<domain>): ...chore(<domain>): ...
- Branch name: lowercase kebab-case summary with a type prefix immediately
followed by the required issue number (
issue_num), then a slashfeat123/short-summaryfix456/short-summarychore789/short-summary
- Good branch examples:
fix123/branding-svg-refreshfeat456/auth-profile-pagechore789/update-mock-handlers
Prefer branch names that match the commit intent and always include issue number.
Command Patterns
Use non-interactive gh commands.
gh issue create --repo <owner/repo> --title "<title>" --body "<body>"
# Capture issue URL from stdout, then derive issue number for branch naming:
issue_url="$(gh issue create --repo <owner/repo> --title "<title>" --body "<body>")"
issue_number="${issue_url##*/}"
gh pr create --repo <owner/repo> --base main --head <branch> --title "<title>" --body "<body>"
When body text is multi-line, quote it safely. Avoid shell interpolation bugs from backticks inside double quotes.
Branch Rename Notes
When the user explicitly asks to rename a branch:
- Rename locally with
git branch -m. - Push the renamed branch with
git push -u origin <new-branch-name>. - Only delete the old remote branch if the user explicitly asks for it.
Do not delete remote branches as part of the default flow.
Final Handoff
Return:
- issue number and URL, if created
- branch name
- commit SHA and message
- PR number and URL, if created
- validation results
If any GitHub step failed, clearly separate:
- completed local steps
- blocked remote steps
- exact reason, such as invalid
ghauth or network restrictions
04 同仓库更多 Skills
github-workflow
暂无简介
design-system
暂无简介
design-system
Use when changing jaeunda.log visual design, Quartz layout, typography, colors, responsive behavior, home-page components, article styling, tag/list pages, or UI polish. Ensures every agent follows the repository's actual design system and produces consistent output from the same input.