.claude/skills/gh/SKILL.md
This skill should be used when working with GitHub CLI (gh) for pull requests, issues, releases, and GitHub automation. Use when users mention gh commands, GitHub workflows, PR operations, issue management, or GitHub API access. Essential for understanding gh's mental model, command structure, and integration with git workflows.
npx skillsauth add msbaek/dotfiles ghInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
GitHub CLI (gh) is the official command-line tool for GitHub that brings pull requests, issues, releases, and other GitHub concepts to the terminal. This skill provides comprehensive guidance for using gh to streamline GitHub workflows, including PR management, issue tracking, repository operations, and API access.
Invoke this skill when users:
gh) commands or workflowsBefore providing guidance, understand these key concepts:
Three-Layer Architecture:
gh pr, gh issue, gh repo - user-friendly workflowsgh api - direct REST/GraphQL access with built-in authContext Resolution:
gh automatically detects repository from git remotesMental Model:
Think of gh as "GitHub workflows made CLI-native" - each command maps to a common GitHub workflow optimized for terminal use.
When providing gh guidance, load the comprehensive reference documentation:
references/gh.md
This reference contains:
Loading Strategy:
references/gh.md when user asks gh-related questionsgh pr - Pull request commandsgh issue - Issue management commandsgh repo - Repository operationsgh api - API access patternsPattern [0-9]: - Workflow patternsAuthentication - Auth setuperk Integration - Integration with erkWhen users ask for help with gh, guide them using these patterns:
gh --versiongh auth login (interactive) or gh auth status (check current)gh config set <key> <value>gh repo view (in a git repo)Load references/gh.md and search for "gh pr" section to provide:
gh pr create (interactive or with flags)gh pr view, gh pr listgh pr checkout <number>gh pr review, gh pr diffgh pr mergegh pr checksLoad references/gh.md and search for "gh issue" section to provide:
gh issue creategh issue list (with filters)gh issue view <number>gh issue edit, gh issue closeLoad references/gh.md and search for "gh repo" section to provide:
gh repo viewgh repo clonegh repo creategh repo forkLoad references/gh.md and search for "gh api" section to provide:
gh api <endpoint>gh api graphql -f query='...'--jqFor advanced GraphQL use cases, load references/graphql.md:
Load references/gh.md and search for "gh release" section to provide:
gh release creategh release listgh release downloadgh release uploadWhen users describe their workflow needs, map them to patterns in the reference:
Pattern 1: Daily PR Workflow - Create, review, merge PRs Pattern 2: Issue Triage - List, filter, and manage issues Pattern 3: Release Automation - Script release creation and asset management Pattern 4: PR Checks and Status - Monitor CI/CD and review status Pattern 5: Multi-Repo Operations - Work across multiple repositories Pattern 6: GitHub API Scripting - Automate complex GitHub workflows Pattern 7: Code Review Workflow - Review PRs from command line
Load the appropriate pattern sections from references/gh.md based on user needs.
When users need to parse or format gh output:
references/gh.md--json, --jq, --templategh pr list --json number,title,stategh api /repos/{owner}/{repo}/pulls | jq '.[] | select(.draft==false)'When users need auth or config help:
references/gh.mdgh auth login, token managementgh config set, per-command defaultsgit_protocol, editor, pagerWhen users mention erk or worktree workflows:
references/gh.md--repo flag when neededWhen users need to understand gh + git workflows:
references/gh.mdWhen users want to integrate gh with CI/CD:
references/gh.mdGH_TOKENWhen users want to script GitHub workflows:
references/gh.mdgh in shell scripts--jq, exit codesWhen users need advanced capabilities:
gh alias setgh workflowLoad the relevant sections from references/gh.md for each advanced feature.
When standard gh commands are insufficient, use GraphQL via gh api graphql. Load references/graphql.md for comprehensive GraphQL guidance.
When to Use GraphQL:
Use GraphQL when the porcelain commands (gh pr, gh issue, etc.) cannot accomplish the task:
Projects V2: No REST API exists - all operations require GraphQL
Discussions: No porcelain commands available
Batch Operations: Query multiple resources in one API call
Complex Queries: Fetch nested data efficiently
Advanced Search: Complex filtering beyond basic commands
Custom Fields: Precise field selection
GraphQL Resources:
references/graphql.md - Complete GraphQL guide including:
references/graphql-schema-core.md - Core schema types (load only when needed):
Loading Strategy:
references/graphql.md for use cases and patternsreferences/graphql-schema-core.md only when detailed schema info is neededProjects V2 - Project automation examplesDiscussion - Discussion API examplesBatch - Batch query patternsPagination - Cursor-based paginationExample [0-9] - Complete working examplesWhen users encounter issues:
gh auth statusgh repo viewgh api usergh config listgh api rate_limitGH_DEBUG=api gh <command>Load the Troubleshooting section from references/gh.md for specific error patterns.
When users ask "what can gh do?":
pr, issue, repo, release, workflowgh <command> --helpgh api for anything not covered by porcelain commandsreferences/gh.mdgh.md - Comprehensive GitHub CLI mental model and command reference (~1480 lines)
graphql.md - GitHub GraphQL API comprehensive guide (~1000 lines)
graphql-schema-core.md - Core GraphQL schema types (~500 lines)
These references should be loaded as needed to ensure accurate, detailed information. Use progressive disclosure: start with the main reference, then load specialized GraphQL docs when needed.
tools
Obsidian vault에서 이번 주(토~금) 작성/수정된 글들을 모아 뉴스레터 생성. 서브 에이전트 기반 병렬 처리로 메인 컨텍스트 절약. 기술적, 리더십적으로 외부에 공유할 만한 내용을 선별하여 정리. "뉴스레터 만들어줘", "이번 주 글 정리해줘", "weekly digest" 등의 요청 시 자동 적용.
tools
Vault Intelligence System (vis) CLI를 활용한 Obsidian vault 시맨틱 검색, 자동 태깅, MOC 생성, 관련 문서 연결, 주제별 문서 연결, 주제 수집, 태그 통계, 지식 공백 분석, 중복 감지, 학습 리뷰 등 vault 지식 관리 전반을 지원하는 skill. vault 검색, 문서 정리, 태그, MOC, 관련 문서, 주제 수집, 중복 검사, 학습 리뷰, 지식 공백, 클러스터링, 인덱싱, 주제별 문서 연결, 태그 통계 관련 작업 시 자동 적용.
data-ai
Load context from vault memory. Temporal queries (yesterday, last week, session history) use agf (history.jsonl) for fast session lookup. Topic queries use vis semantic search. "recall graph" generates interactive temporal graph of sessions and files. Every recall ends with "One Thing" - the single highest-leverage next action synthesized from results. Use when user says "recall", "what did we work on", "load context about", "remember when we", "prime context", "yesterday", "what was I doing", "last week", "session history", "recall graph", "session graph".
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.