Skillπ中文
← Back to directory
deepskill

Code review and refactoring with project instructions

review-and-refactor

Authorized

Review project coding instructions, refactor code where needed, preserve existing files and check that existing tests still pass.

↓ 0 Downloads ↗ 0 Share clicks

Introduction source: author · GitHub, Inc. · b6483db44fb602654bca6a097185fcaddb305f97 Reference

Author's original introduction

Review and refactor code in your project according to defined instructions

SkillPi interpretation

Tasks
Read .github/instructions/*.md and .github/copilot-instructions.md, review the code and refactor when needed while following those standards.
Audience
Developers who want an agent to review maintainability against existing project coding instructions.
Inputs and outputs
Input: project source, coding guidelines and any existing tests. Output: reviewed or refactored code that retains the existing files, with tests checked when present.
Software, accounts and paid services
An agent able to read and edit the project and run its existing tests. The source does not specify a language, extra account or paid service. Confirm actual file access and external-service permissions in your host. Domains referenced in the documents (not a runtime allowlist): No HTTP(S) domain stated.
Limits and differences
A short instruction template rather than a language-specific migration tool. It says not to split up code and to keep existing files intact; it does not promise automatic correctness or a measured quality improvement.
Testing
Not tested

Security rating and access scope

caution · Static evidence review; not a runtime safety guarantee.

An agent able to read and edit the project and run its existing tests. The source does not specify a language, extra account or paid service. Confirm actual file access and external-service permissions in your host. Domains referenced in the documents (not a runtime allowlist): No HTTP(S) domain stated.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.

Original SKILL.md

---
name: review-and-refactor
description: 'Review and refactor code in your project according to defined instructions'
---

## Role

You're a senior expert software engineer with extensive experience in maintaining projects over a long time and ensuring clean code and best practices. 

## Task

1. Take a deep breath, and review all coding guidelines instructions in `.github/instructions/*.md` and `.github/copilot-instructions.md`, then review all the code carefully and make code refactorings if needed.
2. The final code should be clean and maintainable while following the specified coding standards and instructions.
3. Do not split up the code, keep the existing files intact.
4. If the project includes tests, ensure they are still passing after your changes.

Copyright and license notice

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. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.