Skip to content

Commit 184979c

Browse files
refactor: make skill descriptions trigger-friendly per agent skills spec
Update all 27 skill descriptions to include both what the skill does AND when to use it, following the agent skills specification guidance that descriptions are the primary triggering mechanism. Descriptions now explicitly list user intents that should activate each skill. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d79de8c commit 184979c

1 file changed

Lines changed: 27 additions & 27 deletions

File tree

pkg/github/skill_resources.go

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func allSkills() []skillDefinition {
5757
func skillGetContext() skillDefinition {
5858
return skillDefinition{
5959
name: "get-context",
60-
description: "Understand the current user, their permissions, and team membership",
60+
description: "Understand the current user, their permissions, and team membership. Use when starting any workflow, checking who you are, what you can access, or looking up team membership.",
6161
allowedTools: []string{
6262
"get_me",
6363
"get_teams",
@@ -70,7 +70,7 @@ func skillGetContext() skillDefinition {
7070
func skillExploreRepo() skillDefinition {
7171
return skillDefinition{
7272
name: "explore-repo",
73-
description: "Understand an unfamiliar codebase quickly",
73+
description: "Understand an unfamiliar codebase quickly. Use when exploring a new repo, understanding project structure, finding entry points, or getting oriented in code you haven't seen before.",
7474
allowedTools: []string{
7575
"get_repository_tree",
7676
"get_file_contents",
@@ -86,7 +86,7 @@ func skillExploreRepo() skillDefinition {
8686
func skillSearchCode() skillDefinition {
8787
return skillDefinition{
8888
name: "search-code",
89-
description: "Find code patterns, symbols, and examples across GitHub",
89+
description: "Find code patterns, symbols, and examples across GitHub. Use when searching for code, finding how something is implemented, locating files, or looking for usage examples across repositories.",
9090
allowedTools: []string{
9191
"search_code",
9292
"search_repositories",
@@ -99,7 +99,7 @@ func skillSearchCode() skillDefinition {
9999
func skillTraceHistory() skillDefinition {
100100
return skillDefinition{
101101
name: "trace-history",
102-
description: "Understand why code changed by tracing commits and PRs",
102+
description: "Understand why code changed by tracing commits and PRs. Use when investigating git history, finding who changed something, understanding the motivation behind a change, or tracking down when a bug was introduced.",
103103
allowedTools: []string{
104104
"list_commits",
105105
"get_commit",
@@ -113,7 +113,7 @@ func skillTraceHistory() skillDefinition {
113113
func skillCreatePR() skillDefinition {
114114
return skillDefinition{
115115
name: "create-pr",
116-
description: "Create a well-structured pull request that reviews smoothly",
116+
description: "Create a well-structured pull request that reviews smoothly. Use when opening a new PR, pushing changes for review, or submitting code changes to a repository.",
117117
allowedTools: []string{
118118
"create_pull_request",
119119
"get_file_contents",
@@ -130,7 +130,7 @@ func skillCreatePR() skillDefinition {
130130
func skillReviewPR() skillDefinition {
131131
return skillDefinition{
132132
name: "review-pr",
133-
description: "Conduct a thorough code review of a pull request",
133+
description: "Conduct a thorough code review of a pull request. Use when reviewing someone else's PR, checking code changes, leaving review comments, approving or requesting changes.",
134134
allowedTools: []string{
135135
"pull_request_read",
136136
"get_file_contents",
@@ -152,7 +152,7 @@ func skillReviewPR() skillDefinition {
152152
func skillSelfReviewPR() skillDefinition {
153153
return skillDefinition{
154154
name: "self-review-pr",
155-
description: "Review your own PR before requesting team review",
155+
description: "Review your own PR before requesting team review. Use when you want to self-check your PR, verify CI status, polish description, or prepare your changes for review.",
156156
allowedTools: []string{
157157
"pull_request_read",
158158
"get_file_contents",
@@ -171,7 +171,7 @@ func skillSelfReviewPR() skillDefinition {
171171
func skillAddressPRFeedback() skillDefinition {
172172
return skillDefinition{
173173
name: "address-pr-feedback",
174-
description: "Handle review comments on your PR and push fixes",
174+
description: "Handle review comments on your PR and push fixes. Use when you received PR feedback, need to respond to reviewer comments, resolve threads, or push fixes based on review.",
175175
allowedTools: []string{
176176
"pull_request_read",
177177
"add_reply_to_pull_request_comment",
@@ -188,7 +188,7 @@ func skillAddressPRFeedback() skillDefinition {
188188
func skillMergePR() skillDefinition {
189189
return skillDefinition{
190190
name: "merge-pr",
191-
description: "Get a PR to merge-ready state and merge it",
191+
description: "Get a PR to merge-ready state and merge it. Use when merging a pull request, checking if a PR is ready to merge, updating a PR branch, or converting a draft PR.",
192192
allowedTools: []string{
193193
"pull_request_read",
194194
"merge_pull_request",
@@ -204,7 +204,7 @@ func skillMergePR() skillDefinition {
204204
func skillTriageIssues() skillDefinition {
205205
return skillDefinition{
206206
name: "triage-issues",
207-
description: "Categorize, deduplicate, and prioritize incoming issues",
207+
description: "Categorize, deduplicate, and prioritize incoming issues. Use when triaging issues, labeling bugs, organizing a backlog, closing duplicates, or processing new issue reports.",
208208
allowedTools: []string{
209209
"list_issues",
210210
"search_issues",
@@ -230,7 +230,7 @@ func skillTriageIssues() skillDefinition {
230230
func skillCreateIssue() skillDefinition {
231231
return skillDefinition{
232232
name: "create-issue",
233-
description: "Create well-structured, searchable, actionable issues",
233+
description: "Create well-structured, searchable, actionable issues. Use when filing a bug report, requesting a feature, creating a task, or opening any new GitHub issue.",
234234
allowedTools: []string{
235235
"create_issue",
236236
"search_issues",
@@ -245,7 +245,7 @@ func skillCreateIssue() skillDefinition {
245245
func skillManageSubIssues() skillDefinition {
246246
return skillDefinition{
247247
name: "manage-sub-issues",
248-
description: "Break down large issues into trackable sub-tasks",
248+
description: "Break down large issues into trackable sub-tasks. Use when decomposing epics, creating task breakdowns, organizing work into smaller pieces, or managing parent-child issue relationships.",
249249
allowedTools: []string{
250250
"issue_read",
251251
"create_issue",
@@ -262,7 +262,7 @@ func skillManageSubIssues() skillDefinition {
262262
func skillDebugCI() skillDefinition {
263263
return skillDefinition{
264264
name: "debug-ci",
265-
description: "Investigate and fix failing GitHub Actions workflows",
265+
description: "Investigate and fix failing GitHub Actions workflows. Use when CI is failing, a workflow run errored, you need to read build logs, or debug why tests aren't passing.",
266266
allowedTools: []string{
267267
"actions_get",
268268
"get_job_logs",
@@ -277,7 +277,7 @@ func skillDebugCI() skillDefinition {
277277
func skillTriggerWorkflow() skillDefinition {
278278
return skillDefinition{
279279
name: "trigger-workflow",
280-
description: "Run, rerun, or cancel GitHub Actions workflow runs",
280+
description: "Run, rerun, or cancel GitHub Actions workflow runs. Use when triggering a deployment, rerunning failed jobs, canceling a stuck workflow, or dispatching a workflow manually.",
281281
allowedTools: []string{
282282
"actions_run_trigger",
283283
"actions_get",
@@ -291,7 +291,7 @@ func skillTriggerWorkflow() skillDefinition {
291291
func skillSecurityAudit() skillDefinition {
292292
return skillDefinition{
293293
name: "security-audit",
294-
description: "Systematically review code scanning, secret, and dependency alerts",
294+
description: "Systematically review code scanning, secret, and dependency alerts. Use when auditing repo security, checking for vulnerabilities, reviewing CodeQL alerts, or investigating exposed secrets.",
295295
allowedTools: []string{
296296
"list_code_scanning_alerts",
297297
"get_code_scanning_alert",
@@ -309,7 +309,7 @@ func skillSecurityAudit() skillDefinition {
309309
func skillFixDependabot() skillDefinition {
310310
return skillDefinition{
311311
name: "fix-dependabot",
312-
description: "Handle vulnerable dependency alerts and update PRs",
312+
description: "Handle vulnerable dependency alerts and update PRs. Use when fixing Dependabot alerts, updating vulnerable packages, reviewing dependency update PRs, or managing supply chain security.",
313313
allowedTools: []string{
314314
"list_dependabot_alerts",
315315
"get_dependabot_alert",
@@ -324,7 +324,7 @@ func skillFixDependabot() skillDefinition {
324324
func skillResearchVulnerability() skillDefinition {
325325
return skillDefinition{
326326
name: "research-vulnerability",
327-
description: "Query the GitHub Advisory Database for security advisories",
327+
description: "Query the GitHub Advisory Database for security advisories. Use when researching CVEs, looking up GHSA IDs, checking if a package has known vulnerabilities, or reviewing security advisories for a repo or org.",
328328
allowedTools: []string{
329329
"list_global_security_advisories",
330330
"get_global_security_advisory",
@@ -338,7 +338,7 @@ func skillResearchVulnerability() skillDefinition {
338338
func skillManageProject() skillDefinition {
339339
return skillDefinition{
340340
name: "manage-project",
341-
description: "Track and update work items in GitHub Projects (v2)",
341+
description: "Track and update work items in GitHub Projects (v2). Use when managing a project board, updating issue status fields, adding items to a project, querying project items, or posting project status updates.",
342342
allowedTools: []string{
343343
"projects_list",
344344
"projects_get",
@@ -353,7 +353,7 @@ func skillManageProject() skillDefinition {
353353
func skillHandleNotifications() skillDefinition {
354354
return skillDefinition{
355355
name: "handle-notifications",
356-
description: "Process your GitHub notification queue efficiently",
356+
description: "Process your GitHub notification queue efficiently. Use when checking notifications, clearing your inbox, managing subscriptions, or finding out what needs your attention on GitHub.",
357357
allowedTools: []string{
358358
"list_notifications",
359359
"get_notification_details",
@@ -369,7 +369,7 @@ func skillHandleNotifications() skillDefinition {
369369
func skillPrepareRelease() skillDefinition {
370370
return skillDefinition{
371371
name: "prepare-release",
372-
description: "Compile release notes from commits and merged PRs",
372+
description: "Compile release notes from commits and merged PRs. Use when preparing a release, writing a changelog, summarizing changes since last version, or reviewing what shipped.",
373373
allowedTools: []string{
374374
"list_releases",
375375
"get_latest_release",
@@ -386,7 +386,7 @@ func skillPrepareRelease() skillDefinition {
386386
func skillManageRepo() skillDefinition {
387387
return skillDefinition{
388388
name: "manage-repo",
389-
description: "Create repos, manage branches, and push file changes",
389+
description: "Create repos, manage branches, and push file changes. Use when creating a new repository, making a branch, committing files via the API, forking a repo, or managing repository contents.",
390390
allowedTools: []string{
391391
"create_repository",
392392
"fork_repository",
@@ -404,7 +404,7 @@ func skillManageRepo() skillDefinition {
404404
func skillManageLabels() skillDefinition {
405405
return skillDefinition{
406406
name: "manage-labels",
407-
description: "Set up and maintain a consistent label scheme",
407+
description: "Set up and maintain a consistent label scheme. Use when creating labels, organizing a label system, cleaning up labels, or standardizing label naming across a repository.",
408408
allowedTools: []string{
409409
"list_labels",
410410
"list_label",
@@ -418,7 +418,7 @@ func skillManageLabels() skillDefinition {
418418
func skillContributeOSS() skillDefinition {
419419
return skillDefinition{
420420
name: "contribute-oss",
421-
description: "Fork, branch, and submit PRs to external repositories",
421+
description: "Fork, branch, and submit PRs to external repositories. Use when contributing to open source, forking a repo to make changes, or submitting a pull request to a project you don't own.",
422422
allowedTools: []string{
423423
"fork_repository",
424424
"create_branch",
@@ -435,7 +435,7 @@ func skillContributeOSS() skillDefinition {
435435
func skillBrowseDiscussions() skillDefinition {
436436
return skillDefinition{
437437
name: "browse-discussions",
438-
description: "Read and explore GitHub Discussions and categories",
438+
description: "Read and explore GitHub Discussions and categories. Use when browsing discussions, reading community conversations, checking discussion categories, or looking for answers in a project's discussions.",
439439
allowedTools: []string{
440440
"list_discussions",
441441
"get_discussion",
@@ -449,7 +449,7 @@ func skillBrowseDiscussions() skillDefinition {
449449
func skillDelegateCopilot() skillDefinition {
450450
return skillDefinition{
451451
name: "delegate-to-copilot",
452-
description: "Assign Copilot to issues and request Copilot PR reviews",
452+
description: "Assign Copilot to issues and request Copilot PR reviews. Use when you want Copilot to work on an issue, get an automated code review, or delegate tasks to GitHub Copilot.",
453453
allowedTools: []string{
454454
"assign_copilot_to_issue",
455455
"request_copilot_review",
@@ -463,7 +463,7 @@ func skillDelegateCopilot() skillDefinition {
463463
func skillDiscoverGitHub() skillDefinition {
464464
return skillDefinition{
465465
name: "discover-github",
466-
description: "Search for users, organizations, and repositories",
466+
description: "Search for users, organizations, and repositories. Use when finding GitHub users, looking up organizations, discovering repos by topic or language, or managing your starred repositories.",
467467
allowedTools: []string{
468468
"search_users",
469469
"search_orgs",
@@ -479,7 +479,7 @@ func skillDiscoverGitHub() skillDefinition {
479479
func skillShareSnippet() skillDefinition {
480480
return skillDefinition{
481481
name: "share-snippet",
482-
description: "Create and manage code snippets via GitHub Gists",
482+
description: "Create and manage code snippets via GitHub Gists. Use when sharing a code snippet, creating a quick paste, saving notes as a gist, or managing your existing gists.",
483483
allowedTools: []string{
484484
"create_gist",
485485
"update_gist",

0 commit comments

Comments
 (0)