JavaScript Mastery Skill for Partial Promise Success
Use Claude Code to choose Promise.allSettled for independent tasks and check how fulfilled and rejected outcomes map to the inputs.
中文Install in Claude Code
Use a modern browser or Node.js and two local promises representing a recommendations panel and a weather panel.
- Get the complete `cli-tool/components/skills/development/javascript-mastery` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/javascript-mastery/SKILL.md`, start Claude Code at the project root, and call `/javascript-mastery`.
Example task
Pass a promise resolving to recommendations and one rejecting with weather unavailable to Promise.allSettled in that order. Inspect status and the appropriate value or reason.What to check
Recommendations are retained in the first fulfilled entry. The second entry is rejected and can drive a weather-only error state.
Original SKILL.md on GitHub · Updated
Frequently asked question
Does Promise.allSettled return outcomes in completion order?
The outcome array follows input order. Use that order or the task definition to map each result back to its component.