aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development/pi-coding-agent/prompts/refactor.md
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-27 05:40:09 +0530
committerArpit Chakladar <arpit@chakladar.me>2026-09-29 23:42:30 +0530
commita693ec73036cfe4c3aafb49bebd4480bcc1bc9ab (patch)
treed1ca73ec0a038099917164192e161a286c063fd3 /modules/development/pi-coding-agent/prompts/refactor.md
parent0981b6c089b483b4ecddceeffe89ed3f38561fb2 (diff)
downloadhome-manager-config-a693ec73036cfe4c3aafb49bebd4480bcc1bc9ab.tar.gz
home-manager-config-a693ec73036cfe4c3aafb49bebd4480bcc1bc9ab.zip
feat(development/pi-coding-agent): added the submodule, CONTEXT.md and prompts
Diffstat (limited to 'modules/development/pi-coding-agent/prompts/refactor.md')
-rw-r--r--modules/development/pi-coding-agent/prompts/refactor.md24
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