# Consistent Async Patterns

> Prefer async/await over Use when maintaining consistent code style. Style category skill.

- Skill: `majiayu000/consistent-async-patterns` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/consistent-async-patterns`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/consistent-async-patterns/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/majiayu000/consistent-async-patterns

---


# Consistent Async Patterns

Prefer async/await over .then() chains for readability. Don't mix callbacks with promises unless interfacing with legacy APIs. Use promisify for callback-based APIs. Keep async functions async—don't return plain values then. Handle errors with try/catch in async functions. Mark functions as async only when they use await or return promises.
