Copilot coding agent resolves GitHub issues directly. Developers of all levels can assign tasks, accelerating code workflow without setting up a coding environment. Integrates with GitHub and Claude.
git clone https://github.com/skills/expand-your-team-with-copilot.gitCopilot coding agent resolves GitHub issues directly. Developers of all levels can assign tasks, accelerating code workflow without setting up a coding environment. Integrates with GitHub and Claude.
1. **Assign the Issue:** In GitHub, assign issue #[ISSUE_NUMBER] to Copilot coding agent by mentioning `@copilot resolve this issue` in a comment. Ensure the issue includes clear requirements and acceptance criteria. 2. **Review the Plan:** Copilot will generate a plan in the issue comments. Verify the approach aligns with your expectations and adjust the prompt if needed (e.g., specify language or testing commands). 3. **Monitor Progress:** Track the agent’s updates in the issue comments or GitHub notifications. The agent will push code changes to a new branch and create a draft pull request. 4. **Review and Merge:** Review the PR, run local tests if required, and merge the changes. Use the PR description generated by Copilot as a reference for validation. **Tips:** - For complex issues, break them into smaller sub-tasks and assign them separately. - Use the `SPECIFIC_FEATURE` placeholder to focus the agent on the most critical part of the issue. - If the agent’s solution doesn’t meet expectations, provide feedback in the issue comments to refine the approach.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/skills/expand-your-team-with-copilotCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use Copilot coding agent to resolve GitHub issue #[ISSUE_NUMBER] in the [REPO_NAME] repository. Focus on implementing [SPECIFIC_FEATURE] as described in the issue. Provide a step-by-step breakdown of the changes needed, including code snippets for [LANGUAGE]. Test the solution locally by running [COMMAND] and verify it resolves the issue. Submit the changes as a pull request with the title 'Fixes #[ISSUE_NUMBER]: [BRIEF_DESCRIPTION]' and include a summary of the changes made.
Here’s the resolution for GitHub issue #42 in the `ecommerce-backend` repository, which requested adding a discount validation feature for cart totals.
**Problem Analysis:**
The issue described a bug where discounts weren’t being validated when the cart total exceeded $1000, causing incorrect order processing. The `DiscountService` class lacked a method to enforce the $1000 threshold.
**Solution Implemented:**
1. Added a new method `validateDiscountThreshold()` to `DiscountService.java`:
```java
public boolean validateDiscountThreshold(BigDecimal cartTotal, BigDecimal discount) {
if (cartTotal.compareTo(new BigDecimal("1000.00")) > 0 && discount.compareTo(new BigDecimal("0.10")) > 0) {
throw new IllegalArgumentException("Discount cannot exceed 10% for carts over $1000");
}
return true;
}
```
2. Integrated this into the `CartController` to check discounts before processing:
```java
if (!discountService.validateDiscountThreshold(cart.getTotal(), cart.getDiscount())) {
return ResponseEntity.badRequest().body("Invalid discount for cart total");
}
```
3. Added unit tests in `DiscountServiceTest.java` to verify the validation logic for edge cases (e.g., $1000.01 cart with 10.1% discount).
**Testing:**
- Ran `mvn test` locally; all tests passed, including new validation tests.
- Manually tested with Postman: A cart total of $1001 with a 10.1% discount now correctly returns a 400 error.
**Pull Request Summary:**
This PR adds discount validation for high-value carts, ensuring compliance with the business rule that discounts cannot exceed 10% for carts over $1000. The changes are minimal and focused, with no impact on existing functionality.
**Next Steps:**
- Review the PR and merge if approved.
- Deploy to staging for further validation.
- Monitor error logs for any unexpected issues post-deployment.Let’s build from here, together
IronCalc is a spreadsheet engine and ecosystem
ITIL-aligned IT service management platform
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan