Index of every page on this site: llms.txt
All skills
github avatar

/review-and-refactor

@f10fdb8 official
by githubgithub/awesome-copilot42k stars
5,426
Run it yourself

Review and refactor code in your project according to defined instructions

Use this Skill: https://skilld.dev/gh/github/awesome-copilot/review-and-refactor

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈24 tokens for metadata: the name and description. ≈161 when used: this file.

Description uses 1.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈96 characters, or 1.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert2mo5 checks · Risk CRITICAL
  • Gen Agent Trust Hub2mo

    The skill automatically reads and follows instructions from external files within the repository to guide its code refactoring and testing tasks. This creates a surface for indirect prompt injection, where malicious instructions placed in those files could influence the agent to perform unauthorized file modifications or command executions.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer9mo

    1/1 file flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at f10fdb8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 9 months ago

README badge

README badge for github/awesome-copilot/review-and-refactor

Loads coding guidelines from `.github/instructions/` and `.github/copilot-instructions.md`, then reviews and refactors project code to match those standards while keeping files intact and preserving test suite compatibility.

Generated from the current SKILL.md.

Where does this skill look for coding guidelines?
It reads from `.github/instructions/*.md` and `.github/copilot-instructions.md` in your project. If those files don't exist, the skill has no standards to apply.
Will this skill refactor my entire project at once?
Yes, it reviews and refactors all code in the project according to the guidelines. It does not split files or create new ones — it modifies in place.
Does this skill run tests after refactoring?
If the project includes tests, it will run them to ensure they still pass after changes. If there are no tests, this step is skipped.
What if my project has no `.github/instructions` files?
The skill will not have any coding standards or best practices to enforce, so refactoring will be minimal or not occur.

Generated from the current SKILL.md. These answers refresh after source changes.