Library Seam Wrapper
Legacy CodeWorking Effectively with Legacy Code
Isolate third-party library dependencies behind thin wrapper interfaces to break vendor lock-in and enable testing. Use whenever a developer has direct calls to library classes scattered through production code and can't test or swap the library — 'library is killing me', 'vendor lock-in', 'can't mock this library', 'integration tests only for this SDK', 'AWS SDK everywhere', 'Stripe calls in 50 files', 'all API calls', 'wrapping a library', 'adapter for third-party'. Triggers for 'third party', 'SDK', 'library coupling', 'external service', 'API client'.
Install
1. Add marketplace
› /plugin marketplace add bookforge-ai/bookforge-skills
2. Install plugin
› /plugin install working-effectively-with-legacy-code@bookforge-skills
3. Use the skill
› /library-seam-wrapper
CC-BY-SA · Open sourceGitHub
What You'll Need
ReadGrepEditBashGlob (optional)
Source Book

Working Effectively with Legacy Code
Michael C. Feathers
View on ClawhHub