diff options
| author | Arpit Chakladar <arpit@chakladar.me> | 2026-09-29 23:45:25 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpit@chakladar.me> | 2026-09-29 23:45:25 +0530 |
| commit | 33519df0fff478526d217d04190577b33c5bf7d0 (patch) | |
| tree | 18f6ee9bb8101381212038d16099e59d250b7080 /modules/development/pi-coding-agent/prompts/refactor.md | |
| parent | 7975de6d03289bcc143137d5458486def5adc672 (diff) | |
| parent | 871a29efd370088f669c4f2b9e20b8992406a444 (diff) | |
| download | home-manager-config-33519df0fff478526d217d04190577b33c5bf7d0.tar.gz home-manager-config-33519df0fff478526d217d04190577b33c5bf7d0.zip | |
Merge branch 'adding-pi-harness'
Diffstat (limited to 'modules/development/pi-coding-agent/prompts/refactor.md')
| -rw-r--r-- | modules/development/pi-coding-agent/prompts/refactor.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/development/pi-coding-agent/prompts/refactor.md b/modules/development/pi-coding-agent/prompts/refactor.md new file mode 100644 index 0000000..a5b38ad --- /dev/null +++ b/modules/development/pi-coding-agent/prompts/refactor.md @@ -0,0 +1,24 @@ +# Refactor + +Improve the structure, readability, or maintainability of existing code while preserving behavior unless a behavior change is explicitly requested. + +## Instructions + +- Inspect the existing implementation before proposing changes. +- Identify the concrete problem the refactor should solve. +- Preserve public behavior and interfaces unless explicitly required otherwise. +- Prefer small, understandable transformations. +- Follow existing project conventions. +- Avoid introducing abstractions without a clear benefit. +- Avoid unrelated cleanup. +- Update affected tests when necessary. +- Run relevant validation after the refactor. + +## Before finishing + +Verify that: + +- intended behavior is preserved +- tests still pass or have been appropriately updated +- no unnecessary dependencies or abstractions were introduced +- the resulting code is simpler or clearer than before
\ No newline at end of file |
