Installation

Download and extract to your repository:

.github/skills/make-repo-contribution/

Extract the ZIP to .github/skills/ in your repo. The folder name must match make-repo-contribution for Copilot to auto-discover it.

Skill Files (3)

SKILL.md 4.5 KB
---
name: make-repo-contribution
description: 'All changes to code must follow the guidance documented in the repository. Before any issue is filed, branch is made, commits generated, or pull request (or PR) created, a search must be done to ensure the right steps are followed. Whenever asked to create an issue, commit messages, to push code, or create a PR, use this skill so everything is done correctly.'
---

# Contribution guidelines

Most every project has a set of contribution guidelines everyone needs to follow when creating issues, pull requests (PR), or otherwise contributing code. These may include, but are not limited to:

- Creating an issue before creating a PR, or creating the two in conjunction
- Templates for issues or PRs that must be used depending on the change request being made
- Guidelines on what needs to be documented in those issues and PRs
- Tests, linters, and other prerequisites that need to be run before pushing any changes

Always remember, you are a guest in someone else's repository. As such, you need to follow the rules and guidelines set forth by the repository owner when contributing code.

## Using existing guidelines

Before creating a PR or any of the steps leading up to it, explore the project to determine if there's any guidance. Places to explore include, but are not limited to:

- README.md
- CONTRIBUTING.md
- Project documentation
- Issue templates
- Pull request or PR templates

If any of those exist or you discover documentation elsewhere in the repo, read through what you find, consider it, and follow the guidance to the best of your ability. If you have any questions or confusion, ask the user for input on how best to proceed. DO NOT create a PR until you're certain you've followed the practices.

## No guidelines found

If no guidance is found, or doesn't provide guidance on certain topics, then use the following as a foundation for creating a quality contribution. **ALWAYS** defer to the guidance provided in the repository.

## Tasks

Many repository owners will have guidance on prerequisite steps which need to be completed before a PR is to be created. This can include, but is not limited to:

- building the project or generating assets
- running linters and ensuring any issues are resolved
- naming guidelines and other patterns
- unit tests, end to end tests, or other tests which need to be created and pass
  - related, there may be required coverage percentages

Look through all guidance you find, and ensure any prerequisites have been satisfied.

## Issue

Always start by looking to see if an issue exists that's related to the task at hand. This may have already been created by the user, or someone else. If you discover one, prompt the user to ensure they want to use that issue, or which one they may wish to use.

If no issue is discovered, look through the guidance to see if creating an issue is a requirement. If it is, use the template provided in the repository. If there are multiple, choose the one that most aligns with the work being done. If there are any questions, ask the user which one to use.

If the requirement is to file an issue, but no issue template is provided, use [this issue template](./assets/issue-template.md) as a guide on what to file.

## Branch

Before performing any commits, ensure a branch has been created for the work. Follow whatever guidance is provided by the repository's documentation. If prefixes are defined, like `feature` or `chore`, or if the requirement is to use the username of the person making the PR, then use that. This branch must never be `main`, or the default branch, but should be a branch created specifically for the changes taking place. If no branch is already created, create a new one with a good name based on the changes being made and the guidance.

## Commits

When committing changes:

1. Review all changes
2. Logically group the changes together
3. Create short commit messages for each group, following any guidance in the repository
4. Commit the grouped code to the branch.

## Merging

**NEVER** merge to main unless explicitly instructed to do so by the user

## Pull request

When creating a pull request, use existing templates in the repository if any exist, following the guidance you discovered.

If no template is provided, use the [this PR template](./assets/pr-template.md). It contains a collection of headers to use, each with guidance of what to place in the particular sections.

If an issue was created or is being used, ensure that issue is referenced in the PR. Use the `Closes #NUMBER` syntax to enable auto-closing of the issue.
assets/
issue-template.md 0.8 KB
# <!-- Provide a concise, descriptive title for the issue -->

## Summary

<!-- Provide a clear, one-sentence description of the request or issue. -->

## Context

<!-- Explain why this change is needed. Include:
- The problem being solved
- Any relevant background information
- Link to related issues or discussions if applicable
-->

## Proposed Solution

<!-- Describe the suggested approach. Include:
- Specific changes to be made
- Files or areas affected
- Any alternatives considered
-->

## Acceptance Criteria

<!-- List measurable criteria for completion:
- [ ] Criterion 1
- [ ] Criterion 2
-->

## Additional Information

<!-- Include any of the following if relevant:
- Error messages or logs
- Steps to reproduce (for bugs)
- Dependencies or blockers
- Impact assessment
-->
pr-template.md 0.9 KB
# <!-- Provide a concise, descriptive title for the pull request -->

## Summary

<!-- Provide a three to four sentence description of what this PR accomplishes. -->

## Background

<!-- Explain why this change is needed. Include:
- The problem being solved or feature being added
- Link to related issues (use "Closes #123" to auto-close)
- Any relevant context or discussions
-->

## Changes

<!-- List the changes being made, logically grouped. Include:
- Files added, modified, or deleted
- Key code changes with brief explanations
- Any architectural or design decisions made
-->

## Testing

<!-- Describe how the changes were validated:
- Commands run (e.g., `npm run build`, `npm run validate`)
- Manual testing performed
- Edge cases considered
-->

## Additional Notes

<!-- Include any of the following if relevant:
- Breaking changes or migration steps
- Highlights for human reviewers
-->

License (MIT)

View full license text
MIT License

Copyright GitHub, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.