Skip to content

Commit 996ac68

Browse files
authored
Apply remaining changes (#42078)
1 parent 8c5d2f3 commit 996ac68

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

.github/aw/skills.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,39 @@ List available skills before choosing a strategy.
1818

1919
---
2020

21+
## Strategy 0 — Agent Finder (Discovery First)
22+
23+
**Use when**: the relevant skill is not obvious, the repository may not contain the right skill yet, or you want to discover installable skills before loading local ones.
24+
25+
Query **GitHub Agent Finder** directly through its built-in REST API:
26+
27+
```bash
28+
curl -s https://agentfinder.github.com/api/v1/search \
29+
-H 'Content-Type: application/json' \
30+
-d '{"query":{"text":"<the user task, in plain language>"},"pageSize":10}'
31+
```
32+
33+
The request body should follow the ARD search shape with a `query.text` field. Add `query.filter` when you need to narrow by resource type.
34+
35+
For example, to search specifically for skills:
36+
37+
```bash
38+
curl -s https://agentfinder.github.com/api/v1/search \
39+
-H 'Content-Type: application/json' \
40+
-d '{"query":{"text":"<the user task, in plain language>","filter":{"type":["application/ai-skill"]}},"pageSize":10}'
41+
```
42+
43+
After discovery:
44+
45+
- Prefer repository-local skills when they satisfy the task.
46+
- If you use a discovered skill, extract only the specific guidance you need.
47+
- Do not load or paste entire skills when a fragment is enough.
48+
- Do not install or enable returned resources automatically; that requires explicit user choice.
49+
50+
Agent Finder helps locate candidates; **skill fusion** keeps the final prompt small.
51+
52+
---
53+
2154
## Inline Skills (Fusion at Authoring Time)
2255

2356
**Use when**: keeping the main prompt compact while shipping task-specific skill guidance with the workflow.

AGENTS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ Workflows that declare a `source:` frontmatter entry (for example `source: githu
4242

4343
Use skills only when the task requires specialized guidance. Do not pre-load every skill.
4444

45+
When the relevant skill is not obvious, first discover candidates and then load only the minimal guidance needed:
46+
47+
- Query GitHub Agent Finder directly with the built-in REST API at `https://agentfinder.github.com/api/v1/search`.
48+
- Send an ARD search request with the user's task in `query.text`; do not ask the user for the endpoint.
49+
- Use **skill fusion** after discovery: read only the specific skill sections or fragments needed instead of loading full skills broadly.
50+
4551
### Use these skills by intent
4652

4753
- Workflow create/update/debug/upgrade tasks → `.github/skills/agentic-workflows/SKILL.md`

0 commit comments

Comments
 (0)