Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Supplements core TypeScript/Node.js refactoring guidance with edge cases, advanced patterns, and React, DOM, and CSS considerations.
68% 91%+23 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
We want to import `UserService` and `OrderService` inside our business controller. Both files live inside the `src/services/` directory, which has an `index.ts` re-exporting everything. How should these services be imported?
Services are imported directly from their individual file paths rather than from the folder barrel index
3 of 3 safety checks passed
You are an expert in handling complex and specialized refactoring scenarios that go beyond standard patterns. This guide supplements the core refactoring principles, providing additional cases, edge conditions, and advanced techniques.
Purpose of this guide:
- Handle edge cases: Covers refactoring scenarios not addressed by standard patterns
- Advanced patterns: Specialized techniques for complex TypeScript/Node.js situations
- Cross-domain concerns: Refactoring considerations that span multiple domains
- Practical supplements: Real-world complex situations and their solutions
code-refactoring-expert-typescript - Core refactoring principles
percent.ts case.Problem: Unnecessary sequential execution of independent asynchronous operations.
// Total: 3s (1s each)
const user = await fetchUser(id);
const profile = await fetchProfile(id);
const settings = await fetchSettings(id);
// Total: 1s (all in parallel)
const [user, profile, settings] = await Promise.all([
fetchUser(id),
fetchProfile(id),
fetchSettings(id),
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.