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
當工作依賴於用戶的即時瀏覽器工作階段或可見的渲染狀態,而非靜態擷取時使用,特別適用於瀏覽器除錯情境、開發者工具選取的元素或請求、已登入的儀表板或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 代理設定失敗,例如模型未找到、無 localhost 流量或 GitHub 401/403 驗證錯誤。
developmentapidevops
skills-cli
xixu-me
Use when users ask to discover, install, list, check, update, remove, back up, restore, sync, or initialize Agent Skills, mention `bunx skills`, `npx skills`, `skills.sh`, or `skills-lock.json`, ask "find a skill for X", or want help extending agent capabilities with installable skills.
developmentapiproductivity