Skip to content

Commit 8cfb45e

Browse files
committed
prompt library imporvements
1 parent 2925015 commit 8cfb45e

5 files changed

Lines changed: 77 additions & 1 deletion

File tree

prompt-library/1-initial-review-unified.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ You are a professional fullstack engineer assigned to review and assess readines
99

1010
## Tasks:
1111

12+
0. **Check MCP Access**
13+
   - Confirm whether an active Atlassian MCP connections is available.
14+
   - If no MCP connection is detected, terminate the task immediately and return: "No MCP connection. Execution stopped."
1215
1. **Retrieve and read content**:
1316
- For GitHub (if provided): Use MCP to retrieve and read the GitHub issue content
1417
- For Jira (if provided): Use Atlassian MCP to retrieve and read the Jira ticket content

prompt-library/4-feedback-request-review.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
1. **Verify the Changes:** Use the known verification methods (e.g., tests, manual steps, QA guidelines) to confirm that the changes are correct and working as intended.
1+
0. **Verify MCP Access**
2+
3+
- Confirm that the GitHub MCP connection is active
4+
- If no connection is available, terminate immediately and return: "No MCP connection. Cannot open pull request."
5+
6+
1. **Verify the Changes:**
7+
- Use the known verification methods (e.g., tests, manual steps, QA guidelines) to confirm that the changes are correct and working as intended
8+
- Fix the issues if you identify any
29
2. **Open a Draft Pull Request** (if verification passes)
310
- Source branch: the current branch
411
- Target: main branch
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Pull request link: <PR_LINK>
2+
3+
You are an AI assistant with access to GitHub via MCP connection.
4+
Your task is to review and address code review comments on a pull request.
5+
6+
Follow these steps strictly:
7+
8+
1. **Verify MCP Access**
9+
- Confirm GitHub MCP connection is active.
10+
- If not available, return: "No MCP connection. Cannot proceed."
11+
2. **Check for Review Comments**
12+
- Retrieve all review comments from the currently open pull request.
13+
- If there are no comments, return: "No review comments to address."
14+
3. **Process Comments**
15+
For each comment:
16+
- Analyze the suggestion.
17+
- If the suggestion is valid and implementable:
18+
- Apply the suggested code change.
19+
- If the suggestion is not valid or should not be applied:
20+
    - Do not make the change.
21+
    - Add a reply comment to that specific review thread starting with [AI comment] explaining why the suggestion should not be applied.
22+
4. **Commit and Push Changes**
23+
    - If any changes were implemented:
24+
       - Commit all modifications in a single commit with a message compliant to the repository commit message convention.
25+
       - Push the updated branch.
26+
5. **Final Output**
27+
    - Return a summary of: - Number of comments reviewed
28+
        - Number of suggestions applied
29+
        - Number of [AI comment] replies added
30+
        - Commit hash (if applicable) and push confirmation
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
You are an AI assistant with access to GitHub via MCP connection.
2+
3+
Your task is to open a pull request using the following rules:
4+
5+
1. Verify MCP Access
6+
- Confirm that the MCP connection is active.
7+
- If no connection is available, terminate immediately and return: "No MCP connection. Cannot open pull request."
8+
2. Identify Branches
9+
- Detect the currently checked out branch (this will be the source branch).
10+
- Identify the main branch of the repository (this will be the target branch).
11+
3. Create Pull Request
12+
    - Open a pull request from the source branch to the main branch.
13+
    - Use the default PR title and description if none is available in commit messages or branch metadata.
14+
    - Return the pull request URL and confirmation message.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
What AIADT Jira project is about? The related GitHub Repository is `dil-asomlai/ai-assisted-coding-training`. What is its tech stack?
2+
3+
Tasks
4+
5+
1. Verify if you can access the Jira project using MCP connection. Stop execution if no MCP connection
6+
2. Verify is you can access the repository using MCP connection. Stop execution if no MCP connection
7+
3. Answer the questions using data retreived from MCP connections
8+
9+
4. Check MCP Access
10+
   - Confirm whether an active GitHub and Atlassian MCP connections is available.
11+
   - If no MCP connection is detected, terminate the task immediately and return: "No MCP connection. Execution stopped."
12+
5. Access Jira
13+
   - Attempt to access the Jira project named AIADT.
14+
   - If accessible, extract a concise summary of the project’s purpose and scope.
15+
6. Access GitHub
16+
   - Access the GitHub repository: dil-asomlai/ai-assisted-coding-training.
17+
   - From the README.md, source code, and any configuration files (e.g., package.json, AI.md, Dockerfile), extract the technology stack.
18+
7. Generate Final Output
19+
- Combine the information retrieved from Jira and GitHub.
20+
- Answer the following:
21+
- What is the AIADT Jira project about?
22+
- What is the tech stack used in the associated GitHub repository?

0 commit comments

Comments
 (0)