The Upgrade Playbook: How AI Agents Should (and Shouldn’t) Touch Your SPFx Version

Scaffolding fails safe — a bad attempt just gets deleted. An upgrade runs against a project that already works, so the cost of getting it wrong is much higher. This post walks the spfx-dev-skills upgrade.md reference end to end: the clean-git-state precondition, version detection via .yo-rc.json, the exact m365 spfx project upgrade commands, applying the report in order without overwriting customizations, and the build-clean bar for calling an upgrade done.

Stop Letting AI Hang on yo @microsoft/sharepoint: Non-Interactive SPFx Scaffolding

Interactive Yeoman prompts are invisible to AI coding agents — they hang, or worse, pick the wrong menu item. This post walks the official spfx-dev-skills create.md reference line by line: environment checks with m365 spfx doctor, the fully flag-based scaffold command for web parts and extensions, dependency install discipline, and toolchain-aware packaging for Heft vs. gulp.