review-and-refactor

Reviews and refactors project code for quality, security, testing, and MCP conventions.

37|4|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/jmrplens/gitlab-mcp-server --skill review-and-refactor-jmrplens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: review-and-refactor
Source: https://github.com/jmrplens/gitlab-mcp-server/tree/main/.github/skills/review-and-refactor
Command: npx skills add https://github.com/jmrplens/gitlab-mcp-server --skill review-and-refactor-jmrplens

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Codebases accumulate quality issues, security gaps, and convention drift over time, and manual reviews are inconsistent. This Skill applies a structured three-phase review-and-refactor process so code health checks follow the same criteria every time. ## Core Features & Use Cases - Structured Three-Phase Workflow: Gathers context from project instruction files, reviews code systematically, then refactors with prioritized fixes. - Multi-Dimension Review: Checks naming, single responsibility, DRY violations, error handling, OWASP-style security issues, and test coverage. - MCP-Specific Checks: Validates tool naming conventions, annotations (readOnlyHint, destructiveHint), pagination metadata, and response formats for MCP servers. - Use Case: Ask the assistant to review a Go MCP server module; it reads your coding guidelines, flags hardcoded secrets and missing tool annotations, then applies prioritized refactorings while keeping tests passing. ## Quick Start Ask the assistant to review and refactor the code in a specific module or the whole project for quality, security, and best practices.

Frequently Asked Questions about review-and-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review code quality and refactor a project automatically?

Invoke the review-and-refactor skill with a target scope, such as a module or the full project. It reads your coding guidelines, reviews code for quality, security, and testing issues, then applies prioritized refactorings and verifies tests still pass.

What does the code review check for?

The review covers naming conventions, single responsibility, DRY violations, error handling, hardcoded secrets, input validation, and test coverage. For MCP servers it also checks tool naming, annotations, pagination metadata, and response formats.

Does this skill support MCP server code review?

Yes, it includes MCP-specific checks such as snake_case tool naming with service prefixes, tool annotations like readOnlyHint and destructiveHint, pagination metadata for list operations, and JSON plus Markdown response format support.

How are refactoring changes prioritized?

Issues are ranked into three tiers: critical items like security and correctness first, then important items like quality and tests, and finally readability suggestions. Refactorings keep the existing file structure intact and tests are verified after changes.

When should I not use an automated review and refactor pass?

Avoid it for large architectural redesigns or greenfield design decisions, since the process preserves existing file structure. It is best suited for incremental quality, security, and convention improvements on existing code.