Usage
#software-code-refactorer/agent
When to use
when production code works but needs cleanup — reducing duplication, improving naming, simplifying complexity, or aligning with codebase conventions when a TDD workflow needs code improved without changing behavior after the Green phase when code quality should be improved while preserving all existing test behavior
When not to use
when writing new production code to make tests pass (use software-implementor) when writing or creating tests (use software-test-creator) when running tests (use software-test-executor) when reviewing tests, designs, or plans when the code has no tests — refactoring without test coverage is unsafe when reviewing code quality without making changes (a code-review agent would be better)
Configuration
large | |
medium | |
medium | |
read_filewrite_fileedit_fileapply_patchglobgrepshellask_user | |
software-code-refactoring |
Prompt
.stencila/agents/software-code-refactorer/AGENT.md