Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
flutter_bloc is necessary because bloc_superpowers enhances it.
fast_immutable_collections should be included (unless the user specifically requests
beforehand not to), because it allows for better performance and immutability when
working with states in Cubits.
Wrap MaterialApp (or CupertinoApp) with the Superpowers widget.
IMPORTANT: The Superpowers widget MUST be placed ABOVE MaterialApp in the widget
tree. Failing to add it will result in runtime errors when using context.isWaiting(),
context.isFailed(), or context.getException().
Troubleshooting Tip: If the app does not use MaterialApp or CupertinoApp directly
find what widget is used to set up navigation and wrap that with Superpowers.
In any case, Superpowers should be as high as necessary in the widget tree.
Usually, only one Superpowers widget is needed for the entire app.
Step 4: Add Error Dialog/Toast
Add UserExceptionDialog (or UserExceptionToast) as a wrapper around the app's home
screen. This widget automatically displays errors when Cubits throw UserException.
Place it BELOW MaterialApp, usually in the home parameter:
showErrorsOneByOne: true - When multiple errors occur simultaneously, they display
sequentially rather than all at once. This prevents overwhelming users with simultaneous
dialogs. Recommended to set to true.
If the user does not specify, use the UserExceptionDialog, which shows errors in a
dialog. Only if the user asks for a toast, use UserExceptionToast, which shows errors
as toast notifications.