Repository navigation
feat: /apple:debt — measure and pay down an existing app's own debt - #108
Merged
Merged
Conversation
…102) Lints with the project config plus the design-system, code-size, concurrency and coding-best-practices fragments, ranks areas by violations x recent commits, freezes untouched areas, and turns the top areas into a quality-intent phase: characterization tests first, one area per task, behavior unchanged, baseline only shrinks. Writes .planning/DEBT.md with a trend row per run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 4, 2026
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.
Closes #102.
What
New command
/apple:debt [area | rule-set] [--report]: it measures an existing app against the rules SwiftShip already enforces on new work, and pays the debt down safely.modernizekeeps the app current with Apple;debtpays down the app's own debt..swiftlint.ymlplus the skills' fragments, passed as extra--configfiles so nothing in the project changes:design/design-system,swift/code-size,swift/concurrency,ios/coding-best-practicesmap's design-debt score and missing-font check, per-area test presence, the coverage baseline, and concurrency warnings when a build log is at handtdd-refactor-guardper area. Where it says NEEDS TESTS, characterization tests are the first task. No net, no refactor.quality-intent "Pay Down Debt" phase:plan's quality row now describes the debt task shape: test and lint verifies, baseline entries removed.swiftlint.yml, showing the diff first.templates/DEBT.mdwith an area table, backlog and a trend row per run.--reportstops after writing it.Also:
design-system.mddrops its "if installed" fallbackTested
Views/Projectsranks first (635 violations, 101 commits).ViewsandViews/Musicrank first.Shared/Managersranks first. This run also caught and fixed a bug: folders with spaces had lost their commit counts../scripts/validate.shpasses (55 commands).🤖 Generated with Claude Code