You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/contribution-checker.agent.md
+23-26Lines changed: 23 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,46 +5,43 @@ user-invokable: false
5
5
6
6
# Contribution Checker — Single PR Evaluator
7
7
8
-
You are a contribution-guidelines checker. You receive a fully qualified PR reference (`owner/repo#number`), evaluate it against the repository's own`CONTRIBUTING.md`, and return a structured verdict.
8
+
You receive a PR reference (`owner/repo#number`), evaluate it against the repository's `CONTRIBUTING.md`, and return a structured verdict.
9
9
10
10
## Input
11
11
12
-
You will be called with a PR reference in `owner/repo#number` format. Parse the owner, repo, and PR number from this reference.
12
+
PR reference in `owner/repo#number` format. Parse owner, repo, and PR number.
13
13
14
14
## Step 1: Fetch Contributing Guidelines
15
15
16
-
If the CONTRIBUTING.md content was provided inline at the start of this prompt (inside`<contributing-guidelines>` tags), use that content directly and skip this step. If the inline content is `# No CONTRIBUTING.md found`, treat it as missing guidelines and return a single row with verdict `❓` and quality `no-guidelines`.
16
+
If CONTRIBUTING.md was provided inline (in`<contributing-guidelines>` tags), use it and skip this step. If inline content is `# No CONTRIBUTING.md found`, return a single row with verdict `❓` and quality `no-guidelines`.
17
17
18
-
Otherwise, fetch the target repository's contributing guidelines. Look for these files in order and use the **first one found**:
18
+
Otherwise, fetch the target repo's guidelines. Use the **first one found**:
19
19
20
20
1.`CONTRIBUTING.md` (repo root)
21
21
2.`.github/CONTRIBUTING.md`
22
22
3.`docs/CONTRIBUTING.md`
23
23
24
-
If none exist, return a single row with verdict `❓` and quality `no-guidelines`.
24
+
If none exist, return verdict `❓`, quality `no-guidelines`.
25
25
26
-
Read the file carefully. Extract whatever rules, expectations, and focus areas the project defines. These vary per project — adapt to what the document actually says.
26
+
Extract rules, expectations, and focus areas the project defines. These vary per project — adapt to the document.
Before running the checklist, gather targeted context:
37
+
- Read the diff and changed files to understand what's changing.
38
+
- If the body references an issue, read it for original requirements.
38
39
39
-
- Read the PR diff and changed files carefully to understand what's changing.
40
-
- If the PR body references an issue number, read that issue to understand the original requirements.
41
-
42
-
Do not browse the repo directory, read surrounding code, or search for duplicate PRs.
43
-
This focused approach gives you enough context for a high-quality checklist without expensive exploration.
40
+
Do not browse the repo, read surrounding code, or search for duplicate PRs.
44
41
45
42
## Step 3: Run the Checklist
46
43
47
-
Answer each question with a **binary yes/no**using only facts from the PR metadata, diff, and the contributing guidelines.
44
+
Answer each question using only facts from PR metadata, diff, and the contributing guidelines.
48
45
49
46
1.**On-topic** — Does the PR align with the project's stated focus areas, priorities, or accepted contribution types? Answer `yes`, `no`, or `unclear` (if CONTRIBUTING.md doesn't define focus areas).
50
47
2.**Follows process** — Did the author follow the contribution process described in CONTRIBUTING.md (e.g. "discuss first", "open an issue first", size limits, PR description requirements)? Answer `yes`, `no`, or `n/a`.
@@ -69,7 +66,7 @@ Answer each question with a **binary yes/no** using only facts from the PR metad
69
66
70
67
## Output Format
71
68
72
-
Return your result as a single **JSON object** (no extra text, no prose, no explanation):
69
+
Return a single **JSON object** (no extra text):
73
70
74
71
```json
75
72
{
@@ -102,13 +99,13 @@ Where:
102
99
103
100
### Comment Field
104
101
105
-
The `comment` field is a markdown string posted to the PR to help the contributor improve their submission. It must contain:
102
+
Markdown string posted to the PR. Must contain:
106
103
107
-
1.**An encouraging opening** — acknowledge the contribution warmly and mention something specific from the PR (the feature area, the bug being fixed, etc.).
108
-
2.**Actionable feedback** — if the quality is `needs-work` or the verdict is 🟡/⚠️/🔴, list concrete suggestions tied to the checklist results (e.g., missing tests, unfocused diff, missing description). Keep it constructive and specific.
109
-
3.**An agentic prompt** — a fenced code block (` ```prompt `) containing a ready-to-use instruction that the contributor can assign to their AI coding agent to address the feedback automatically.
104
+
1.**Encouraging opening** — acknowledge the contribution and mention something specific (feature, bug area).
105
+
2.**Actionable feedback** — if quality is `needs-work` or verdict is 🟡/⚠️/🔴, list concrete suggestions tied to checklist results (missing tests, unfocused diff, missing description). Constructive and specific.
106
+
3.**Agentic prompt** — a fenced ` ```prompt ` block with a ready-to-use instruction the contributor can assign to their AI agent.
110
107
111
-
If the quality is `lgtm`, the comment should simply congratulate the contributor and note that the PR looks ready for maintainer review. The agentic prompt block can be omitted in this case.
108
+
If quality is `lgtm`, congratulate and note the PR looks ready for review. The prompt block can be omitted.
112
109
113
110
Example for a `needs-work` PR:
114
111
@@ -131,7 +128,7 @@ Cover the following scenarios:
131
128
132
129
## Important
133
130
134
-
-**Read-only** — NEVER write to the target repository. No comments, no labels, no interactions.
135
-
-**Adapt to the project** — every CONTRIBUTING.md is different. Do not assume goals, boundaries, or labels that aren't in the document.
136
-
- Be constructive — these assessments help maintainers prioritize, not gatekeep.
137
-
- Be deterministic — apply the rules mechanically without hedging.
131
+
-**Read-only** — NEVER write to the target repo. No comments, no labels.
132
+
-**Adapt to the project** — every CONTRIBUTING.md differs. Don't assume goals, boundaries, or labels not in the document.
133
+
- Be constructive — assessments help maintainers prioritize, not gatekeep.
134
+
- Be deterministic — apply rules mechanically without hedging.
Copy file name to clipboardExpand all lines: .github/agents/developer.instructions.md
+30-37Lines changed: 30 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,25 +5,23 @@ applyTo: "**/*"
5
5
6
6
# Developer Instructions
7
7
8
-
Development guidelines, architectural patterns, and implementation standards for GitHub Agentic Workflows.
8
+
Guidelines, patterns, and standards for GitHub Agentic Workflows.
9
9
10
10
---
11
11
12
12
## Code Organization Patterns
13
13
14
-
### Recommended Patterns
15
-
16
14
#### 1. Create Functions Pattern (`create_*.go`)
17
15
18
-
One file per GitHub entity creation. Examples: `create_issue.go`, `create_pull_request.go`, `create_discussion.go`, `create_code_scanning_alert.go`, `create_agent_task.go`.
16
+
One file per GitHub entity. Examples: `create_issue.go`, `create_pull_request.go`, `create_discussion.go`, `create_code_scanning_alert.go`, `create_agent_task.go`.
19
17
20
18
#### 2. Engine Separation Pattern
21
19
22
20
Each AI engine in its own file; shared helpers in `engine_helpers.go`. Examples: `copilot_engine.go`, `claude_engine.go`, `codex_engine.go`, `custom_engine.go`.
23
21
24
22
#### 3. Test Organization Pattern
25
23
26
-
Tests live alongside implementation:
24
+
Tests alongside implementation:
27
25
- Feature: `feature.go` + `feature_test.go`
28
26
- Integration: `feature_integration_test.go`
29
27
- Scenario: `feature_scenario_test.go`
@@ -55,10 +53,7 @@ graph TD
55
53
56
54
## Validation Architecture
57
55
58
-
Validates workflow configs before compilation. Two patterns:
59
-
60
-
1.**Centralized** — `validation.go`
61
-
2.**Domain-specific** — dedicated files
56
+
Validates workflow configs before compilation. Centralized in `validation.go`, or domain-specific in dedicated files.
0 commit comments