sweet-alert-development
Skill by realrashid
Builds SweetAlert2 flows in Laravel with the realrashid/sweet-alert v8 package. Covers flashed alerts, toasts, input dialogs and confirmation dialogs for destructive actions. Written for Laravel developers who already use that package.
Install sweet-alert-development
Built from the published package, never by AI.
git clone --depth 1 https://github.com/realrashid/sweet-alert /tmp/sweet-alert && mkdir -p ~/.claude/skills && cp -r /tmp/sweet-alert/resources/boost/skills/sweet-alert-development ~/.claude/skills/sweet-alert-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install sweet-alert-development in Claude Code
git clone --depth 1 https://github.com/realrashid/sweet-alert /tmp/sweet-alert && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sweet-alert/resources/boost/skills/sweet-alert-development ~/.gemini/antigravity-cli/skills/sweet-alert-developmentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install sweet-alert-development in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill helps an AI assistant build SweetAlert2 flows in Laravel using the realrashid/sweet-alert v8 package. It covers flashed alerts and toasts, input dialogs that post their value back to a route, and confirmation dialogs for destructive or irreversible actions. It also explains how to render Blade views inside an alert and how to dispatch alerts from Livewire components.
Alerts are built in PHP with the Alert facade, flashed to the session, and rendered by the @sweetAlert directive on the next response. Confirmations can be added with a data-confirm attribute on links or forms, without controller changes or JavaScript. The skill also lists v8 pitfalls and shows how to migrate v7 call sites with a dry-run upgrade command. It is aimed at Laravel developers who already use or plan to use realrashid/sweet-alert.
Written from the project's SKILL.md and checked against it.
What it can do
- Flashed alerts and toastsBuilds session-flashed alerts with Alert::success() and toasts with Alert::toast().
- Input dialogsCollects a value in a dialog and posts it to a route with submitTo().
- Confirmation dialogsAdds a data-confirm attribute to links or forms to ask before an action.
- Blade views in alertsRenders a Blade view inside an alert using the view() method.
- Livewire alertsDispatches alerts from Livewire components with the SweetAlertTrait.
- v8 migrationRuns the alert:upgrade command to move v7 call sites to v8.
What you need
- Laravel project
- realrashid/sweet-alert v8 package
Try asking
- Add a success alert after the profile update saves
- Ask for confirmation before deleting this post with SweetAlert
- Show a SweetAlert input dialog that saves the user's name
Good to know
- Covers v8 only. v7 code needs migration because some calls fail quietly.
- Session-flashed alerts do not fire on a Livewire update, so a browser event is used instead.
- Without submitTo() the input dialog closes and the value is discarded.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: resources/boost/skills/sweet-alert-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to sweet-alert-development
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
sweet-alert-development: common questions
Does this work with Livewire?
Session-flashed alerts do not fire on a Livewire update. The skill uses the SweetAlertTrait and dispatchAlert() to show alerts from Livewire components instead.
How do I confirm before a destructive action?
Add the data-confirm attribute to the link or form. Per-element text can be set with attributes such as data-confirm-title, and defaults live in config/sweetalert.php.
Can the user type a value into a dialog?
Yes. Alert::input() with submitTo() posts the entered value to a route. Server-side validation while the dialog is open can use preConfirmRoute().
How do I install sweet-alert-development?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sweet-alert-development free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is sweet-alert-development safe to use?
It scores 76 of 100. Grades: maintenance B, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sweet-alert-development?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
