Evanflow improve architecture

From evanklem/evanflow · View interactive version

Evanflow improve architecture is an AI agent skill from the GitHub repository evanklem/evanflow. Identify refactoring opportunities by surfacing architectural friction. Apply the deletion test, deep-modules vocabulary, and seams analysis. Each opportunity becomes its own evanflow-writing-plans cycle. Use when reviewing code for refactoring, when a file has grown too large, or when architecture

How to use this skill

Skill file

EvanFlow: Improve Architecture

Vocabulary

See evanflow meta-skill. Key terms: module, interface, depth, seam, adapter, deletion test.

When to Use

SKIP when: the user is doing a small, well-scoped change. Don't try to refactor adjacent code.

The Flow

1. Read Context First

2. Identify Candidates

Walk the codebase noting friction:

3. Apply the Deletion Test

For each candidate module: "If I deleted this, where would the complexity go?"

4. Embedded Grill — Candidate Selection

Before proposing changes, stress-test:

5. Present Opportunities

For each, name:

Prioritize. Recommend ONE to tackle next.

6. Hand Off Per Opportunity

Each opportunity becomes its own evanflow-writing-plans cycle. Do not bundle multiple refactors into one plan — that's a horizontal-slice failure.

If the opportunity changes a public interface, route through evanflow-design-interface first.

Hard Rules

Hand-offs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.