feat(pst:refactor): standalone Fowler smell pass + refactor commit skill#67
Merged
Conversation
…tor commit Standalone /pst:refactor skill that applies the 16-smell rubric from MAINTAINABILITY.md against a diff, file, or glob. Mirrors rule 23 as an explicit on-demand invocation: Haiku detects smells, presents findings, then optionally spawns a Sonnet implementer in an isolated worktree to apply behavior-preserving fixes as a separate refactoring commit (two hats). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019BCr5Qxi8jXnG2Rr7zdkw1
…parallel Sonnet fixers - Scope changed: default is entire codebase, not current diff - Analysis tier changed: Opus (was Haiku) -- whole-codebase maintainability audit warrants deep reasoning - Implementation: parallel Sonnet agents per file in isolated worktrees - Fix adversarial findings: correct MAINTAINABILITY.md path (one .., not two), explicit git add+commit in implementer instructions, remove invalid effort param, fix --report-only handling, remove pst-smell.rb dependency - Co-author trailer included in implementer commit instructions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019BCr5Qxi8jXnG2Rr7zdkw1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/pst:refactorskill: standalone Fowler maintainability smell passMAINTAINABILITY.md--diff,--staged, or auto-detect viapst-smell.rb--report-onlyflag skips implementationinstall.shSKILLS arrayTest plan
ls ~/.claude/commands/pst:refactor.mdpoints to repo SKILL.md after reinstall/pst:refactorwith no args on a dirty working tree detects smells--report-onlystops after smell listing, no implementer spawned🤖 Generated with Claude Code
https://claude.ai/code/session_019BCr5Qxi8jXnG2Rr7zdkw1