ask-python-refactor
Python refactoring for readability, maintainability, and performance.
Skill by NavanithanS
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/navanithans-ask-python-refactor
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ask-python-refactor
What's inside
- Skill name
ask-python-refactor- Description
- Python refactoring for readability, maintainability, and performance.
- License
- MIT
- Instructions
- 47 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- README.md
- SKILL.md
- validate.py · scripts/
- skill.yaml
- case1_placeholder.md · tests/
SKILL.md (first lines)
<critical_constraints>
❌ NO refactoring without tests first
❌ NO single-letter variables (n, x) → use descriptive names
❌ NO functions >20 lines → extract smaller functions
✅ MUST run tests after every change
✅ MUST commit frequently for easy rollback
</critical_constraints>
<naming>
Variables: descriptive nouns (user_count not n)
Functions: verb + object (calculate_total not calc)
Classes: entity nouns (OrderProcessor not OP)
</naming>
<code_smells>
- Duplicated code → extract to shared function
- Long parameter lists → group into dataclass
- Deep nesting → use early returns/guard clauses
- Magic numbers → replace with named constants
</code_smells>
<patterns>
## Dispatch Tables
```python
# Before: long if/elif chains
# After:
handlers = {'a': process_a, 'b': process_b}
handler = handlers.get(data.type, process_default)
return handler(data)
```
## Type Hints
```python
def get_user(user_id: int) -> Optional[User]:
return db.find(user_id)
```
</patterns>
<workflow>
1. Ensure tests exist
2. Make small changes, verify each step
3. Run tests after every change
4. Commit frequently
5. Review diff before finalizing
</workflow>From NavanithanS/Agent-Skill-Kit, MIT.
More from NavanithanS/Agent-Skill-Kit
- 0.592score
ask-code-reviewer
NavanithanS
Start code reviews, PR checks, or bug analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
ask-impact-sentinel
NavanithanS
Guidelines for impact analysis, breaking change detection, strategic database design, and comprehensive database indexing review.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-component-scaffolder
NavanithanS
Generate consistent UI component folder structure and files.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-conceptual-integrity-sentinel
NavanithanS
Audit repos for architectural drift, dead code, and abstraction bloat.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-db-migration-assistant
NavanithanS
Safe database schema updates with migration and rollback scripts.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-docker-expert
NavanithanS
Docker and Docker Compose optimization.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-effective-llm-coder
NavanithanS
Best practices for LLM-assisted coding.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-fastapi-architect
NavanithanS
FastAPI scaffolding.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-flutter-architect
NavanithanS
Flutter scaffolding with FVM, Layer-First architecture, Streams+Provider state.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-flutter-mechanic
NavanithanS
Flutter maintenance with FVM.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-laravel-architect
NavanithanS
Laravel scaffolding for SQL or Mongo (Official/Jenssegers), SoftDeletes, API standards.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-laravel-mechanic
NavanithanS
Laravel maintenance with Zero Data Loss policy, Mongo/SQL debugging.
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Sep 5, 2026 (1 month ago)
- Last release
- Oct 4, 2026 (25 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/NavanithanS/Agent-Skill-Kit
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from NavanithanS
- 0.592score
ask-code-reviewer
NavanithanS
Start code reviews, PR checks, or bug analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
ask-impact-sentinel
NavanithanS
Guidelines for impact analysis, breaking change detection, strategic database design, and comprehensive database indexing review.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-db-migration-assistant
NavanithanS
Safe database schema updates with migration and rollback scripts.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-conceptual-integrity-sentinel
NavanithanS
Audit repos for architectural drift, dead code, and abstraction bloat.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-component-scaffolder
NavanithanS
Generate consistent UI component folder structure and files.
SkillAFreshness: A★ 1Claude Code +9 - 0.586score
ask-bug-finder
NavanithanS
Systematic debugging with reproduction, isolation, and hypothesis testing.
SkillAFreshness: A★ 1Claude Code +9
Cite this page
ask-python-refactor skill. Agent Mart. https://agentmart.dev/skills/navanithans-ask-python-refactor (last updated 2026-10-24)