← Reddit

Refactor code to skills files + python?

Reddit · NoAfternoon385 · June 8, 2026
A developer is considering refactoring the 2024 PatchWise open source project, originally built in Python with the LiteLLM library for AI code reviews, to incorporate AI skills.md files in a mixed-mode approach. The developer seeks guidance on whether this refactoring is advisable and requests general advice for implementing this programming paradigm in new projects.

Detailed Analysis

A developer working on PatchWise, an open source project built in 2024 using Python and LiteLLM for AI-powered code reviews, is questioning whether to refactor the codebase to incorporate Claude's CLAUDE.md skills file paradigm alongside Python — reflecting a broader inflection point that many developers face as Anthropic's agentic coding ecosystem matures. The question captures a genuine tension in the AI tooling space: whether projects built on earlier LLM integration patterns (direct API calls via abstraction libraries like LiteLLM) should migrate toward the structured, instruction-file-driven model that Claude's agentic tools now support.

The "skills files" paradigm — most prominently CLAUDE.md — represents Anthropic's approach to giving persistent, project-scoped context and behavioral instructions to Claude when operating as an autonomous coding agent. Rather than embedding instructions in code or passing them as prompts at runtime, developers define agent behavior, conventions, and domain knowledge declaratively in Markdown files that Claude reads when invoked in an agentic context. This is architecturally distinct from the approach PatchWise originally took, where LiteLLM served as a routing layer to send prompts to various LLM backends. The two approaches are not mutually exclusive, but they serve different interaction models — LiteLLM targets programmatic, pipeline-style LLM calls, while CLAUDE.md targets interactive or semi-autonomous agent sessions.

For a project like PatchWise, the decision to refactor depends heavily on how the tool is actually used. If PatchWise runs as a batch pipeline — ingesting diffs and returning reviews without human interaction — the LiteLLM approach remains entirely appropriate and does not benefit substantially from skills files. CLAUDE.md files are most valuable when Claude is acting as a persistent agent that needs to understand project conventions over multiple turns or tool-use cycles. A mixed-mode architecture, where Python handles orchestration and data flow while CLAUDE.md provides context for any interactive or agentic Claude sessions, would make sense only if PatchWise is evolving toward that kind of human-in-the-loop or long-horizon agentic usage.

For new projects, the emerging best practice in the Claude ecosystem does favor a hybrid approach: Python or another host language handles control flow, tool integration, and infrastructure, while structured instruction files govern agent behavior and domain context. Anthropic has been deliberately pushing this separation of concerns through its Claude Code product and the broader Claude agent framework. New projects that anticipate agentic workflows — where Claude takes multi-step actions, reads files, executes code, or operates over extended sessions — should adopt CLAUDE.md conventions from the start. Projects that are purely programmatic LLM pipelines with no agent loop can remain well-served by libraries like LiteLLM without the overhead of the skills file paradigm.

The broader trend this question reflects is the industry-wide transition from "LLM as API endpoint" to "LLM as collaborative agent with memory and context." Anthropic's tooling choices, including CLAUDE.md, the Model Context Protocol, and Claude Code, are designed to normalize this latter model. Developers who built AI tooling in 2023–2024 using first-generation integration patterns are now navigating a paradigm shift that is more architectural than cosmetic — and the right answer for any given project depends on whether its core value proposition lies in pipeline throughput or in agentic, context-aware collaboration.

Read original article →