/agentic-framework:refactoring-advisorfrom Agentic Framework for Claude
Analyzes code for structural issues and code smells, then recommends prioritized refactoring patterns with before/after examples. Useful when code is hard to change or test.
Ships in Agentic Framework for Claude. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Identify structural problems in code, name the smell, and recommend a specific refactoring that preserves external behavior. Never recommend a rewrite when a targeted refactoring will do.
git log --format= --name-only -- <path> | sort | uniq -c | sort -rn | head -20Present findings as a prioritized list (highest impact x highest churn first), not an unordered dump.
Before:
def process_order(order):
# Validate
if not order.items:
raise ValueError("Empty order")
if order.total < 0:
raise ValueError("Invalid total")
# Calculate discount
discount = 0
if order.customer.is_vip:
discount = order.total * 0.1
elif order.total > 100:
discount = order.total * 0.05
# Apply and save
order.total -= discount
db.save(order)
After:
def process_order(order):
validate_order(order)
discount = calculate_discount(order)
order.total -= discount
db.save(order)
Before:
function calculateArea(shape: Shape): number {
switch (shape.type) {
case "circle": return Math.PI * shape.radius ** 2;
case "rectangle": return shape.width * shape.height;
case "triangle": return 0.5 * shape.base * shape.height;
}
}
After:
interface Shape {
area(): number;
}
class Circle implements Shape {
constructor(private radius: number) {}
area(): number { return Math.PI * this.radius ** 2; }
}
Before:
func createUser(name string, email string, age int, role string, dept string) error {
After:
type CreateUserRequest struct {
Name string
Email string
Age int
Role string
Dept string
}
func createUser(req CreateUserRequest) error {
Use these as flags for investigation, not hard rules:
For work that goes beyond advice, route through the roster in the registry (claude.json):
comprehensive-analyst assesses the blast radius of large refactorings before they start.code-review-gatekeeper validates quality after the refactoring lands.peer-review-critic performs the final diff-scoped review before the work is declared done.What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/agent-debuggerDiagnose and fix agent routing, loading, and configuration issues by inspecting agents/*.md frontmatter, the claude.json registry, hook registration, and validator output — use when an agent is "not found", tasks route to the wrong specialist, models mismatch, hooks do not fire, or validate-consistency.sh fails./agent-routing-advisorRecommends which framework agent (or multi-agent workflow) should handle a task; use when the user asks which agent to use, how to delegate a piece of work, or how to sequence agents for a multi-domain task./code-reviewReview a PR (pull request), a branch, a diff, or a set of files with a structured 3-pass method (architecture, logic, expressiveness), five questions in pass 2, a Chesterton's Fence provenance check, and ICE-prefixed findings under a summary-first report. Use when asked to review, critique, or evaluate code changes.npx claudepluginhub tomas-rampas/agentic-framework --plugin agentic-frameworkOther plugins' skills for the same job