← Corpus / lost-in-public / prompt

Suggest a Non-Destructive Refactor

Provide recommendations for improving code organization and structure while preserving functionality and maintaining existing patterns

Path
prompts/code-style/Merge-Functionality-into-One-File.md
Authors
Michael Staton
Augmented with
Windsurf Cascade on Claude 3.5 Sonnet
Tags
Code-Style · Code-Quality · Maintainability · Refactoring

Objective:

Preserve and integrate key functionality while streamlining code organization and structure.

Enable the developers to remove redundant code and redundant files, while assuring changes will be non-breaking by changing references from old files and functions to new files and functions.

Improve coherence and fidelity of the codebase by applying known or observed patterns of naming conventions and code organization to functional code that lacks that consistency and fidelity.

Functionality to Preserve

While the developers may isolate and point to functionality they know they want to preserver, the AI Assistant is expected to surface any functionality they can observe and surface it through chat dialog.

Input Files

site_archive/src/utils/markdown-debugger.ts site_archive/src/utils/debug/markdown-debugger.ts

Output Files

site/src/utils/markdown/markdownDebugger.ts