9 Repos
Techniques for precise, verified code modifications.
Distinguishing note: Focuses on accuracy and verification in automated refactoring.
Explore 9 awesome GitHub repositories matching software engineering & architecture · Surgical Code Refactoring. Refine with filters or upvote what's useful.
This project is a collection of engineering guidelines and best practices for writing readable and maintainable JavaScript source code. It serves as a clean code guide and refactoring manual to help developers improve the structure of their codebases. The repository provides a reference for applying SOLID principles to reduce coupling and enable extensions without modifying existing logic. It includes a naming convention standard for using explicit, searchable identifiers and a guide for asynchronous patterns to replace nested callbacks with clearer execution flows. The guidelines cover soft
Provides a manual for removing code duplication and optimizing function design through refactoring.
Oh-my-opencode is an autonomous software engineering platform designed to automate complex coding tasks through the orchestration of specialized AI agents. It manages end-to-end development workflows by coordinating teams of agents that perform parallel execution, strategic planning, and automated code generation. The system ensures high-precision refactoring by utilizing a hash-anchored modification engine, which verifies file integrity through cryptographic line references before applying any changes. The platform distinguishes itself through a rigorous planning-first methodology, requiring
Applies precise, verified modifications to source code using hash-based references.
This project is an educational platform and tutorial series designed to teach the Go programming language through the practice of test-driven development. It provides a structured path for developers to master language fundamentals, concurrency, and standard library usage by building functional applications in small, verifiable increments. The core methodology centers on the test-driven development cycle, where failing tests are written before implementation to define requirements and ensure code correctness. This approach is applied across a wide range of practical scenarios, including the c
Supports precise, verified code modifications to ensure structural improvements do not alter existing behavior.
Kilocode is an autonomous engineering platform designed to orchestrate AI agents for complex software development tasks. It functions as a comprehensive system for automating coding, testing, and repository management by integrating directly with your codebase and terminal. The platform provides a unified gateway for model orchestration, allowing for the management of agentic workflows, event-driven automation, and persistent session state across distributed development environments. The platform distinguishes itself through its federated task management and policy-based access control, which
Performs precise, verified code modifications by replacing specific blocks while maintaining file structure.
Scientist is a Ruby code parity testing library and production experimentation framework. It allows for the safe deployment of candidate code paths alongside a control implementation to verify that new logic produces the same outputs and exceptions as the original. The library identifies behavioral divergences between legacy and refactored code by running both versions in a live environment. It functions as a refactoring regression detector, measuring performance parity and detecting mismatches using real-world data without affecting the end user. The system covers broad capabilities for mon
Enables precise, verified replacement of production code paths by ensuring identical results between versions.
Provides interactive, type-checked refactoring sessions that keep the codebase live and avoid misleading error lists.
google-java-format ist ein Java-Code-Formatter und ein Tool zur Durchsetzung von Styleguides. Es formatiert Java-Quellcode so um, dass er einem standardisierten Styleguide entspricht, und sorgt so für ein konsistentes Layout und eine einheitliche Einrückung über ganze Projekte oder einzelne Dateien hinweg. Das Projekt fungiert als Linting-Tool in Build-Pipelines für Continuous-Integration-Workflows sowie als IDE-Formatierungs-Plugin, das die native Editor-Formatierung ersetzt. Es kann als Formatierungsbibliothek in Software zur Codegenerierung eingebettet werden, um sicherzustellen, dass maschinell erstellter Code für Menschen lesbar bleibt. Das Tool bietet Funktionen zur Anpassung von Einrückungen und Abständen im Quellcode, einschließlich der Möglichkeit, Formatierungen selektiv auf bestimmte Zeilenbereiche oder geänderte Diffs anzuwenden. Es unterstützt die Integration in Entwicklungsumgebungen wie Eclipse, um Layout-Anpassungen während des Codierens zu automatisieren.
Allows for surgical code modifications by applying style updates only to specific line ranges.
This project is a refactoring kata collection and software design education resource. It provides a set of intentionally messy codebases and multi-language code samples designed for practicing incremental design, legacy code modernization, and software restructuring. The collection serves as a training material for test-driven development, focusing on the use of golden master testing suites and approval testing to ensure functional parity while evolving source code. It includes a universal learning baseline by implementing identical complex business rules across several different programming
Provides a baseline for performing manual, incremental improvements and safety testing on flawed code.
Codemod is a set of software tools for performing structural source code transformations. It functions as an automated codebase migration tool that utilizes abstract syntax tree manipulations rather than simple regular expressions to execute large-scale refactors across multiple files. The project distinguishes itself through an interactive transformation interface that provides colored diffs, allowing users to manually review, accept, or modify each match. It also supports a distributed refactoring workflow, which enables the segmentation of a codebase into assigned work blocks to divide mig
Supports custom scripting for performing sophisticated refactoring logic beyond simple regular expression substitutions.