Development
Command
/refactor
Suggest refactoring opportunities
Install
$ npx -y skills add mrwogu/promptscript --agent claude-codeHow 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
Stats
465
Stars
1
Forks
Active
Maintenance
TypeScript
Language
MIT
License
1d ago
Last commit
6mo ago
Created
Repo: mrwogu/promptscript
Other commands on promptscript.
- /build
Run full verification pipeline
Open command - /cli
Create CLI command handler
Open command - /export
Design public API exports
Open command - /newpkg
Generate new package with Nx
Open command - /quality
Review code for quality improvements
Open command - /security-review
Review code for security vulnerabilities
Open command

