gh-cli
This skill should be used when working with GitHub CLI (gh) for any task including code search, workflow debugging, GitHub Pages deployment, or general GitHub operations. Use this skill for enhanced code search capabilities, analyzing failed workflow runs, managing GitHub Pages, or any gh command usage.
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- gh-cli
- description
- This skill should be used when working with GitHub CLI (gh) for any task including code search, workflow debugging, GitHub Pages deployment, or general GitHub operations. Use this skill for enhanced code search capabilities, analyzing failed workflow runs, managing GitHub Pages, or any gh command usage.
02 资源文件 6
- 参考文档references/README_gh_code_search.md3.6 KB
- 参考文档references/README_gh_failed_run.md3.9 KB
- 参考文档references/README_pages.md7.4 KB
- 脚本scripts/gh_code_search.py10.0 KB
- 脚本scripts/gh_failed_run.py8.3 KB
- 脚本scripts/gh_pages_deploy.py13.4 KB
03 SKILL.md 正文
GitHub CLI (gh)
Overview
Provides specialized utilities for GitHub CLI operations with three powerful Python tools for common workflows, plus general guidance for effective gh command usage.
Core Capabilities
1. Enhanced Code Search
Use scripts/gh_code_search.py for advanced GitHub code search with filtering, formatting, and sorting capabilities.
Key features: Multiple output formats, rate limiting handling, fork/private repo filtering, match count filtering
Documentation: references/README_gh_code_search.md
2. Workflow Failure Analysis
Use scripts/gh_failed_run.py to analyze GitHub Actions workflow failures and extract detailed error information.
Key features: Finds most recent failed run, extracts error patterns from logs, outputs structured JSON with run info and failed jobs
Documentation: references/README_gh_failed_run.md
3. GitHub Pages Management
Use scripts/gh_pages_deploy.py for GitHub Pages deployment automation including enabling Pages, status checks, and workflow generation.
Key features: Enable/configure Pages, check deployment status, trigger rebuilds, generate workflow templates
Documentation: references/README_pages.md
General GitHub CLI Best Practices
When working with GitHub CLI:
- Prefer
ghcommands over rawgitcommands for GitHub-specific operations (issues, PRs, releases) - Use
gh repo viewto quickly inspect repository details - Leverage
gh pr create --weborgh issue create --webfor interactive workflows - Check
gh --helpfor discovering subcommands and capabilities - Use
gh aliasto create shortcuts for frequently used command patterns
Using the Python Utilities
All scripts accept --help for detailed usage information. Run them directly with Python 3:
python3 scripts/gh_code_search.py --help
python3 scripts/gh_failed_run.py --help
python3 scripts/gh_pages_deploy.py --help
Refer to the respective README files in references/ for comprehensive documentation, examples, and troubleshooting guidance.
04 同仓库更多 Skills
seedance-prompt-en
Write effective prompts for Jimeng Seedance 2.0 multimodal AI video generation. Use when users want to create video prompts using text, images, videos, and audio inputs with the @ reference system. Covers camera movements, effects replication, video extension, editing, music beat-matching, e-commerce ads, short dramas, and educational content.
onepage-pdf
Convert an HTML page into a single continuous-page PDF (one tall page, no pagination breaks), preserving desktop layout, backgrounds and selectable text. Use when the user asks to turn an HTML file/report/proposal into a "single-page PDF", "long PDF", "不分页 PDF", "单页 PDF", "长图式 PDF", or complains that an HTML-to-PDF export breaks into pages or cuts content. Supports optional string redaction with leak verification.
native-feel-cross-platform-desktop
Use when the user is designing, prototyping, or rewriting a desktop app that must run on multiple OSes (macOS + Windows, optionally Linux) AND feel indistinguishable from a native app to its users — fast launch, native windowing, native input handling, native materials. Trigger words include "cross-platform desktop", "Electron alternative", "Tauri vs native", "WebView wrapper", "near-native performance", "Raycast architecture", "WebKit/WebView2 quirks", "WKWebView", "system tray app", "global hotkey app", "launcher app". Do NOT trigger this skill for pure web apps, pure mobile apps, or for greenfield projects that have no native-feel requirement.
gstack
Router for the gstack skill suite. (gstack)
fireworks-tech-graph
Use when the user wants to create any technical diagram - architecture, data flow, flowchart, sequence, agent/memory, or concept map - and export as SVG+PNG. Trigger on: "画图" "帮我画" "生成图" "做个图" "架构图" "流程图" "可视化一下" "出图" "generate diagram" "draw diagram" "visualize" or any system/flow description the user wants illustrated.
dbs-video-extract
接收抖音、小红书、微信视频号等短视频链接或分享文案,查询作品/账号数据并提取语音文字稿,按作者和标题归档为 Markdown。用户希望完整解析短视频、取得数据或文字稿时使用;运行前检查 TikHub 与轻抖使用凭证,缺少时用新手能理解的方式引导购买和安全配置。