Skip to content

Commit aed11f4

Browse files
Update pattern library (#227)
1 parent 3aaed97 commit aed11f4

13 files changed

Lines changed: 272 additions & 480 deletions

patterns/archetypes/agent-cost-tracker.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"top_repos": [],
2828
"tips": [
2929
"Scope `workflows:` to the named agent workflow(s) being tracked so cost reports aren't generated for unrelated runs",
30-
"Download the run's artifact and parse its token-usage log rather than re-running the agent this keeps the tracker cheap",
30+
"Download the run's artifact and parse its token-usage log rather than re-running the agent \u2014 this keeps the tracker cheap",
3131
"Exit without creating any output when the artifact or token-usage log is missing, so non-agent or firewall-disabled runs stay silent",
3232
"Post the cost summary as a comment on the associated pull request when one exists; fall back to a capped, deduplicated issue otherwise"
3333
],

patterns/archetypes/ci-failure-triage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"Derive a stable failure key (workflow + job + failing step or error signature) before writing anything",
2929
"Search for an existing open incident by that key before creating a new issue",
3030
"Call noop when the monitored run concludes success, the failure self-recovered on rerun, or an open incident already exists for the same key",
31-
"Diagnostic only report the root cause and next steps, do not attempt to fix the failure directly"
31+
"Diagnostic only \u2014 report the root cause and next steps, do not attempt to fix the failure directly"
3232
],
3333
"anti_patterns": []
3434
}

patterns/archetypes/code-improvement.json

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"id": "code-improvement",
33
"label": "Code Improvement",
44
"description": "Diagnose and fix code or CI issues",
5-
"success_rate": 0.38,
6-
"count": 81,
5+
"success_rate": 0.46,
6+
"count": 73,
77
"recommended_triggers": [
88
{
99
"type": "schedule",
1010
"config": {}
1111
},
1212
{
13-
"type": "workflow_run",
13+
"type": "reaction",
1414
"config": {}
1515
},
1616
{
17-
"type": "skip-if-match",
17+
"type": "permissions",
1818
"config": {}
1919
}
2020
],
@@ -33,38 +33,35 @@
3333
"top_repos": [
3434
{
3535
"repo": "github/gh-aw",
36-
"stars": 5016
36+
"stars": 5063
3737
},
3838
{
3939
"repo": "githubnext/agentics",
40-
"stars": 922
40+
"stars": 925
4141
},
4242
{
43-
"repo": "elastic/kibana",
44-
"stars": 21262
43+
"repo": "github/spec-kit",
44+
"stars": 132415
4545
},
4646
{
47-
"repo": "dotnet/macios",
48-
"stars": 2897
47+
"repo": "github/awesome-copilot",
48+
"stars": 38469
4949
},
5050
{
51-
"repo": "drhelius/Gearboy",
52-
"stars": 1192
51+
"repo": "langfuse/langfuse",
52+
"stars": 33968
5353
}
5454
],
5555
"tips": [
5656
"Use schedule triggers for continuous maintenance coverage",
5757
"Add pre-steps to run tests/linters before the agent starts \u2014 validates baseline",
58-
"Avoid pr-fix and ci-doctor templates \u2014 both have <20% success in practice",
59-
"Use explicit DO NOT constraints to keep changes scoped to the requested improvement",
60-
"Use protected-files: fallback-to-issue for manifests, CI configuration, and agent instructions",
61-
"Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers"
58+
"Avoid pr-fix and ci-doctor templates \u2014 both have <20% success in practice"
6259
],
6360
"anti_patterns": [
61+
"ci-coach",
62+
"code-simplifier",
6463
"ci-doctor",
6564
"ci-doctor",
66-
"autofix-ci",
67-
"code-simplifier",
68-
"pr-fix"
65+
"code-simplifier"
6966
]
7067
}

patterns/archetypes/content-moderation.json

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"id": "content-moderation",
33
"label": "Content Moderation",
44
"description": "Review content for quality or policy",
5-
"success_rate": 0.87,
6-
"count": 8,
5+
"success_rate": 0.0,
6+
"count": 3,
77
"recommended_triggers": [
88
{
9-
"type": "pull_request",
9+
"type": "issue_comment",
1010
"config": {}
1111
},
1212
{
13-
"type": "permissions",
13+
"type": "issues",
1414
"config": {}
1515
},
1616
{
17-
"type": "steps",
17+
"type": "pull_request",
1818
"config": {}
1919
}
2020
],
@@ -35,23 +35,11 @@
3535
"top_repos": [
3636
{
3737
"repo": "github/gh-aw",
38-
"stars": 5016
38+
"stars": 5063
3939
},
4040
{
4141
"repo": "githubnext/agentics",
42-
"stars": 922
43-
},
44-
{
45-
"repo": "Bertverbeek4PS/bc2adls",
46-
"stars": 170
47-
},
48-
{
49-
"repo": "SSWConsulting/SSW.Rules.Content",
50-
"stars": 61
51-
},
52-
{
53-
"repo": "chrizbo/agentics-beyond-code",
54-
"stars": 21
42+
"stars": 925
5543
}
5644
],
5745
"tips": [

patterns/archetypes/custom.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"id": "custom",
33
"label": "Custom",
44
"description": "Custom or uncategorized workflow",
5-
"success_rate": 0.46,
6-
"count": 438,
5+
"success_rate": 0.5,
6+
"count": 356,
77
"recommended_triggers": [
88
{
99
"type": "schedule",
1010
"config": {}
1111
},
1212
{
13-
"type": "pull_request",
13+
"type": "roles",
1414
"config": {}
1515
},
1616
{
@@ -29,23 +29,23 @@
2929
"top_repos": [
3030
{
3131
"repo": "github/gh-aw",
32-
"stars": 5016
32+
"stars": 5063
3333
},
3434
{
3535
"repo": "githubnext/agentics",
36-
"stars": 922
36+
"stars": 925
3737
},
3838
{
39-
"repo": "github/spec-kit",
40-
"stars": 131684
39+
"repo": "f/prompts.chat",
40+
"stars": 168280
4141
},
4242
{
43-
"repo": "home-assistant/core",
44-
"stars": 90119
43+
"repo": "github/spec-kit",
44+
"stars": 132415
4545
},
4646
{
47-
"repo": "dotnet/aspnetcore",
48-
"stars": 38394
47+
"repo": "home-assistant/core",
48+
"stars": 90197
4949
}
5050
],
5151
"tips": [
@@ -54,10 +54,10 @@
5454
"Use DO NOT constraints to bound agent behavior \u2014 61% more likely to be healthy"
5555
],
5656
"anti_patterns": [
57-
"documentation-audit",
58-
"breaking-change-checker",
59-
"agent-planner-staiot",
60-
"validate-pr",
61-
"planner"
57+
"issue-go-yes",
58+
"hero-scenarios",
59+
"dash",
60+
"tester",
61+
"scribe"
6262
]
6363
}

patterns/archetypes/daily-test-improver.json

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,36 @@
33
"label": "Daily Test Improver",
44
"description": "Add high-value tests and improve test quality",
55
"success_rate": 1.0,
6-
"count": 4,
6+
"count": 3,
77
"recommended_triggers": [
88
{
9-
"type": "schedule",
9+
"type": "permissions",
1010
"config": {}
1111
},
1212
{
13-
"type": "permissions",
13+
"type": "reaction",
1414
"config": {}
1515
},
1616
{
17-
"type": "reaction",
17+
"type": "schedule",
1818
"config": {}
1919
}
2020
],
21-
"recommended_safe_outputs": [
22-
"pull-requests"
23-
],
24-
"recommended_tools": [
25-
"create-pull-request"
26-
],
21+
"recommended_safe_outputs": [],
22+
"recommended_tools": [],
2723
"timeout_minutes": 30,
28-
"prompt_style": "phase-based",
29-
"size_range_bytes": [
30-
5000,
31-
12000
32-
],
24+
"prompt_style": null,
25+
"size_range_bytes": null,
3326
"top_repos": [
3427
{
3528
"repo": "githubnext/agentics",
36-
"stars": 922
29+
"stars": 925
3730
},
3831
{
3932
"repo": "rancher/dashboard",
4033
"stars": 621
41-
},
42-
{
43-
"repo": "tastybamboo/panda-cms",
44-
"stars": 4
4534
}
4635
],
47-
"tips": [
48-
"Establish a passing baseline before changing tests",
49-
"Prefer regression-prone and critical paths over coverage inflation",
50-
"Create one focused draft pull request per run",
51-
"Add a pre-activation step that skips scheduled runs once too many open PRs share your title prefix, to avoid spamming maintainers"
52-
],
36+
"tips": [],
5337
"anti_patterns": []
5438
}

patterns/archetypes/dependency-monitor.json

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
"label": "Dependency Monitor",
44
"description": "Track and update dependencies",
55
"success_rate": 0.5,
6-
"count": 59,
6+
"count": 48,
77
"recommended_triggers": [
88
{
99
"type": "schedule",
1010
"config": {}
1111
},
1212
{
13-
"type": "issues",
13+
"type": "permissions",
1414
"config": {}
1515
},
1616
{
17-
"type": "skip-if-match",
17+
"type": "reaction",
1818
"config": {}
1919
}
2020
],
@@ -35,37 +35,35 @@
3535
"top_repos": [
3636
{
3737
"repo": "github/gh-aw",
38-
"stars": 5016
38+
"stars": 5063
3939
},
4040
{
41-
"repo": "mono/SkiaSharp",
42-
"stars": 5558
41+
"repo": "github/awesome-copilot",
42+
"stars": 38469
4343
},
4444
{
45-
"repo": "dotnet/Open-XML-SDK",
46-
"stars": 4589
45+
"repo": "dotnet/aspnetcore",
46+
"stars": 38406
4747
},
4848
{
49-
"repo": "microsoft/testfx",
50-
"stars": 1040
49+
"repo": "langfuse/langfuse",
50+
"stars": 33968
5151
},
5252
{
53-
"repo": "dotnet/arcade",
54-
"stars": 728
53+
"repo": "dotnet/maui",
54+
"stars": 23317
5555
}
5656
],
5757
"tips": [
5858
"Use schedule triggers for reliable periodic checks",
5959
"Include a checklist of specific dependencies to monitor \u2014 don't leave it open-ended",
60-
"Enable network access for fetching upstream release data",
61-
"Use DO NOT constraints to prevent unrelated dependency or source changes",
62-
"Use skip-if-match to prevent duplicate scheduled findings"
60+
"Enable network access for fetching upstream release data"
6361
],
6462
"anti_patterns": [
65-
"skills-updater",
66-
"doc-sync",
63+
"wiki-sync",
64+
"course-updater",
6765
"update-github-info",
68-
"dependency-api-monitor",
69-
"doc-sync"
66+
"update-github-info",
67+
"dependabot-pr-bundler"
7068
]
7169
}

0 commit comments

Comments
 (0)