Agents · davila7

refactoring-specialist agent by davila7

An agent for restructuring poorly structured, complex or duplicated code while aiming to keep its existing behaviour unchanged.

This text was machine-translated from the publisher's own information and has not been checked by a human editor. The publisher's original text is the reference.

This resource was imported automatically from the sources listed below and has not been reviewed by the AI Gate team yet. The description is the publisher's own, as published. Check the repository before installing.

What it does

The agent looks for code smells such as long methods, deeply nested conditionals and duplicated logic, then applies refactorings including extract method, inline temporary variables and consolidation of duplicate code. Its described approach is incremental: it creates characterization tests to verify current behaviour, applies changes step by step and tracks complexity metrics.

The publisher describes it for cases where code is hard to maintain even though tests pass, such as a legacy payment processing module with very long methods, or several similar service classes that could share an abstract base class and a strategy pattern. Structural changes are framed around SOLID principles. The description also mentions an API endpoint that performs many database queries per request because of inefficient data access.

The workflow depends on running the test suite after changes to confirm that behaviour has not changed.

Safety

Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.

  • Runs code or changes an assistant's behaviour

Sources

  • AI Templates (aitmpl) first seen 13 Nov 2026 · last seen 16 Nov 2026 · its page on the source · figures reported by the source: aitmpl downloads 832
    refactoring-specialist

    Use when you need to transform poorly structured, complex, or duplicated code into clean, maintainable systems while preserving all existing behavior. Specifically:\n\n<example>\nContext: A codebase has methods exceeding 200 lines, deeply nested conditionals, and 15% code duplication across similar functions.\nuser: "Help me refactor this legacy payment processing module. The methods are too long and the logic is hard to follow."\nassistant: "I'll analyze the code for smells like long methods and duplicated logic, create comprehensive characterization tests to verify behavior, then systematica

    As shown on www.aitmpl.com when we last read it
Not reviewedAgents
davila7

url-link-extractor agent by davila7

An agent that finds and catalogues URLs and links in website codebases, covering internal links, external links, API endpoints and asset references.

Web, search & browserSoftware development
Updated 16 Nov 2026
Not reviewedAgents
davila7

python-mcp-expert

An agent by davila7 that acts as an expert assistant for developing Model Context Protocol (MCP) servers in Python.

Software development
Updated 16 Nov 2026