github-actions-docs

作者: xixu-me

当用户询问如何编写、解释、自定义、迁移、保护或排查GitHub Actions工作流、工作流语法、触发器、矩阵、运行器、可复用工作流、制品、缓存、密钥、OIDC、部署、自定义操作或Actions Runner Controller时使用,尤其是当用户需要官方GitHub文档、精确链接或基于文档的YAML指导时。

npx skills add https://github.com/xixu-me/skills --skill github-actions-docs

GitHub Actions questions are easy to answer from stale memory. Use this skill to ground answers in official GitHub documentation and return the closest authoritative page instead of generic CI/CD advice.

When to Use

Use this skill when the request is about:

  • GitHub Actions concepts, terminology, or product boundaries
  • Workflow YAML, triggers, jobs, matrices, concurrency, variables, contexts, or expressions
  • GitHub-hosted runners, larger runners, self-hosted runners, or Actions Runner Controller
  • Artifacts, caches, reusable workflows, workflow templates, or custom actions
  • Secrets, GITHUB_TOKEN, OpenID Connect, artifact attestations, or secure workflow patterns
  • Environments, deployment protection rules, deployment history, or deployment examples
  • Migrating from Jenkins, CircleCI, GitLab CI/CD, Travis CI, Azure Pipelines, or other CI systems
  • Troubleshooting workflow behavior when the user needs documentation, syntax guidance, or official references

Do not use this skill for:

  • A specific failing PR check, missing workflow log, or CI failure triage. Use gh-fix-ci.
  • General GitHub pull request, branch, or repository operations. Use github.
  • CodeQL-specific configuration or code scanning guidance. Use codeql.
  • Dependabot configuration, grouping, or dependency update strategy. Use dependabot.

Workflow

1. Classify the request

Decide which bucket the question belongs to before searching:

  • Getting started or tutorials
  • Workflow authoring and syntax
  • Runners and execution environment
  • Security and supply chain
  • Deployments and environments
  • Custom actions and publishing
  • Monitoring, logs, and troubleshooting
  • Migration

If you need a quick starting point, load references/topic-map.md and jump to the closest section.

2. Search official GitHub docs first

  • Treat docs.github.com as the source of truth.
  • Prefer pages under https://docs.github.com/en/actions.
  • Search with the user's exact terms plus a focused Actions phrase such as workflow syntax, OIDC, reusable workflows, or self-hosted runners.
  • When multiple pages are plausible, compare 2-3 candidate pages and pick the one that most directly answers the user's question.

3. Open the best page before answering

  • Read the most relevant page, and the exact section when practical.
  • Use the topic map only to narrow the search space or surface likely starting pages.
  • If a page appears renamed, moved, or incomplete, say that explicitly and return the nearest authoritative pages instead of guessing.

4. Answer with docs-grounded guidance

  • Start with a direct answer in plain language.
  • Include exact GitHub docs links, not just the docs homepage.
  • Only provide YAML or step-by-step examples when the user asks for them or when the docs page makes an example necessary.
  • Make any inference explicit. Good phrasing:
    • According to GitHub docs, ...
    • Inference: this likely means ...

Answer Shape

Use a compact structure unless the user asks for depth:

  1. Direct answer
  2. Relevant docs
  3. Example YAML or steps, only if needed
  4. Explicit inference callout, only if you had to connect multiple docs pages

Keep citations close to the claim they support.

Search and Routing Tips

  • For concept questions, prefer overview or concept pages before deep reference pages.
  • For syntax questions, prefer workflow syntax, events, contexts, variables, or expressions reference pages.
  • For security questions, prefer Secure use, Secrets, GITHUB_TOKEN, OpenID Connect, and artifact attestation docs.
  • For deployment questions, prefer environments and deployment protection docs before cloud-specific examples.
  • For migration questions, prefer the migration hub page first, then a platform-specific migration guide.
  • If the user asks for a beginner walkthrough, start with a tutorial or quickstart instead of a raw reference page.

Common Mistakes

  • Answering from memory without verifying the current docs
  • Linking the GitHub Actions docs landing page when a narrower page exists
  • Mixing up reusable workflows and composite actions
  • Suggesting long-lived cloud credentials when OIDC is the better documented path
  • Treating repo-specific CI debugging as a documentation question when it should be handed to gh-fix-ci
  • Letting adjacent domains absorb the request when codeql or dependabot is the sharper fit

Bundled Reference

Read references/topic-map.md only as a compact index of likely doc entry points. It is intentionally incomplete and should never replace the live GitHub docs as the final authority.

来自 xixu-me 的更多技能

use-my-browser
xixu-me
当工作依赖于用户的实时浏览器会话或可见渲染状态而非静态抓取时使用,尤其适用于浏览器调试场景、DevTools选中的元素或请求、已登录的仪表盘或CMS流程、本地应用、表单、上传、下载、媒体检查、DOM或iframe检查、Shadow DOM,以及表现为软404、认证墙、反爬虫检测或速率限制的浏览器故障。
browser-automationweb-scrapingtesting
readme-i18n
xixu-me
当用户想要翻译仓库的README、使仓库支持多语言、本地化文档、添加语言切换器、国际化README,或更新GitHub风格仓库中的本地化README变体时使用。
documentdevelopmentapi
openclaw-secure-linux-cloud
xixu-me
在云服务器上自托管OpenClaw时使用,用于加固远程OpenClaw网关、选择SSH隧道、Tailscale或反向代理暴露方式,或审查Podman、配对、沙箱、令牌认证及工具权限默认设置,以实现安全的个人部署。
devopssecurity
develop-userscripts
xixu-me
在构建、调试、打包或发布用于Tampermonkey或ScriptCat的浏览器用户脚本时使用,包括GM API、元数据块、权限问题、@match/@grant/@connect设置、ScriptCat后台或定时脚本、UserConfig块或订阅工作流。
developmentbrowser-automationweb-scraping
secure-linux-web-hosting
xixu-me
在设置、加固或审查用于自托管的云服务器时使用,包括DNS、SSH、防火墙、Nginx、静态站点托管、应用反向代理、使用Let's Encrypt或ACME客户端的HTTPS、安全的HTTP到HTTPS重定向,或可选的启动后网络调优(如BBR)。
devopssecurityaws
opensource-guide-coach
xixu-me
当用户希望获得关于启动、贡献、发展、治理、资助、保护或维护开源项目的指导,或询问贡献者入职、社区健康、维护者倦怠、行为准则、指标、法律基础或开源项目采用等问题时使用。
developmentresearch
running-claude-code-via-litellm-copilot
xixu-me
在通过本地LiteLLM代理将Claude Code路由到GitHub Copilot时使用,以减少直接Anthropic支出、配置ANTHROPIC_BASE_URL或ANTHROPIC_MODEL覆盖,或排查Copilot代理设置失败问题,例如模型未找到、无本地流量或GitHub 401/403认证错误。
developmentapidevops
skills-cli
xixu-me
当用户
developmentapiproductivity