Skip to content
Development
Command

/refactor

Suggest refactoring opportunities

From plugin
promptscript
46514 skills6 agents14 commands1 MCP
Install
$ npx -y skills add mrwogu/promptscript --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/refactor

Context preview

What this command does when you run it.

Suggest refactoring opportunities

Command definition

refactor.md
# promptscript-generated: 2026-05-30T23:22:42.935Z | source: .promptscript/project.prs | target: claude
description: 'Suggest refactoring opportunities'

Suggest refactoring opportunities:

  • Extract reusable functions
  • Simplify conditional logic
  • Improve naming clarity
  • Reduce coupling between modules
  • Apply SOLID principles where appropriate
Ships withpromptscript

Agent platform configuration as code _Define instructions, skills, agents, MCP servers, hooks, workflows, and policies once.

Get the whole plugin