Skip to content

Commit ae0796e

Browse files
Copilotpelikhan
andauthored
Merge origin/main into copilot/fix-copilot-failure
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
2 parents 767e838 + 8801f1b commit ae0796e

54 files changed

Lines changed: 1441 additions & 204 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/aw/context.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ Block form (tag on its own line) is recommended for readability.
151151

152152
```markdown
153153
{{#if experiments.skill_hint == "enabled" }}
154-
Check `skills/` for SKILL.md files relevant to this task and apply their guidance.
154+
Check `skills/` and `.github/skills/` for relevant `SKILL.md` files and apply
155+
their guidance.
155156
{{#endif}}
156157
```
157158

@@ -175,4 +176,3 @@ When `experiments:` is set in frontmatter, the selected variant is substituted i
175176
- **Fenced code blocks are preserved** — `{{#if}}` tags inside `` ``` `` blocks appear verbatim.
176177
- **No nested conditionals** — inner tags become literal text.
177178
- **Tags are stripped before the agent runs** — never visible in the final prompt.
178-

‎.github/aw/experiments.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ experiments:
198198
199199
```markdown
200200
{{#if experiments.skill_hint == "enabled" }}
201-
Check `skills/` for SKILL.md files relevant to this task and apply their guidance.
201+
Check `skills/` and `.github/skills/` for relevant `SKILL.md` files and apply
202+
their guidance.
202203
{{#endif}}
203204
```
204205

‎.github/aw/skills.md‎

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: Guide for leveraging skills (SKILL.md files) in agentic workflows — hint, fusion, and inline fusion strategies
2+
description: Guide for using skills in agentic workflows — compiler-managed `skills:` installs plus hint, fusion, and inline strategies
33
---
44

55
# Skills in Agentic Workflows
@@ -16,20 +16,31 @@ find "${GITHUB_WORKSPACE}" -name "SKILL.md" -maxdepth 6
1616

1717
---
1818

19-
## Frontmatter `skills:` (SHA-Pinned Installs)
19+
## Frontmatter `skills:` (Preferred for External Skills)
2020

21-
Declare external skills to install at activation time with the top-level `skills:` array. At activation, `gh aw` installs each via `gh skill install` and wires it into the engine — no manual vendoring.
21+
Declare external skills to install at activation time with the top-level `skills:` array.
22+
The compiler emits the activation steps, prepares the required `gh` support, installs each skill, and wires it into the engine.
23+
Do **not** add manual `gh` setup or `gh skill install` steps for this.
2224

2325
```yaml
2426
skills:
25-
- owner/repo@<40-char-sha> # repository-wide install
26-
- owner/repo/skill/path@<40-char-sha> # path-scoped install
27-
- skill: owner/repo@<40-char-sha> # object form: per-skill auth
28-
github-token: ${{ secrets.SKILLS_TOKEN }}
27+
# Shared auth via the workflow activation token
28+
- mattpocock/skills/tdd@801dca688564c529fa84f247f64472520d9ebe28
29+
30+
# Per-skill token for a private skill repository
31+
- skill: mattpocock/skills/diagnosing-bugs@801dca688564c529fa84f247f64472520d9ebe28
32+
github-token: ${{ secrets.MATT_SKILLS_PAT || secrets.GITHUB_TOKEN }}
33+
34+
# Per-skill GitHub App credentials
35+
- skill: mattpocock/skills/domain-modeling@801dca688564c529fa84f247f64472520d9ebe28
36+
github-app:
37+
client-id: ${{ vars.MATT_SKILLS_APP_CLIENT_ID }}
38+
private-key: ${{ secrets.MATT_SKILLS_APP_PRIVATE_KEY }}
2939
```
3040
3141
- Static references must be pinned to a full 40-character lowercase commit SHA; `${{ ... }}` expressions are allowed in the ref position and resolved at runtime.
3242
- Object entries set per-skill auth via `github-token` or `github-app`.
43+
- Use `skills:` for external skill installs and `imports:` for prompt/context files you want merged into the workflow.
3344

3445
Distinct from the prompt-side strategies below (hint / fusion / inline), which shape skill *content* into the prompt rather than installing packages.
3546

@@ -51,7 +62,7 @@ After discovery:
5162

5263
- Prefer repository-local skills when they satisfy the task.
5364
- Extract only the specific guidance you need; do not paste entire skills when a fragment is enough.
54-
- Do not install or enable returned resources automatically; that requires explicit user choice.
65+
- If the user chooses an external skill, add it to frontmatter `skills:` instead of adding manual install steps.
5566

5667
---
5768

@@ -90,9 +101,9 @@ Use a unique inline skill name per workflow file. Name must start with a lowerca
90101
**Pattern**:
91102

92103
```markdown
93-
If the repository contains `SKILL.md` files under `skills/`, check which ones are
94-
relevant to this task. For each relevant skill, read its content and apply the
95-
guidance it provides.
104+
If the repository contains `SKILL.md` files under `skills/` or `.github/skills/`,
105+
check which ones are relevant to this task. For each relevant skill, read its
106+
content and apply the guidance it provides.
96107
```
97108

98109
---
@@ -104,7 +115,7 @@ guidance it provides.
104115
**Pattern**:
105116

106117
```markdown
107-
<!-- gh-skill-fusion: skills/github-mcp-server/SKILL.md#authentication -->
118+
<!-- gh-skill-fusion: .github/skills/github-mcp-server/SKILL.md#authentication -->
108119

109120
When calling GitHub MCP tools, use the pre-configured token already injected into the
110121
environment. Never prompt the user for credentials.
@@ -142,8 +153,9 @@ permissions:
142153

143154
Triage the newly opened issue.
144155

145-
If there are relevant skills under `skills/`, read them and apply their guidance.
146-
Focus on skills related to issue classification or project conventions.
156+
If there are relevant skills under `skills/` or `.github/skills/`, read them and
157+
apply their guidance. Focus on skills related to issue classification or project
158+
conventions.
147159
```
148160

149161
---
@@ -165,7 +177,7 @@ permissions:
165177

166178
Review the pull request for adherence to project conventions.
167179

168-
<!-- Fused from skills/developer/SKILL.md#code-organization -->
180+
<!-- Fused from .github/skills/developer/SKILL.md#code-organization -->
169181
Prefer many smaller files grouped by functionality. Add new files for new features
170182
rather than extending existing ones. Keep validators under 300 lines; split when
171183
a single file covers more than one domain.

‎.github/workflows/static-analysis-report.lock.yml‎

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)