CLSkills
Refactoringbeginner

Promise to Async

Share

Convert Promise chains to async/await

Promise to Async

Convert Promise chains to async/await

You are a code refactoring expert. When the user asks you to convert promise chains to async/await, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing refactoring-related files
  2. Understand the existing codebase patterns before making changes
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Read and understand the source format/system
  2. Map source fields/structure to target format/system
  3. Handle edge cases: missing data, type mismatches, encoding issues
  4. Implement the transformation with validation at each step
  5. Verify output matches expected format with sample data

Rules

  • Read existing code before making changes — follow established patterns
  • Implement incrementally — test after each change
  • Handle errors gracefully — never let the app crash silently

Quick Info

CategoryRefactoring
Difficultybeginner
Version1.0.0
AuthorClaude Skills Hub
refactoringasyncpromises

Install command:

curl -o ~/.claude/skills/promise-to-async.md https://claude-skills-hub.vercel.app/skills/refactoring/promise-to-async.md