github-connect
Set up and verify GitHub integration using the GitHub CLI. Use when the user says 'connect to GitHub', 'set up GitHub', or 'configure GitHub'.
- License 许可
- MIT
- 最近更新
- 2026-05-12
- Stars
- ★ 8
- Forks
- 1
01 前言 Front Matter
- name
- github-connect
- description
- Set up and verify GitHub integration using the GitHub CLI. Use when the user says 'connect to GitHub', 'set up GitHub', or 'configure GitHub'.
03 SKILL.md 正文
GitHub — Connect and Verify
Goal
Verify GitHub CLI authentication and store repository details in config so branch creation, PR creation, and other GitHub skills work seamlessly.
Step 1: Check GitHub CLI is Available
which gh && gh --version
If not found:
"GitHub CLI (
gh) is not installed. Install it from https://cli.github.com or run:
- macOS:
brew install gh- Ubuntu:
sudo apt install gh- Windows:
winget install GitHub.cli"
⏸️ STOP — gh must be installed.
Step 2: Check Authentication Status
gh auth status
If not authenticated:
gh auth login
Follow the interactive prompts (browser-based OAuth — no token needed manually).
⏸️ STOP — must be authenticated before proceeding.
Step 3: Identify Repository
Ask: "What is the GitHub repository? (format: owner/repo or paste the URL)"
Verify the repo exists and is accessible:
gh repo view {owner}/{repo} --json name,defaultBranchRef,visibility | python3 -c "
import sys, json
d = json.load(sys.stdin)
print('Repo:', d['name'])
print('Default branch:', d['defaultBranchRef']['name'])
print('Visibility:', d['visibility'])
"
Step 4: Configure Branch Naming Pattern
Ask: "What branch naming pattern should be used?"
Options:
feature/{JIRA-KEY}-{slug}(recommended — links branch to JIRA ticket){JIRA-KEY}-{slug}feature/{slug}- Custom pattern
Step 5: Save to Config
integrations:
github:
owner: "{owner}"
repo: "{repo}"
default_branch: "{branch}"
branch_pattern: "feature/{jira_key}-{slug}"
Completion
"✅ GitHub connected. Repo: {owner}/{repo} Default branch: {branch} Branch pattern: {pattern}
Available skills:
github-create-branch— create feature branch for a storygithub-create-pr— create pull request with JIRA link and ACs"
04 同仓库更多 Skills
jira-sync
Bulk sync all epics and stories from the local backlog to JIRA. Use when the user says 'sync to JIRA', 'push everything to JIRA', or 'create all JIRA tickets'.
jira-create-story
Create a single story ticket in JIRA from a local story file. Use when the user says 'create this story in JIRA' or 'push story to JIRA'.
jira-create-epic
Create an epic in JIRA from a planning artifact. Use when the user says 'create this epic in JIRA' or 'push epic to JIRA'.
jira-connect
Set up and verify JIRA integration. Use when the user says 'connect to JIRA', 'set up JIRA', or 'configure JIRA'.
jira-conflict-detect
Check if a story is already being worked on by another team member. Use before starting any story implementation.
gitlab-create-mr
Create a GitLab Merge Request for the current story branch. Use when the user says 'create an MR', 'open a merge request', or 'ready for review' in a GitLab project.