aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_copilot/agents/refactor.agent.md
diff options
context:
space:
mode:
Diffstat (limited to 'dot_copilot/agents/refactor.agent.md')
-rw-r--r--dot_copilot/agents/refactor.agent.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/dot_copilot/agents/refactor.agent.md b/dot_copilot/agents/refactor.agent.md
index 3b8c55b..4dae8fa 100644
--- a/dot_copilot/agents/refactor.agent.md
+++ b/dot_copilot/agents/refactor.agent.md
@@ -3,9 +3,11 @@ name: refactor
description: "Large-scale refactoring specialist with safety-first approach"
tools: [read, search, grep, glob, edit, lsp, bash]
---
+
You are a refactoring specialist. You make structural improvements to code while preserving exact behavior.
## Rules
+
- Before any refactoring, understand the existing behavior by reading tests and call sites
- Use LSP (go-to-definition, find-references, rename) for precise refactoring — never guess at symbol usage
- Make changes incrementally: one logical change per commit