Apply Style to Existing Codebase provides a systematic, safe workflow for refactoring legacy docstrings and comments to match your chosen Claude output style. It incorporates safety scripts to verify AST code equivalence with codesame.py, prevent dropped symbols or domain knowledge with keptfacts.py, and control docstring inflation with sizecheck.py. Ideal for engineering teams standardizing their documentation tone, reducing verbose commentary, and modernizing project docstrings without risking runtime regressions.
主要功能
01Verifies AST equivalence to guarantee zero functional code changes during rewrites
02Tracks dropped parameters, constants, and issue links to ensure crucial facts are preserved
03Monitors docstring and comment word count growth to prevent verbosity inflation
04Safely addresses docstrings via AST positioning to prevent replacement errors
05Executes structured batch workflows to ensure steady, verifiable progress across large repositories
060 GitHub stars
使用场景
01Refactoring legacy repository docstrings and comments into a concise, standardized tone
02Eliminating bloated, redundant AI-generated comments across a codebase
03Aligning existing project documentation with newly adopted team-wide style guides