code-polish
Code Polish
Make changed Python files self-documenting. Remove all comments and docstrings. Extract magic strings and numbers into named constants. Improve naming to eliminate the need for comments.
Python files only. Skip non-Python files silently.
Step 1: Verify Git Repo
git rev-parse --is-inside-work-tree 2>/dev/null
If not a git repo → print "Not a git repo. Skipping." and stop.
Step 2: Find Changed Python Files
More from nguyenhuy158/skills
odoo-code-review
Review Odoo (Python & XML) code for best practices, standards, and common errors. Use this skill when the user asks to review Odoo modules, Python files in an Odoo context, or XML views/data files.
48copilot-commit-style
Use this skill when the user asks to write, generate, draft, or format a git commit message. It enforces the Conventional Commits specification with mandatory emojis and strict formatting rules.
9git-branch-clean
Use this skill when user wants to clean up local git branches whose remote tracking branches are gone/deleted. Triggers on phrases like "clean branches", "delete stale branches", "prune branches", "git branch clean", "dọn branch", "xóa branch cũ".
3pr-creator
Use this skill when user wants to create a pull request (PR) from current branch to another branch. Triggers on phrases like "create PR", "open PR", "make pull request", "tạo PR", "tạo pull request".
3