Skip to content

Add .github/aw/skills.md — guide for leveraging skills in agentic workflows#29225

Merged
pelikhan merged 5 commits intomainfrom
copilot/add-skills-md-file
Apr 30, 2026
Merged

Add .github/aw/skills.md — guide for leveraging skills in agentic workflows#29225
pelikhan merged 5 commits intomainfrom
copilot/add-skills-md-file

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 30, 2026

Summary

Adds a new .github/aw/skills.md reference file that explains how agentic workflows can leverage repository skills (SKILL.md files).

Changes

New file

  • .github/aw/skills.md — Documentation covering the two strategies for using skills in agentic workflows:
    • Hint (generalist): the agent discovers and reads relevant skills itself at runtime via find
    • Fusion (ultra-cognitive): the author surgically extracts only the needed fragment from a skill and inlines it into the prompt — scales better because entire skill files are never loaded

Comment thread actions/setup/md/skills_prompt.md Outdated
@@ -0,0 +1,15 @@
<skills>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove this file and modifying the compilation. Only keep the instructions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in adb065b. Removed actions/setup/md/skills_prompt.md and reverted all compilation changes (prompt_constants.go, unified_prompt_step.go, the test, and golden files). The PR now only contains .github/aw/skills.md.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 30, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Add .github/aw/skills.md with runtime detection for SKILL.md files Add .github/aw/skills.md — guide for leveraging skills in agentic workflows Apr 30, 2026
Copilot AI requested a review from pelikhan April 30, 2026 01:06
@github-actions github-actions Bot mentioned this pull request Apr 30, 2026
Comment thread .github/aw/skills.md Outdated

Consult this file when you want a workflow to take advantage of skills — domain-specific knowledge files (`SKILL.md`) that live in the repository under `skills/` or `.github/skills/`.

Skills are **not loaded automatically**. The workflow's prompt must direct the agent to either discover and read them at runtime, or have their relevant content fused into the prompt at authoring time.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot this is not true. The agent may load skills at it wishes. Remove this line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in 50d6047.

Comment thread .github/aw/skills.md Outdated
**Pattern**:

```markdown
<!-- From skills/github-mcp-server/SKILL.md — only the "authentication" section -->
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot

use grepable identifier like gh-skill-fusion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 3bc7095. Updated the comment to use <!-- gh-skill-fusion: skills/github-mcp-server/SKILL.md#authentication -->.

@pelikhan pelikhan marked this pull request as ready for review April 30, 2026 01:28
Copilot AI review requested due to automatic review settings April 30, 2026 01:28
@pelikhan pelikhan merged commit c57fbe9 into main Apr 30, 2026
4 checks passed
@pelikhan pelikhan deleted the copilot/add-skills-md-file branch April 30, 2026 01:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation describing how agentic workflows can discover and apply repository “skills” (SKILL.md files), and includes incidental updates to multiple GitHub Actions workflow lock files.

Changes:

  • Add .github/aw/skills.md guide describing “Hint” vs “Fusion” strategies for using SKILL.md content.
  • Update several *.lock.yml workflow files (heredoc marker IDs / lockfile regeneration churn).
Show a summary per file
File Description
.github/workflows/smoke-codex.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/smoke-call-workflow.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/schema-feature-coverage.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/issue-arborist.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/grumpy-reviewer.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/duplicate-code-detector.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/daily-observability-report.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/daily-fact.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/workflows/daily-cache-strategy-analyzer.lock.yml Lockfile regeneration (heredoc marker ID updates) in MCP gateway setup step.
.github/aw/skills.md New documentation explaining skill discovery and usage patterns (Hint vs Fusion), with examples.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 10/10 changed files
  • Comments generated: 4

Comment on lines 1783 to 1787
export MCP_GATEWAY_DOCKER_COMMAND='docker run -i --rm --network host --add-host host.docker.internal:127.0.0.1 --user '"${MCP_GATEWAY_UID}"':'"${MCP_GATEWAY_GID}"' --group-add '"${DOCKER_SOCK_GID}"' -v /var/run/docker.sock:/var/run/docker.sock -e MCP_GATEWAY_PORT -e MCP_GATEWAY_DOMAIN -e MCP_GATEWAY_API_KEY -e MCP_GATEWAY_PAYLOAD_DIR -e MCP_GATEWAY_PAYLOAD_SIZE_THRESHOLD -e DEBUG -e MCP_GATEWAY_LOG_DIR -e GH_AW_MCP_LOG_DIR -e GH_AW_SAFE_OUTPUTS -e GH_AW_SAFE_OUTPUTS_CONFIG_PATH -e GH_AW_SAFE_OUTPUTS_TOOLS_PATH -e GH_AW_ASSETS_BRANCH -e GH_AW_ASSETS_MAX_SIZE_KB -e GH_AW_ASSETS_ALLOWED_EXTS -e DEFAULT_BRANCH -e GITHUB_MCP_SERVER_TOKEN -e GITHUB_MCP_GUARD_MIN_INTEGRITY -e GITHUB_MCP_GUARD_REPOS -e GITHUB_REPOSITORY -e GITHUB_SERVER_URL -e GITHUB_SHA -e GITHUB_WORKSPACE -e GITHUB_TOKEN -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RUN_ATTEMPT -e GITHUB_JOB -e GITHUB_ACTION -e GITHUB_EVENT_NAME -e GITHUB_EVENT_PATH -e GITHUB_ACTOR -e GITHUB_ACTOR_ID -e GITHUB_TRIGGERING_ACTOR -e GITHUB_WORKFLOW -e GITHUB_WORKFLOW_REF -e GITHUB_WORKFLOW_SHA -e GITHUB_REF -e GITHUB_REF_NAME -e GITHUB_REF_TYPE -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e CODEX_HOME -v /tmp/gh-aw/mcp-payloads:/tmp/gh-aw/mcp-payloads:rw -v /opt:/opt:ro -v /tmp:/tmp:rw -v '"${GITHUB_WORKSPACE}"':'"${GITHUB_WORKSPACE}"':rw ghcr.io/github/gh-aw-mcpg:v0.3.1'

cat > "${RUNNER_TEMP}/gh-aw/mcp-config/config.toml" << GH_AW_MCP_CONFIG_c3c511e6a42c188c_EOF
cat > "${RUNNER_TEMP}/gh-aw/mcp-config/config.toml" << GH_AW_MCP_CONFIG_8da66847fee653c0_EOF
[history]
persistence = "none"
Comment thread .github/aw/skills.md
At runtime, find skill files with:

```bash
find "${GITHUB_WORKSPACE}" -name "SKILL.md" -maxdepth 6
Comment thread .github/aw/skills.md
Comment on lines +74 to +81
| Factor | Hint | Fusion |
|---|---|---|
| **Task domain** | Broad / unknown | Narrow / well-defined |
| **Skill set** | Grows dynamically | Known and stable |
| **Context budget** | Generous | Tight |
| **Maintenance burden** | Low (agent self-selects) | Higher (manual sync with source) |
| **Determinism** | Lower (agent chooses) | Higher (exact fragment) |
| **Scale** | Poor (entire skills loaded) | Good (minimal content) |
Comment thread .github/aw/skills.md
Comment on lines +43 to +49
**Tradeoff**: The agent may read and summarise more skill content than needed, which costs context tokens and can dilute focus.

---

## Strategy 2 — Fusion (Ultra-Cognitive)

**Use when**: You know exactly which skill (or which part of a skill) is needed, and you want to minimise context overhead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants