Skip to content

Commit b88f2a3

Browse files
andykenwardCopilot
andauthored
docs: ai agents (#734)
* chore: devcontainer lock file (#731) * ignore new lock file * docs: custom agent * docs: payloads * chore: add payloads pull_request_target * docs: format * feat: format & lint agent hook and pre-commit Co-authored-by: Copilot <copilot@github.com> * feat: typescript agent hook Co-authored-by: Copilot <copilot@github.com> * docs: use AGENTS.md Co-authored-by: Copilot <copilot@github.com> * feat: agent hook SessionStart docs Co-authored-by: Copilot <copilot@github.com> * docs: skills github actions * docs: skills github-issues * Revert "docs: skills github-issues" This reverts commit 98ca655. * ci: fix pre-commit.ci usage Co-authored-by: Copilot <copilot@github.com> * Revert "ci: fix pre-commit.ci usage" This reverts commit 62696d9. * Revert "chore: add payloads pull_request_target" This reverts commit 2ea9062. --------- Co-authored-by: Copilot <copilot@github.com>
1 parent 98d7e34 commit b88f2a3

15 files changed

Lines changed: 741 additions & 158 deletions
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
---
2+
name: github-actions-docs
3+
description: Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners, reusable workflows, artifacts, caching, secrets, OIDC, deployments, custom actions, or Actions Runner Controller, especially when they need official GitHub documentation, exact links, or docs-grounded YAML guidance.
4+
---
5+
6+
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.
7+
8+
## When to Use
9+
10+
Use this skill when the request is about:
11+
12+
- GitHub Actions concepts, terminology, or product boundaries
13+
- Workflow YAML, triggers, jobs, matrices, concurrency, variables, contexts, or expressions
14+
- GitHub-hosted runners, larger runners, self-hosted runners, or Actions Runner Controller
15+
- Artifacts, caches, reusable workflows, workflow templates, or custom actions
16+
- Secrets, `GITHUB_TOKEN`, OpenID Connect, artifact attestations, or secure workflow patterns
17+
- Environments, deployment protection rules, deployment history, or deployment examples
18+
- Migrating from Jenkins, CircleCI, GitLab CI/CD, Travis CI, Azure Pipelines, or other CI systems
19+
- Troubleshooting workflow behavior when the user needs documentation, syntax guidance, or official references
20+
21+
Do not use this skill for:
22+
23+
- A specific failing PR check, missing workflow log, or CI failure triage. Use `gh-fix-ci`.
24+
- General GitHub pull request, branch, or repository operations. Use `github`.
25+
- CodeQL-specific configuration or code scanning guidance. Use `codeql`.
26+
- Dependabot configuration, grouping, or dependency update strategy. Use `dependabot`.
27+
28+
## Workflow
29+
30+
### 1. Classify the request
31+
32+
Decide which bucket the question belongs to before searching:
33+
34+
- Getting started or tutorials
35+
- Workflow authoring and syntax
36+
- Runners and execution environment
37+
- Security and supply chain
38+
- Deployments and environments
39+
- Custom actions and publishing
40+
- Monitoring, logs, and troubleshooting
41+
- Migration
42+
43+
If you need a quick starting point, load `references/topic-map.md` and jump to the closest section.
44+
45+
### 2. Search official GitHub docs first
46+
47+
- Treat `docs.github.com` as the source of truth.
48+
- Prefer pages under <https://docs.github.com/en/actions>.
49+
- Search with the user's exact terms plus a focused Actions phrase such as `workflow syntax`, `OIDC`, `reusable workflows`, or `self-hosted runners`.
50+
- When multiple pages are plausible, compare 2-3 candidate pages and pick the one that most directly answers the user's question.
51+
52+
### 3. Open the best page before answering
53+
54+
- Read the most relevant page, and the exact section when practical.
55+
- Use the topic map only to narrow the search space or surface likely starting pages.
56+
- If a page appears renamed, moved, or incomplete, say that explicitly and return the nearest authoritative pages instead of guessing.
57+
58+
### 4. Answer with docs-grounded guidance
59+
60+
- Start with a direct answer in plain language.
61+
- Include exact GitHub docs links, not just the docs homepage.
62+
- Only provide YAML or step-by-step examples when the user asks for them or when the docs page makes an example necessary.
63+
- Make any inference explicit. Good phrasing:
64+
- `According to GitHub docs, ...`
65+
- `Inference: this likely means ...`
66+
67+
## Answer Shape
68+
69+
Use a compact structure unless the user asks for depth:
70+
71+
1. Direct answer
72+
2. Relevant docs
73+
3. Example YAML or steps, only if needed
74+
4. Explicit inference callout, only if you had to connect multiple docs pages
75+
76+
Keep citations close to the claim they support.
77+
78+
## Search and Routing Tips
79+
80+
- For concept questions, prefer overview or concept pages before deep reference pages.
81+
- For syntax questions, prefer workflow syntax, events, contexts, variables, or expressions reference pages.
82+
- For security questions, prefer `Secure use`, `Secrets`, `GITHUB_TOKEN`, `OpenID Connect`, and artifact attestation docs.
83+
- For deployment questions, prefer environments and deployment protection docs before cloud-specific examples.
84+
- For migration questions, prefer the migration hub page first, then a platform-specific migration guide.
85+
- If the user asks for a beginner walkthrough, start with a tutorial or quickstart instead of a raw reference page.
86+
87+
## Common Mistakes
88+
89+
- Answering from memory without verifying the current docs
90+
- Linking the GitHub Actions docs landing page when a narrower page exists
91+
- Mixing up reusable workflows and composite actions
92+
- Suggesting long-lived cloud credentials when OIDC is the better documented path
93+
- Treating repo-specific CI debugging as a documentation question when it should be handed to `gh-fix-ci`
94+
- Letting adjacent domains absorb the request when `codeql` or `dependabot` is the sharper fit
95+
96+
## Bundled Reference
97+
98+
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.
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
# GitHub Actions Topic Map
2+
3+
This reference is a compact routing aid derived from the source catalog. It is intentionally selective and deduplicated. Use it to find the right documentation neighborhood quickly, then verify against the live docs on `docs.github.com`.
4+
5+
## Getting Started
6+
7+
- [Understanding GitHub Actions](https://docs.github.com/en/actions/get-started/understand-github-actions)
8+
- [Quickstart for GitHub Actions](https://docs.github.com/en/actions/get-started/quickstart)
9+
- [Continuous integration](https://docs.github.com/en/actions/get-started/continuous-integration)
10+
- [Continuous deployment](https://docs.github.com/en/actions/get-started/continuous-deployment)
11+
- [Workflow syntax for GitHub Actions](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax)
12+
- [Events that trigger workflows](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows)
13+
14+
## Workflow Authoring
15+
16+
- [Workflows](https://docs.github.com/en/actions/concepts/workflows-and-actions/workflows)
17+
- [Variables](https://docs.github.com/en/actions/concepts/workflows-and-actions/variables)
18+
- [Contexts](https://docs.github.com/en/actions/concepts/workflows-and-actions/contexts)
19+
- [Expressions](https://docs.github.com/en/actions/concepts/workflows-and-actions/expressions)
20+
- [Using jobs in a workflow](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-jobs)
21+
- [Running variations of jobs in a workflow](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/run-job-variations)
22+
- [Passing information between jobs](https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/pass-job-outputs)
23+
- [Reuse workflows](https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows)
24+
- [Reusing workflow configurations](https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations)
25+
26+
## Runners and Execution
27+
28+
- [GitHub-hosted runners](https://docs.github.com/en/actions/concepts/runners/github-hosted-runners)
29+
- [Using GitHub-hosted runners](https://docs.github.com/en/actions/how-tos/manage-runners/github-hosted-runners/use-github-hosted-runners)
30+
- [Choosing the runner for a job](https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/choose-the-runner-for-a-job)
31+
- [Running jobs in a container](https://docs.github.com/en/actions/how-tos/write-workflows/choose-where-workflows-run/run-jobs-in-a-container)
32+
- [Self-hosted runners](https://docs.github.com/en/actions/concepts/runners/self-hosted-runners)
33+
- [Larger runners](https://docs.github.com/en/actions/concepts/runners/larger-runners)
34+
- [Actions Runner Controller](https://docs.github.com/en/actions/concepts/runners/actions-runner-controller)
35+
- [Get started with Actions Runner Controller](https://docs.github.com/en/actions/tutorials/use-actions-runner-controller/get-started)
36+
37+
## Security and Supply Chain
38+
39+
- [Secure use reference](https://docs.github.com/en/actions/reference/security/secure-use)
40+
- [Secrets](https://docs.github.com/en/actions/concepts/security/secrets)
41+
- [GITHUB_TOKEN](https://docs.github.com/en/actions/concepts/security/github_token)
42+
- [OpenID Connect](https://docs.github.com/en/actions/concepts/security/openid-connect)
43+
- [OpenID Connect reference](https://docs.github.com/en/actions/reference/security/oidc)
44+
- [Artifact attestations](https://docs.github.com/en/actions/concepts/security/artifact-attestations)
45+
- [Using artifact attestations to establish provenance for builds](https://docs.github.com/en/actions/how-tos/secure-your-work/use-artifact-attestations/use-artifact-attestations)
46+
- [Using OpenID Connect with reusable workflows](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-with-reusable-workflows)
47+
- [Configuring OpenID Connect in Amazon Web Services](https://docs.github.com/en/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-aws)
48+
49+
## Deployments and Environments
50+
51+
- [Deployment environments](https://docs.github.com/en/actions/concepts/workflows-and-actions/deployment-environments)
52+
- [Deployments and environments](https://docs.github.com/en/actions/reference/workflows-and-actions/deployments-and-environments)
53+
- [Deploying with GitHub Actions](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/control-deployments)
54+
- [Managing environments for deployment](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/manage-environments)
55+
- [Reviewing deployments](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/review-deployments)
56+
- [Viewing deployment history](https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/view-deployment-history)
57+
- [Deploying to Amazon Elastic Container Service](https://docs.github.com/en/actions/how-tos/deploy/deploy-to-third-party-platforms/amazon-elastic-container-service)
58+
- [Deploying Node.js to Azure App Service](https://docs.github.com/en/actions/how-tos/deploy/deploy-to-third-party-platforms/nodejs-to-azure-app-service)
59+
60+
## Custom Actions and Publishing
61+
62+
- [About custom actions](https://docs.github.com/en/actions/concepts/workflows-and-actions/custom-actions)
63+
- [Metadata syntax reference](https://docs.github.com/en/actions/reference/workflows-and-actions/metadata-syntax)
64+
- [Managing custom actions](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/manage-custom-actions)
65+
- [Creating a JavaScript action](https://docs.github.com/en/actions/tutorials/create-actions/create-a-javascript-action)
66+
- [Creating a composite action](https://docs.github.com/en/actions/tutorials/create-actions/create-a-composite-action)
67+
- [Creating a third party CLI action](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/create-a-cli-action)
68+
- [Publishing actions in GitHub Marketplace](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/publish-in-github-marketplace)
69+
- [Releasing and maintaining actions](https://docs.github.com/en/actions/how-tos/create-and-publish-actions/release-and-maintain-actions)
70+
71+
## Monitoring, Logs, and Troubleshooting
72+
73+
- [Using the visualization graph](https://docs.github.com/en/actions/how-tos/monitor-workflows/use-the-visualization-graph)
74+
- [Viewing workflow run history](https://docs.github.com/en/actions/how-tos/monitor-workflows/view-workflow-run-history)
75+
- [Using workflow run logs](https://docs.github.com/en/actions/how-tos/monitor-workflows/use-workflow-run-logs)
76+
- [Viewing job condition expression logs](https://docs.github.com/en/actions/how-tos/monitor-workflows/view-job-condition-logs)
77+
- [Enabling debug logging](https://docs.github.com/en/actions/how-tos/monitor-workflows/enable-debug-logging)
78+
- [Troubleshooting workflows](https://docs.github.com/en/actions/how-tos/troubleshoot-workflows)
79+
- [Viewing GitHub Actions metrics](https://docs.github.com/en/actions/how-tos/administer/view-metrics)
80+
81+
## Migration and Tutorials
82+
83+
- [Migrating to GitHub Actions](https://docs.github.com/en/actions/tutorials/migrate-to-github-actions)
84+
- [Automating migration with GitHub Actions Importer](https://docs.github.com/en/actions/tutorials/migrate-to-github-actions/automated-migrations/use-github-actions-importer)
85+
- [Migrating from Jenkins to GitHub Actions](https://docs.github.com/en/actions/tutorials/migrate-to-github-actions/manual-migrations/migrate-from-jenkins)
86+
- [Migrating from CircleCI to GitHub Actions](https://docs.github.com/en/actions/tutorials/migrate-to-github-actions/manual-migrations/migrate-from-circleci)
87+
- [Migrating from GitLab CI/CD to GitHub Actions](https://docs.github.com/en/actions/tutorials/migrate-to-github-actions/manual-migrations/migrate-from-gitlab-cicd)
88+
- [Building and testing Node.js](https://docs.github.com/en/actions/tutorials/build-and-test-code/nodejs)
89+
- [Use GITHUB_TOKEN for authentication in workflows](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token)
90+
- [Store and share data with workflow artifacts](https://docs.github.com/en/actions/tutorials/store-and-share-data)

0 commit comments

Comments
 (0)