Skip to content

Commit 0714813

Browse files
committed
Tweaks skills
1 parent 0cf1768 commit 0714813

5 files changed

Lines changed: 32 additions & 5 deletions

File tree

  • resources/boost/skills

resources/boost/skills/developing-with-turbo-basics/SKILL.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
name: developing-with-turbo-basics
3-
description: Basics of developing with Turbo in web applications. Activate when working on projects that utilize Turbo for enhancing user experience through partial page updates, real-time interactions, and seamless navigation without full page reloads.
3+
description: >-
4+
Basics of developing with Turbo Laravel. Activates when starting a new Turbo Laravel project; using dom_id, dom_class,
5+
turbo_stream(), or turbo_stream_view() helpers; working with Blade components like x-turbo::frame, x-turbo::stream,
6+
x-turbo::stream-from, or x-turbo::refreshes-with; using @domid, @domclass, @channel, or @turbonative directives;
7+
checking wantsTurboStream(), wasFromTurboFrame(), or wasFromHotwireNative() request macros; or when the user mentions
8+
Hotwire, Turbo, HTML over the wire, or partial page updates.
49
---
510

611
# Turbo Laravel Basics

resources/boost/skills/developing-with-turbo-drive/SKILL.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
name: developing-with-turbo-drive
3-
description: Basics of developing with Turbo Drive in web applications. Activate when working on projects that utilize Turbo Drive for enhancing user experience through faster navigation by intercepting link clicks and form submissions to avoid full page reloads.
3+
description: >-
4+
Develops with Turbo Drive for SPA-like navigation. Activates when configuring page morphing with x-turbo::refreshes-with;
5+
working with data-turbo, data-turbo-track, data-turbo-permanent, or data-turbo-preload attributes; managing cache control
6+
with x-turbo::exempts-page-from-cache, x-turbo::exempts-page-from-preview, or x-turbo::page-requires-reload; enabling
7+
view transitions with x-turbo::page-view-transition; handling form redirects with TurboMiddleware; customizing the progress
8+
bar; or when the user mentions Turbo Drive, navigation, page morphing, prefetching, or asset tracking.
49
---
510

611
# Turbo Drive

resources/boost/skills/developing-with-turbo-frames/SKILL.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
name: developing-with-turbo-frames
3-
description: Basics of developing with Turbo Frames in web applications. Activate when working on projects that utilize Turbo Frames for enhancing user experience through partial page updates, scoped navigation, and lazy loading of content within specific sections of a web page.
3+
description: >-
4+
Develops with Turbo Frames for scoped navigation and lazy loading. Activates when using the x-turbo::frame Blade
5+
component or turbo-frame HTML element; working with data-turbo-frame targeting, frame lazy loading via src attribute,
6+
or data-turbo-action for URL updates; detecting frame requests with wasFromTurboFrame(); using frame morphing with
7+
refresh="morph"; or when the user mentions Turbo Frame, turbo frame, scoped navigation, inline editing, lazy loading
8+
frames, or breaking out of a frame with _top.
49
---
510

611
# Turbo Frames

resources/boost/skills/developing-with-turbo-streams/SKILL.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
---
22
name: developing-with-turbo-streams
3-
description: Basics of developing with Turbo Streams in web applications. Activate when working on projects that utilize Turbo Streams for enhancing user experience through real-time updates, dynamic content changes, and partial page updates without full reloads.
3+
description: >-
4+
Develops with Turbo Streams for partial page updates and real-time broadcasting. Activates when using turbo_stream() or
5+
turbo_stream_view() helpers; working with stream actions like append, prepend, replace, update, remove, before, after,
6+
or refresh; using the Broadcasts trait, broadcastAppend, broadcastPrepend, broadcastReplace, broadcastRemove, or
7+
broadcastRefresh methods; listening with x-turbo::stream-from; using the TurboStream facade for handmade broadcasts;
8+
combining multiple streams; or when the user mentions Turbo Stream, broadcasting, real-time updates, WebSocket streams,
9+
or partial page changes.
410
---
511

612
# Turbo Streams

resources/boost/skills/developing-with-turbo-tests/SKILL.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
---
22
name: developing-with-turbo-tests
3-
description: Basics of testing out Turbo-specific aspects of web applications. Activate when working on projects that utilize Turbo for testing specific Turbo Frames, Turbo Streams, or Turbo Native behavior.
3+
description: >-
4+
Tests Turbo Laravel features in PHPUnit or Pest. Activates when using the InteractsWithTurbo trait; simulating requests with
5+
$this->turbo(), $this->fromTurboFrame(), or $this->hotwireNative(); asserting responses with assertTurboStream(),
6+
assertNotTurboStream(), assertRedirectRecede(), assertRedirectResume(), or assertRedirectRefresh(); faking broadcasts
7+
with TurboStream::fake(), assertBroadcasted(), assertNothingWasBroadcasted(), or assertBroadcastedTimes(); writing
8+
feature tests for Turbo Stream responses; or when the user mentions testing Turbo, testing broadcasts, or Turbo test
9+
assertions.
410
---
511

612
# Testing Turbo Laravel

0 commit comments

Comments
 (0)