aboutsummaryrefslogtreecommitdiffstats
path: root/modules/development/pi-coding-agent/skills/refactoring
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-27 06:08:52 +0530
committerArpit Chakladar <arpit@chakladar.me>2026-09-29 23:42:32 +0530
commit0c4f95c8106e77abcbdd94917c4b7cf3c7a3c63f (patch)
tree7889d93ac9461b91ad4b0dbc137cc72eff4a8dd6 /modules/development/pi-coding-agent/skills/refactoring
parenta693ec73036cfe4c3aafb49bebd4480bcc1bc9ab (diff)
downloadhome-manager-config-0c4f95c8106e77abcbdd94917c4b7cf3c7a3c63f.tar.gz
home-manager-config-0c4f95c8106e77abcbdd94917c4b7cf3c7a3c63f.zip
feat(development/pi-coding-agent): added custom skills
Diffstat (limited to 'modules/development/pi-coding-agent/skills/refactoring')
-rw-r--r--modules/development/pi-coding-agent/skills/refactoring/SKILL.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/development/pi-coding-agent/skills/refactoring/SKILL.md b/modules/development/pi-coding-agent/skills/refactoring/SKILL.md
new file mode 100644
index 0000000..f947cff
--- /dev/null
+++ b/modules/development/pi-coding-agent/skills/refactoring/SKILL.md
@@ -0,0 +1,33 @@
+---
+name: refactoring
+description: "Explicitly preserve behavior while improving structure; identify unnecessary abstraction and avoid scope creep."
+---
+
+# Refactoring Skill
+
+Explicitly preserve behavior while improving structure; identify unnecessary abstraction and avoid scope creep.
+
+## Principles
+
+### Preserve Behavior
+- Run tests before and after
+- Make incremental changes
+- Verify at each step
+
+### Improve Structure
+- Reduce duplication
+- Clarify intent
+- Improve modularity
+
+### Avoid Scope Creep
+- One refactoring at a time
+- No new features
+- No style-only changes in same commit
+
+### Identify Unnecessary Abstraction
+- Remove unused interfaces
+- Inline single-use functions
+- Flatten deep hierarchies
+
+### Run tools
+- Use refactoring tools like formatters/linters when available